MCPcopy Create free account

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

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

↓ 1 callersFunctionreadTimeSeriesFields
readTimeSeriesFields reads the last 20 minutes of the given metric, aligns everything on 10 minute intervals, and combines values from different insta
monitoring/snippets/time_series_fields.go:33
↓ 1 callersFunctionreadTimeSeriesReduce
readTimeSeriesReduce reads the last 20 minutes of the given metric, aligns everything on 10 minute intervals, and combines values from different insta
monitoring/snippets/time_series_reduce.go:34
↓ 1 callersFunctionreceiveMessages
(w io.Writer, projectID string, subscriptionName string)
securitycenter/notifications/receive_notifications.go:29
↓ 1 callersFunctionreceiveMessages
(w io.Writer, projectID string, subscriptionName string)
securitycenter/notificationsv2/receive_notifications.go:29
↓ 1 callersMethodreceiveMessagesHandler
[START gae_standard_pubsub_auth_push] receiveMessagesHandler validates authentication token and caches the Pub/Sub message received.
appengine/go11x/pubsub/authenicated_push/main.go:75
↓ 1 callersFunctionreceiveMessagesWithExactlyOnceDeliveryEnabled
receiveMessagesWithExactlyOnceDeliveryEnabled instantiates a subscriber client. This differs from regular subscribing since you must call msg.AckWithR
pubsub/v1samples/subscriptions/pull_exactly_once_delivery.go:33
↓ 1 callersFunctionreceiveMessagesWithExactlyOnceDeliveryEnabled
receiveMessagesWithExactlyOnceDeliveryEnabled instantiates a subscriber client. This differs from regular subscribing since you must call msg.AckWithR
pubsub/subscriptions/pull_exactly_once_delivery.go:33
↓ 1 callersFunctionrecentVotes
recentVotes returns the last five votes cast.
cloudsql/sqlserver/database-sql/cloudsql.go:66
↓ 1 callersFunctionrecentVotes
recentVotes returns the last five votes cast.
cloudsql/postgres/database-sql/cloudsql.go:62
↓ 1 callersFunctionrecentVotes
recentVotes returns the last five votes cast.
cloudsql/mysql/database-sql/cloudsql.go:62
↓ 1 callersFunctionrecognize
[END speech_transcribe_sync_gcs] [START speech_transcribe_sync]
speech/caption/caption.go:98
↓ 1 callersFunctionrecognizeGCS
[START speech_transcribe_sync_gcs]
speech/caption/caption.go:63
↓ 1 callersFunctionrecordVisit
(ctx context.Context, now time.Time, userIP string)
appengine_flexible/datastore/datastore.go:85
↓ 1 callersFunctionrecordVisit
(ctx context.Context, now time.Time, userIP string)
appengine_flexible/go115_and_earlier/datastore/datastore.go:85
↓ 1 callersFunctionredactImage
redactImage blacks out the identified portions of the input image (with type bytesType) and stores the result in outputPath.
dlp/snippets/redact/redact.go:30
↓ 1 callersFunctionredactImageFileAllInfoTypes
redactImageFileAllInfoTypes redact sensitive data from an image using default infoTypes.
dlp/snippets/redact/redact_image_all_infotypes.go:28
↓ 1 callersFunctionredactImageFileAllText
redactImageFileAllText redacts all detected text in an image
dlp/snippets/redact/redact_image_all_text.go:28
↓ 1 callersFunctionredactImageFileColoredInfoTypes
redactImageFileColoredInfoTypes redacts data from an image with color-coded infoTypes.
dlp/snippets/redact/redact_image_colored_infotypes.go:28
↓ 1 callersFunctionredactImageFileListedInfoTypes
redactImageFileListedInfoTypes redacts only certain sensitive data from an image using infoTypes
dlp/snippets/redact/redact_image_listed_infotypes.go:29
↓ 1 callersFunctionrefreshReadinessConfig
()
run/service-health/main.go:382
↓ 1 callersFunctionregexContainsFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:120
↓ 1 callersFunctionregexFindAllFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:158
↓ 1 callersFunctionregexFindFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:139
↓ 1 callersFunctionregexMatchFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_string.go:177
↓ 1 callersFunctionreidTableDataWithFPE
reidTableDataWithFPE re-identifies table data with FPE
dlp/snippets/deid/reid_table_fpe.go:28
↓ 1 callersFunctionreidTextDataWithFPE
ReidTextDataWithFPE re-identifies text data with FPE
dlp/snippets/deid/reid_text_fpe.go:28
↓ 1 callersFunctionreidentifyFPE
reidentifyFPE reidentifies the input with FPE (Format Preserving Encryption). keyFileName is the file name with the KMS wrapped key and cryptoKeyName
dlp/snippets/deid/reid_fpe.go:33
↓ 1 callersFunctionreidentifyFreeTextWithFPEUsingSurrogate
reidentifyFreeTextWithFPEUsingSurrogate re-identifies free text with FPE using surrogate
dlp/snippets/deid/reid_free_text_with_fpe_using_surrogate.go:28
↓ 1 callersFunctionreidentifyWithDeterministic
reidentifyWithDeterministic re-identifies content encrypted by deterministic encryption.
dlp/snippets/deid/reid_with_deterministic.go:28
↓ 1 callersFunctionrelaxTableAPI
relaxTableAPI demonstrates modifying the schema of a table to remove the requirement that columns allow no NULL values.
bigquery/snippets/table/bigquery_relax_column.go:27
↓ 1 callersFunctionrelaxTableImport
relaxTableImport demonstrates amending the schema of a table to relax columns from not allowing NULL values to allowing them.
bigquery/snippets/loadingdata/bigquery_relax_column_load_append.go:28
↓ 1 callersFunctionreleaseEventBasedHold
releaseEventBasedHold releases an object with event-based hold.
storage/objects/release_event_based_hold.go:28
↓ 1 callersFunctionreleaseTemporaryHold
releaseTemporaryHold releases an object with temporary hold.
storage/objects/release_temporary_hold.go:28
↓ 1 callersFunctionremoveBucketCORSConfiguration
removeBucketCORSConfiguration removes the CORS configuration from a bucket.
storage/buckets/remove_bucket_cors_configuration.go:28
↓ 1 callersFunctionremoveBucketConditionalIAMBinding
removeBucketConditionalIAMBinding removes bucket conditional IAM binding.
storage/buckets/remove_bucket_conditional_iam_binding.go:28
↓ 1 callersFunctionremoveBucketDefaultKMSKey
removeBucketDefaultKMSKey removes any default Cloud KMS key set on a bucket.
storage/buckets/remove_bucket_default_kms_key.go:28
↓ 1 callersFunctionremoveBucketDefaultOwner
deleteDefaultBucketACL removes default ACL from a bucket.
storage/acl/remove_bucket_default_owner.go:26
↓ 1 callersFunctionremoveBucketIAMMember
removeBucketIAMMember removes the bucket IAM member.
storage/buckets/remove_bucket_iam_member.go:29
↓ 1 callersFunctionremoveBucketLabel
removeBucketLabel removes a label on a bucket.
storage/buckets/remove_bucket_label.go:28
↓ 1 callersFunctionremoveDatabase
removeDatabase deletes the database which this demonstration program created.
spanner/spanner_arrays/main.go:206
↓ 1 callersFunctionremoveDeadLetterTopic
removeDeadLetterTopic removes the dead letter policy from a subscription.
pubsub/v1samples/subscriptions/dead_letter_remove.go:27
↓ 1 callersFunctionremoveDeadLetterTopic
removeDeadLetterTopic removes the dead letter policy from a subscription.
pubsub/subscriptions/dead_letter_remove.go:29
↓ 1 callersFunctionremoveFieldsNestedDataExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:670
↓ 1 callersFunctionremoveFieldsNestedExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:691
↓ 1 callersFunctionremoveFieldsSyntaxExample
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:654
↓ 1 callersFunctionremoveFileOwner
removeFileOwner removes default ACL from the given object.
storage/acl/remove_file_owner.go:26
↓ 1 callersFunctionremoveFromPool
(ctx context.Context, projectID string)
testing/gimmeproj/main.go:306
↓ 1 callersFunctionremoveMember
removeMember removes a member from a role binding.
iam/snippets/member_remove.go:26
↓ 1 callersFunctionremoveMember
removeMember removes the principal from the project's IAM policy
iam/quickstart/quickstart.go:100
↓ 1 callersFunctionremoveParamKmsKey
removeParamKmsKey removes a parameter kms_key using the Parameter Manager SDK for GCP. w: The io.Writer object used to write the output. projectID: T
parametermanager/remove_param_kms_key.go:35
↓ 1 callersFunctionremoveProductFromProductSet
removeProductFromProductSet removes a product from a product set.
vision/product_search/remove_product_from_product_set.go:30
↓ 1 callersFunctionremoveRegionalParamKmsKey
removeRegionalParamKmsKey removes a regional parameter kms_key using the Parameter Manager SDK for GCP. w: The io.Writer object used to write the out
parametermanager/regional_samples/remove_regional_param_kms_key.go:37
↓ 1 callersFunctionremoveRetentionPolicy
removeRetentionPolicy removes bucket retention policy.
storage/buckets/remove_retention_policy.go:28
↓ 1 callersFunctionremoveRotationSchedule
removeRotationSchedule updates a key to remove a rotation schedule, if one exists.
kms/update_key_remove_rotation.go:30
↓ 1 callersFunctionremoveSnapshotSchedule
removeSnapshotSchedule removes a snapshot schedule from a disk.
compute/snapshots/remove_disk_snapshot_schedule.go:28
↓ 1 callersFunctionrenameFolder
renameFolder changes the name of an existing folder.
storage/control/rename_folder.go:29
↓ 1 callersFunctionrenameServiceAccount
renameServiceAccount renames a service account.
iam/snippets/service_accounts_rename.go:27
↓ 1 callersMethodrenderHandler
renderHandler expects a JSON body payload with a 'data' property holding plain text for rendering.
run/markdown-preview/editor/service.go:99
↓ 1 callersFunctionrenderIndex
renderIndex renders the HTML application with the voting form, current totals, and recent votes.
cloudsql/sqlserver/database-sql/cloudsql.go:219
↓ 1 callersFunctionrenderIndex
renderIndex renders the HTML application with the voting form, current totals, and recent votes.
cloudsql/postgres/database-sql/cloudsql.go:231
↓ 1 callersFunctionrenderIndex
renderIndex renders the HTML application with the voting form, current totals, and recent votes.
cloudsql/mysql/database-sql/cloudsql.go:231
↓ 1 callersFunctionrenderParamVersion
renderParamVersion renders a parameter version using the Parameter Manager SDK for GCP. The version can be a version ID as a string (e.g. "parameter1"
parametermanager/render_param_version.go:36
↓ 1 callersFunctionrenderRegionalParamVersion
renderRegionalParamVersion renders a regional parameter version using the Parameter Manager SDK for GCP. The version can be a version ID as a string (
parametermanager/regional_samples/render_regional_param_version.go:38
↓ 1 callersFunctionreplaceChannels
[END monitoring_alert_restore_policies] [END monitoring_alert_create_policy] [END monitoring_alert_create_channel] [END monitoring_alert_update_channe
monitoring/alert/alert.go:280
↓ 1 callersFunctionreplaceWithStage
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_general.go:946
↓ 1 callersFunctionreport
(stackTrace string, r *http.Request)
docs/error-reporting/fluent/main.go:53
↓ 1 callersFunctionreportCapacityCommitments
printCapacityCommitments iterates through the capacity commitments and returns a byte buffer with details.
bigquery/bigquery_reservation_quickstart/main.go:71
↓ 1 callersFunctionreportConnections
reportConnections gathers basic information about existing connections in a given project and location.
bigquery/bigquery_connection_quickstart/main.go:64
↓ 1 callersFunctionreportReservations
printReservations iterates through reservations defined in an admin project.
bigquery/bigquery_reservation_quickstart/main.go:96
↓ 1 callersFunctionreportWorkflowStatus
reportWorkflowStatus prints information about the workflow execution in a more human readable format.
bigquery/bigquery_migration_quickstart/main.go:134
↓ 1 callersFunctionresetInstance
resetInstance resets a running Google Compute Engine instance (with unencrypted disks).
compute/reset_instance.go:28
↓ 1 callersFunctionresizeRegionalDisk
resizeRegionalDisk changes the size of a regional disk. After you resize the disk, you must also resize the file system so that the operating system c
compute/disks/resize_regional_disk.go:30
↓ 1 callersFunctionresolveService
(w io.Writer, projectID string)
servicedirectory/resolve_service.go:27
↓ 1 callersFunctionrestartConnector
(w io.Writer, projectID, region, connectClusterID, connectorID string, opts ...option.ClientOption)
managedkafka/connect/connectors/restart_connector.go:29
↓ 1 callersFunctionrestoreBackupWithCustomerManagedEncryptionKey
(ctx context.Context, w io.Writer, db, backupID, kmsKeyName string)
spanner/spanner_snippets/spanner/spanner_restore_backup_with_encryption_key.go:29
↓ 1 callersFunctionrestoreBackupWithCustomerManagedMultiRegionEncryptionKey
restoreBackupWithCustomerManagedMultiRegionEncryptionKey restores a database from a backup using a Customer Managed Multi-Region Encryption Key.
spanner/spanner_snippets/spanner/spanner_restore_backup_with_multi_region_encryption_key.go:29
↓ 1 callersFunctionrestoreKeyVersion
restoreKeyVersion attempts to recover a key that has been marked for destruction in the past 24h.
kms/restore_key_version.go:29
↓ 1 callersFunctionrestorePolicies
[END monitoring_alert_backup_policies] [START monitoring_alert_restore_policies] [START monitoring_alert_create_policy] [START monitoring_alert_create
monitoring/alert/alert.go:186
↓ 1 callersFunctionrestoreSoftDeletedObject
restoreSoftDeletedObject restores a soft-deleted object in a bucket.
storage/objects/restore_soft_deleted_object.go:27
↓ 1 callersFunctionresumeConnector
(w io.Writer, projectID, region, connectClusterID, connectorID string, opts ...option.ClientOption)
managedkafka/connect/connectors/resume_connector.go:29
↓ 1 callersFunctionresumeInstance
resumeInstance resumes a suspended Google Compute Engine instance (with unencrypted disks).
compute/instances/suspend-resume/resume.go:29
↓ 1 callersFunctionresumePublishWithOrderingKey
(w io.Writer, projectID, topicID string)
pubsub/topics/publish_resume_ordering.go:27
↓ 1 callersFunctionresumePublishWithOrderingKey
(w io.Writer, projectID, topicID string)
pubsub/v1samples/topics/publish_resume_ordering.go:27
↓ 1 callersFunctionrevokeAccessToDataset
revokeAccessToDataset creates a new ACL removing the dataset access to "example-analyst-group@google.com" entity For more information on the types of
bigquery/bigquery_access_quickstart/revoke_access_to_dataset.go:29
↓ 1 callersFunctionrevokeDatasetAccess
revokeDatasetAccess updates the access control on a dataset to remove all access entries that reference a specific entity.
bigquery/snippets/dataset/bigquery_revoke_dataset_access.go:27
↓ 1 callersFunctionriskCategorical
riskCategorical computes the categorical risk of the given data.
dlp/snippets/risk/categorical.go:30
↓ 1 callersFunctionriskKAnonymity
riskKAnonymity computes the risk of the given columns using K Anonymity.
dlp/snippets/risk/k_anonymity.go:31
↓ 1 callersFunctionriskKMap
riskKMap runs K Map on the given data.
dlp/snippets/risk/k_map.go:32
↓ 1 callersFunctionriskLDiversity
riskLDiversity computes the L Diversity of the given columns.
dlp/snippets/risk/l_diversity.go:31
↓ 1 callersFunctionriskNumerical
riskNumerical computes the numerical risk of the given column.
dlp/snippets/risk/numerical.go:30
↓ 1 callersMethodrnd
(min, max int64)
spanner/spanner_leaderboard/leaderboard.go:51
↓ 1 callersFunctionrollbackSchema
rollbackSchema creates a new schema revision that is a copy of the provided revisionID.
pubsub/v1samples/schemas/rollback_schema.go:27
↓ 1 callersFunctionrollbackSchema
rollbackSchema creates a new schema revision that is a copy of the provided revisionID.
pubsub/schemas/rollback_schema.go:28
↓ 1 callersFunctionrotateEncryptionKey
rotateEncryptionKey encrypts an object with the newKey.
storage/objects/rotate_encryption_key.go:28
↓ 1 callersFunctionroundFunction
(w io.Writer, client *firestore.Client)
firestore/pipeline_snippets_arithmetic.go:161
↓ 1 callersFunctionrun
()
profiler/hotmid/main.go:100
↓ 1 callersFunctionrun
(ctx context.Context, w io.Writer, cmd string, db string, arg string)
spanner/spanner_snippets/snippet.go:818
↓ 1 callersMethodrunCmd
runCmd returns the gcloud command needed to start this RunJob
internal/cloudrunci/cloudrunjobs.go:254
↓ 1 callersFunctionrunCreateBackupSample
(ctx context.Context, t *testing.T, f createBackupSampleFunc, dbName string, backupID string, versionTime time
spanner/spanner_snippets/spanner/integration_test.go:1438
↓ 1 callersFunctionrunInstancePartitionSample
(t *testing.T, f instancePartitionSampleFunc, projectID, instanceID, instancePartitionID, errMsg string)
spanner/spanner_snippets/spanner/integration_test.go:1485
← previousnext →2,301–2,400 of 5,023, ranked by callers