MCPcopy Create free account

hub / github.com/GoogleCloudPlatform/golang-samples / functions

Functions5,023 in github.com/GoogleCloudPlatform/golang-samples

↓ 1 callersFunctiondicomWebStoreInstance
dicomWebStoreInstance stores the given dicomFile with the dicomWebPath.
healthcare/dicomweb_instance_store.go:29
↓ 1 callersFunctiondisableBucketLifecycleManagement
disableBucketLifecycleManagement removes all existing lifecycle rules from the bucket.
storage/buckets/disable_bucket_lifecycle_management.go:29
↓ 1 callersFunctiondisableDefaultEventBasedHold
disableDefaultEventBasedHold sets event-based hold to false.
storage/buckets/disable_default_event_based_hold.go:28
↓ 1 callersFunctiondisableKeyVersion
disableKeyVersion disables the specified key version on Cloud KMS.
kms/disable_key_version.go:29
↓ 1 callersFunctiondisableParamVersion
disableParamVersion disables a parameter version. w: The io.Writer object used to write the output. projectID: The ID of the project where the parame
parametermanager/disable_param_vesion.go:36
↓ 1 callersFunctiondisableRegionalParamVersion
disableRegionalParamVersion disables a regional parameter version using the Parameter Manager SDK for GCP. w: The io.Writer object used to write the
parametermanager/regional_samples/disable_regional_param_vesion.go:38
↓ 1 callersFunctiondisableRequesterPays
disableRequesterPays sets requester pays flag to false.
storage/buckets/disable_requester_pays.go:28
↓ 1 callersFunctiondisableSecretVersion
disableSecretVersion disables the given secret version. Future requests will throw an error until the secret version is enabled. Other secrets version
secretmanager/disable_secret_version.go:29
↓ 1 callersFunctiondisableSecretVersionWithEtag
disableSecretVersionWithEtag disables the given secret version. Future requests will throw an error until the secret version is enabled. Other secrets
secretmanager/disable_secret_version_with_etag.go:29
↓ 1 callersFunctiondisableServiceAccount
disableServiceAccount disables a service account.
iam/snippets/service_accounts_disable.go:27
↓ 1 callersFunctiondisableSoftDeletePolicy
disableSoftDeletePolicy disables the soft delete policy for a bucket by setting retention duration to 0.
storage/buckets/disable_soft_delete_policy.go:28
↓ 1 callersFunctiondisableUniformBucketLevelAccess
disableUniformBucketLevelAccess sets uniform bucket-level access to false.
storage/buckets/disable_uniform_bucket_level_access.go:28
↓ 1 callersFunctiondisableUsageExport
disableUsageExport disables Compute Engine usage export bucket for the Cloud Project.
compute/disable_usage_export.go:28
↓ 1 callersFunctiondisableVersioning
disableVersioning disables object versioning on a bucket.
storage/objects/disable_versioning.go:28
↓ 1 callersFunctiondistinctExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:437
↓ 1 callersFunctiondistinctExampleData
(_ io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:405
↓ 1 callersFunctiondistinctExpressionsExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:451
↓ 1 callersFunctiondistinctSyntaxExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:380
↓ 1 callersFunctiondivideFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_arithmetic.go:83
↓ 1 callersFunctiondocAsEntity
(ctx context.Context, client *firestore.Client)
firestore/retrieve_data_get_as_custom_type.go:26
↓ 1 callersFunctiondocAsMap
(ctx context.Context, client *firestore.Client)
firestore/retrieve_data_get_as_map.go:26
↓ 1 callersFunctiondocumentInputExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1443
↓ 1 callersFunctiondocumentInputExampleData
(_ io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1424
↓ 1 callersFunctiondocumentInputSyntaxExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1405
↓ 1 callersFunctiondocumentsStage
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:926
↓ 1 callersFunctiondotProductFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_vector.go:45
↓ 1 callersFunctiondownloadByteRange
downloadByteRange downloads a specific byte range of an object to a file.
storage/objects/download_byte_range.go:29
↓ 1 callersFunctiondownloadChunksConcurrently
downloadChunksConcurrently downloads a single file in chunks, concurrently in a process pool.
storage/transfer_manager/download_chunks_concurrently.go:29
↓ 1 callersFunctiondownloadEncryptedFile
downloadEncryptedFile reads an encrypted object.
storage/objects/download_encrypted_file.go:28
↓ 1 callersFunctiondownloadFile
downloadFile downloads an object to a file.
storage/objects/download_file.go:29
↓ 1 callersFunctiondownloadFileIntoMemory
downloadFileIntoMemory downloads an object.
storage/objects/download_file_into_memory.go:30
↓ 1 callersFunctiondownloadPublicFile
downloadPublicFile downloads a public object.
storage/objects/download_public_file.go:29
↓ 1 callersFunctiondownloadToPosix
(w io.Writer, projectID string, sinkAgentPoolName string, gcsSourceBucket string, gcsSourcePath string, rootDi
storagetransfer/download_to_posix.go:28
↓ 1 callersFunctiondownloadUsingRequesterPays
downloadUsingRequesterPays downloads an object using billing project.
storage/objects/download_using_requester_pays.go:29
↓ 1 callersFunctiondropRowRange
(w io.Writer, projectID, instanceID, tableName string)
bigtable/deletes/drop_row_range.go:27
↓ 1 callersFunctioneditRegionalSecretAnnotation
editRegionalSecretAnnotations updates the annotations about an existing secret. If the annotation key exists, it updates the annotation, otherwise it
secretmanager/regional_samples/edit_regional_secret_annotations.go:31
↓ 1 callersFunctioneditRegionalSecretLabel
editSecretLabel updates the labels about an existing secret. If the label key exists, it updates the label, otherwise it creates a new one.
secretmanager/regional_samples/edit_regional_secret_label.go:31
↓ 1 callersFunctioneditRole
editRole modifies a custom role.
iam/snippets/roles_edit.go:27
↓ 1 callersFunctioneditSecretAnnotation
editSecretAnnotation updates the annotations about an existing secret. If the annotation key exists, it updates the annotation, otherwise it creates a
secretmanager/edit_secret_annotations.go:30
↓ 1 callersFunctioneditSnapshotSchedule
editSnapshotSchedule edits a snapshot schedule.
compute/snapshots/edit_snapshot_schedule.go:29
↓ 1 callersMethodeditorHandler
(w http.ResponseWriter, r *http.Request)
run/markdown-preview/editor/service.go:82
↓ 1 callersFunctionembedBatchPredict
embedBatchPredict generates embeddings from text using batch processing.
aiplatform/snippets/embedding_batch_predict.go:29
↓ 1 callersFunctionembedTexts
embedTexts shows how embeddings are set for gemini-embedding-001 model
aiplatform/snippets/embeddings.go:32
↓ 1 callersFunctionembedTextsPreview
Embeds code query with a pre-trained, foundational model by specifying the task type as 'CODE_RETRIEVAL_QUERY'. e.g. 'Retrieve a function that adds tw
aiplatform/snippets/embeddings_preview.go:33
↓ 1 callersFunctionemploymentTypesSearch
[END job_discovery_category_filter_search] [START job_discovery_employment_types_filter_search] employmentTypesSearch searches for jobs on employment
jobs/v3/howto/general_search_sample.go:139
↓ 1 callersFunctionenableAssetDiscovery
Turns on asset discovery for orgID and prints out updated settings to w. settings. orgID is the numeric Organization ID.
securitycenter/settings/enable_asset_discovery.go:31
↓ 1 callersFunctionenableBucketLifecycleManagement
enableBucketLifecycleManagement adds a lifecycle delete rule with the condition that the object is 100 days old.
storage/buckets/enable_bucket_lifecycle_management.go:29
↓ 1 callersFunctionenableChannel
enableChannel enables the given channel. channelName should be of the form "projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]".
monitoring/snippets/channel_enable.go:33
↓ 1 callersFunctionenableDefaultEventBasedHold
enableDefaultEventBasedHold sets event-based hold to true.
storage/buckets/enable_default_event_based_hold.go:28
↓ 1 callersFunctionenableFineGrainedAccess
(ctx context.Context, w io.Writer, adminClient *database.DatabaseAdminClient, db string, iamMember string)
spanner/spanner_snippets/snippet.go:750
↓ 1 callersFunctionenableKeyVersion
enableKeyVersion disables the specified key version on Cloud KMS.
kms/enable_key_version.go:29
↓ 1 callersFunctionenableParamVersion
enableParamVersion enables a parameter version. w: The io.Writer object used to write the output. projectID: The ID of the project where the paramete
parametermanager/enable_param_version.go:36
↓ 1 callersFunctionenablePolicies
[END monitoring_alert_replace_channels] [START monitoring_alert_disable_policies] [START monitoring_alert_enable_policies] enablePolicies enables or d
monitoring/alert/alert.go:315
↓ 1 callersFunctionenableRegionalParamVersion
enableRegionalParamVersion enables a regional parameter version using the Parameter Manager SDK for GCP. w: The io.Writer object used to write the ou
parametermanager/regional_samples/enable_regional_param_version.go:38
↓ 1 callersFunctionenableRequesterPays
enableRequesterPays sets requester pays flag to true.
storage/buckets/enable_requester_pays.go:28
↓ 1 callersFunctionenableSecretVersion
enableSecretVersion enables the given secret version, enabling it to be accessed after previously being disabled. Other secrets versions are unaffecte
secretmanager/enable_secret_version.go:29
↓ 1 callersFunctionenableSecretVersionWithEtag
enableSecretVersionWithEtag enables the given secret version, enabling it to be accessed after previously being disabled. Other secrets versions are u
secretmanager/enable_secret_version_with_etag.go:29
↓ 1 callersFunctionenableServiceAccount
enableServiceAccount enables a service account.
iam/snippets/service_accounts_enable.go:27
↓ 1 callersFunctionenableTracingWithCloudTraceExporter
()
spanner/opentelemetry/tracing/spanner_opentelemetry_tracing.go:122
↓ 1 callersFunctionenableTracingWithOtlpExporter
()
spanner/opentelemetry/tracing/spanner_opentelemetry_tracing.go:80
↓ 1 callersFunctionenableVersioning
enableVersioning enables object versioning on a bucket.
storage/objects/enable_versioning.go:28
↓ 1 callersFunctionencryptAsymmetric
encryptAsymmetric encrypts data on your local machine using an 'RSA_DECRYPT_OAEP_2048_SHA256' public key retrieved from Cloud KMS.
kms/encrypt_asymmetric.go:34
↓ 1 callersFunctionencryptSymmetric
encryptSymmetric encrypts the input plaintext with the specified symmetric Cloud KMS key.
kms/encrypt_symmetric.go:31
↓ 1 callersFunctionendsWithFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:82
↓ 1 callersFunctionenhancedModel
[START speech_transcribe_enhanced_model]
speech/snippets/enhanced_model.go:31
↓ 1 callersMethodensureDefaultImageRepo
ensureDefaultImageRepo uses gcloud to create a default Image registry.
internal/cloudrunci/cloudrunci.go:209
↓ 1 callersFunctionensureInstance
(t *testing.T, ctx context.Context, project, instance string)
bigtable/deletes/deletes_test.go:248
↓ 1 callersFunctionentitiesExport
entitiesExport exports a copy of all or a subset of entities from Datastore to another storage system, such as Cloud Storage.
datastore/admin/datastore_admin_entities_export.go:29
↓ 1 callersFunctionentitiesImport
entitiesImport imports entities into Datastore.
datastore/admin/datastore_admin_entities_import.go:28
↓ 1 callersMethodenvAppYaml
envAppYaml writes the temporary configuration file if it does not exist already, then returns the path of the temporary config file.
internal/aeintegrate/aeintegrate.go:177
↓ 1 callersFunctionequalAnyFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_array.go:196
↓ 1 callersFunctionequalFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_comparison.go:25
↓ 1 callersFunctioneuclideanDistanceFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_vector.go:65
↓ 1 callersFunctionevaluateModelResponse
evaluateModelResponse evaluates the output of an LLM for groundedness, i.e., how well the model response connects with verifiable sources of informati
vertexai/evaluation/evaluate_output.go:31
↓ 1 callersFunctionexecuteTranslationWorkflow
executeTranslationWorkflow constructs a migration workflow that performs batch SQL translation.
bigquery/bigquery_migration_quickstart/main.go:66
↓ 1 callersFunctionexecuteWorkflowWithArguments
Execute a workflow with arguments and print the execution results. For more information about Workflows see: https://cloud.google.com/workflows/docs/
workflows/executions/execute_workflow_with_arguments.go:32
↓ 1 callersFunctionexistsFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_logical.go:25
↓ 1 callersFunctionexpFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_arithmetic.go:237
↓ 1 callersFunctionexplicitContentURI
[END video_analyze_shots] [START video_analyze_explicit_content]
videointelligence/video_analyze/video_analyze_gcs.go:122
↓ 1 callersFunctionexportFHIRResource
exportFHIRResource exports the resources in the FHIR store.
healthcare/fhir_resource_export.go:28
↓ 1 callersFunctionexportModel
exportModel demonstrates how to export an existing BigQuery ML Model to Google Cloud Storage.
bigquery/snippets/job/bigquery_export_model.go:27
↓ 1 callersFunctionexportTableAsCSV
exportTableAsCompressedCSV demonstrates using an export job to write the contents of a table into Cloud Storage as CSV.
bigquery/snippets/job/bigquery_extract_table.go:27
↓ 1 callersFunctionexportTableAsCompressedCSV
exportTableAsCompressedCSV demonstrates using an export job to write the contents of a table into Cloud Storage as compressed CSV.
bigquery/snippets/job/bigquery_extract_table_compressed.go:27
↓ 1 callersFunctionexportTableAsJSON
exportTableAsJSON demonstrates using an export job to write the contents of a table into Cloud Storage as newline delimited JSON.
bigquery/snippets/job/bigquery_extract_table_json.go:27
↓ 1 callersFunctionfailRateToFloat
(s string)
run/jobs/main.go:65
↓ 1 callersFunctionfhirExecuteBundle
fhirExecuteBundle executes an FHIR bundle.
healthcare/fhir_execute_bundle.go:29
↓ 1 callersFunctionfhirGetPatientEverything
fhirGetPatientEverything gets all resources associated with a particular patient compartment.
healthcare/fhir_resource_get_everything.go:28
↓ 1 callersFunctionfieldVsConstants
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1764
↓ 1 callersFunctionfilePathtoGCS
filePathtoGCS uploads a file test.txt in given path from the testdata directory.
dlp/snippets/inspect/inspect_test.go:384
↓ 1 callersFunctionfilePathtoGCS
(projectID string)
dlp/snippets/deid/deid_test.go:444
↓ 1 callersFunctionfile_sample_data_proto_init
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:348
↓ 1 callersFunctionfile_singer_proto_init
()
spanner/spanner_snippets/spanner/testdata/protos/singer.pb.go:217
↓ 1 callersFunctionfile_us_states_proto_init
()
internal/pubsub/schemas/us-states.pb.go:135
↓ 1 callersFunctionfile_us_states_proto_rawDescGZIP
()
internal/pubsub/schemas/us-states.pb.go:115
↓ 1 callersFunctionfilesForUpdateStoredInfoType
(t *testing.T, projectID, bucketName string)
dlp/snippets/metadata/metadata_test.go:56
↓ 1 callersFunctionfilterLimitRowSample
[END bigtable_filters_imports] [START bigtable_filters_limit_row_sample]
bigtable/filters/filters.go:34
↓ 1 callersFunctionfilterOnLongValueCustomAttribute
[END job_custom_attribute_filter_string_value] [START job_custom_attribute_filter_long_value] filterOnLongValueCustomAttribute searches for jobs on a
jobs/v3/howto/custom_attribute_sample.go:111
↓ 1 callersFunctionfilterOnMultiCustomAttributes
[END job_custom_attribute_filter_long_value] [START job_custom_attribute_filter_multi_attributes] filterOnLongValueCustomAttribute searches for jobs o
jobs/v3/howto/custom_attribute_sample.go:160
↓ 1 callersFunctionfilterOnStringValueCustomAttribute
[END job_custom_attribute_job] [START job_custom_attribute_filter_string_value] filterOnStringValueCustomAttribute searches for jobs on a string value
jobs/v3/howto/custom_attribute_sample.go:62
↓ 1 callersFunctionfinalizeAppendableObject
finalizeAppendableObject creates, uploads and finalizes a new object in a rapid bucket.
storage/rapid/finalize_appendable_object_upload.go:30
← previousnext →1,501–1,600 of 5,023, ranked by callers