From 090cc3ae0f8747a14cc904fc6d429e2f5379bb03 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 11 Oct 2021 14:38:36 -0700 Subject: [PATCH] chore(all): auto-regenerate gapics (#4972) 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/696 Changes: docs(clouddms): Fix NOT_STARTED state documentation in MigrationJob resource PiperOrigin-RevId: 402280922 Source-Link: https://github.com/googleapis/googleapis/commit/ae3a4a281d8f35d2327328e95da9dc9146716ae2 feat(securitycenter): Added vulnerability field to the finding feat: Added type field to the resource which is surfaced in NotificationMessage PiperOrigin-RevId: 401787368 Source-Link: https://github.com/googleapis/googleapis/commit/a7a3440103e7821aae4a3531756f2ad22a270e77 --- clouddms/apiv1/doc.go | 2 +- clouddms/go.mod | 2 +- clouddms/go.sum | 3 +- .../CloudDeployClient/ApproveRollout/main.go | 48 ++++++++++++++++ .../CreateDeliveryPipeline/main.go | 53 ++++++++++++++++++ .../CloudDeployClient/CreateRelease/main.go | 53 ++++++++++++++++++ .../CloudDeployClient/CreateRollout/main.go | 53 ++++++++++++++++++ .../CloudDeployClient/CreateTarget/main.go | 53 ++++++++++++++++++ .../DeleteDeliveryPipeline/main.go | 51 +++++++++++++++++ .../CloudDeployClient/DeleteTarget/main.go | 51 +++++++++++++++++ .../apiv1/CloudDeployClient/GetConfig/main.go | 48 ++++++++++++++++ .../GetDeliveryPipeline/main.go | 48 ++++++++++++++++ .../CloudDeployClient/GetRelease/main.go | 48 ++++++++++++++++ .../CloudDeployClient/GetRollout/main.go | 48 ++++++++++++++++ .../apiv1/CloudDeployClient/GetTarget/main.go | 48 ++++++++++++++++ .../ListDeliveryPipelines/main.go | 55 +++++++++++++++++++ .../CloudDeployClient/ListReleases/main.go | 55 +++++++++++++++++++ .../CloudDeployClient/ListRollouts/main.go | 55 +++++++++++++++++++ .../CloudDeployClient/ListTargets/main.go | 55 +++++++++++++++++++ .../UpdateDeliveryPipeline/main.go | 53 ++++++++++++++++++ .../CloudDeployClient/UpdateTarget/main.go | 53 ++++++++++++++++++ internal/generated/snippets/go.mod | 3 + internal/generated/snippets/go.sum | 6 -- securitycenter/apiv1/doc.go | 2 +- securitycenter/apiv1beta1/doc.go | 2 +- securitycenter/apiv1p1beta1/doc.go | 2 +- securitycenter/go.mod | 2 +- securitycenter/go.sum | 3 +- securitycenter/settings/apiv1beta1/doc.go | 2 +- 29 files changed, 942 insertions(+), 15 deletions(-) create mode 100644 internal/generated/snippets/deploy/apiv1/CloudDeployClient/ApproveRollout/main.go create mode 100644 internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateDeliveryPipeline/main.go create mode 100644 internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateRelease/main.go create mode 100644 internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateRollout/main.go create mode 100644 internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateTarget/main.go create mode 100644 internal/generated/snippets/deploy/apiv1/CloudDeployClient/DeleteDeliveryPipeline/main.go create mode 100644 internal/generated/snippets/deploy/apiv1/CloudDeployClient/DeleteTarget/main.go create mode 100644 internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetConfig/main.go create mode 100644 internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetDeliveryPipeline/main.go create mode 100644 internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetRelease/main.go create mode 100644 internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetRollout/main.go create mode 100644 internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetTarget/main.go create mode 100644 internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListDeliveryPipelines/main.go create mode 100644 internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListReleases/main.go create mode 100644 internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListRollouts/main.go create mode 100644 internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListTargets/main.go create mode 100644 internal/generated/snippets/deploy/apiv1/CloudDeployClient/UpdateDeliveryPipeline/main.go create mode 100644 internal/generated/snippets/deploy/apiv1/CloudDeployClient/UpdateTarget/main.go diff --git a/clouddms/apiv1/doc.go b/clouddms/apiv1/doc.go index dac19ccb4e6c..21b4a7c67084 100644 --- a/clouddms/apiv1/doc.go +++ b/clouddms/apiv1/doc.go @@ -91,7 +91,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210921" +const versionClient = "20211011" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/clouddms/go.mod b/clouddms/go.mod index 49f2a7a94634..3e8af0708db8 100644 --- a/clouddms/go.mod +++ b/clouddms/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go v0.97.0 github.com/googleapis/gax-go/v2 v2.1.1 google.golang.org/api v0.58.0 - google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0 + google.golang.org/genproto v0.0.0-20211008145708-270636b82663 google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/clouddms/go.sum b/clouddms/go.sum index 3fd8b5ffab72..e873bf39b81b 100644 --- a/clouddms/go.sum +++ b/clouddms/go.sum @@ -492,8 +492,9 @@ google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210917145530-b395a37504d4/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0 h1:5Tbluzus3QxoAJx4IefGt1W0HQZW4nuMrVk684jI74Q= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211008145708-270636b82663 h1:33YYJanAOLxgS7pGjzC1IUrFLpwN//bbgtnKYikOmQU= +google.golang.org/genproto v0.0.0-20211008145708-270636b82663/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ApproveRollout/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ApproveRollout/main.go new file mode 100644 index 000000000000..33f5e0a78471 --- /dev/null +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ApproveRollout/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. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START clouddeploy_v1_generated_CloudDeploy_ApproveRollout_sync] + +package main + +import ( + "context" + + deploy "cloud.google.com/go/deploy/apiv1" + deploypb "google.golang.org/genproto/googleapis/cloud/deploy/v1" +) + +func main() { + ctx := context.Background() + c, err := deploy.NewCloudDeployClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &deploypb.ApproveRolloutRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/deploy/v1#ApproveRolloutRequest. + } + resp, err := c.ApproveRollout(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END clouddeploy_v1_generated_CloudDeploy_ApproveRollout_sync] diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateDeliveryPipeline/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateDeliveryPipeline/main.go new file mode 100644 index 000000000000..0bcb04370e5c --- /dev/null +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateDeliveryPipeline/main.go @@ -0,0 +1,53 @@ +// 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. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START clouddeploy_v1_generated_CloudDeploy_CreateDeliveryPipeline_sync] + +package main + +import ( + "context" + + deploy "cloud.google.com/go/deploy/apiv1" + deploypb "google.golang.org/genproto/googleapis/cloud/deploy/v1" +) + +func main() { + ctx := context.Background() + c, err := deploy.NewCloudDeployClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &deploypb.CreateDeliveryPipelineRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/deploy/v1#CreateDeliveryPipelineRequest. + } + op, err := c.CreateDeliveryPipeline(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END clouddeploy_v1_generated_CloudDeploy_CreateDeliveryPipeline_sync] diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateRelease/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateRelease/main.go new file mode 100644 index 000000000000..64f4fedd8a4d --- /dev/null +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateRelease/main.go @@ -0,0 +1,53 @@ +// 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. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START clouddeploy_v1_generated_CloudDeploy_CreateRelease_sync] + +package main + +import ( + "context" + + deploy "cloud.google.com/go/deploy/apiv1" + deploypb "google.golang.org/genproto/googleapis/cloud/deploy/v1" +) + +func main() { + ctx := context.Background() + c, err := deploy.NewCloudDeployClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &deploypb.CreateReleaseRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/deploy/v1#CreateReleaseRequest. + } + op, err := c.CreateRelease(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END clouddeploy_v1_generated_CloudDeploy_CreateRelease_sync] diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateRollout/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateRollout/main.go new file mode 100644 index 000000000000..42576635be5c --- /dev/null +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateRollout/main.go @@ -0,0 +1,53 @@ +// 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. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START clouddeploy_v1_generated_CloudDeploy_CreateRollout_sync] + +package main + +import ( + "context" + + deploy "cloud.google.com/go/deploy/apiv1" + deploypb "google.golang.org/genproto/googleapis/cloud/deploy/v1" +) + +func main() { + ctx := context.Background() + c, err := deploy.NewCloudDeployClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &deploypb.CreateRolloutRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/deploy/v1#CreateRolloutRequest. + } + op, err := c.CreateRollout(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END clouddeploy_v1_generated_CloudDeploy_CreateRollout_sync] diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateTarget/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateTarget/main.go new file mode 100644 index 000000000000..e14c331b918b --- /dev/null +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateTarget/main.go @@ -0,0 +1,53 @@ +// 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. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START clouddeploy_v1_generated_CloudDeploy_CreateTarget_sync] + +package main + +import ( + "context" + + deploy "cloud.google.com/go/deploy/apiv1" + deploypb "google.golang.org/genproto/googleapis/cloud/deploy/v1" +) + +func main() { + ctx := context.Background() + c, err := deploy.NewCloudDeployClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &deploypb.CreateTargetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/deploy/v1#CreateTargetRequest. + } + op, err := c.CreateTarget(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END clouddeploy_v1_generated_CloudDeploy_CreateTarget_sync] diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/DeleteDeliveryPipeline/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/DeleteDeliveryPipeline/main.go new file mode 100644 index 000000000000..571cafeff5c9 --- /dev/null +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/DeleteDeliveryPipeline/main.go @@ -0,0 +1,51 @@ +// 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. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START clouddeploy_v1_generated_CloudDeploy_DeleteDeliveryPipeline_sync] + +package main + +import ( + "context" + + deploy "cloud.google.com/go/deploy/apiv1" + deploypb "google.golang.org/genproto/googleapis/cloud/deploy/v1" +) + +func main() { + ctx := context.Background() + c, err := deploy.NewCloudDeployClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &deploypb.DeleteDeliveryPipelineRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/deploy/v1#DeleteDeliveryPipelineRequest. + } + op, err := c.DeleteDeliveryPipeline(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END clouddeploy_v1_generated_CloudDeploy_DeleteDeliveryPipeline_sync] diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/DeleteTarget/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/DeleteTarget/main.go new file mode 100644 index 000000000000..2d5b6dce9315 --- /dev/null +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/DeleteTarget/main.go @@ -0,0 +1,51 @@ +// 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. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START clouddeploy_v1_generated_CloudDeploy_DeleteTarget_sync] + +package main + +import ( + "context" + + deploy "cloud.google.com/go/deploy/apiv1" + deploypb "google.golang.org/genproto/googleapis/cloud/deploy/v1" +) + +func main() { + ctx := context.Background() + c, err := deploy.NewCloudDeployClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &deploypb.DeleteTargetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/deploy/v1#DeleteTargetRequest. + } + op, err := c.DeleteTarget(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END clouddeploy_v1_generated_CloudDeploy_DeleteTarget_sync] diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetConfig/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetConfig/main.go new file mode 100644 index 000000000000..4bde6f717628 --- /dev/null +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetConfig/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. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START clouddeploy_v1_generated_CloudDeploy_GetConfig_sync] + +package main + +import ( + "context" + + deploy "cloud.google.com/go/deploy/apiv1" + deploypb "google.golang.org/genproto/googleapis/cloud/deploy/v1" +) + +func main() { + ctx := context.Background() + c, err := deploy.NewCloudDeployClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &deploypb.GetConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/deploy/v1#GetConfigRequest. + } + resp, err := c.GetConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END clouddeploy_v1_generated_CloudDeploy_GetConfig_sync] diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetDeliveryPipeline/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetDeliveryPipeline/main.go new file mode 100644 index 000000000000..1ca65cb67fb9 --- /dev/null +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetDeliveryPipeline/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. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START clouddeploy_v1_generated_CloudDeploy_GetDeliveryPipeline_sync] + +package main + +import ( + "context" + + deploy "cloud.google.com/go/deploy/apiv1" + deploypb "google.golang.org/genproto/googleapis/cloud/deploy/v1" +) + +func main() { + ctx := context.Background() + c, err := deploy.NewCloudDeployClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &deploypb.GetDeliveryPipelineRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/deploy/v1#GetDeliveryPipelineRequest. + } + resp, err := c.GetDeliveryPipeline(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END clouddeploy_v1_generated_CloudDeploy_GetDeliveryPipeline_sync] diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetRelease/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetRelease/main.go new file mode 100644 index 000000000000..e05957369e6a --- /dev/null +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetRelease/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. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START clouddeploy_v1_generated_CloudDeploy_GetRelease_sync] + +package main + +import ( + "context" + + deploy "cloud.google.com/go/deploy/apiv1" + deploypb "google.golang.org/genproto/googleapis/cloud/deploy/v1" +) + +func main() { + ctx := context.Background() + c, err := deploy.NewCloudDeployClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &deploypb.GetReleaseRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/deploy/v1#GetReleaseRequest. + } + resp, err := c.GetRelease(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END clouddeploy_v1_generated_CloudDeploy_GetRelease_sync] diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetRollout/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetRollout/main.go new file mode 100644 index 000000000000..41ffa7e0831a --- /dev/null +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetRollout/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. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START clouddeploy_v1_generated_CloudDeploy_GetRollout_sync] + +package main + +import ( + "context" + + deploy "cloud.google.com/go/deploy/apiv1" + deploypb "google.golang.org/genproto/googleapis/cloud/deploy/v1" +) + +func main() { + ctx := context.Background() + c, err := deploy.NewCloudDeployClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &deploypb.GetRolloutRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/deploy/v1#GetRolloutRequest. + } + resp, err := c.GetRollout(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END clouddeploy_v1_generated_CloudDeploy_GetRollout_sync] diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetTarget/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetTarget/main.go new file mode 100644 index 000000000000..e998add71c6e --- /dev/null +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetTarget/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. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START clouddeploy_v1_generated_CloudDeploy_GetTarget_sync] + +package main + +import ( + "context" + + deploy "cloud.google.com/go/deploy/apiv1" + deploypb "google.golang.org/genproto/googleapis/cloud/deploy/v1" +) + +func main() { + ctx := context.Background() + c, err := deploy.NewCloudDeployClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &deploypb.GetTargetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/deploy/v1#GetTargetRequest. + } + resp, err := c.GetTarget(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END clouddeploy_v1_generated_CloudDeploy_GetTarget_sync] diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListDeliveryPipelines/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListDeliveryPipelines/main.go new file mode 100644 index 000000000000..75925c1fe38f --- /dev/null +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListDeliveryPipelines/main.go @@ -0,0 +1,55 @@ +// 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. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START clouddeploy_v1_generated_CloudDeploy_ListDeliveryPipelines_sync] + +package main + +import ( + "context" + + deploy "cloud.google.com/go/deploy/apiv1" + "google.golang.org/api/iterator" + deploypb "google.golang.org/genproto/googleapis/cloud/deploy/v1" +) + +func main() { + ctx := context.Background() + c, err := deploy.NewCloudDeployClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &deploypb.ListDeliveryPipelinesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/deploy/v1#ListDeliveryPipelinesRequest. + } + it := c.ListDeliveryPipelines(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END clouddeploy_v1_generated_CloudDeploy_ListDeliveryPipelines_sync] diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListReleases/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListReleases/main.go new file mode 100644 index 000000000000..7916244ad023 --- /dev/null +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListReleases/main.go @@ -0,0 +1,55 @@ +// 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. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START clouddeploy_v1_generated_CloudDeploy_ListReleases_sync] + +package main + +import ( + "context" + + deploy "cloud.google.com/go/deploy/apiv1" + "google.golang.org/api/iterator" + deploypb "google.golang.org/genproto/googleapis/cloud/deploy/v1" +) + +func main() { + ctx := context.Background() + c, err := deploy.NewCloudDeployClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &deploypb.ListReleasesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/deploy/v1#ListReleasesRequest. + } + it := c.ListReleases(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END clouddeploy_v1_generated_CloudDeploy_ListReleases_sync] diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListRollouts/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListRollouts/main.go new file mode 100644 index 000000000000..2eb2a5f1c9a9 --- /dev/null +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListRollouts/main.go @@ -0,0 +1,55 @@ +// 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. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START clouddeploy_v1_generated_CloudDeploy_ListRollouts_sync] + +package main + +import ( + "context" + + deploy "cloud.google.com/go/deploy/apiv1" + "google.golang.org/api/iterator" + deploypb "google.golang.org/genproto/googleapis/cloud/deploy/v1" +) + +func main() { + ctx := context.Background() + c, err := deploy.NewCloudDeployClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &deploypb.ListRolloutsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/deploy/v1#ListRolloutsRequest. + } + it := c.ListRollouts(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END clouddeploy_v1_generated_CloudDeploy_ListRollouts_sync] diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListTargets/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListTargets/main.go new file mode 100644 index 000000000000..6160e875cb9a --- /dev/null +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListTargets/main.go @@ -0,0 +1,55 @@ +// 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. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START clouddeploy_v1_generated_CloudDeploy_ListTargets_sync] + +package main + +import ( + "context" + + deploy "cloud.google.com/go/deploy/apiv1" + "google.golang.org/api/iterator" + deploypb "google.golang.org/genproto/googleapis/cloud/deploy/v1" +) + +func main() { + ctx := context.Background() + c, err := deploy.NewCloudDeployClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &deploypb.ListTargetsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/deploy/v1#ListTargetsRequest. + } + it := c.ListTargets(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END clouddeploy_v1_generated_CloudDeploy_ListTargets_sync] diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/UpdateDeliveryPipeline/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/UpdateDeliveryPipeline/main.go new file mode 100644 index 000000000000..ec397fd174ff --- /dev/null +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/UpdateDeliveryPipeline/main.go @@ -0,0 +1,53 @@ +// 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. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START clouddeploy_v1_generated_CloudDeploy_UpdateDeliveryPipeline_sync] + +package main + +import ( + "context" + + deploy "cloud.google.com/go/deploy/apiv1" + deploypb "google.golang.org/genproto/googleapis/cloud/deploy/v1" +) + +func main() { + ctx := context.Background() + c, err := deploy.NewCloudDeployClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &deploypb.UpdateDeliveryPipelineRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/deploy/v1#UpdateDeliveryPipelineRequest. + } + op, err := c.UpdateDeliveryPipeline(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END clouddeploy_v1_generated_CloudDeploy_UpdateDeliveryPipeline_sync] diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/UpdateTarget/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/UpdateTarget/main.go new file mode 100644 index 000000000000..26e232d33f0f --- /dev/null +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/UpdateTarget/main.go @@ -0,0 +1,53 @@ +// 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. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START clouddeploy_v1_generated_CloudDeploy_UpdateTarget_sync] + +package main + +import ( + "context" + + deploy "cloud.google.com/go/deploy/apiv1" + deploypb "google.golang.org/genproto/googleapis/cloud/deploy/v1" +) + +func main() { + ctx := context.Background() + c, err := deploy.NewCloudDeployClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &deploypb.UpdateTargetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/deploy/v1#UpdateTargetRequest. + } + op, err := c.UpdateTarget(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END clouddeploy_v1_generated_CloudDeploy_UpdateTarget_sync] diff --git a/internal/generated/snippets/go.mod b/internal/generated/snippets/go.mod index def82d37ed49..83ed38fa2a32 100644 --- a/internal/generated/snippets/go.mod +++ b/internal/generated/snippets/go.mod @@ -54,6 +54,7 @@ require ( cloud.google.com/go/dataqna v0.1.0 cloud.google.com/go/datastore v0.1.0 cloud.google.com/go/datastream v0.1.0 + cloud.google.com/go/deploy v0.0.0-00010101000000-000000000000 cloud.google.com/go/dialogflow v0.1.0 cloud.google.com/go/dlp v0.1.0 cloud.google.com/go/documentai v0.1.0 @@ -314,3 +315,5 @@ replace cloud.google.com/go/networksecurity => ../../../networksecurity replace cloud.google.com/go/orchestration => ../../../orchestration replace cloud.google.com/go/filestore => ../../../filestore + +replace cloud.google.com/go/deploy => ../../../deploy diff --git a/internal/generated/snippets/go.sum b/internal/generated/snippets/go.sum index c5dd72de7e24..1dd9f3bae5c8 100644 --- a/internal/generated/snippets/go.sum +++ b/internal/generated/snippets/go.sum @@ -4,9 +4,6 @@ github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kd github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= @@ -52,7 +49,6 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= -github.com/google/pprof v0.0.0-20210804190019-f964ff605595/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= @@ -60,7 +56,6 @@ github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pf github.com/googleapis/gax-go/v2 v2.1.1 h1:dp3bWCh+PPO1zjRRiCSczJav13sBvG4UhNyVTa1KqdU= github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= @@ -111,7 +106,6 @@ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/securitycenter/apiv1/doc.go b/securitycenter/apiv1/doc.go index d05e0429a047..ddbb4052f02d 100644 --- a/securitycenter/apiv1/doc.go +++ b/securitycenter/apiv1/doc.go @@ -85,7 +85,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210921" +const versionClient = "20211011" 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 b1d8700e9acb..ffb00b8843c9 100644 --- a/securitycenter/apiv1beta1/doc.go +++ b/securitycenter/apiv1beta1/doc.go @@ -87,7 +87,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210921" +const versionClient = "20211011" 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 d099c0d8e903..6d9adbd70568 100644 --- a/securitycenter/apiv1p1beta1/doc.go +++ b/securitycenter/apiv1p1beta1/doc.go @@ -87,7 +87,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210921" +const versionClient = "20211011" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/securitycenter/go.mod b/securitycenter/go.mod index fa714c6049d8..3842f06193d6 100644 --- a/securitycenter/go.mod +++ b/securitycenter/go.mod @@ -7,7 +7,7 @@ require ( github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.1.1 google.golang.org/api v0.58.0 - google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0 + google.golang.org/genproto v0.0.0-20211008145708-270636b82663 google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 ) diff --git a/securitycenter/go.sum b/securitycenter/go.sum index 3fd8b5ffab72..e873bf39b81b 100644 --- a/securitycenter/go.sum +++ b/securitycenter/go.sum @@ -492,8 +492,9 @@ google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210917145530-b395a37504d4/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0 h1:5Tbluzus3QxoAJx4IefGt1W0HQZW4nuMrVk684jI74Q= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211008145708-270636b82663 h1:33YYJanAOLxgS7pGjzC1IUrFLpwN//bbgtnKYikOmQU= +google.golang.org/genproto v0.0.0-20211008145708-270636b82663/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/securitycenter/settings/apiv1beta1/doc.go b/securitycenter/settings/apiv1beta1/doc.go index e1f97672561c..1c2a18ba8382 100644 --- a/securitycenter/settings/apiv1beta1/doc.go +++ b/securitycenter/settings/apiv1beta1/doc.go @@ -87,7 +87,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210921" +const versionClient = "20211011" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx)