MCPcopy Create free account

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

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

↓ 1 callersFunctioncreateFinding
createFinding demonstrates how to create a new security finding in CSCC. sourceName is the full resource name of the source the finding should be asso
securitycenter/findingsv2/create_finding.go:32
↓ 1 callersFunctioncreateFindingWithProperties
createFindingWithProperties demonstrates how to create a new security finding in CSCC that includes additional metadata via sourceProperties. sourceNa
securitycenter/findings/create_finding_with_source_properties.go:34
↓ 1 callersFunctioncreateFirewallRule
createFirewallRule creates a firewall rule allowing for incoming HTTP and HTTPS access from the entire Internet.
compute/firewall/create_firewall_rule.go:29
↓ 1 callersFunctioncreateFirewallRuleForWindowsActivationHost
createFirewallRuleForWindowsActivationHost creates an egress firewall rule with the highest priority for host kms.windows.googlecloud.com (35.190.247.
compute/instances/create-manage-windows-instances/create_firewall_rule_for_windows_activation_host.go:31
↓ 1 callersFunctioncreateFiveInstances
(w io.Writer, projectID, zone, templateName, namePattern string)
compute/instances/create-start-instance/bulk_insert.go:31
↓ 1 callersFunctioncreateFolder
createFolder creates a folder in the bucket with the given name.
storage/control/create_folder.go:29
↓ 1 callersFunctioncreateHL7V2Message
createHL7V2Message creates an HL7V2 message.
healthcare/hl7v2_message_create.go:29
↓ 1 callersFunctioncreateHL7V2Store
createHL7V2Store creates an HL7V2 store.
healthcare/hl7v2_store_create.go:27
↓ 1 callersFunctioncreateHMACKey
createHMACKey creates a new HMAC key using the given project and service account.
storage/service_account/hmac/create.go:28
↓ 1 callersFunctioncreateHTTPTaskWithToken
createHTTPTaskWithToken constructs a task with a authorization token and HTTP target then adds it to a Queue.
tasks/token/create_http_task_with_token.go:29
↓ 1 callersFunctioncreateHyperdisk
[START compute_hyperdisk_create] createHyperdisk creates a new Hyperdisk in the specified project and zone.
compute/disks/create_hyperdisk.go:29
↓ 1 callersFunctioncreateHyperdiskStoragePool
[START compute_hyperdisk_pool_create] createHyperdiskStoragePool creates a new Hyperdisk storage pool in the specified project and zone.
compute/disks/create_hyperdisk_pool.go:30
↓ 1 callersFunctioncreateImageFromDisk
Creates a disk image from an existing disk
compute/disk-images/create_disk_image.go:29
↓ 1 callersFunctioncreateImageFromSnapshot
Creates a disk image from an existing image
compute/disk-images/create_disk_image_from_snapshot.go:28
↓ 1 callersFunctioncreateImportJob
createImportJob creates a new job for importing keys into KMS.
kms/create_import_job.go:28
↓ 1 callersFunctioncreateInQuery
(ctx context.Context, client *firestore.Client)
firestore/query.go:261
↓ 1 callersFunctioncreateInQueryWithArray
(ctx context.Context, client *firestore.Client)
firestore/query.go:271
↓ 1 callersFunctioncreateIndexExemption
(projectID string)
firestore/collection_group_test.go:77
↓ 1 callersFunctioncreateInspectTemplate
createInspectTemplate creates a template with the given configuration.
dlp/snippets/template/create.go:28
↓ 1 callersFunctioncreateInstance
( ctx context.Context, projectID, zone, instanceName, sourceImage, diskName string, )
compute/disks/disks_test.go:34
↓ 1 callersFunctioncreateInstance
(projectID, zone, instanceName string)
compute/reservations/reservations_test.go:104
↓ 1 callersFunctioncreateInstance
createInstance sends an instance creation request to the Compute Engine API and waits for it to complete.
compute/instances/preventing-accidental-vm-deletion/create_instance.go:30
↓ 1 callersFunctioncreateInstanceConfig
createInstanceConfig creates a custom spanner instance config
spanner/spanner_snippets/spanner/spanner_create_instance_config.go:30
↓ 1 callersFunctioncreateInstanceFromCustomImage
createInstanceFromCustomImage creates a new VM instance with custom image used as its boot disk.
compute/instances/create-start-instance/create_instance_from_custom_image.go:29
↓ 1 callersFunctioncreateInstanceFromPublicImage
createInstanceFromPublicImage creates a new VM instance with Debian 10 operating system.
compute/instances/create-start-instance/create_instance_from_public_image.go:29
↓ 1 callersFunctioncreateInstanceFromSnapshot
createInstanceFromSnapshot creates a new VM instance with boot disk created from a snapshot.
compute/instances/create-start-instance/create_instance_from_snapshot.go:29
↓ 1 callersFunctioncreateInstanceFromTemplate
createInstanceFromTemplate creates a Compute Engine VM instance from an instance template.
compute/create_instance_from_template.go:29
↓ 1 callersFunctioncreateInstanceFromTemplateWithOverrides
createInstanceFromTemplate creates a Compute Engine VM instance from an instance template, but overrides the disk and machine type options in the temp
compute/create_instance_from_template_with_overrides.go:30
↓ 1 callersFunctioncreateInstanceNotConsumeReservation
createInstanceNotConsumeReservation creates VM, without consuming reservation
compute/reservations/create_instance_not_consume_reservation.go:29
↓ 1 callersFunctioncreateInstanceWithCustomHostname
createInstanceWithCustomHostname creates an instance with custom hostname.
compute/custom-hostname-instance/create_instance_with_custom_hostname.go:29
↓ 1 callersFunctioncreateInstanceWithCustomMachineTypeWithHelper
createInstanceWithCustomMachineTypeWithHelper creates a new VM instance with a custom machine type.
compute/instances/custom-machine-type/create_with_helper.go:187
↓ 1 callersFunctioncreateInstanceWithCustomMachineTypeWithoutHelper
createInstanceWithCustomMachineTypeWithoutHelper create new VM instances without using a CustomMachineType struct.
compute/instances/custom-machine-type/create_without_helper.go:30
↓ 1 callersFunctioncreateInstanceWithCustomSharedCore
createInstanceWithCustomSharedCore creates a new VM instance with a custom type using shared CPUs.
compute/instances/custom-machine-type/create_shared_with_helper.go:188
↓ 1 callersFunctioncreateInstanceWithExtraMemWithoutHelper
createInstanceWithExtraMemWithoutHelper сreates new VM instances with extra memory without using a CustomMachineType struct.
compute/instances/custom-machine-type/extra_mem_without_helper.go:30
↓ 1 callersFunctioncreateInstanceWithSnapshottedDataDisk
createInstanceWithSnapshottedDataDisk creates a new VM instance with Debian 10 operating system and data disk created from snapshot.
compute/instances/create-start-instance/create_instance_with_snapshotted_data_disk.go:29
↓ 1 callersFunctioncreateInstanceWithSubnet
createInstanceWithSubnet creates a new VM instance with Debian 10 operating system in specified network and subnetwork.
compute/instances/create-start-instance/create_instance_with_subnet.go:29
↓ 1 callersFunctioncreateJob
createJob demonstrates running an arbitrary SQL statement as a query job.
bigquery/snippets/job/bigquery_create_job.go:28
↓ 1 callersFunctioncreateJob
[START job_create_job] createJob create a job as given.
jobs/v3/howto/basic_job_sample.go:30
↓ 1 callersFunctioncreateJob
createJob creates an inspection job
dlp/snippets/jobs/create.go:27
↓ 1 callersFunctioncreateJobFromAdHoc
createJobFromAdHoc creates a job based on a given configuration. See https://cloud.google.com/transcoder/docs/how-to/jobs#create_jobs_ad_hoc for more
media/transcoder/create_job_from_ad_hoc.go:30
↓ 1 callersFunctioncreateJobFromPreset
createJobFromPreset creates a job based on a given preset template. See https://cloud.google.com/transcoder/docs/how-to/jobs#create_jobs_presets for m
media/transcoder/create_job_from_preset.go:30
↓ 1 callersFunctioncreateJobFromPresetBatchMode
createJobFromPresetBatchMode creates a batch mode job based on a given preset template. See https://cloud.google.com/transcoder/docs/how-to/create-bat
media/transcoder/create_job_from_preset_batch_mode.go:31
↓ 1 callersFunctioncreateJobFromTemplate
createJobFromTemplate creates a job from a template. See https://cloud.google.com/transcoder/docs/how-to/jobs#create_jobs_templates for more informati
media/transcoder/create_job_from_template.go:30
↓ 1 callersFunctioncreateJobTriggerForInspectDataToHybridJobTrigger
helpers for inspect hybrid job
dlp/snippets/inspect/inspect_test.go:568
↓ 1 callersFunctioncreateJobWithAnimatedOverlay
createJobWithAnimatedOverlay creates a job based on a given configuration that includes an animated overlay. See https://cloud.google.com/transcoder/d
media/transcoder/create_job_with_animated_overlay.go:33
↓ 1 callersFunctioncreateJobWithConcatenatedInputs
createJobWithConcatenatedInputs creates a job that concatenates two input videos. See https://cloud.google.com/transcoder/docs/how-to/concatenate-vide
media/transcoder/create_job_with_concatenated_inputs.go:32
↓ 1 callersFunctioncreateJobWithCustomAttributes
createJobWithCustomAttributes creates a job with custom attributes.
jobs/v4/howto/custom_attribute_sample.go:30
↓ 1 callersFunctioncreateJobWithCustomEvents
Creates and runs a job with custom events
batch/create_with_custom_events.go:29
↓ 1 callersFunctioncreateJobWithCustomJobLabels
createJobWithCustomJobLabels creates and runs a job with custom labels for job.
batch/create_with_job_labels.go:29
↓ 1 callersFunctioncreateJobWithCustomNetwork
createJobWithCustomNetwork creates and runs a job with custom network
batch/create_with_custom_network.go:29
↓ 1 callersFunctioncreateJobWithCustomPolicyLabels
createJobWithCustomPolicyLabels creates and runs a job with custom labels for policy.
batch/create_with_allocation_policy_labels.go:29
↓ 1 callersFunctioncreateJobWithCustomRunnablesLabels
createJobWithCustomRunnablesLabels creates and runs a job with custom labels for runnable.
batch/create_with_labels_runnable.go:29
↓ 1 callersFunctioncreateJobWithEmbeddedCaptions
createJobWithEmbeddedCaptions creates a job that embeds closed captions in the output video. See https://cloud.google.com/transcoder/docs/how-to/capti
media/transcoder/create_job_with_embedded_captions.go:30
↓ 1 callersFunctioncreateJobWithGPU
Creates and runs a job with custom events
batch/create_with_gpu.go:29
↓ 1 callersFunctioncreateJobWithNFS
createJobWithNFS creates and runs a job with status events that mounts a Network File System (NFS).
batch/create_with_nfs.go:29
↓ 1 callersFunctioncreateJobWithNotifications
Creates and runs a job with configured notifications
batch/create_with_notification.go:29
↓ 1 callersFunctioncreateJobWithPD
Creates and runs a job with persistent disk
batch/create_with_persistent_disk.go:29
↓ 1 callersFunctioncreateJobWithPeriodicImagesSpritesheet
createJobWithPeriodicImagesSpritesheet creates a job from an ad-hoc configuration and generates two spritesheets from the input video. Each spriteshee
media/transcoder/create_job_with_periodic_images_spritesheet.go:32
↓ 1 callersFunctioncreateJobWithSA
Creates and runs a job with service account
batch/create_with_service_account.go:29
↓ 1 callersFunctioncreateJobWithSSD
Creates and runs a job with local SSD Note: local SSD does not guarantee Local SSD data persistence. More details here: https://cloud.google.com/compu
batch/create_with_local_ssd.go:31
↓ 1 callersFunctioncreateJobWithSecretManager
Creates and runs a job with passing secrets from secret manager. Note: Job's service account should have the permissions to access secrets. - Secret M
batch/create_with_secret_manager.go:31
↓ 1 callersFunctioncreateJobWithSetNumberImagesSpritesheet
createJobWithSetNumberImagesSpritesheet creates a job from an ad-hoc configuration and generates two spritesheets from the input video. Each spriteshe
media/transcoder/create_job_with_set_number_images_spritesheet.go:29
↓ 1 callersFunctioncreateJobWithStandaloneCaptions
createJobWithStandaloneCaptions creates a job that can use subtitles from a standalone file. See https://cloud.google.com/transcoder/docs/how-to/capti
media/transcoder/create_job_with_standalone_captions.go:32
↓ 1 callersFunctioncreateJobWithStaticOverlay
createJobWithStaticOverlay creates a job based on a given configuration that includes a static overlay. See https://cloud.google.com/transcoder/docs/h
media/transcoder/create_job_with_static_overlay.go:33
↓ 1 callersFunctioncreateKey
createKey creates a service account key.
iam/snippets/service_account_keys_create.go:28
↓ 1 callersFunctioncreateKeyAsymmetricDecrypt
createKeyAsymmetricDecrypt creates a new asymmetric RSA encrypt/decrypt key pair where the private key is stored in Cloud KMS.
kms/create_key_asymmetric_decrypt.go:31
↓ 1 callersFunctioncreateKeyAsymmetricSign
createKeyAsymmetricSign creates a new asymmetric RSA sign/verify key pair where the private key is stored in Cloud KMS.
kms/create_key_asymmetric_sign.go:31
↓ 1 callersFunctioncreateKeyForImport
createKeyForImport creates a new asymmetric signing key in Cloud HSM.
kms/create_key_for_import.go:28
↓ 1 callersFunctioncreateKeyHSM
createKeyHSM creates a new symmetric encrypt/decrypt key on Cloud KMS.
kms/create_key_hsm.go:30
↓ 1 callersFunctioncreateKeyLabels
createKeyLabels creates a new KMS key with labels.
kms/create_key_labels.go:28
↓ 1 callersFunctioncreateKeyMac
createKeyMac creates a new key for use with MacSign.
kms/create_key_mac.go:30
↓ 1 callersFunctioncreateKeyRing
createKeyRing creates a new ring to store keys on KMS.
kms/create_key_ring.go:28
↓ 1 callersFunctioncreateKeyRotationSchedule
createKeyRotationSchedule creates a key with a rotation schedule.
kms/create_key_rotation_schedule.go:31
↓ 1 callersFunctioncreateKeySymmetricEncryptDecrypt
createKeySymmetricEncryptDecrypt creates a new symmetric encrypt/decrypt key on Cloud KMS.
kms/create_key_symmetric_encrypt_decrypt.go:29
↓ 1 callersFunctioncreateKeyVersion
createKeyVersion creates a new key version for the given key.
kms/create_key_version.go:28
↓ 1 callersFunctioncreateListing
createListing creates an example listing within the specified exchange using the provided source dataset.
bigquery/bigquery_analyticshub_quickstart/main.go:137
↓ 1 callersFunctioncreateLiveConfig
createLiveConfig creates a live config. Live configs are used to configure live sessions.
media/videostitcher/create_live_config.go:28
↓ 1 callersFunctioncreateLiveSession
createLiveSession creates a livestream session in which to insert ads. Live sessions are ephemeral resources that expire after a few minutes.
media/videostitcher/create_live_session.go:29
↓ 1 callersFunctioncreateManagedFolder
createManagedFolder creates a managed folder in the bucket with the given name.
storage/control/create_managed_folder.go:29
↓ 1 callersFunctioncreateMaterializedView
createMaterializedView demonstrates generated a materialized view based on an existing base table.
bigquery/snippets/table/bigquery_create_materialized_view.go:27
↓ 1 callersFunctioncreateMirrorMaker2SourceConnector
createMirrorMaker2SourceConnector creates a MirrorMaker 2.0 Source connector.
managedkafka/connect/connectors/create_mirrormaker2_source_connector.go:29
↓ 1 callersFunctioncreateModel
(ctx context.Context, client *apiv2_client.Client, projectID, datasetID, modelID string)
bigquery/snippets_preview/model/integration_test.go:100
↓ 1 callersFunctioncreateModelArmorTemplateWithAdvancedSDP
createModelArmorTemplateWithAdvancedSDP method creates a new Model Armor template with advanced SDP settings, including inspect and deidentify templat
modelarmor/create_template_with_advanced_sdp.go:41
↓ 1 callersFunctioncreateModelArmorTemplateWithLabels
createModelArmorTemplateWithLabels method creates a new Model Armor template with custom labels. w io.Writer: The writer to use for logging. projectI
modelarmor/create_template_with_labels.go:39
↓ 1 callersFunctioncreateModelArmorTemplateWithMetadata
createModelArmorTemplateWithMetadata method creates a new Model Armor template with template metadata. w io.Writer: The writer to use for logging. pr
modelarmor/create_template_with_metadata.go:39
↓ 1 callersFunctioncreateNamespace
(w io.Writer, projectID string)
servicedirectory/create_namespace.go:27
↓ 1 callersFunctioncreateNote
createNote creates and returns a new vulnerability Note.
container_registry/container_analysis/create_note.go:28
↓ 1 callersFunctioncreateNotificationConfig
(w io.Writer, orgID string, pubsubTopic string, notificationConfigID string)
securitycenter/notifications/create_notification_config.go:27
↓ 1 callersFunctioncreateOccurrenceSubscription
createOccurrenceSubscription creates a new Pub/Sub subscription object listening to the Occurrence topic.
container_registry/container_analysis/subscriptions.go:63
↓ 1 callersFunctioncreateOrGetDataExchange
createOrGetDataExchange creates an example data exchange, or returns information about the exchange already bearing the example identifier.
bigquery/bigquery_analyticshub_quickstart/main.go:104
↓ 1 callersFunctioncreateOrGetStorageBucket
(projectID, bucketID string)
pubsub/v1samples/subscriptions/subscription_test.go:1155
↓ 1 callersFunctioncreateOrGetStorageBucket
(projectID, bucketID string)
pubsub/subscriptions/subscription_test.go:717
↓ 1 callersFunctioncreateParam
createParam creates a new parameter with the format type "unformatted" in Parameter Manager. w: The io.Writer object used to write the output. projec
parametermanager/create_param.go:34
↓ 1 callersFunctioncreateParamVersion
createParamVersion creates a new version of a parameter with an unformatted payload in Parameter Manager. w: The io.Writer object used to write the o
parametermanager/create_param_version.go:36
↓ 1 callersFunctioncreateParamVersionWithSecret
createParamVersionWithSecret creates a new version of a parameter with a JSON payload that has a secret reference in it using the Parameter Manager SD
parametermanager/create_param_version_with_secret.go:36
↓ 1 callersFunctioncreateParamWithKmsKey
createParamWithKmsKey creates a parameter with kms_key using the Parameter Manager SDK for GCP. w: The io.Writer object used to write the output. pro
parametermanager/create_param_with_kms_key.go:37
↓ 1 callersFunctioncreatePreemtibleInstance
createPreemtibleInstance creates a new preemptible VM instance with Debian 10 operating system.
compute/instances/preemptible/create_preemtible.go:30
↓ 1 callersFunctioncreatePubSubSinkConnector
createPubSubSinkConnector creates a Pub/Sub Sink connector.
managedkafka/connect/connectors/create_pubsub_sink_connector.go:29
↓ 1 callersFunctioncreatePubSubSourceConnector
createPubSubSourceConnector creates a Pub/Sub Source connector.
managedkafka/connect/connectors/create_pubsub_source_connector.go:29
↓ 1 callersFunctioncreatePubsubExportSubscription
(w io.Writer, projectID, region, location, topicID, subID, pubsubTopicID string)
pubsublite/admin/create_pubsub_export_subscription.go:26
← previousnext →1,101–1,200 of 5,023, ranked by callers