MCPcopy Create free account

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

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

↓ 1 callersFunctiongenerateWithTextAsyncStream
generateWithTextAsyncStream shows how to stream a text generation response.
genai/text_generation/textgen_with_async_txt.go:28
↓ 1 callersFunctiongenerateWithTextImage
generateWithTextImage shows how to generate text using both text and image input
genai/text_generation/textgen_with_txt_img.go:28
↓ 1 callersFunctiongenerateWithTextStream
generateWithTextStream shows how to generate text stream using a text prompt.
genai/text_generation/textgen_with_txt_stream.go:28
↓ 1 callersFunctiongenerateWithVideo
generateWithVideo shows how to generate text using a video input.
genai/text_generation/textgen_with_video.go:28
↓ 1 callersFunctiongenerateWithYTVideo
generateWithYTVideo shows how to generate text using a YouTube video as input.
genai/text_generation/textgen_with_youtube_video.go:28
↓ 1 callersFunctionget
[END monitoring_uptime_check_list_ips] [START monitoring_uptime_check_get] get is an example of getting an uptime check. resourceName should be of the
monitoring/uptime/uptime.go:178
↓ 1 callersFunctiongetAccessToken
()
run/service-health/main.go:571
↓ 1 callersFunctiongetAccessTokenFromImpersonatedCredentials
getAccessTokenFromImpersonatedCredentials uses a service account (SA1) to impersonate another service account (SA2) and obtain OAuth2 token for the im
auth/access_token_from_impersonated_credentials.go:32
↓ 1 callersFunctiongetAgentName
getAgentName creates a response for the get-agent-name intent.
dialogflow/basic_webhook/webhook.go:77
↓ 1 callersFunctiongetAsset
getAsset gets a previously-created asset.
media/livestream/get_asset.go:28
↓ 1 callersFunctiongetAutoclass
getAutoclass gets the Autoclass configuration for a bucket. See https://cloud.google.com/storage/docs/using-autoclass for more information.
storage/buckets/get_autoclass.go:29
↓ 1 callersFunctiongetBigQueryExport
Retrieve an existing BigQuery export.
securitycenter/bigqueryv2/get_big_query_export.go:29
↓ 1 callersFunctiongetBucketEncryptionEnforcement
getBucketEncryptionEnforcement gets a bucket's encryption enforcement configuration.
storage/buckets/get_bucket_encryption_enforcement_config.go:28
↓ 1 callersFunctiongetBucketMetadata
getBucketMetadata gets the bucket metadata.
storage/buckets/get_bucket_metadata.go:32
↓ 1 callersFunctiongetBucketPolicy
getBucketPolicy gets the bucket IAM policy.
storage/buckets/get_bucket_policy.go:29
↓ 1 callersFunctiongetCDNKey
getCDNKey gets a CDN key by ID.
media/videostitcher/get_cdn_key.go:29
↓ 1 callersFunctiongetChannelEvent
getChannelEvent gets a previously-created channel event.
media/livestream/get_channel_event.go:28
↓ 1 callersFunctiongetCluster
(w io.Writer, projectID, region, clusterID string, opts ...option.ClientOption)
managedkafka/clusters/get_cluster.go:29
↓ 1 callersFunctiongetCollections
(ctx context.Context, client *firestore.Client)
firestore/retrieve_data_get_sub_collections.go:27
↓ 1 callersFunctiongetCompany
[END job_create_company] [START job_get_company] getCompany gets an existing company by name.
jobs/v3/howto/basic_company_sample.go:59
↓ 1 callersFunctiongetConnectCluster
(w io.Writer, projectID, region, clusterID string, opts ...option.ClientOption)
managedkafka/connect/clusters/get_connect_cluster.go:29
↓ 1 callersFunctiongetConnector
(w io.Writer, projectID, region, connectClusterID, connectorID string, opts ...option.ClientOption)
managedkafka/connect/connectors/get_connector.go:29
↓ 1 callersFunctiongetConsumerGroup
(w io.Writer, projectID, region, clusterID, consumerGroupID string, opts ...option.ClientOption)
managedkafka/consumergroups/get_consumergroup.go:29
↓ 1 callersFunctiongetContentCache
getContentCache shows how to retrieve the metadata of a cached content contentName is the ID of the cached content to retrieve
genai/content_cache/contentcache_get.go:31
↓ 1 callersFunctiongetContextCache
getContextCache shows how to retrieve the metadata of a cached content contentName is the ID of the cached content to retrieve
vertexai/context-caching/contextcaching_get.go:29
↓ 1 callersMethodgetCount
[END firestore_solution_sharded_counter_increment] [START firestore_solution_sharded_counter_get] getCount returns a total count across all shards.
firestore/solution_counters.go:79
↓ 1 callersFunctiongetDBConnection
()
getting-started/devflowapp/services/config.go:31
↓ 1 callersFunctiongetDICOMStore
getDICOMStore gets a DICOM store.
healthcare/dicom_store_get.go:27
↓ 1 callersFunctiongetDatabaseDdl
getDatabaseDdl gets the DDL for the database
spanner/spanner_snippets/spanner/spanner_get_database_ddl.go:29
↓ 1 callersFunctiongetDataset
getDataset demonstrates fetching dataset information.
bigquery/snippets_preview/dataset/bigquery_get_dataset.go:29
↓ 1 callersFunctiongetDefaultRetryOptions
()
internal/cloudrunci/cloudrunci.go:142
↓ 1 callersFunctiongetDenyPolicy
getDenyPolicy retrieves the deny policy given the project ID and policy ID.
iam/deny/get_deny_policy.go:28
↓ 1 callersFunctiongetDisk
(ctx context.Context, projectID, diskName, zone string)
compute/disk-images/disk_image_test.go:75
↓ 1 callersFunctiongetDiskImage
Geg a disk image from the given project
compute/disk-images/get_disk_image.go:28
↓ 1 callersFunctiongetDiskImageFromFamily
Geg a disk image from family for the given project
compute/disk-images/get_disk_image_from_family.go:28
↓ 1 callersFunctiongetEffectiveEventThreatDetectionCustomModule
getEffectiveEventThreatDetectionCustomModule retrieves a specific custom module by its name.
securitycenter/management_api/event_threat_detection/get_effective_event_threat_detection_custom_module.go:29
↓ 1 callersFunctiongetEffectiveSecurityHealthAnalyticsCustomModule
getEffectiveSecurityHealthAnalyticsCustomModule retrieves a specific custom module by its name.
securitycenter/management_api/get_effective_security_health_analytics_custom_module.go:29
↓ 1 callersFunctiongetEventThreatDetectionCustomModule
getEventThreatDetectionCustomModule retrieves a specific custom module by its name.
securitycenter/management_api/event_threat_detection/get_event_threat_detection_custom_module.go:29
↓ 1 callersFunctiongetFHIRMetadata
getFHIRMetadata gets FHIR store metadata.
healthcare/fhir_metadata_get.go:27
↓ 1 callersFunctiongetFHIRResourceHistory
getFHIRResourceHistory gets an FHIR resource history.
healthcare/fhir_resource_history_get.go:27
↓ 1 callersFunctiongetFolder
getFolder gets metadata for the folder with the given name.
storage/control/get_folder.go:29
↓ 1 callersFunctiongetFolderFloorSettings
getFolderFloorSettings gets details of a single floor setting of a folder. This method retrieves the details of a single floor setting of a folder.
modelarmor/get_folder_floor_settings.go:36
↓ 1 callersFunctiongetGlobalExternal
(w io.Writer, projectID, addressName string)
compute/address/get_external.go:56
↓ 1 callersFunctiongetGlossary
getGlossary gets the specified glossary.
translate/v3/get_glossary.go:29
↓ 1 callersFunctiongetHL7V2Message
getHL7V2Message gets an HL7V2 message.
healthcare/hl7v2_message_get.go:29
↓ 1 callersFunctiongetHMACKey
getHMACKey retrieves the HMACKeyMetadata with the given access id.
storage/service_account/hmac/get.go:28
↓ 1 callersFunctiongetIAMPolicy
(w io.Writer, projectID, topicID string)
pubsub/topics/policy.go:27
↓ 1 callersFunctiongetIAMPolicy
(w io.Writer, projectID, subscription string)
pubsub/subscriptions/policy.go:27
↓ 1 callersFunctiongetIAMPolicy
getIAMPolicy prints information about the IAM policy associated with a given taxonomy or policy tag resource.
datacatalog/snippets/policytagmanager/get_iam_policy.go:30
↓ 1 callersFunctiongetIdTokenFromMetadataServer
getIdTokenFromMetadataServer uses the Google Cloud metadata server environment to create an identity token and add it to the HTTP request as part of a
auth/id_token_from_metadata_server.go:30
↓ 1 callersFunctiongetIdTokenFromServiceAccount
getIdTokenFromServiceAccount obtains the id token by providing the target audience using service account credentials.
auth/id_token_from_service_account.go:30
↓ 1 callersFunctiongetInstance
getInstance prints a name of a VM instance in the given zone in the specified project.
compute/get_instance.go:28
↓ 1 callersFunctiongetInstance
getInstance fetches the instance details by name
compute/instances/spot/spot_test.go:51
↓ 1 callersFunctiongetInstanceConfig
getInstanceConfig gets available leader options
spanner/spanner_snippets/spanner/spanner_get_instance_config.go:28
↓ 1 callersFunctiongetInstanceHostname
getInstanceHostname prints the hostname of the Google Cloud VM instance.
compute/custom-hostname-instance/get_instance_hostname.go:28
↓ 1 callersFunctiongetInstanceIPAddresses
getInstanceIPAddresses retrieves the specified type of IP address (IPv4 or IPv6, internal or external) of a specified Compute Engine instance.
compute/address/get_vm_address.go:27
↓ 1 callersFunctiongetInstanceTemplate
getInstanceTemplate retrieves an instance template, which you can use to create virtual machine (VM) instances and managed instance groups (MIGs).
compute/instance-templates/create-instance-templates/get_instance_template.go:28
↓ 1 callersFunctiongetJob
[END job_create_job] [START job_get_job] getJob gets a job by name.
jobs/v3/howto/basic_job_sample.go:59
↓ 1 callersFunctiongetJob
Retrieves the information about the specified job, most importantly its status
batch/get_job.go:28
↓ 1 callersFunctiongetJobInfo
getJobInfo demonstrates retrieval of a job, which can be used to monitor completion or print metadata about the job.
bigquery/snippets/job/bigquery_get_job.go:28
↓ 1 callersFunctiongetKeyLabels
getKeyLabels fetches the labels on a KMS key.
kms/get_key_labels.go:28
↓ 1 callersFunctiongetKeyVersionAttestation
getKeyVersionAttestation gets the attestation on a key version, if one exists.
kms/get_key_version_attestation.go:29
↓ 1 callersFunctiongetLiveAdTagDetail
getLiveAdTagDetail gets the specified ad tag detail for a live session.
media/videostitcher/get_live_ad_tag_detail.go:29
↓ 1 callersFunctiongetLiveConfig
getLiveConfig gets a previously-created live config.
media/videostitcher/get_live_config.go:29
↓ 1 callersFunctiongetLiveSession
getLiveSession gets a livestream session by ID.
media/videostitcher/get_live_session.go:28
↓ 1 callersFunctiongetManagedFolder
getManagedFolder gets metadata for the managed folder with the given name.
storage/control/get_managed_folder.go:29
↓ 1 callersFunctiongetMetricDescriptor
getMetricDescriptor gets the descriptor for the given metricType and prints information about it. metricType is the type of the metric, for example co
monitoring/snippets/metric_get.go:32
↓ 1 callersFunctiongetModel
getModel demonstrates fetching ML model information.
bigquery/snippets_preview/model/bigquery_get_model.go:29
↓ 1 callersFunctiongetModelArmorTemplate
getModelArmorTemplate method retrieves a Model Armor template. w io.Writer: The writer to use for logging. projectID string: The ID of the project. l
modelarmor/get_template.go:37
↓ 1 callersFunctiongetMonitoredResource
getMonitoredResource gets the descriptor for the given resourceType and prints information about it. resource should be of the form "projects/[PROJECT
monitoring/snippets/monitored_resource_get.go:32
↓ 1 callersFunctiongetNamespace
getNamespace retrieves the Connect Gateway URL associated with the input membership. It then creates a kubernetes client using the retrieved Gateway U
connectgateway/get_namespace.go:39
↓ 1 callersFunctiongetNotificationConfig
(w io.Writer, orgID string, notificationConfigID string)
securitycenter/notifications/get_notification_config.go:27
↓ 1 callersFunctiongetNotificationConfig
(w io.Writer, orgID string, notificationConfigID string)
securitycenter/notificationsv2/get_notification_config.go:27
↓ 1 callersFunctiongetObjectContents
getObjectContents will read the contents of an object in Google Storage named objectName, contained in the bucket "bucketName".
auth/downscoping/token_consumer.go:71
↓ 1 callersFunctiongetOrgSettings
getOrgSettings gets and prints the current organization asset discovery settings to w. orgID is the numeric Organization ID.
securitycenter/settings/get_org_settings.go:29
↓ 1 callersFunctiongetOrganizationFloorSettings
getOrganizationFloorSettings gets details of a single floor setting of an organization. This method retrieves the details of a single floor setting o
modelarmor/get_organization_floor_settings.go:36
↓ 1 callersFunctiongetOtlpMeterProvider
(ctx context.Context, res *resource.Resource)
spanner/opentelemetry/spanner_opentelemetry_usage.go:77
↓ 1 callersFunctiongetOtlpTracerProvider
(ctx context.Context, res *resource.Resource)
spanner/opentelemetry/spanner_opentelemetry_usage.go:89
↓ 1 callersFunctiongetParam
getParam get parameter using the Parameter Manager SDK for GCP. w: The io.Writer object used to write the output. projectID: The ID of the project wh
parametermanager/get_param.go:34
↓ 1 callersFunctiongetParamVersion
getParamVersion get parameter version using the Parameter Manager SDK for GCP. w: The io.Writer object used to write the output. projectID: The ID of
parametermanager/get_param_version.go:35
↓ 1 callersFunctiongetPolicyTag
getPolicyTag prints information about a given policy tag.
datacatalog/snippets/policytagmanager/get_policytag.go:28
↓ 1 callersFunctiongetPool
getPool gets a pool.
media/livestream/get_pool.go:28
↓ 1 callersFunctiongetProjectFloorSettings
getProjectFloorSettings gets details of a single floor setting of a project. This method retrieves the details of a single floor setting of a project
modelarmor/get_project_floor_settings.go:36
↓ 1 callersFunctiongetPublicAccessPrevention
getPublicAccessPrevention gets the current public access prevention setting for the bucket, either "enforced" or "inherited".
storage/buckets/get_public_access_prevention.go:29
↓ 1 callersFunctiongetPublicKey
getPublicKey retrieves the public key from an asymmetric key pair on Cloud KMS.
kms/get_public_key.go:32
↓ 1 callersFunctiongetPublicKeyJwk
getPublicKeyJwk retrieves the public key from an asymmetric key pair on Cloud KMS.
kms/get_public_key_jwk.go:33
↓ 1 callersFunctiongetROUGEScore
getROUGEScore evaluates a model response against a reference (ground truth) using the ROUGE metric
vertexai/evaluation/get_rouge_score.go:30
↓ 1 callersFunctiongetRPO
getRPO gets the current RPO (Recovery Point Objective) setting for the bucket, either "DEFAULT" or "ASYNC_TURBO".
storage/buckets/get_rpo.go:29
↓ 1 callersFunctiongetRandomAsset
(client *securitycenter.Client, orgID string)
securitycenter/securitymarksv2/assets_test.go:37
↓ 1 callersFunctiongetRandomAsset
(client *securitycenter.Client, orgID string)
securitycenter/assets/assets_test.go:37
↓ 1 callersFunctiongetRegionalExternal
getExternalAddress retrieves the external IP address of the given address.
compute/address/get_external.go:28
↓ 1 callersFunctiongetRegionalParam
getRegionalParam gets a parameter regional using the Parameter Manager SDK for GCP. w: The io.Writer object used to write the output. projectID: The
parametermanager/regional_samples/get_regional_param.go:36
↓ 1 callersFunctiongetRegionalParamVersion
getRegionalParamVersion gets a parameter version regional using the Parameter Manager SDK for GCP. w: The io.Writer object used to write the output.
parametermanager/regional_samples/get_regional_param_version.go:37
↓ 1 callersFunctiongetRegionalTemplate
getRegionalTemplate retrieves a regional instance template
compute/instance-templates/create-instance-templates/get_regional_template.go:27
↓ 1 callersFunctiongetRequesterPaysStatus
getRequesterPaysStatus gets requester pays status.
storage/buckets/get_requester_pays_status.go:28
↓ 1 callersFunctiongetReservation
(w io.Writer, projectID, region, reservationID string)
pubsublite/admin/get_reservation.go:26
↓ 1 callersFunctiongetRole
getRole gets role metadata.
iam/snippets/roles_get.go:27
↓ 1 callersFunctiongetRoutine
getRoutine demonstrates getting a routine's metadata via the API.
bigquery/snippets/routine/bigquery_get_routine.go:27
↓ 1 callersFunctiongetRoutine
getRoutine demonstrates fetching routine information.
bigquery/snippets_preview/routine/bigquery_get_routine.go:29
↓ 1 callersFunctiongetSamplesInstanceConfig
getSamplesInstanceConfig specifies the instance config used to create an instance for testing. It can be changed by setting the environment variable G
spanner/spanner_snippets/spanner/integration_test.go:1737
← previousnext →1,701–1,800 of 5,023, ranked by callers