From 9e80ea0d053b06876418194f65a478045dc4fe6c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 7 Jun 2021 07:28:02 -0700 Subject: [PATCH] chore(all): auto-regenerate gapics (#4222) This is an auto-generated regeneration of the gapic clients by cloud.google.com/go/internal/gapicgen. Once the corresponding genproto PR is submitted, genbot will update this PR with a newer dependency to the newer version of genproto and assign reviewers to this PR. If you have been assigned to review this PR, please: - Ensure that the version of genproto in go.mod has been updated. - Ensure that CI is passing. If it's failing, it requires your manual attention. - Approve and submit this PR if you believe it's ready to ship. Corresponding genproto PR: https://github.com/googleapis/go-genproto/pull/613 Changes: fix(documentai): Fix Ruby gem title of documentai v1 (package not currently published) Committer: @virost PiperOrigin-RevId: 377593283 Source-Link: https://github.com/googleapis/googleapis/commit/6c4106b6ac5c81155aa006e678c696f09e3d0790 feat(documentai): Move CommonOperationMetadata into a separate proto file for potential reuse. PiperOrigin-RevId: 377562108 Source-Link: https://github.com/googleapis/googleapis/commit/3e0f7ebfbbd2344412e7622fab4bc0c9004c5932 chore(analytics/admin): rename PHP microgen Bazel rules, delete monolith rules in googleapis Committer: @miraleung PiperOrigin-RevId: 377518010 Source-Link: https://github.com/googleapis/googleapis/commit/060218c3cc10a8669ca3d410a17e74a89c462c70 chore(clouddms): Update clouddms_v1 BUILD.bazel for python PiperOrigin-RevId: 377511005 Source-Link: https://github.com/googleapis/googleapis/commit/378aa28c87663870b030624f0f3fd69f07e15aa7 --- accessapproval/apiv1/doc.go | 2 +- aiplatform/apiv1/doc.go | 2 +- analytics/admin/apiv1alpha/doc.go | 2 +- analytics/data/apiv1alpha/doc.go | 2 +- apigateway/apiv1/doc.go | 2 +- apigeeconnect/apiv1/doc.go | 2 +- appengine/apiv1/doc.go | 2 +- area120/tables/apiv1alpha1/doc.go | 2 +- artifactregistry/apiv1beta2/doc.go | 2 +- asset/apiv1/doc.go | 2 +- asset/apiv1p2beta1/doc.go | 2 +- asset/apiv1p5beta1/doc.go | 2 +- assuredworkloads/apiv1beta1/doc.go | 2 +- automl/apiv1/doc.go | 2 +- automl/apiv1beta1/doc.go | 2 +- bigquery/connection/apiv1/doc.go | 2 +- bigquery/connection/apiv1beta1/doc.go | 2 +- bigquery/datatransfer/apiv1/doc.go | 2 +- bigquery/reservation/apiv1/doc.go | 2 +- bigquery/reservation/apiv1beta1/doc.go | 2 +- bigquery/storage/apiv1/doc.go | 2 +- bigquery/storage/apiv1beta1/doc.go | 2 +- bigquery/storage/apiv1beta2/doc.go | 2 +- billing/apiv1/doc.go | 2 +- billing/budgets/apiv1/doc.go | 2 +- billing/budgets/apiv1beta1/doc.go | 2 +- binaryauthorization/apiv1beta1/doc.go | 2 +- channel/apiv1/doc.go | 2 +- cloudbuild/apiv1/doc.go | 2 +- cloudbuild/apiv1/v2/doc.go | 2 +- clouddms/apiv1/doc.go | 2 +- cloudtasks/apiv2/doc.go | 2 +- cloudtasks/apiv2beta2/doc.go | 2 +- cloudtasks/apiv2beta3/doc.go | 2 +- container/apiv1/doc.go | 2 +- containeranalysis/apiv1/doc.go | 2 +- containeranalysis/apiv1beta1/doc.go | 2 +- datacatalog/apiv1/doc.go | 2 +- datacatalog/apiv1beta1/doc.go | 2 +- datalabeling/apiv1beta1/doc.go | 2 +- dataproc/apiv1/doc.go | 2 +- dataproc/apiv1beta2/doc.go | 2 +- dataqna/apiv1alpha/doc.go | 2 +- datastore/admin/apiv1/doc.go | 2 +- debugger/apiv2/doc.go | 2 +- dialogflow/apiv2/doc.go | 2 +- dialogflow/cx/apiv3/doc.go | 2 +- dialogflow/cx/apiv3beta1/doc.go | 2 +- dlp/apiv2/doc.go | 2 +- documentai/apiv1/doc.go | 2 +- documentai/apiv1beta3/doc.go | 2 +- domains/apiv1beta1/doc.go | 2 +- errorreporting/apiv1beta1/doc.go | 2 +- essentialcontacts/apiv1/doc.go | 2 +- firestore/apiv1/admin/doc.go | 2 +- firestore/apiv1/doc.go | 2 +- firestore/apiv1beta1/doc.go | 2 +- functions/apiv1/doc.go | 2 +- gaming/apiv1/doc.go | 2 +- gaming/apiv1beta/doc.go | 2 +- gkehub/apiv1beta1/doc.go | 2 +- grafeas/apiv1/doc.go | 2 +- gsuiteaddons/apiv1/doc.go | 2 +- iam/admin/apiv1/doc.go | 2 +- iam/credentials/apiv1/doc.go | 2 +- .../apiv1/DatasetClient/CreateDataset/main.go | 50 +++++++++++++++ .../apiv1/DatasetClient/DeleteDataset/main.go | 48 ++++++++++++++ .../apiv1/DatasetClient/ExportData/main.go | 50 +++++++++++++++ .../DatasetClient/GetAnnotationSpec/main.go | 45 ++++++++++++++ .../apiv1/DatasetClient/GetDataset/main.go | 45 ++++++++++++++ .../apiv1/DatasetClient/ImportData/main.go | 50 +++++++++++++++ .../DatasetClient/ListAnnotations/main.go | 52 ++++++++++++++++ .../apiv1/DatasetClient/ListDataItems/main.go | 52 ++++++++++++++++ .../apiv1/DatasetClient/ListDatasets/main.go | 52 ++++++++++++++++ .../apiv1/DatasetClient/UpdateDataset/main.go | 45 ++++++++++++++ .../EndpointClient/CreateEndpoint/main.go | 50 +++++++++++++++ .../EndpointClient/DeleteEndpoint/main.go | 48 ++++++++++++++ .../apiv1/EndpointClient/DeployModel/main.go | 50 +++++++++++++++ .../apiv1/EndpointClient/GetEndpoint/main.go | 45 ++++++++++++++ .../EndpointClient/ListEndpoints/main.go | 52 ++++++++++++++++ .../EndpointClient/UndeployModel/main.go | 50 +++++++++++++++ .../EndpointClient/UpdateEndpoint/main.go | 45 ++++++++++++++ .../CancelBatchPredictionJob/main.go | 43 +++++++++++++ .../apiv1/JobClient/CancelCustomJob/main.go | 43 +++++++++++++ .../JobClient/CancelDataLabelingJob/main.go | 43 +++++++++++++ .../CancelHyperparameterTuningJob/main.go | 43 +++++++++++++ .../CreateBatchPredictionJob/main.go | 45 ++++++++++++++ .../apiv1/JobClient/CreateCustomJob/main.go | 45 ++++++++++++++ .../JobClient/CreateDataLabelingJob/main.go | 45 ++++++++++++++ .../CreateHyperparameterTuningJob/main.go | 45 ++++++++++++++ .../DeleteBatchPredictionJob/main.go | 48 ++++++++++++++ .../apiv1/JobClient/DeleteCustomJob/main.go | 48 ++++++++++++++ .../JobClient/DeleteDataLabelingJob/main.go | 48 ++++++++++++++ .../DeleteHyperparameterTuningJob/main.go | 48 ++++++++++++++ .../JobClient/GetBatchPredictionJob/main.go | 45 ++++++++++++++ .../apiv1/JobClient/GetCustomJob/main.go | 45 ++++++++++++++ .../JobClient/GetDataLabelingJob/main.go | 45 ++++++++++++++ .../GetHyperparameterTuningJob/main.go | 45 ++++++++++++++ .../JobClient/ListBatchPredictionJobs/main.go | 52 ++++++++++++++++ .../apiv1/JobClient/ListCustomJobs/main.go | 52 ++++++++++++++++ .../JobClient/ListDataLabelingJobs/main.go | 52 ++++++++++++++++ .../ListHyperparameterTuningJobs/main.go | 52 ++++++++++++++++ .../BatchMigrateResources/main.go | 50 +++++++++++++++ .../SearchMigratableResources/main.go | 52 ++++++++++++++++ .../apiv1/ModelClient/DeleteModel/main.go | 48 ++++++++++++++ .../apiv1/ModelClient/ExportModel/main.go | 50 +++++++++++++++ .../apiv1/ModelClient/GetModel/main.go | 45 ++++++++++++++ .../ModelClient/GetModelEvaluation/main.go | 45 ++++++++++++++ .../GetModelEvaluationSlice/main.go | 45 ++++++++++++++ .../ListModelEvaluationSlices/main.go | 52 ++++++++++++++++ .../ModelClient/ListModelEvaluations/main.go | 52 ++++++++++++++++ .../apiv1/ModelClient/ListModels/main.go | 52 ++++++++++++++++ .../apiv1/ModelClient/UpdateModel/main.go | 45 ++++++++++++++ .../apiv1/ModelClient/UploadModel/main.go | 50 +++++++++++++++ .../CancelTrainingPipeline/main.go | 43 +++++++++++++ .../CreateTrainingPipeline/main.go | 45 ++++++++++++++ .../DeleteTrainingPipeline/main.go | 48 ++++++++++++++ .../GetTrainingPipeline/main.go | 45 ++++++++++++++ .../ListTrainingPipelines/main.go | 52 ++++++++++++++++ .../apiv1/PredictionClient/Predict/main.go | 45 ++++++++++++++ .../CreateSpecialistPool/main.go | 50 +++++++++++++++ .../DeleteSpecialistPool/main.go | 48 ++++++++++++++ .../GetSpecialistPool/main.go | 45 ++++++++++++++ .../ListSpecialistPools/main.go | 52 ++++++++++++++++ .../UpdateSpecialistPool/main.go | 50 +++++++++++++++ .../ConnectionClient/ListConnections/main.go | 52 ++++++++++++++++ .../apiv1/TetherClient/Egress/main.go | 62 +++++++++++++++++++ internal/generated/snippets/go.mod | 2 +- internal/generated/snippets/go.sum | 5 +- .../RunPipeline/main.go | 50 +++++++++++++++ iot/apiv1/doc.go | 2 +- kms/apiv1/doc.go | 2 +- language/apiv1/doc.go | 2 +- language/apiv1beta2/doc.go | 2 +- lifesciences/apiv2beta/doc.go | 2 +- logging/apiv2/doc.go | 2 +- longrunning/autogen/doc.go | 2 +- managedidentities/apiv1/doc.go | 2 +- mediatranslation/apiv1beta1/doc.go | 2 +- memcache/apiv1/doc.go | 2 +- memcache/apiv1beta2/doc.go | 2 +- metastore/apiv1/doc.go | 2 +- metastore/apiv1alpha/doc.go | 2 +- metastore/apiv1beta/doc.go | 2 +- monitoring/apiv3/doc.go | 2 +- monitoring/apiv3/v2/doc.go | 2 +- monitoring/dashboard/apiv1/doc.go | 2 +- networkconnectivity/apiv1alpha1/doc.go | 2 +- notebooks/apiv1beta1/doc.go | 2 +- orgpolicy/apiv2/doc.go | 2 +- osconfig/agentendpoint/apiv1/doc.go | 2 +- osconfig/agentendpoint/apiv1beta/doc.go | 2 +- osconfig/apiv1/doc.go | 2 +- osconfig/apiv1alpha/doc.go | 2 +- osconfig/apiv1beta/doc.go | 2 +- oslogin/apiv1/doc.go | 2 +- oslogin/apiv1beta/doc.go | 2 +- phishingprotection/apiv1beta1/doc.go | 2 +- policytroubleshooter/apiv1/doc.go | 2 +- privatecatalog/apiv1beta1/doc.go | 2 +- pubsub/apiv1/doc.go | 2 +- pubsublite/apiv1/doc.go | 2 +- recaptchaenterprise/apiv1/doc.go | 2 +- recaptchaenterprise/apiv1beta1/doc.go | 2 +- recommendationengine/apiv1beta1/doc.go | 2 +- recommender/apiv1/doc.go | 2 +- recommender/apiv1beta1/doc.go | 2 +- redis/apiv1/doc.go | 2 +- redis/apiv1beta1/doc.go | 2 +- resourcemanager/apiv2/doc.go | 2 +- resourcesettings/apiv1/doc.go | 2 +- retail/apiv2/doc.go | 2 +- scheduler/apiv1/doc.go | 2 +- scheduler/apiv1beta1/doc.go | 2 +- secretmanager/apiv1/doc.go | 2 +- secretmanager/apiv1beta1/doc.go | 2 +- security/privateca/apiv1/doc.go | 2 +- security/privateca/apiv1beta1/doc.go | 2 +- securitycenter/apiv1/doc.go | 2 +- securitycenter/apiv1beta1/doc.go | 2 +- securitycenter/apiv1p1beta1/doc.go | 2 +- securitycenter/settings/apiv1beta1/doc.go | 2 +- servicecontrol/apiv1/doc.go | 2 +- servicedirectory/apiv1/doc.go | 2 +- servicedirectory/apiv1beta1/doc.go | 2 +- servicemanagement/apiv1/doc.go | 2 +- serviceusage/apiv1/doc.go | 2 +- shell/apiv1/doc.go | 2 +- spanner/admin/database/apiv1/doc.go | 2 +- spanner/admin/instance/apiv1/doc.go | 2 +- spanner/apiv1/doc.go | 2 +- speech/apiv1/doc.go | 2 +- speech/apiv1p1beta1/doc.go | 2 +- talent/apiv4/doc.go | 2 +- talent/apiv4beta1/doc.go | 2 +- texttospeech/apiv1/doc.go | 2 +- tpu/apiv1/doc.go | 2 +- trace/apiv1/doc.go | 2 +- trace/apiv2/doc.go | 2 +- translate/apiv3/doc.go | 2 +- video/transcoder/apiv1beta1/doc.go | 2 +- videointelligence/apiv1/doc.go | 2 +- videointelligence/apiv1beta2/doc.go | 2 +- vision/apiv1/doc.go | 2 +- vision/apiv1p1beta1/doc.go | 2 +- vpcaccess/apiv1/doc.go | 2 +- webrisk/apiv1/doc.go | 2 +- webrisk/apiv1beta1/doc.go | 2 +- websecurityscanner/apiv1/doc.go | 2 +- workflows/apiv1beta/doc.go | 2 +- workflows/executions/apiv1beta/doc.go | 2 +- 211 files changed, 3183 insertions(+), 150 deletions(-) create mode 100644 internal/generated/snippets/aiplatform/apiv1/DatasetClient/CreateDataset/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/DatasetClient/DeleteDataset/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/DatasetClient/ExportData/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetAnnotationSpec/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetDataset/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/DatasetClient/ImportData/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListAnnotations/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListDataItems/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListDatasets/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/DatasetClient/UpdateDataset/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/EndpointClient/CreateEndpoint/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeleteEndpoint/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeployModel/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetEndpoint/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/EndpointClient/ListEndpoints/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/EndpointClient/UndeployModel/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/EndpointClient/UpdateEndpoint/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/CancelBatchPredictionJob/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/CancelCustomJob/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/CancelDataLabelingJob/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/CancelHyperparameterTuningJob/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/CreateBatchPredictionJob/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/CreateCustomJob/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/CreateDataLabelingJob/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/CreateHyperparameterTuningJob/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteBatchPredictionJob/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteCustomJob/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteDataLabelingJob/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteHyperparameterTuningJob/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/GetBatchPredictionJob/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/GetCustomJob/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/GetDataLabelingJob/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/GetHyperparameterTuningJob/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/ListBatchPredictionJobs/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/ListCustomJobs/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/ListDataLabelingJobs/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/JobClient/ListHyperparameterTuningJobs/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/MigrationClient/BatchMigrateResources/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/MigrationClient/SearchMigratableResources/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/ModelClient/DeleteModel/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/ModelClient/ExportModel/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModel/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModelEvaluation/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModelEvaluationSlice/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelEvaluationSlices/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelEvaluations/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModels/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/ModelClient/UpdateModel/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/ModelClient/UploadModel/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/PipelineClient/CancelTrainingPipeline/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/PipelineClient/CreateTrainingPipeline/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/PipelineClient/DeleteTrainingPipeline/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetTrainingPipeline/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListTrainingPipelines/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/PredictionClient/Predict/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/CreateSpecialistPool/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/DeleteSpecialistPool/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetSpecialistPool/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/ListSpecialistPools/main.go create mode 100644 internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/UpdateSpecialistPool/main.go create mode 100644 internal/generated/snippets/apigeeconnect/apiv1/ConnectionClient/ListConnections/main.go create mode 100644 internal/generated/snippets/apigeeconnect/apiv1/TetherClient/Egress/main.go create mode 100644 internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/RunPipeline/main.go diff --git a/accessapproval/apiv1/doc.go b/accessapproval/apiv1/doc.go index 10702f1f116..1e895abd4b3 100644 --- a/accessapproval/apiv1/doc.go +++ b/accessapproval/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/aiplatform/apiv1/doc.go b/aiplatform/apiv1/doc.go index 4099a4e77c8..b89cc69dbf3 100644 --- a/aiplatform/apiv1/doc.go +++ b/aiplatform/apiv1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210603" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/analytics/admin/apiv1alpha/doc.go b/analytics/admin/apiv1alpha/doc.go index ab8b0ac3d5d..05650c4f9da 100644 --- a/analytics/admin/apiv1alpha/doc.go +++ b/analytics/admin/apiv1alpha/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/analytics/data/apiv1alpha/doc.go b/analytics/data/apiv1alpha/doc.go index 9ec3150a8fc..7a4a445f06f 100644 --- a/analytics/data/apiv1alpha/doc.go +++ b/analytics/data/apiv1alpha/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/apigateway/apiv1/doc.go b/apigateway/apiv1/doc.go index 9563a165102..b0e7a52d96a 100644 --- a/apigateway/apiv1/doc.go +++ b/apigateway/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/apigeeconnect/apiv1/doc.go b/apigeeconnect/apiv1/doc.go index 7baf0497442..8d921b101f4 100644 --- a/apigeeconnect/apiv1/doc.go +++ b/apigeeconnect/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210603" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/appengine/apiv1/doc.go b/appengine/apiv1/doc.go index 4577aaaf7d5..4c1beb07ac9 100644 --- a/appengine/apiv1/doc.go +++ b/appengine/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/area120/tables/apiv1alpha1/doc.go b/area120/tables/apiv1alpha1/doc.go index c951cb07458..3aaba2d7018 100644 --- a/area120/tables/apiv1alpha1/doc.go +++ b/area120/tables/apiv1alpha1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/artifactregistry/apiv1beta2/doc.go b/artifactregistry/apiv1beta2/doc.go index 3c5ec445649..22c8ecc6e6a 100644 --- a/artifactregistry/apiv1beta2/doc.go +++ b/artifactregistry/apiv1beta2/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/asset/apiv1/doc.go b/asset/apiv1/doc.go index f7933f99e3c..dfee2c40ff6 100644 --- a/asset/apiv1/doc.go +++ b/asset/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/asset/apiv1p2beta1/doc.go b/asset/apiv1p2beta1/doc.go index 9110a34800b..52fed611aea 100644 --- a/asset/apiv1p2beta1/doc.go +++ b/asset/apiv1p2beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/asset/apiv1p5beta1/doc.go b/asset/apiv1p5beta1/doc.go index 12124c3a872..11e39272e20 100644 --- a/asset/apiv1p5beta1/doc.go +++ b/asset/apiv1p5beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/assuredworkloads/apiv1beta1/doc.go b/assuredworkloads/apiv1beta1/doc.go index 1a324b47fe7..87e4da044fa 100644 --- a/assuredworkloads/apiv1beta1/doc.go +++ b/assuredworkloads/apiv1beta1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/automl/apiv1/doc.go b/automl/apiv1/doc.go index 6fbaafd84e9..a70cc2881bf 100644 --- a/automl/apiv1/doc.go +++ b/automl/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/automl/apiv1beta1/doc.go b/automl/apiv1beta1/doc.go index 1ba9379db48..e347cb6a02a 100644 --- a/automl/apiv1beta1/doc.go +++ b/automl/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/bigquery/connection/apiv1/doc.go b/bigquery/connection/apiv1/doc.go index 118726da37b..db5513147be 100644 --- a/bigquery/connection/apiv1/doc.go +++ b/bigquery/connection/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/bigquery/connection/apiv1beta1/doc.go b/bigquery/connection/apiv1beta1/doc.go index 6e015368666..6385e56233f 100644 --- a/bigquery/connection/apiv1beta1/doc.go +++ b/bigquery/connection/apiv1beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/bigquery/datatransfer/apiv1/doc.go b/bigquery/datatransfer/apiv1/doc.go index a696c9b49b6..c8c5d888dd5 100644 --- a/bigquery/datatransfer/apiv1/doc.go +++ b/bigquery/datatransfer/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/bigquery/reservation/apiv1/doc.go b/bigquery/reservation/apiv1/doc.go index 90f9d2d083b..a6100dc32e8 100644 --- a/bigquery/reservation/apiv1/doc.go +++ b/bigquery/reservation/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/bigquery/reservation/apiv1beta1/doc.go b/bigquery/reservation/apiv1beta1/doc.go index 2e86c74486b..1fb210be462 100644 --- a/bigquery/reservation/apiv1beta1/doc.go +++ b/bigquery/reservation/apiv1beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/bigquery/storage/apiv1/doc.go b/bigquery/storage/apiv1/doc.go index 66b43a247d9..6eca342d906 100644 --- a/bigquery/storage/apiv1/doc.go +++ b/bigquery/storage/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/bigquery/storage/apiv1beta1/doc.go b/bigquery/storage/apiv1beta1/doc.go index c00acd99425..8559a4eb56b 100644 --- a/bigquery/storage/apiv1beta1/doc.go +++ b/bigquery/storage/apiv1beta1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/bigquery/storage/apiv1beta2/doc.go b/bigquery/storage/apiv1beta2/doc.go index f148a6ebab0..86b2b9d1bd9 100644 --- a/bigquery/storage/apiv1beta2/doc.go +++ b/bigquery/storage/apiv1beta2/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/billing/apiv1/doc.go b/billing/apiv1/doc.go index 72ddba2f982..970d7cace3e 100644 --- a/billing/apiv1/doc.go +++ b/billing/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/billing/budgets/apiv1/doc.go b/billing/budgets/apiv1/doc.go index b79c827af81..1061b75739d 100644 --- a/billing/budgets/apiv1/doc.go +++ b/billing/budgets/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/billing/budgets/apiv1beta1/doc.go b/billing/budgets/apiv1beta1/doc.go index 301571cff46..a46d3e298d0 100644 --- a/billing/budgets/apiv1beta1/doc.go +++ b/billing/budgets/apiv1beta1/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/binaryauthorization/apiv1beta1/doc.go b/binaryauthorization/apiv1beta1/doc.go index f8567bf7671..e8101ad07bd 100644 --- a/binaryauthorization/apiv1beta1/doc.go +++ b/binaryauthorization/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/channel/apiv1/doc.go b/channel/apiv1/doc.go index 83a1f10f31c..a950164319f 100644 --- a/channel/apiv1/doc.go +++ b/channel/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/cloudbuild/apiv1/doc.go b/cloudbuild/apiv1/doc.go index f9c1e78b656..0eea4c84138 100644 --- a/cloudbuild/apiv1/doc.go +++ b/cloudbuild/apiv1/doc.go @@ -96,4 +96,4 @@ func versionGo() string { return "UNKNOWN" } -const versionClient = "20210604" +const versionClient = "20210605" diff --git a/cloudbuild/apiv1/v2/doc.go b/cloudbuild/apiv1/v2/doc.go index 54d3c61f17c..aac0747ded2 100644 --- a/cloudbuild/apiv1/v2/doc.go +++ b/cloudbuild/apiv1/v2/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/clouddms/apiv1/doc.go b/clouddms/apiv1/doc.go index aa48ac7b6e7..ee1839fce83 100644 --- a/clouddms/apiv1/doc.go +++ b/clouddms/apiv1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/cloudtasks/apiv2/doc.go b/cloudtasks/apiv2/doc.go index 778135daad7..2d55cd13e08 100644 --- a/cloudtasks/apiv2/doc.go +++ b/cloudtasks/apiv2/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/cloudtasks/apiv2beta2/doc.go b/cloudtasks/apiv2beta2/doc.go index 8a6022adb5e..20bb2fa814e 100644 --- a/cloudtasks/apiv2beta2/doc.go +++ b/cloudtasks/apiv2beta2/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/cloudtasks/apiv2beta3/doc.go b/cloudtasks/apiv2beta3/doc.go index bcd3c674551..93f3d8787cc 100644 --- a/cloudtasks/apiv2beta3/doc.go +++ b/cloudtasks/apiv2beta3/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/container/apiv1/doc.go b/container/apiv1/doc.go index 853bcfc6943..6301239554f 100644 --- a/container/apiv1/doc.go +++ b/container/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/containeranalysis/apiv1/doc.go b/containeranalysis/apiv1/doc.go index c592f1f6216..b3fbb8a2fbe 100644 --- a/containeranalysis/apiv1/doc.go +++ b/containeranalysis/apiv1/doc.go @@ -98,4 +98,4 @@ func versionGo() string { return "UNKNOWN" } -const versionClient = "20210604" +const versionClient = "20210605" diff --git a/containeranalysis/apiv1beta1/doc.go b/containeranalysis/apiv1beta1/doc.go index 86cf28d7618..87e223464bf 100644 --- a/containeranalysis/apiv1beta1/doc.go +++ b/containeranalysis/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/datacatalog/apiv1/doc.go b/datacatalog/apiv1/doc.go index c65de43a094..69f3633346c 100644 --- a/datacatalog/apiv1/doc.go +++ b/datacatalog/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/datacatalog/apiv1beta1/doc.go b/datacatalog/apiv1beta1/doc.go index d8433d7addc..170561ceb85 100644 --- a/datacatalog/apiv1beta1/doc.go +++ b/datacatalog/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/datalabeling/apiv1beta1/doc.go b/datalabeling/apiv1beta1/doc.go index df6d78bcadc..a4590d14a4f 100644 --- a/datalabeling/apiv1beta1/doc.go +++ b/datalabeling/apiv1beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/dataproc/apiv1/doc.go b/dataproc/apiv1/doc.go index b8e0547501d..6fc143152a4 100644 --- a/dataproc/apiv1/doc.go +++ b/dataproc/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/dataproc/apiv1beta2/doc.go b/dataproc/apiv1beta2/doc.go index aa941edf9d1..a53f6241f59 100644 --- a/dataproc/apiv1beta2/doc.go +++ b/dataproc/apiv1beta2/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/dataqna/apiv1alpha/doc.go b/dataqna/apiv1alpha/doc.go index e4195a756c1..4803fcdbcb7 100644 --- a/dataqna/apiv1alpha/doc.go +++ b/dataqna/apiv1alpha/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/datastore/admin/apiv1/doc.go b/datastore/admin/apiv1/doc.go index 334f64f2beb..30beddfda1c 100644 --- a/datastore/admin/apiv1/doc.go +++ b/datastore/admin/apiv1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/debugger/apiv2/doc.go b/debugger/apiv2/doc.go index 8f6a28c5932..8743e8af2fd 100644 --- a/debugger/apiv2/doc.go +++ b/debugger/apiv2/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/dialogflow/apiv2/doc.go b/dialogflow/apiv2/doc.go index d7229c87bf6..bad9335d9ee 100644 --- a/dialogflow/apiv2/doc.go +++ b/dialogflow/apiv2/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/dialogflow/cx/apiv3/doc.go b/dialogflow/cx/apiv3/doc.go index d8b2d485e49..442e3b37147 100644 --- a/dialogflow/cx/apiv3/doc.go +++ b/dialogflow/cx/apiv3/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/dialogflow/cx/apiv3beta1/doc.go b/dialogflow/cx/apiv3beta1/doc.go index 44bd1131127..2e09d47a5b5 100644 --- a/dialogflow/cx/apiv3beta1/doc.go +++ b/dialogflow/cx/apiv3beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/dlp/apiv2/doc.go b/dlp/apiv2/doc.go index 1a22e89b553..e936205a753 100644 --- a/dlp/apiv2/doc.go +++ b/dlp/apiv2/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/documentai/apiv1/doc.go b/documentai/apiv1/doc.go index 20727765943..d7f1d0e4b1d 100644 --- a/documentai/apiv1/doc.go +++ b/documentai/apiv1/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/documentai/apiv1beta3/doc.go b/documentai/apiv1beta3/doc.go index e5e9940df83..0dae0955091 100644 --- a/documentai/apiv1beta3/doc.go +++ b/documentai/apiv1beta3/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/domains/apiv1beta1/doc.go b/domains/apiv1beta1/doc.go index 88bbedb29e1..6c22202cd81 100644 --- a/domains/apiv1beta1/doc.go +++ b/domains/apiv1beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/errorreporting/apiv1beta1/doc.go b/errorreporting/apiv1beta1/doc.go index 754e8eb6e13..ee61ea284b5 100644 --- a/errorreporting/apiv1beta1/doc.go +++ b/errorreporting/apiv1beta1/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/essentialcontacts/apiv1/doc.go b/essentialcontacts/apiv1/doc.go index ee33262861c..6f0c77947dd 100644 --- a/essentialcontacts/apiv1/doc.go +++ b/essentialcontacts/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/firestore/apiv1/admin/doc.go b/firestore/apiv1/admin/doc.go index 4c22e932a42..bb88de2b782 100644 --- a/firestore/apiv1/admin/doc.go +++ b/firestore/apiv1/admin/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/firestore/apiv1/doc.go b/firestore/apiv1/doc.go index 465b3124c48..384f95c3360 100644 --- a/firestore/apiv1/doc.go +++ b/firestore/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/firestore/apiv1beta1/doc.go b/firestore/apiv1beta1/doc.go index 6d8d2cc964c..6161b92f25c 100644 --- a/firestore/apiv1beta1/doc.go +++ b/firestore/apiv1beta1/doc.go @@ -46,7 +46,7 @@ import ( "google.golang.org/grpc/metadata" ) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/functions/apiv1/doc.go b/functions/apiv1/doc.go index 1da50f64963..c82d40dbde4 100644 --- a/functions/apiv1/doc.go +++ b/functions/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/gaming/apiv1/doc.go b/gaming/apiv1/doc.go index ddc1105f043..db449fbd782 100644 --- a/gaming/apiv1/doc.go +++ b/gaming/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/gaming/apiv1beta/doc.go b/gaming/apiv1beta/doc.go index 4ec646edca5..b8f8cab5af6 100644 --- a/gaming/apiv1beta/doc.go +++ b/gaming/apiv1beta/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/gkehub/apiv1beta1/doc.go b/gkehub/apiv1beta1/doc.go index 626b115d1af..3bf4bfb5919 100644 --- a/gkehub/apiv1beta1/doc.go +++ b/gkehub/apiv1beta1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/grafeas/apiv1/doc.go b/grafeas/apiv1/doc.go index 6077c45507e..f95a819c377 100644 --- a/grafeas/apiv1/doc.go +++ b/grafeas/apiv1/doc.go @@ -92,4 +92,4 @@ func versionGo() string { return "UNKNOWN" } -const versionClient = "20210604" +const versionClient = "20210605" diff --git a/gsuiteaddons/apiv1/doc.go b/gsuiteaddons/apiv1/doc.go index 57eb822777e..988395963c9 100644 --- a/gsuiteaddons/apiv1/doc.go +++ b/gsuiteaddons/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/iam/admin/apiv1/doc.go b/iam/admin/apiv1/doc.go index 024f82d0f9a..c8c71dab8a8 100644 --- a/iam/admin/apiv1/doc.go +++ b/iam/admin/apiv1/doc.go @@ -100,4 +100,4 @@ func versionGo() string { return "UNKNOWN" } -const versionClient = "20210604" +const versionClient = "20210605" diff --git a/iam/credentials/apiv1/doc.go b/iam/credentials/apiv1/doc.go index e59f027e34a..c9608019b0f 100644 --- a/iam/credentials/apiv1/doc.go +++ b/iam/credentials/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/CreateDataset/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/CreateDataset/main.go new file mode 100644 index 00000000000..d8c7ee38652 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/CreateDataset/main.go @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_DatasetService_CreateDataset_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewDatasetClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.CreateDatasetRequest{ + // TODO: Fill request struct fields. + } + op, err := c.CreateDataset(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_DatasetService_CreateDataset_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/DeleteDataset/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/DeleteDataset/main.go new file mode 100644 index 00000000000..d875c494fcd --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/DeleteDataset/main.go @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_DatasetService_DeleteDataset_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewDatasetClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.DeleteDatasetRequest{ + // TODO: Fill request struct fields. + } + op, err := c.DeleteDataset(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END aiplatform_v1_generated_DatasetService_DeleteDataset_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ExportData/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ExportData/main.go new file mode 100644 index 00000000000..1e8376b1be4 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ExportData/main.go @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_DatasetService_ExportData_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewDatasetClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ExportDataRequest{ + // TODO: Fill request struct fields. + } + op, err := c.ExportData(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_DatasetService_ExportData_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetAnnotationSpec/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetAnnotationSpec/main.go new file mode 100644 index 00000000000..0218da7770f --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetAnnotationSpec/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_DatasetService_GetAnnotationSpec_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewDatasetClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.GetAnnotationSpecRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetAnnotationSpec(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_DatasetService_GetAnnotationSpec_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetDataset/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetDataset/main.go new file mode 100644 index 00000000000..de8f3ff0bf3 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetDataset/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_DatasetService_GetDataset_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewDatasetClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.GetDatasetRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetDataset(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_DatasetService_GetDataset_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ImportData/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ImportData/main.go new file mode 100644 index 00000000000..2100f95797c --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ImportData/main.go @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_DatasetService_ImportData_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewDatasetClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ImportDataRequest{ + // TODO: Fill request struct fields. + } + op, err := c.ImportData(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_DatasetService_ImportData_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListAnnotations/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListAnnotations/main.go new file mode 100644 index 00000000000..64c90297bcc --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListAnnotations/main.go @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_DatasetService_ListAnnotations_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + "google.golang.org/api/iterator" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewDatasetClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ListAnnotationsRequest{ + // TODO: Fill request struct fields. + } + it := c.ListAnnotations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END aiplatform_v1_generated_DatasetService_ListAnnotations_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListDataItems/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListDataItems/main.go new file mode 100644 index 00000000000..61720365be2 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListDataItems/main.go @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_DatasetService_ListDataItems_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + "google.golang.org/api/iterator" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewDatasetClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ListDataItemsRequest{ + // TODO: Fill request struct fields. + } + it := c.ListDataItems(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END aiplatform_v1_generated_DatasetService_ListDataItems_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListDatasets/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListDatasets/main.go new file mode 100644 index 00000000000..1cd1ad59a21 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListDatasets/main.go @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_DatasetService_ListDatasets_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + "google.golang.org/api/iterator" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewDatasetClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ListDatasetsRequest{ + // TODO: Fill request struct fields. + } + it := c.ListDatasets(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END aiplatform_v1_generated_DatasetService_ListDatasets_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/UpdateDataset/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/UpdateDataset/main.go new file mode 100644 index 00000000000..b8805897242 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/UpdateDataset/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_DatasetService_UpdateDataset_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewDatasetClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.UpdateDatasetRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.UpdateDataset(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_DatasetService_UpdateDataset_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/CreateEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/CreateEndpoint/main.go new file mode 100644 index 00000000000..f3fbae59320 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/CreateEndpoint/main.go @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_EndpointService_CreateEndpoint_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewEndpointClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.CreateEndpointRequest{ + // TODO: Fill request struct fields. + } + op, err := c.CreateEndpoint(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_EndpointService_CreateEndpoint_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeleteEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeleteEndpoint/main.go new file mode 100644 index 00000000000..26fee743f50 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeleteEndpoint/main.go @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_EndpointService_DeleteEndpoint_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewEndpointClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.DeleteEndpointRequest{ + // TODO: Fill request struct fields. + } + op, err := c.DeleteEndpoint(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END aiplatform_v1_generated_EndpointService_DeleteEndpoint_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeployModel/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeployModel/main.go new file mode 100644 index 00000000000..1bce70ebc74 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeployModel/main.go @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_EndpointService_DeployModel_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewEndpointClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.DeployModelRequest{ + // TODO: Fill request struct fields. + } + op, err := c.DeployModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_EndpointService_DeployModel_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetEndpoint/main.go new file mode 100644 index 00000000000..4e0079ae2eb --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetEndpoint/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_EndpointService_GetEndpoint_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewEndpointClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.GetEndpointRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetEndpoint(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_EndpointService_GetEndpoint_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/ListEndpoints/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/ListEndpoints/main.go new file mode 100644 index 00000000000..81e92a5f323 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/ListEndpoints/main.go @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_EndpointService_ListEndpoints_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + "google.golang.org/api/iterator" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewEndpointClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ListEndpointsRequest{ + // TODO: Fill request struct fields. + } + it := c.ListEndpoints(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END aiplatform_v1_generated_EndpointService_ListEndpoints_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/UndeployModel/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/UndeployModel/main.go new file mode 100644 index 00000000000..dd538b41750 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/UndeployModel/main.go @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_EndpointService_UndeployModel_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewEndpointClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.UndeployModelRequest{ + // TODO: Fill request struct fields. + } + op, err := c.UndeployModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_EndpointService_UndeployModel_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/UpdateEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/UpdateEndpoint/main.go new file mode 100644 index 00000000000..386db0741f7 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/UpdateEndpoint/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_EndpointService_UpdateEndpoint_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewEndpointClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.UpdateEndpointRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.UpdateEndpoint(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_EndpointService_UpdateEndpoint_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelBatchPredictionJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelBatchPredictionJob/main.go new file mode 100644 index 00000000000..7888fc1f514 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelBatchPredictionJob/main.go @@ -0,0 +1,43 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_CancelBatchPredictionJob_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.CancelBatchPredictionJobRequest{ + // TODO: Fill request struct fields. + } + err = c.CancelBatchPredictionJob(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END aiplatform_v1_generated_JobService_CancelBatchPredictionJob_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelCustomJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelCustomJob/main.go new file mode 100644 index 00000000000..0f91cb0ec28 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelCustomJob/main.go @@ -0,0 +1,43 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_CancelCustomJob_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.CancelCustomJobRequest{ + // TODO: Fill request struct fields. + } + err = c.CancelCustomJob(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END aiplatform_v1_generated_JobService_CancelCustomJob_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelDataLabelingJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelDataLabelingJob/main.go new file mode 100644 index 00000000000..4c6812a2144 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelDataLabelingJob/main.go @@ -0,0 +1,43 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_CancelDataLabelingJob_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.CancelDataLabelingJobRequest{ + // TODO: Fill request struct fields. + } + err = c.CancelDataLabelingJob(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END aiplatform_v1_generated_JobService_CancelDataLabelingJob_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelHyperparameterTuningJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelHyperparameterTuningJob/main.go new file mode 100644 index 00000000000..5e4aa5d9357 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelHyperparameterTuningJob/main.go @@ -0,0 +1,43 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_CancelHyperparameterTuningJob_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.CancelHyperparameterTuningJobRequest{ + // TODO: Fill request struct fields. + } + err = c.CancelHyperparameterTuningJob(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END aiplatform_v1_generated_JobService_CancelHyperparameterTuningJob_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateBatchPredictionJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateBatchPredictionJob/main.go new file mode 100644 index 00000000000..cca442ed3e9 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateBatchPredictionJob/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_CreateBatchPredictionJob_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.CreateBatchPredictionJobRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.CreateBatchPredictionJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_JobService_CreateBatchPredictionJob_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateCustomJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateCustomJob/main.go new file mode 100644 index 00000000000..3829a3cddee --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateCustomJob/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_CreateCustomJob_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.CreateCustomJobRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.CreateCustomJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_JobService_CreateCustomJob_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateDataLabelingJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateDataLabelingJob/main.go new file mode 100644 index 00000000000..98e9b5bab38 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateDataLabelingJob/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_CreateDataLabelingJob_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.CreateDataLabelingJobRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.CreateDataLabelingJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_JobService_CreateDataLabelingJob_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateHyperparameterTuningJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateHyperparameterTuningJob/main.go new file mode 100644 index 00000000000..cca3b74afc1 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateHyperparameterTuningJob/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_CreateHyperparameterTuningJob_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.CreateHyperparameterTuningJobRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.CreateHyperparameterTuningJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_JobService_CreateHyperparameterTuningJob_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteBatchPredictionJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteBatchPredictionJob/main.go new file mode 100644 index 00000000000..50317163fb1 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteBatchPredictionJob/main.go @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_DeleteBatchPredictionJob_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.DeleteBatchPredictionJobRequest{ + // TODO: Fill request struct fields. + } + op, err := c.DeleteBatchPredictionJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END aiplatform_v1_generated_JobService_DeleteBatchPredictionJob_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteCustomJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteCustomJob/main.go new file mode 100644 index 00000000000..b6cfc1818d2 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteCustomJob/main.go @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_DeleteCustomJob_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.DeleteCustomJobRequest{ + // TODO: Fill request struct fields. + } + op, err := c.DeleteCustomJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END aiplatform_v1_generated_JobService_DeleteCustomJob_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteDataLabelingJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteDataLabelingJob/main.go new file mode 100644 index 00000000000..7a2f231e8ce --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteDataLabelingJob/main.go @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_DeleteDataLabelingJob_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.DeleteDataLabelingJobRequest{ + // TODO: Fill request struct fields. + } + op, err := c.DeleteDataLabelingJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END aiplatform_v1_generated_JobService_DeleteDataLabelingJob_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteHyperparameterTuningJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteHyperparameterTuningJob/main.go new file mode 100644 index 00000000000..fb6e13034b8 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteHyperparameterTuningJob/main.go @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_DeleteHyperparameterTuningJob_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.DeleteHyperparameterTuningJobRequest{ + // TODO: Fill request struct fields. + } + op, err := c.DeleteHyperparameterTuningJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END aiplatform_v1_generated_JobService_DeleteHyperparameterTuningJob_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetBatchPredictionJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetBatchPredictionJob/main.go new file mode 100644 index 00000000000..b4e5fdfd6aa --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetBatchPredictionJob/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_GetBatchPredictionJob_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.GetBatchPredictionJobRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetBatchPredictionJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_JobService_GetBatchPredictionJob_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetCustomJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetCustomJob/main.go new file mode 100644 index 00000000000..3a5b7d45cc9 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetCustomJob/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_GetCustomJob_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.GetCustomJobRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetCustomJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_JobService_GetCustomJob_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetDataLabelingJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetDataLabelingJob/main.go new file mode 100644 index 00000000000..42fa42af1b7 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetDataLabelingJob/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_GetDataLabelingJob_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.GetDataLabelingJobRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetDataLabelingJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_JobService_GetDataLabelingJob_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetHyperparameterTuningJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetHyperparameterTuningJob/main.go new file mode 100644 index 00000000000..8f65021f678 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetHyperparameterTuningJob/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_GetHyperparameterTuningJob_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.GetHyperparameterTuningJobRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetHyperparameterTuningJob(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_JobService_GetHyperparameterTuningJob_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/ListBatchPredictionJobs/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListBatchPredictionJobs/main.go new file mode 100644 index 00000000000..b0e3778266e --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListBatchPredictionJobs/main.go @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_ListBatchPredictionJobs_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + "google.golang.org/api/iterator" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ListBatchPredictionJobsRequest{ + // TODO: Fill request struct fields. + } + it := c.ListBatchPredictionJobs(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END aiplatform_v1_generated_JobService_ListBatchPredictionJobs_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/ListCustomJobs/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListCustomJobs/main.go new file mode 100644 index 00000000000..40bf1d44e98 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListCustomJobs/main.go @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_ListCustomJobs_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + "google.golang.org/api/iterator" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ListCustomJobsRequest{ + // TODO: Fill request struct fields. + } + it := c.ListCustomJobs(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END aiplatform_v1_generated_JobService_ListCustomJobs_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/ListDataLabelingJobs/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListDataLabelingJobs/main.go new file mode 100644 index 00000000000..5b746353a39 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListDataLabelingJobs/main.go @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_ListDataLabelingJobs_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + "google.golang.org/api/iterator" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ListDataLabelingJobsRequest{ + // TODO: Fill request struct fields. + } + it := c.ListDataLabelingJobs(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END aiplatform_v1_generated_JobService_ListDataLabelingJobs_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/ListHyperparameterTuningJobs/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListHyperparameterTuningJobs/main.go new file mode 100644 index 00000000000..a31a34eac3e --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListHyperparameterTuningJobs/main.go @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_JobService_ListHyperparameterTuningJobs_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + "google.golang.org/api/iterator" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ListHyperparameterTuningJobsRequest{ + // TODO: Fill request struct fields. + } + it := c.ListHyperparameterTuningJobs(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END aiplatform_v1_generated_JobService_ListHyperparameterTuningJobs_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/BatchMigrateResources/main.go b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/BatchMigrateResources/main.go new file mode 100644 index 00000000000..78bafc6fbe6 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/BatchMigrateResources/main.go @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_MigrationService_BatchMigrateResources_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewMigrationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.BatchMigrateResourcesRequest{ + // TODO: Fill request struct fields. + } + op, err := c.BatchMigrateResources(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_MigrationService_BatchMigrateResources_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/SearchMigratableResources/main.go b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/SearchMigratableResources/main.go new file mode 100644 index 00000000000..0a06f281d09 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/SearchMigratableResources/main.go @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_MigrationService_SearchMigratableResources_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + "google.golang.org/api/iterator" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewMigrationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.SearchMigratableResourcesRequest{ + // TODO: Fill request struct fields. + } + it := c.SearchMigratableResources(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END aiplatform_v1_generated_MigrationService_SearchMigratableResources_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/DeleteModel/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/DeleteModel/main.go new file mode 100644 index 00000000000..64fa2043c9b --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/DeleteModel/main.go @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_ModelService_DeleteModel_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.DeleteModelRequest{ + // TODO: Fill request struct fields. + } + op, err := c.DeleteModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END aiplatform_v1_generated_ModelService_DeleteModel_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ExportModel/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ExportModel/main.go new file mode 100644 index 00000000000..4336e19dd79 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ExportModel/main.go @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_ModelService_ExportModel_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ExportModelRequest{ + // TODO: Fill request struct fields. + } + op, err := c.ExportModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_ModelService_ExportModel_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModel/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModel/main.go new file mode 100644 index 00000000000..9d9be9ce2bc --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModel/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_ModelService_GetModel_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.GetModelRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_ModelService_GetModel_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModelEvaluation/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModelEvaluation/main.go new file mode 100644 index 00000000000..48af94ac802 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModelEvaluation/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_ModelService_GetModelEvaluation_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.GetModelEvaluationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetModelEvaluation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_ModelService_GetModelEvaluation_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModelEvaluationSlice/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModelEvaluationSlice/main.go new file mode 100644 index 00000000000..46f120242e4 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModelEvaluationSlice/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_ModelService_GetModelEvaluationSlice_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.GetModelEvaluationSliceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetModelEvaluationSlice(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_ModelService_GetModelEvaluationSlice_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelEvaluationSlices/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelEvaluationSlices/main.go new file mode 100644 index 00000000000..8d4ed3e1987 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelEvaluationSlices/main.go @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_ModelService_ListModelEvaluationSlices_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + "google.golang.org/api/iterator" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ListModelEvaluationSlicesRequest{ + // TODO: Fill request struct fields. + } + it := c.ListModelEvaluationSlices(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END aiplatform_v1_generated_ModelService_ListModelEvaluationSlices_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelEvaluations/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelEvaluations/main.go new file mode 100644 index 00000000000..cb974db8b63 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelEvaluations/main.go @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_ModelService_ListModelEvaluations_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + "google.golang.org/api/iterator" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ListModelEvaluationsRequest{ + // TODO: Fill request struct fields. + } + it := c.ListModelEvaluations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END aiplatform_v1_generated_ModelService_ListModelEvaluations_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModels/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModels/main.go new file mode 100644 index 00000000000..60bf93be08c --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModels/main.go @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_ModelService_ListModels_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + "google.golang.org/api/iterator" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ListModelsRequest{ + // TODO: Fill request struct fields. + } + it := c.ListModels(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END aiplatform_v1_generated_ModelService_ListModels_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/UpdateModel/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/UpdateModel/main.go new file mode 100644 index 00000000000..4939d0f44a4 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/UpdateModel/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_ModelService_UpdateModel_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.UpdateModelRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.UpdateModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_ModelService_UpdateModel_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/UploadModel/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/UploadModel/main.go new file mode 100644 index 00000000000..309e918d4c6 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/UploadModel/main.go @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_ModelService_UploadModel_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.UploadModelRequest{ + // TODO: Fill request struct fields. + } + op, err := c.UploadModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_ModelService_UploadModel_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CancelTrainingPipeline/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CancelTrainingPipeline/main.go new file mode 100644 index 00000000000..3ed2d1fbe54 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CancelTrainingPipeline/main.go @@ -0,0 +1,43 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_PipelineService_CancelTrainingPipeline_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewPipelineClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.CancelTrainingPipelineRequest{ + // TODO: Fill request struct fields. + } + err = c.CancelTrainingPipeline(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END aiplatform_v1_generated_PipelineService_CancelTrainingPipeline_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CreateTrainingPipeline/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CreateTrainingPipeline/main.go new file mode 100644 index 00000000000..8b68bd3f2ea --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CreateTrainingPipeline/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_PipelineService_CreateTrainingPipeline_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewPipelineClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.CreateTrainingPipelineRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.CreateTrainingPipeline(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_PipelineService_CreateTrainingPipeline_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/DeleteTrainingPipeline/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/DeleteTrainingPipeline/main.go new file mode 100644 index 00000000000..8acfd90f3e4 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/DeleteTrainingPipeline/main.go @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_PipelineService_DeleteTrainingPipeline_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewPipelineClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.DeleteTrainingPipelineRequest{ + // TODO: Fill request struct fields. + } + op, err := c.DeleteTrainingPipeline(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END aiplatform_v1_generated_PipelineService_DeleteTrainingPipeline_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetTrainingPipeline/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetTrainingPipeline/main.go new file mode 100644 index 00000000000..08fb0d19393 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetTrainingPipeline/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_PipelineService_GetTrainingPipeline_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewPipelineClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.GetTrainingPipelineRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetTrainingPipeline(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_PipelineService_GetTrainingPipeline_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListTrainingPipelines/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListTrainingPipelines/main.go new file mode 100644 index 00000000000..c64cc04ec7d --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListTrainingPipelines/main.go @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_PipelineService_ListTrainingPipelines_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + "google.golang.org/api/iterator" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewPipelineClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ListTrainingPipelinesRequest{ + // TODO: Fill request struct fields. + } + it := c.ListTrainingPipelines(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END aiplatform_v1_generated_PipelineService_ListTrainingPipelines_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/Predict/main.go b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/Predict/main.go new file mode 100644 index 00000000000..4f38ad3a052 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/Predict/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_PredictionService_Predict_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewPredictionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.PredictRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Predict(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_PredictionService_Predict_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/CreateSpecialistPool/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/CreateSpecialistPool/main.go new file mode 100644 index 00000000000..38deb001246 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/CreateSpecialistPool/main.go @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_SpecialistPoolService_CreateSpecialistPool_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewSpecialistPoolClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.CreateSpecialistPoolRequest{ + // TODO: Fill request struct fields. + } + op, err := c.CreateSpecialistPool(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_SpecialistPoolService_CreateSpecialistPool_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/DeleteSpecialistPool/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/DeleteSpecialistPool/main.go new file mode 100644 index 00000000000..b209734646e --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/DeleteSpecialistPool/main.go @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_SpecialistPoolService_DeleteSpecialistPool_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewSpecialistPoolClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.DeleteSpecialistPoolRequest{ + // TODO: Fill request struct fields. + } + op, err := c.DeleteSpecialistPool(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END aiplatform_v1_generated_SpecialistPoolService_DeleteSpecialistPool_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetSpecialistPool/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetSpecialistPool/main.go new file mode 100644 index 00000000000..e47edf65551 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetSpecialistPool/main.go @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_SpecialistPoolService_GetSpecialistPool_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewSpecialistPoolClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.GetSpecialistPoolRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetSpecialistPool(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_SpecialistPoolService_GetSpecialistPool_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/ListSpecialistPools/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/ListSpecialistPools/main.go new file mode 100644 index 00000000000..9006d4cf8dc --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/ListSpecialistPools/main.go @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_SpecialistPoolService_ListSpecialistPools_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + "google.golang.org/api/iterator" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewSpecialistPoolClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ListSpecialistPoolsRequest{ + // TODO: Fill request struct fields. + } + it := c.ListSpecialistPools(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END aiplatform_v1_generated_SpecialistPoolService_ListSpecialistPools_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/UpdateSpecialistPool/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/UpdateSpecialistPool/main.go new file mode 100644 index 00000000000..33703a3e16b --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/UpdateSpecialistPool/main.go @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START aiplatform_v1_generated_SpecialistPoolService_UpdateSpecialistPool_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "google.golang.org/genproto/googleapis/cloud/aiplatform/v1" +) + +func main() { + ctx := context.Background() + c, err := aiplatform.NewSpecialistPoolClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.UpdateSpecialistPoolRequest{ + // TODO: Fill request struct fields. + } + op, err := c.UpdateSpecialistPool(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_SpecialistPoolService_UpdateSpecialistPool_sync] diff --git a/internal/generated/snippets/apigeeconnect/apiv1/ConnectionClient/ListConnections/main.go b/internal/generated/snippets/apigeeconnect/apiv1/ConnectionClient/ListConnections/main.go new file mode 100644 index 00000000000..e4db13d2348 --- /dev/null +++ b/internal/generated/snippets/apigeeconnect/apiv1/ConnectionClient/ListConnections/main.go @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START apigeeconnect_v1_generated_ConnectionService_ListConnections_sync] + +package main + +import ( + "context" + + apigeeconnect "cloud.google.com/go/apigeeconnect/apiv1" + "google.golang.org/api/iterator" + apigeeconnectpb "google.golang.org/genproto/googleapis/cloud/apigeeconnect/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeconnect.NewConnectionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeconnectpb.ListConnectionsRequest{ + // TODO: Fill request struct fields. + } + it := c.ListConnections(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END apigeeconnect_v1_generated_ConnectionService_ListConnections_sync] diff --git a/internal/generated/snippets/apigeeconnect/apiv1/TetherClient/Egress/main.go b/internal/generated/snippets/apigeeconnect/apiv1/TetherClient/Egress/main.go new file mode 100644 index 00000000000..c839402ce0c --- /dev/null +++ b/internal/generated/snippets/apigeeconnect/apiv1/TetherClient/Egress/main.go @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START apigeeconnect_v1_generated_Tether_Egress_sync] + +package main + +import ( + "context" + "io" + + apigeeconnect "cloud.google.com/go/apigeeconnect/apiv1" + apigeeconnectpb "google.golang.org/genproto/googleapis/cloud/apigeeconnect/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeconnect.NewTetherClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + stream, err := c.Egress(ctx) + if err != nil { + // TODO: Handle error. + } + go func() { + reqs := []*apigeeconnectpb.EgressResponse{ + // TODO: Create requests. + } + for _, req := range reqs { + if err := stream.Send(req); err != nil { + // TODO: Handle error. + } + } + stream.CloseSend() + }() + for { + resp, err := stream.Recv() + if err == io.EOF { + break + } + if err != nil { + // TODO: handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END apigeeconnect_v1_generated_Tether_Egress_sync] diff --git a/internal/generated/snippets/go.mod b/internal/generated/snippets/go.mod index 9dff7f55bc4..23b8905a5e0 100644 --- a/internal/generated/snippets/go.mod +++ b/internal/generated/snippets/go.mod @@ -32,5 +32,5 @@ require ( cloud.google.com/go/pubsublite v0.83.0 cloud.google.com/go/spanner v0.83.0 google.golang.org/api v0.47.0 - google.golang.org/genproto v0.0.0-20210603172842-58e84a565dcf + google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08 ) diff --git a/internal/generated/snippets/go.sum b/internal/generated/snippets/go.sum index e5a33f6f9a4..71cf8ce3f96 100644 --- a/internal/generated/snippets/go.sum +++ b/internal/generated/snippets/go.sum @@ -144,9 +144,8 @@ google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98 google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= google.golang.org/genproto v0.0.0-20210601144548-a796c710e9b6/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= -google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= -google.golang.org/genproto v0.0.0-20210603172842-58e84a565dcf h1:3oVOonZQld/0ddUsMXCnkhem95RnnQEUMZQLJP1s3jQ= -google.golang.org/genproto v0.0.0-20210603172842-58e84a565dcf/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08 h1:pc16UedxnxXXtGxHCSUhafAoVHQZ0yXl8ZelMH4EETc= +google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= diff --git a/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/RunPipeline/main.go b/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/RunPipeline/main.go new file mode 100644 index 00000000000..e8b98490d51 --- /dev/null +++ b/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/RunPipeline/main.go @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// [START lifesciences_v2beta_generated_WorkflowsServiceV2Beta_RunPipeline_sync] + +package main + +import ( + "context" + + lifesciences "cloud.google.com/go/lifesciences/apiv2beta" + lifesciencespb "google.golang.org/genproto/googleapis/cloud/lifesciences/v2beta" +) + +func main() { + ctx := context.Background() + c, err := lifesciences.NewWorkflowsServiceV2BetaClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &lifesciencespb.RunPipelineRequest{ + // TODO: Fill request struct fields. + } + op, err := c.RunPipeline(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END lifesciences_v2beta_generated_WorkflowsServiceV2Beta_RunPipeline_sync] diff --git a/iot/apiv1/doc.go b/iot/apiv1/doc.go index 1ac9d470ccd..c1f4b2b05bf 100644 --- a/iot/apiv1/doc.go +++ b/iot/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/kms/apiv1/doc.go b/kms/apiv1/doc.go index 66a323fba09..c9ca76faed4 100644 --- a/kms/apiv1/doc.go +++ b/kms/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/language/apiv1/doc.go b/language/apiv1/doc.go index f55a78479d9..f6a4da04160 100644 --- a/language/apiv1/doc.go +++ b/language/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/language/apiv1beta2/doc.go b/language/apiv1beta2/doc.go index 04d5f75e1da..e5a337c4dc2 100644 --- a/language/apiv1beta2/doc.go +++ b/language/apiv1beta2/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/lifesciences/apiv2beta/doc.go b/lifesciences/apiv2beta/doc.go index 6d0623c5515..b3568c2723e 100644 --- a/lifesciences/apiv2beta/doc.go +++ b/lifesciences/apiv2beta/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210603" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/logging/apiv2/doc.go b/logging/apiv2/doc.go index 6d7933f8602..2da6e66fb19 100644 --- a/logging/apiv2/doc.go +++ b/logging/apiv2/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/longrunning/autogen/doc.go b/longrunning/autogen/doc.go index 9bdc59e5523..71757f6e6e8 100644 --- a/longrunning/autogen/doc.go +++ b/longrunning/autogen/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/managedidentities/apiv1/doc.go b/managedidentities/apiv1/doc.go index 2e6107d74b9..27669b94654 100644 --- a/managedidentities/apiv1/doc.go +++ b/managedidentities/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/mediatranslation/apiv1beta1/doc.go b/mediatranslation/apiv1beta1/doc.go index 4ec24660085..79d2e6201e0 100644 --- a/mediatranslation/apiv1beta1/doc.go +++ b/mediatranslation/apiv1beta1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/memcache/apiv1/doc.go b/memcache/apiv1/doc.go index 29e3c23e2bd..fe77c1c84fb 100644 --- a/memcache/apiv1/doc.go +++ b/memcache/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/memcache/apiv1beta2/doc.go b/memcache/apiv1beta2/doc.go index c49a00a191f..15eaa3761bd 100644 --- a/memcache/apiv1beta2/doc.go +++ b/memcache/apiv1beta2/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/metastore/apiv1/doc.go b/metastore/apiv1/doc.go index 9c6e2835055..d04d90e9e10 100644 --- a/metastore/apiv1/doc.go +++ b/metastore/apiv1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/metastore/apiv1alpha/doc.go b/metastore/apiv1alpha/doc.go index 01b54461b35..f1e3b3688ca 100644 --- a/metastore/apiv1alpha/doc.go +++ b/metastore/apiv1alpha/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/metastore/apiv1beta/doc.go b/metastore/apiv1beta/doc.go index 9e005bba8f4..ab42ed6975a 100644 --- a/metastore/apiv1beta/doc.go +++ b/metastore/apiv1beta/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/monitoring/apiv3/doc.go b/monitoring/apiv3/doc.go index ae08af1c147..bdaf6d57860 100644 --- a/monitoring/apiv3/doc.go +++ b/monitoring/apiv3/doc.go @@ -53,7 +53,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/monitoring/apiv3/v2/doc.go b/monitoring/apiv3/v2/doc.go index 67510769761..234077b9a99 100644 --- a/monitoring/apiv3/v2/doc.go +++ b/monitoring/apiv3/v2/doc.go @@ -53,7 +53,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/monitoring/dashboard/apiv1/doc.go b/monitoring/dashboard/apiv1/doc.go index 0c1be17bad9..4b21b86ff60 100644 --- a/monitoring/dashboard/apiv1/doc.go +++ b/monitoring/dashboard/apiv1/doc.go @@ -53,7 +53,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/networkconnectivity/apiv1alpha1/doc.go b/networkconnectivity/apiv1alpha1/doc.go index 15a30a86e25..86c1985d92e 100644 --- a/networkconnectivity/apiv1alpha1/doc.go +++ b/networkconnectivity/apiv1alpha1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/notebooks/apiv1beta1/doc.go b/notebooks/apiv1beta1/doc.go index c4086662e55..5881343c6d3 100644 --- a/notebooks/apiv1beta1/doc.go +++ b/notebooks/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/orgpolicy/apiv2/doc.go b/orgpolicy/apiv2/doc.go index 67af5655953..ab21e307b37 100644 --- a/orgpolicy/apiv2/doc.go +++ b/orgpolicy/apiv2/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/osconfig/agentendpoint/apiv1/doc.go b/osconfig/agentendpoint/apiv1/doc.go index 8068b9cb2ac..ca8aad8b4e5 100644 --- a/osconfig/agentendpoint/apiv1/doc.go +++ b/osconfig/agentendpoint/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/osconfig/agentendpoint/apiv1beta/doc.go b/osconfig/agentendpoint/apiv1beta/doc.go index 03e5fa7f1df..2a915fe03e5 100644 --- a/osconfig/agentendpoint/apiv1beta/doc.go +++ b/osconfig/agentendpoint/apiv1beta/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/osconfig/apiv1/doc.go b/osconfig/apiv1/doc.go index 6aca0bfe973..e70c9d51528 100644 --- a/osconfig/apiv1/doc.go +++ b/osconfig/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/osconfig/apiv1alpha/doc.go b/osconfig/apiv1alpha/doc.go index e0e84df8d1a..6173622d712 100644 --- a/osconfig/apiv1alpha/doc.go +++ b/osconfig/apiv1alpha/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/osconfig/apiv1beta/doc.go b/osconfig/apiv1beta/doc.go index 73aa6032ae9..eb594b7d10c 100644 --- a/osconfig/apiv1beta/doc.go +++ b/osconfig/apiv1beta/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/oslogin/apiv1/doc.go b/oslogin/apiv1/doc.go index 066269f6075..f0059297a58 100644 --- a/oslogin/apiv1/doc.go +++ b/oslogin/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/oslogin/apiv1beta/doc.go b/oslogin/apiv1beta/doc.go index d04e3492f90..d31e11c2ab7 100644 --- a/oslogin/apiv1beta/doc.go +++ b/oslogin/apiv1beta/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/phishingprotection/apiv1beta1/doc.go b/phishingprotection/apiv1beta1/doc.go index 3a35db88fbb..857471ec39d 100644 --- a/phishingprotection/apiv1beta1/doc.go +++ b/phishingprotection/apiv1beta1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/policytroubleshooter/apiv1/doc.go b/policytroubleshooter/apiv1/doc.go index 794bceb79bd..3661166a157 100644 --- a/policytroubleshooter/apiv1/doc.go +++ b/policytroubleshooter/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/privatecatalog/apiv1beta1/doc.go b/privatecatalog/apiv1beta1/doc.go index c46bc85e879..7d9f2518f46 100644 --- a/privatecatalog/apiv1beta1/doc.go +++ b/privatecatalog/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/pubsub/apiv1/doc.go b/pubsub/apiv1/doc.go index b45a7be95c7..e7f03374c5c 100644 --- a/pubsub/apiv1/doc.go +++ b/pubsub/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/pubsublite/apiv1/doc.go b/pubsublite/apiv1/doc.go index 7d0fb2c7f2a..71e1cbfbc08 100644 --- a/pubsublite/apiv1/doc.go +++ b/pubsublite/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/recaptchaenterprise/apiv1/doc.go b/recaptchaenterprise/apiv1/doc.go index 4a78380b623..8c773151b77 100644 --- a/recaptchaenterprise/apiv1/doc.go +++ b/recaptchaenterprise/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/recaptchaenterprise/apiv1beta1/doc.go b/recaptchaenterprise/apiv1beta1/doc.go index 61aa9e2fe14..f60551892f8 100644 --- a/recaptchaenterprise/apiv1beta1/doc.go +++ b/recaptchaenterprise/apiv1beta1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/recommendationengine/apiv1beta1/doc.go b/recommendationengine/apiv1beta1/doc.go index d56e509013f..93478045365 100644 --- a/recommendationengine/apiv1beta1/doc.go +++ b/recommendationengine/apiv1beta1/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/recommender/apiv1/doc.go b/recommender/apiv1/doc.go index 4a1ead7b952..0a64a9ad083 100644 --- a/recommender/apiv1/doc.go +++ b/recommender/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/recommender/apiv1beta1/doc.go b/recommender/apiv1beta1/doc.go index d7e7a1e87ca..87fb441d196 100644 --- a/recommender/apiv1beta1/doc.go +++ b/recommender/apiv1beta1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/redis/apiv1/doc.go b/redis/apiv1/doc.go index ad8cef68aff..3dfe7af906a 100644 --- a/redis/apiv1/doc.go +++ b/redis/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/redis/apiv1beta1/doc.go b/redis/apiv1beta1/doc.go index 058d4ec00f5..fd86955074c 100644 --- a/redis/apiv1beta1/doc.go +++ b/redis/apiv1beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/resourcemanager/apiv2/doc.go b/resourcemanager/apiv2/doc.go index 1012432e0d2..99468ccd7fd 100644 --- a/resourcemanager/apiv2/doc.go +++ b/resourcemanager/apiv2/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/resourcesettings/apiv1/doc.go b/resourcesettings/apiv1/doc.go index 1eee80121be..1ce3c076420 100644 --- a/resourcesettings/apiv1/doc.go +++ b/resourcesettings/apiv1/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/retail/apiv2/doc.go b/retail/apiv2/doc.go index ec6fe84fb45..917cc245041 100644 --- a/retail/apiv2/doc.go +++ b/retail/apiv2/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/scheduler/apiv1/doc.go b/scheduler/apiv1/doc.go index 73d0cdfa531..932bec9515c 100644 --- a/scheduler/apiv1/doc.go +++ b/scheduler/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/scheduler/apiv1beta1/doc.go b/scheduler/apiv1beta1/doc.go index b093d04fbed..9aa47203fc2 100644 --- a/scheduler/apiv1beta1/doc.go +++ b/scheduler/apiv1beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/secretmanager/apiv1/doc.go b/secretmanager/apiv1/doc.go index 17b810214f9..6a01c72afc3 100644 --- a/secretmanager/apiv1/doc.go +++ b/secretmanager/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/secretmanager/apiv1beta1/doc.go b/secretmanager/apiv1beta1/doc.go index db734e9e43c..5e5ac8373c1 100644 --- a/secretmanager/apiv1beta1/doc.go +++ b/secretmanager/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/security/privateca/apiv1/doc.go b/security/privateca/apiv1/doc.go index a3a0ed7dcb0..4462c108362 100644 --- a/security/privateca/apiv1/doc.go +++ b/security/privateca/apiv1/doc.go @@ -53,7 +53,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/security/privateca/apiv1beta1/doc.go b/security/privateca/apiv1beta1/doc.go index f4331d1e850..224c0986dda 100644 --- a/security/privateca/apiv1beta1/doc.go +++ b/security/privateca/apiv1beta1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/securitycenter/apiv1/doc.go b/securitycenter/apiv1/doc.go index 7a3a0e0053f..1696048db1a 100644 --- a/securitycenter/apiv1/doc.go +++ b/securitycenter/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/securitycenter/apiv1beta1/doc.go b/securitycenter/apiv1beta1/doc.go index b6c02725ba6..f16c2173452 100644 --- a/securitycenter/apiv1beta1/doc.go +++ b/securitycenter/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/securitycenter/apiv1p1beta1/doc.go b/securitycenter/apiv1p1beta1/doc.go index e3cfad313ea..536d355084b 100644 --- a/securitycenter/apiv1p1beta1/doc.go +++ b/securitycenter/apiv1p1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/securitycenter/settings/apiv1beta1/doc.go b/securitycenter/settings/apiv1beta1/doc.go index b9aaef0455f..5adf72663c0 100644 --- a/securitycenter/settings/apiv1beta1/doc.go +++ b/securitycenter/settings/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/servicecontrol/apiv1/doc.go b/servicecontrol/apiv1/doc.go index c586e72e85e..2a8c67cf089 100644 --- a/servicecontrol/apiv1/doc.go +++ b/servicecontrol/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/servicedirectory/apiv1/doc.go b/servicedirectory/apiv1/doc.go index dc9b3254349..5fb9ed83d86 100644 --- a/servicedirectory/apiv1/doc.go +++ b/servicedirectory/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/servicedirectory/apiv1beta1/doc.go b/servicedirectory/apiv1beta1/doc.go index f514e78bd72..e47911747b7 100644 --- a/servicedirectory/apiv1beta1/doc.go +++ b/servicedirectory/apiv1beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/servicemanagement/apiv1/doc.go b/servicemanagement/apiv1/doc.go index 83ceaf00ded..9b0f4c666c4 100644 --- a/servicemanagement/apiv1/doc.go +++ b/servicemanagement/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/serviceusage/apiv1/doc.go b/serviceusage/apiv1/doc.go index 75593de14cc..00117d9e839 100644 --- a/serviceusage/apiv1/doc.go +++ b/serviceusage/apiv1/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/shell/apiv1/doc.go b/shell/apiv1/doc.go index c1d03089c39..ab6b43c9143 100644 --- a/shell/apiv1/doc.go +++ b/shell/apiv1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/spanner/admin/database/apiv1/doc.go b/spanner/admin/database/apiv1/doc.go index 3bea53c6db0..df414699414 100644 --- a/spanner/admin/database/apiv1/doc.go +++ b/spanner/admin/database/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/spanner/admin/instance/apiv1/doc.go b/spanner/admin/instance/apiv1/doc.go index 3ce3c5162d4..f03c318e2ea 100644 --- a/spanner/admin/instance/apiv1/doc.go +++ b/spanner/admin/instance/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/spanner/apiv1/doc.go b/spanner/apiv1/doc.go index 31e47e9a55e..694f709f823 100644 --- a/spanner/apiv1/doc.go +++ b/spanner/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/speech/apiv1/doc.go b/speech/apiv1/doc.go index 8b0d5a82799..68f858845cc 100644 --- a/speech/apiv1/doc.go +++ b/speech/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/speech/apiv1p1beta1/doc.go b/speech/apiv1p1beta1/doc.go index 001c3f883c1..142f58862ee 100644 --- a/speech/apiv1p1beta1/doc.go +++ b/speech/apiv1p1beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/talent/apiv4/doc.go b/talent/apiv4/doc.go index f6cc33e509f..79dba4e1024 100644 --- a/talent/apiv4/doc.go +++ b/talent/apiv4/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/talent/apiv4beta1/doc.go b/talent/apiv4beta1/doc.go index 83070e2c623..0f495707755 100644 --- a/talent/apiv4beta1/doc.go +++ b/talent/apiv4beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/texttospeech/apiv1/doc.go b/texttospeech/apiv1/doc.go index d74bff5d81d..4a867e24801 100644 --- a/texttospeech/apiv1/doc.go +++ b/texttospeech/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/tpu/apiv1/doc.go b/tpu/apiv1/doc.go index f03f7f11d77..f0eb8ce0f24 100644 --- a/tpu/apiv1/doc.go +++ b/tpu/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/trace/apiv1/doc.go b/trace/apiv1/doc.go index ab49770941e..233540f6a7f 100644 --- a/trace/apiv1/doc.go +++ b/trace/apiv1/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/trace/apiv2/doc.go b/trace/apiv2/doc.go index 835cc5e2553..a6a31805fec 100644 --- a/trace/apiv2/doc.go +++ b/trace/apiv2/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/translate/apiv3/doc.go b/translate/apiv3/doc.go index c94db804857..33c9bdfa9cc 100644 --- a/translate/apiv3/doc.go +++ b/translate/apiv3/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/video/transcoder/apiv1beta1/doc.go b/video/transcoder/apiv1beta1/doc.go index 4e98159b5c9..7559d0720cc 100644 --- a/video/transcoder/apiv1beta1/doc.go +++ b/video/transcoder/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/videointelligence/apiv1/doc.go b/videointelligence/apiv1/doc.go index 6fa35ddf33c..c20b5984862 100644 --- a/videointelligence/apiv1/doc.go +++ b/videointelligence/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/videointelligence/apiv1beta2/doc.go b/videointelligence/apiv1beta2/doc.go index 6d9d04eda9b..0007cffe820 100644 --- a/videointelligence/apiv1beta2/doc.go +++ b/videointelligence/apiv1beta2/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/vision/apiv1/doc.go b/vision/apiv1/doc.go index 938d0d3f6cd..83610ee441c 100644 --- a/vision/apiv1/doc.go +++ b/vision/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/vision/apiv1p1beta1/doc.go b/vision/apiv1p1beta1/doc.go index b652ccae850..a21a98ff77d 100644 --- a/vision/apiv1p1beta1/doc.go +++ b/vision/apiv1p1beta1/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/vpcaccess/apiv1/doc.go b/vpcaccess/apiv1/doc.go index 49448ea7982..52fcc4b92bf 100644 --- a/vpcaccess/apiv1/doc.go +++ b/vpcaccess/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/webrisk/apiv1/doc.go b/webrisk/apiv1/doc.go index 50796ca9fd0..a1cfb90f285 100644 --- a/webrisk/apiv1/doc.go +++ b/webrisk/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/webrisk/apiv1beta1/doc.go b/webrisk/apiv1beta1/doc.go index 16896206a47..cccb1b658bd 100644 --- a/webrisk/apiv1beta1/doc.go +++ b/webrisk/apiv1beta1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/websecurityscanner/apiv1/doc.go b/websecurityscanner/apiv1/doc.go index 03cba98d99a..b5822cb944e 100644 --- a/websecurityscanner/apiv1/doc.go +++ b/websecurityscanner/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/workflows/apiv1beta/doc.go b/workflows/apiv1beta/doc.go index a196dac07d2..42becaf89c4 100644 --- a/workflows/apiv1beta/doc.go +++ b/workflows/apiv1beta/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/workflows/executions/apiv1beta/doc.go b/workflows/executions/apiv1beta/doc.go index a2afed93687..c3bde5912eb 100644 --- a/workflows/executions/apiv1beta/doc.go +++ b/workflows/executions/apiv1beta/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210604" +const versionClient = "20210605" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx)