MCPcopy Create free account

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

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

↓ 1 callersFunctionupdateReservationVMS
Update reservation's number of allocated resources
compute/reservations/update_reservation_vms.go:29
↓ 1 callersFunctionupdateRoutine
updateRoutine demonstrates updating an existing BigQuery UDF using the routine API.
bigquery/snippets/routine/bigquery_update_routine.go:26
↓ 1 callersFunctionupdateRoutine
updateRoutine demonstrates making partial updates to an existing routine's metadata.
bigquery/snippets_preview/routine/bigquery_update_routine.go:32
↓ 1 callersFunctionupdateSavedQuery
(w io.Writer, projectID, savedQueryID, newDescription string)
asset/quickstart/update-saved-query/update_saved_query.go:31
↓ 1 callersFunctionupdateSecret
updateSecret updates the metadata about an existing secret.
secretmanager/update_secret.go:29
↓ 1 callersFunctionupdateSecretWithAlias
updateSecret updates the alias map on an existing secret.
secretmanager/update_secret_with_alias.go:29
↓ 1 callersFunctionupdateSecretWithEtag
updateSecretWithEtag updates the metadata about an existing secret.
secretmanager/update_secret_with_etag.go:29
↓ 1 callersFunctionupdateSecurityCenterService
updateSecurityCenterService updates a Security Center service configuration.
securitycenter/management_api/security_center_service/update_security_center_service.go:30
↓ 1 callersFunctionupdateSecurityHealthAnalyticsCustomModule
updateSecurityHealthAnalyticsCustomModule creates a custom module for Security Health Analytics.
securitycenter/management_api/update_security_health_analytics_custom_module.go:30
↓ 1 callersFunctionupdateSink
(projectID string)
logging/exportlogs/update_sink.go:25
↓ 1 callersFunctionupdateSlate
updateSlate updates an existing slate. This sample updates the uri for an existing slate.
media/videostitcher/update_slate.go:30
↓ 1 callersFunctionupdateSource
updateSource changes a sources display name to "New Display Name" for a specific source. sourceName is the full resource name of the source to be upda
securitycenter/findings/update_source.go:31
↓ 1 callersFunctionupdateSource
updateSource changes a sources display name to "New Display Name" for a specific source. sourceName is the full resource name of the source to be upda
securitycenter/findingsv2/update_source.go:31
↓ 1 callersFunctionupdateStoredInfoType
updateStoredInfoType uses the Data Loss Prevention API to update stored infoType detector by changing the source term list from one stored in Bigquery
dlp/snippets/metadata/update_stored_infotype.go:30
↓ 1 callersFunctionupdateSubscription
(w io.Writer, projectID, region, location, subID string)
pubsublite/admin/update_subscription.go:26
↓ 1 callersFunctionupdateTable
updateTable demonstrates making partial updates to an existing table's metadata.
bigquery/snippets_preview/table/bigquery_update_table.go:33
↓ 1 callersFunctionupdateTableAddColumn
updateTableAddColumn demonstrates modifying the schema of a table to append an additional column.
bigquery/snippets/table/bigquery_add_empty_column.go:26
↓ 1 callersFunctionupdateTableChangeCMEK
updateTableChangeCMEK demonstrates how to change the customer managed encryption key that protects a table.
bigquery/snippets/table/bigquery_update_table_cmek.go:26
↓ 1 callersFunctionupdateTableDescription
updateTableDescription demonstrates how to fetch a table's metadata and updates the Description metadata.
bigquery/snippets/table/bigquery_update_table_description.go:26
↓ 1 callersFunctionupdateTableExpiration
updateTableExpiration demonstrates setting the table expiration of a table to a specific point in time in the future, at which time it will be deleted
bigquery/snippets/table/bigquery_update_table_expiration.go:28
↓ 1 callersFunctionupdateTopic
(w io.Writer, projectID, region, location, topicID, reservation string)
pubsublite/admin/update_topic.go:27
↓ 1 callersFunctionupdateTopic
(w io.Writer, projectID, region, clusterID, topicID string, partitionCount int32, configs map[string]string, o
managedkafka/topics/update_topic.go:30
↓ 1 callersFunctionupdateTopicSchema
(w io.Writer, projectID, topicID, firstRevisionID, lastRevisionID string)
pubsub/v1samples/schemas/update_topic_schema.go:26
↓ 1 callersFunctionupdateTopicSchema
(w io.Writer, projectID, topicID, firstRevisionID, lastRevisionID string)
pubsub/schemas/update_topic_schema.go:28
↓ 1 callersFunctionupdateTopicType
(w io.Writer, projectID, topic string)
pubsub/topics/update_topic_type.go:28
↓ 1 callersFunctionupdateTopicType
(w io.Writer, projectID, topicID string)
pubsub/v1samples/topics/update_topic_type.go:26
↓ 1 callersFunctionupdateTrigger
updateTrigger updates an existing job trigger in Google Cloud Data Loss Prevention (DLP). It modifies the configuration of the specified job trigger w
dlp/snippets/trigger/update.go:31
↓ 1 callersFunctionupdateViewDelegated
updateViewDelegated demonstrates the setup of an authorized view, which allows access to a view's results without the caller having direct access to t
bigquery/snippets/table/bigquery_grant_view_access.go:27
↓ 1 callersFunctionupdateVodConfig
updateVodConfig updates an existing VOD config. This sample updates the sourceURI for an existing VOD config.
media/videostitcher/update_vod_config.go:30
↓ 1 callersFunctionuploadBigQuery
(ctx context.Context, d *bigquery.Dataset, schema bigquery.Schema, table, content string)
dlp/snippets/inspect/inspect_test.go:149
↓ 1 callersFunctionuploadEncryptedFile
uploadEncryptedFile writes an object using AES-256 encryption key.
storage/objects/upload_encrypted_file.go:28
↓ 1 callersMethoduploadFileFromForm
[START getting_started_bookshelf_storage] uploadFileFromForm uploads a file if it's present in the "image" form field.
getting-started/bookshelf/main.go:190
↓ 1 callersFunctionuploadWithKMSKey
uploadWithKMSKey writes an object using Cloud KMS encryption.
storage/objects/upload_with_kms_key.go:28
↓ 1 callersFunctionuploadWithObjectContexts
uploadWithObjectContexts sets an object's contexts.
storage/objects/upload_with_object_contexts.go:28
↓ 1 callersMethodurlCmd
()
internal/cloudrunci/cloudrunci.go:516
↓ 1 callersFunctionuseContentCacheWithTxt
useContentCacheWithTxt shows how to use content cache to generate text content.
genai/content_cache/contentcache_use_with_txt.go:28
↓ 1 callersFunctionvalidate
Validate whether the requested parameters are allowed. Find more information about limitations of custom machine types at: https://cloud.google.com/co
compute/instances/custom-machine-type/helper_class.go:92
↓ 1 callersFunctionvalidateAssertion
[END getting_started_auth_front_controller] [START getting_started_auth_validate] validateAssertion validates assertion was signed by Google and retur
getting-started/authenticating-users/main.go:113
↓ 1 callersFunctionvalidateEventThreatDetectionCustomModule
validateEventThreatDetectionCustomModule validates a custom module for Event Threat Detection.
securitycenter/management_api/event_threat_detection/validate_event_threat_detection_custom_module.go:29
↓ 1 callersMethodvalidateToken
validateToken is used to validate the provided idToken with a known Google cert URL.
run/service-auth/main.go:47
↓ 1 callersFunctionvalueFromTypeMap
valueFromTypeMap returns the first value/key in the type map. This function is only suitable for simple schemas, as complex typing such as arrays and
bigquery/bigquery_storage_quickstart/main.go:245
↓ 1 callersFunctionvectorLengthFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_vector.go:85
↓ 1 callersFunctionvectorSearchBasic
(w io.Writer, projectID string)
firestore/vector_search_basic.go:26
↓ 1 callersFunctionvectorSearchDistanceResultField
(w io.Writer, projectID string)
firestore/vector_search_result_field.go:26
↓ 1 callersFunctionvectorSearchDistanceResultFieldMasked
(w io.Writer, projectID string)
firestore/vector_search_result_field_masked.go:26
↓ 1 callersFunctionvectorSearchDistanceThreshold
(w io.Writer, projectID string)
firestore/vector_search_distance_threshold.go:26
↓ 1 callersFunctionvectorSearchPrefilter
(w io.Writer, projectID string)
firestore/vector_search_prefilter.go:26
↓ 1 callersFunctionvectorSearchSetup
(t *testing.T)
firestore/vector_search_main_test.go:45
↓ 1 callersFunctionverifyAsymmetricSignatureEC
verifyAsymmetricSignatureEC will verify that an 'EC_SIGN_P256_SHA256' signature is valid for a given message.
kms/verify_asymmetric_ec.go:35
↓ 1 callersFunctionverifyAsymmetricSignatureRSA
verifyAsymmetricSignatureRSA will verify that an 'RSA_SIGN_PSS_2048_SHA256' signature is valid for a given message.
kms/verify_asymmetric_rsa.go:34
↓ 1 callersFunctionverifyGoogleIdToken
verifyGoogleIdToken verifies the obtained Google id token. This is done at the receiving end of the OIDC endpoint. The most common use case for verify
auth/verify_google_id_token.go:31
↓ 1 callersFunctionverifyMac
verifyMac will verify a previous HMAC signature.
kms/verify_mac.go:28
↓ 1 callersFunctionverifyPeerCertFunc
[END cloud_sql_mysql_databasesql_connect_tcp] verifyPeerCertFunc returns a function that verifies the peer certificate is in the cert pool.
cloudsql/mysql/database-sql/connect_tcp.go:111
↓ 1 callersFunctionverifyStdoutLogs
verifyStdoutLogs checks for the expected log message in json format, and ensures all expected fields are set.
opentelemetry/instrumentation/app/main_test.go:154
↓ 1 callersFunctionviewDatasetAccessPolicies
viewDatasetAccessPolicies retrieves the ACL for the given dataset For more information on the types of ACLs available see: https://cloud.google.com/st
bigquery/bigquery_access_quickstart/view_dataset_access_policy.go:29
↓ 1 callersFunctionviewGrantableRoles
viewGrantableRoles lists roles grantable on a resource.
iam/snippets/roles_view_grantable.go:27
↓ 1 callersFunctionviewRegionalSecretAnnotations
viewRegionalSecretAnnotations gets annotations with the given secret.
secretmanager/regional_samples/view_regional_secret_annotations.go:29
↓ 1 callersFunctionviewRegionalSecretLabels
getSecret gets information about the given secret. This only returns metadata about the secret container, not any secret material.
secretmanager/regional_samples/view_regional_secret_labels.go:30
↓ 1 callersFunctionviewSecretAnnotations
viewSecretAnnotations gets annotations with the given secret.
secretmanager/view_secret_annotations.go:28
↓ 1 callersFunctionviewSecretLabels
getSecret gets information about the given secret. This only returns metadata about the secret container, not any secret material.
secretmanager/view_secret_labels.go:29
↓ 1 callersFunctionvisitCount
visitCount increments the visit count on the Redis instance and prints the current count in the HTTP response.
functions/memorystore/redis/visitcount.go:66
↓ 1 callersFunctionwait
Waits forever simulating a goroutine that is consistently blocked on I/O. It calls an "impl" function to produce a bit deeper stacks in the profiler v
profiler/hotapp/main.go:64
↓ 1 callersFunctionwaitForCompletion
(pd pendingDelete)
internal/cleanaeversions/cleanaeversions.go:163
↓ 1 callersFunctionwaitForDocuments
(t *testing.T, projectID, collName string, expectedCount int)
firestore/vector_search_main_test.go:255
↓ 1 callersFunctionwaitForOperation
waitForOperation waits for an operation to be completed. Calling this function will block until the operation is finished.
compute/wait_for_operation.go:27
↓ 1 callersFunctionwaitImpl
()
profiler/hotapp/main.go:68
↓ 1 callersFunctionwaitTransferRun
(t *testing.T, dtc *datatransfer.Client, transferConfigID string)
bigquery/snippets/datatransfer/integration_test.go:92
↓ 1 callersFunctionwelcome
welcome creates a response for the welcome intent.
dialogflow/basic_webhook/webhook.go:63
↓ 1 callersFunctionwhereComplexExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1608
↓ 1 callersFunctionwhereEqualityExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1575
↓ 1 callersFunctionwhereHavingExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1686
↓ 1 callersFunctionwhereMultipleStagesExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1591
↓ 1 callersFunctionwherePipeline
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1545
↓ 1 callersFunctionwhereStageOrderExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:1632
↓ 1 callersFunctionwithdraw
(ctx context.Context, foo string, bar, baz int)
docs/appengine/tools/unittest/aetest2.go:89
↓ 1 callersFunctionwriteAggregate
(w io.Writer, projectID, instanceID string, tableName string)
bigtable/writes/write_aggregate.go:28
↓ 1 callersFunctionwriteBatch
(w io.Writer, projectID, instanceID string, tableName string)
bigtable/writes/write_batch.go:28
↓ 1 callersFunctionwriteConditionally
(w io.Writer, projectID, instanceID string, tableName string)
bigtable/writes/write_conditionally.go:26
↓ 1 callersFunctionwriteIncrement
(w io.Writer, projectID, instanceID string, tableName string)
bigtable/writes/write_increment.go:26
↓ 1 callersFunctionwriteMetadata
(m *InstanceMetadata)
run/service-health/main.go:532
↓ 1 callersFunctionwriteObject
(ctx context.Context, bucket *storage.BucketHandle, fileName, content string)
dlp/snippets/inspect/inspect_test.go:98
↓ 1 callersFunctionwriteSimple
(w io.Writer, projectID, instanceID string, tableName string)
bigtable/writes/write_simple.go:30
↓ 1 callersFunctionwriteTestData
(ctx context.Context, project string, instance string, tableID string, timestamp bigtable.Timestamp, t *testin
functions/bigtable/bigtable_test.go:85
↓ 1 callersFunctionwriteTestData
(err error, ctx context.Context, project string, instance string, tableName string, timestamp bigtable.Timesta
bigtable/filters/filters_test.go:562
↓ 1 callersFunctionwriteTestData
(ctx context.Context, project string, instance string, tableName string, timestamp bigtable.Timestamp, t *test
bigtable/reads/reads_test.go:236
↓ 1 callersFunctionwriteTestDatastoreFiles
(t *testing.T, projectID string)
dlp/snippets/inspect/inspect_test.go:56
↓ 1 callersFunctionwriteTestGCSFiles
(t *testing.T, bucketName string)
media/transcoder/transcoder_test.go:194
↓ 1 callersFunctionwriteTestGCSFiles
(t *testing.T, projectID string)
dlp/snippets/inspect/inspect_test.go:74
↓ 1 callersFunctionxorFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_logical.go:88
↓ 1 callersFunctionсhangeObjectCSEKToKMS
сhangeObjectCSEKtoKMS changes the key used to encrypt an object from a customer-supplied encryption key to a customer-managed encryption key.
storage/objects/change_object_csek_to_cmek.go:29
FunctionAccept2xx
Accept2xx returns true for responses in the 200 class of http response codes
internal/cloudrunci/cloudrunci.go:151
FunctionAcceptNonServerError
AcceptNonServerError returns true for any non-500 http response
internal/cloudrunci/cloudrunci.go:156
FunctionAccessRegionalSecretVersion
accessSecretVersion accesses the payload for the given secret version if one exists. The version can be a version number as a string (e.g. "5") or an
secretmanager/regional_samples/access_regional_secret_version.go:32
MethodAddBook
[END getting_started_bookshelf_firestore] AddBook saves a given book, assigning it a new ID.
getting-started/bookshelf/db_firestore.go:76
MethodAddBook
AddBook saves a given book, assigning it a new ID.
getting-started/bookshelf/db_memory.go:65
FunctionAddRegionalSecretVersion
addSecretVersion adds a new secret version to the given secret with the provided payload.
secretmanager/regional_samples/add_regional_secret_version.go:31
MethodClose
Close closes the database.
getting-started/bookshelf/db_firestore.go:58
MethodClose
Close closes the database.
getting-started/bookshelf/db_memory.go:43
MethodClose
()
vertexai/gemma2/mock_client.go:36
MethodClose
()
compute/reservations/mock_shared_project.go:35
← previousnext →2,701–2,800 of 5,023, ranked by callers