From 3db735c3c35ab3473ceb1948cf4da09b87728ef9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 4 Aug 2022 09:16:29 -0700 Subject: [PATCH] chore(all): auto-regenerate gapics (#6473) 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/872 Changes: feat(compute): Update Compute Engine API to revision 20220720 (#723) Source-Link: https://github.com/googleapis/googleapis/commit/60a0fa73c0dd0b0e5ace935fdaecdf2182a7bfd2 --- .../apiv1/instance_group_managers_client.go | 4 +- compute/apiv1/instances_client.go | 4 +- .../region_instance_group_managers_client.go | 4 +- compute/go.mod | 4 +- compute/go.sum | 8 +- go.mod | 4 +- go.sum | 8 +- ...t_metadata.google.cloud.aiplatform.v1.json | 2 +- ...adata.google.cloud.aiplatform.v1beta1.json | 2 +- ...tadata.google.analytics.admin.v1alpha.json | 2 +- .../CancelOperation/main.go | 46 + .../ProvisioningClient/CreateInstance/main.go | 53 + .../ProvisioningClient/DeleteInstance/main.go | 51 + .../DeleteOperation/main.go | 46 + .../ProvisioningClient/GetIamPolicy/main.go | 48 + .../ProvisioningClient/GetInstance/main.go | 48 + .../ProvisioningClient/GetLocation/main.go | 48 + .../ProvisioningClient/GetOperation/main.go | 48 + .../ProvisioningClient/ListLocations/main.go | 55 + .../ProvisioningClient/ListOperations/main.go | 55 + .../ProvisioningClient/SetIamPolicy/main.go | 48 + .../TestIamPermissions/main.go | 48 + .../RegistryClient/CancelOperation/main.go | 46 + .../apiv1/RegistryClient/CreateApi/main.go | 48 + .../CreateApiDeployment/main.go | 48 + .../RegistryClient/CreateApiSpec/main.go | 48 + .../RegistryClient/CreateApiVersion/main.go | 48 + .../RegistryClient/CreateArtifact/main.go | 48 + .../apiv1/RegistryClient/DeleteApi/main.go | 46 + .../DeleteApiDeployment/main.go | 46 + .../DeleteApiDeploymentRevision/main.go | 48 + .../RegistryClient/DeleteApiSpec/main.go | 46 + .../DeleteApiSpecRevision/main.go | 48 + .../RegistryClient/DeleteApiVersion/main.go | 46 + .../RegistryClient/DeleteArtifact/main.go | 46 + .../RegistryClient/DeleteOperation/main.go | 46 + .../apiv1/RegistryClient/GetApi/main.go | 48 + .../RegistryClient/GetApiDeployment/main.go | 48 + .../apiv1/RegistryClient/GetApiSpec/main.go | 48 + .../RegistryClient/GetApiSpecContents/main.go | 48 + .../RegistryClient/GetApiVersion/main.go | 48 + .../apiv1/RegistryClient/GetArtifact/main.go | 48 + .../GetArtifactContents/main.go | 48 + .../apiv1/RegistryClient/GetIamPolicy/main.go | 48 + .../apiv1/RegistryClient/GetLocation/main.go | 48 + .../apiv1/RegistryClient/GetOperation/main.go | 48 + .../ListApiDeploymentRevisions/main.go | 55 + .../RegistryClient/ListApiDeployments/main.go | 55 + .../ListApiSpecRevisions/main.go | 55 + .../apiv1/RegistryClient/ListApiSpecs/main.go | 55 + .../RegistryClient/ListApiVersions/main.go | 55 + .../apiv1/RegistryClient/ListApis/main.go | 55 + .../RegistryClient/ListArtifacts/main.go | 55 + .../RegistryClient/ListLocations/main.go | 55 + .../RegistryClient/ListOperations/main.go | 55 + .../RegistryClient/ReplaceArtifact/main.go | 48 + .../RollbackApiDeployment/main.go | 48 + .../RegistryClient/RollbackApiSpec/main.go | 48 + .../apiv1/RegistryClient/SetIamPolicy/main.go | 48 + .../TagApiDeploymentRevision/main.go | 48 + .../RegistryClient/TagApiSpecRevision/main.go | 48 + .../RegistryClient/TestIamPermissions/main.go | 48 + .../apiv1/RegistryClient/UpdateApi/main.go | 48 + .../UpdateApiDeployment/main.go | 48 + .../RegistryClient/UpdateApiSpec/main.go | 48 + .../RegistryClient/UpdateApiVersion/main.go | 48 + ...tadata.google.cloud.apigeeregistry.v1.json | 2582 +++++++++++++++++ ...ppet_metadata.google.cloud.compute.v1.json | 6 +- ...google.cloud.contactcenterinsights.v1.json | 2 +- .../snippet_metadata.google.container.v1.json | 2 +- ...tadata.google.cloud.dataform.v1alpha2.json | 2 +- ...t_metadata.google.cloud.dialogflow.v2.json | 2 +- ...etadata.google.cloud.dialogflow.cx.v3.json | 2 +- ...ta.google.cloud.dialogflow.cx.v3beta1.json | 2 +- internal/generated/snippets/go.mod | 10 +- internal/generated/snippets/go.sum | 9 +- internal/godocfx/go.mod | 4 +- internal/godocfx/go.sum | 8 +- 78 files changed, 5386 insertions(+), 42 deletions(-) create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/CancelOperation/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/CreateInstance/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/DeleteInstance/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/DeleteOperation/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetIamPolicy/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetInstance/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetLocation/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetOperation/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/ListLocations/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/ListOperations/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/SetIamPolicy/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CancelOperation/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApi/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiDeployment/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiSpec/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiVersion/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateArtifact/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApi/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiDeployment/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiDeploymentRevision/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiSpec/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiSpecRevision/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiVersion/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteArtifact/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteOperation/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApi/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiDeployment/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiSpec/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiSpecContents/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiVersion/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetArtifact/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetArtifactContents/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetIamPolicy/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetLocation/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetOperation/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiDeploymentRevisions/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiDeployments/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiSpecRevisions/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiSpecs/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiVersions/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApis/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListArtifacts/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListLocations/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListOperations/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ReplaceArtifact/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/RollbackApiDeployment/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/RollbackApiSpec/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/SetIamPolicy/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TagApiDeploymentRevision/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TagApiSpecRevision/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApi/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiDeployment/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiSpec/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiVersion/main.go create mode 100644 internal/generated/snippets/apigeeregistry/apiv1/snippet_metadata.google.cloud.apigeeregistry.v1.json diff --git a/compute/apiv1/instance_group_managers_client.go b/compute/apiv1/instance_group_managers_client.go index 5e7560ca2c0..87f44c6be86 100644 --- a/compute/apiv1/instance_group_managers_client.go +++ b/compute/apiv1/instance_group_managers_client.go @@ -206,7 +206,7 @@ func (c *InstanceGroupManagersClient) ListErrors(ctx context.Context, req *compu return c.internalClient.ListErrors(ctx, req, opts...) } -// ListManagedInstances lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. +// ListManagedInstances lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The pageToken query parameter is supported only in the alpha and beta API and only if the group’s listManagedInstancesResults field is set to PAGINATED. func (c *InstanceGroupManagersClient) ListManagedInstances(ctx context.Context, req *computepb.ListManagedInstancesInstanceGroupManagersRequest, opts ...gax.CallOption) *ManagedInstanceIterator { return c.internalClient.ListManagedInstances(ctx, req, opts...) } @@ -1191,7 +1191,7 @@ func (c *instanceGroupManagersRESTClient) ListErrors(ctx context.Context, req *c return it } -// ListManagedInstances lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. +// ListManagedInstances lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The pageToken query parameter is supported only in the alpha and beta API and only if the group’s listManagedInstancesResults field is set to PAGINATED. func (c *instanceGroupManagersRESTClient) ListManagedInstances(ctx context.Context, req *computepb.ListManagedInstancesInstanceGroupManagersRequest, opts ...gax.CallOption) *ManagedInstanceIterator { it := &ManagedInstanceIterator{} req = proto.Clone(req).(*computepb.ListManagedInstancesInstanceGroupManagersRequest) diff --git a/compute/apiv1/instances_client.go b/compute/apiv1/instances_client.go index 023966dffff..c7c681cd372 100644 --- a/compute/apiv1/instances_client.go +++ b/compute/apiv1/instances_client.go @@ -246,7 +246,7 @@ func (c *InstancesClient) AttachDisk(ctx context.Context, req *computepb.AttachD return c.internalClient.AttachDisk(ctx, req, opts...) } -// BulkInsert creates multiple instances. Count specifies the number of instances to create. +// BulkInsert creates multiple instances. Count specifies the number of instances to create. For more information, see About bulk creation of VMs. func (c *InstancesClient) BulkInsert(ctx context.Context, req *computepb.BulkInsertInstanceRequest, opts ...gax.CallOption) (*Operation, error) { return c.internalClient.BulkInsert(ctx, req, opts...) } @@ -871,7 +871,7 @@ func (c *instancesRESTClient) AttachDisk(ctx context.Context, req *computepb.Att return op, nil } -// BulkInsert creates multiple instances. Count specifies the number of instances to create. +// BulkInsert creates multiple instances. Count specifies the number of instances to create. For more information, see About bulk creation of VMs. func (c *instancesRESTClient) BulkInsert(ctx context.Context, req *computepb.BulkInsertInstanceRequest, opts ...gax.CallOption) (*Operation, error) { m := protojson.MarshalOptions{AllowPartial: true} body := req.GetBulkInsertInstanceResourceResource() diff --git a/compute/apiv1/region_instance_group_managers_client.go b/compute/apiv1/region_instance_group_managers_client.go index 188c487e68a..ee6a798a033 100644 --- a/compute/apiv1/region_instance_group_managers_client.go +++ b/compute/apiv1/region_instance_group_managers_client.go @@ -197,7 +197,7 @@ func (c *RegionInstanceGroupManagersClient) ListErrors(ctx context.Context, req return c.internalClient.ListErrors(ctx, req, opts...) } -// ListManagedInstances lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. +// ListManagedInstances lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The pageToken query parameter is supported only in the alpha and beta API and only if the group’s listManagedInstancesResults field is set to PAGINATED. func (c *RegionInstanceGroupManagersClient) ListManagedInstances(ctx context.Context, req *computepb.ListManagedInstancesRegionInstanceGroupManagersRequest, opts ...gax.CallOption) *ManagedInstanceIterator { return c.internalClient.ListManagedInstances(ctx, req, opts...) } @@ -1076,7 +1076,7 @@ func (c *regionInstanceGroupManagersRESTClient) ListErrors(ctx context.Context, return it } -// ListManagedInstances lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. +// ListManagedInstances lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The pageToken query parameter is supported only in the alpha and beta API and only if the group’s listManagedInstancesResults field is set to PAGINATED. func (c *regionInstanceGroupManagersRESTClient) ListManagedInstances(ctx context.Context, req *computepb.ListManagedInstancesRegionInstanceGroupManagersRequest, opts ...gax.CallOption) *ManagedInstanceIterator { it := &ManagedInstanceIterator{} req = proto.Clone(req).(*computepb.ListManagedInstancesRegionInstanceGroupManagersRequest) diff --git a/compute/go.mod b/compute/go.mod index ac0a78128ed..ba65685f048 100644 --- a/compute/go.mod +++ b/compute/go.mod @@ -6,8 +6,8 @@ require ( cloud.google.com/go v0.102.1 github.com/google/go-cmp v0.5.8 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.90.0 - google.golang.org/genproto v0.0.0-20220802133213-ce4fa296bf78 + google.golang.org/api v0.91.0 + google.golang.org/genproto v0.0.0-20220804142021-4e6b2dfa6612 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.0 ) diff --git a/compute/go.sum b/compute/go.sum index 89d2eca151f..c1071d61c67 100644 --- a/compute/go.sum +++ b/compute/go.sum @@ -498,8 +498,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.90.0 h1:WMnUWAvihIClUYFNeFA69VTuR3duKS3IalMGDQcLvq8= -google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.91.0 h1:731+JzuwaJoZXRQGmPoBiV+SrsAfUaIkdMCWTcQNPyA= +google.golang.org/api v0.91.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -588,8 +588,8 @@ google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljW google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220802133213-ce4fa296bf78 h1:QntLWYqZeuBtJkth3m/6DLznnI0AHJr+AgJXvVh/izw= -google.golang.org/genproto v0.0.0-20220802133213-ce4fa296bf78/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= +google.golang.org/genproto v0.0.0-20220804142021-4e6b2dfa6612 h1:NX3L5YesD5qgxxrPHdKqHH38Ao0AG6poRXG+JljPsGU= +google.golang.org/genproto v0.0.0-20220804142021-4e6b2dfa6612/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= 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/go.mod b/go.mod index 862faa2856d..463cd1156a3 100644 --- a/go.mod +++ b/go.mod @@ -12,8 +12,8 @@ require ( go.opencensus.io v0.23.0 golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f - google.golang.org/api v0.90.0 - google.golang.org/genproto v0.0.0-20220802133213-ce4fa296bf78 + google.golang.org/api v0.91.0 + google.golang.org/genproto v0.0.0-20220804142021-4e6b2dfa6612 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.0 ) diff --git a/go.sum b/go.sum index 0b6259e62f1..ba2ffba7bc9 100644 --- a/go.sum +++ b/go.sum @@ -510,8 +510,8 @@ google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6r google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= -google.golang.org/api v0.90.0 h1:WMnUWAvihIClUYFNeFA69VTuR3duKS3IalMGDQcLvq8= -google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.91.0 h1:731+JzuwaJoZXRQGmPoBiV+SrsAfUaIkdMCWTcQNPyA= +google.golang.org/api v0.91.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -600,8 +600,8 @@ google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljW google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220802133213-ce4fa296bf78 h1:QntLWYqZeuBtJkth3m/6DLznnI0AHJr+AgJXvVh/izw= -google.golang.org/genproto v0.0.0-20220802133213-ce4fa296bf78/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= +google.golang.org/genproto v0.0.0-20220804142021-4e6b2dfa6612 h1:NX3L5YesD5qgxxrPHdKqHH38Ao0AG6poRXG+JljPsGU= +google.golang.org/genproto v0.0.0-20220804142021-4e6b2dfa6612/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= 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/aiplatform/apiv1/snippet_metadata.google.cloud.aiplatform.v1.json b/internal/generated/snippets/aiplatform/apiv1/snippet_metadata.google.cloud.aiplatform.v1.json index 8d9e5eba1ac..c08137ed161 100644 --- a/internal/generated/snippets/aiplatform/apiv1/snippet_metadata.google.cloud.aiplatform.v1.json +++ b/internal/generated/snippets/aiplatform/apiv1/snippet_metadata.google.cloud.aiplatform.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/aiplatform/apiv1", - "version": "1.15.0", + "version": "1.16.0", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json b/internal/generated/snippets/aiplatform/apiv1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json index 0715f63df7b..25cac36f6be 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json +++ b/internal/generated/snippets/aiplatform/apiv1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/aiplatform/apiv1beta1", - "version": "1.15.0", + "version": "1.16.0", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/snippet_metadata.google.analytics.admin.v1alpha.json b/internal/generated/snippets/analytics/admin/apiv1alpha/snippet_metadata.google.analytics.admin.v1alpha.json index 21e2b994c69..8c549026f99 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/snippet_metadata.google.analytics.admin.v1alpha.json +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/snippet_metadata.google.analytics.admin.v1alpha.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/analytics/admin/apiv1alpha", - "version": "0.8.0", + "version": "0.8.1", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/CancelOperation/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/CancelOperation/main.go new file mode 100644 index 00000000000..4a1766935d4 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/CancelOperation/main.go @@ -0,0 +1,46 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Provisioning_CancelOperation_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewProvisioningClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END apigeeregistry_v1_generated_Provisioning_CancelOperation_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/CreateInstance/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/CreateInstance/main.go new file mode 100644 index 00000000000..fde853160ce --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/CreateInstance/main.go @@ -0,0 +1,53 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Provisioning_CreateInstance_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewProvisioningClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.CreateInstanceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#CreateInstanceRequest. + } + op, err := c.CreateInstance(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Provisioning_CreateInstance_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/DeleteInstance/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/DeleteInstance/main.go new file mode 100644 index 00000000000..968ab4b5a88 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/DeleteInstance/main.go @@ -0,0 +1,51 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Provisioning_DeleteInstance_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewProvisioningClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.DeleteInstanceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#DeleteInstanceRequest. + } + op, err := c.DeleteInstance(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END apigeeregistry_v1_generated_Provisioning_DeleteInstance_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/DeleteOperation/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/DeleteOperation/main.go new file mode 100644 index 00000000000..c2d6dd2dc74 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/DeleteOperation/main.go @@ -0,0 +1,46 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Provisioning_DeleteOperation_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewProvisioningClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END apigeeregistry_v1_generated_Provisioning_DeleteOperation_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetIamPolicy/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetIamPolicy/main.go new file mode 100644 index 00000000000..7e76ade73ac --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetIamPolicy/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Provisioning_GetIamPolicy_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewProvisioningClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.GetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#GetIamPolicyRequest. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Provisioning_GetIamPolicy_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetInstance/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetInstance/main.go new file mode 100644 index 00000000000..27d9a66294d --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetInstance/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Provisioning_GetInstance_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewProvisioningClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.GetInstanceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#GetInstanceRequest. + } + resp, err := c.GetInstance(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Provisioning_GetInstance_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetLocation/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetLocation/main.go new file mode 100644 index 00000000000..5d269b2c018 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetLocation/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Provisioning_GetLocation_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewProvisioningClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Provisioning_GetLocation_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetOperation/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetOperation/main.go new file mode 100644 index 00000000000..0e0ace57343 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetOperation/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Provisioning_GetOperation_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewProvisioningClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Provisioning_GetOperation_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/ListLocations/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/ListLocations/main.go new file mode 100644 index 00000000000..1501173d5c9 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/ListLocations/main.go @@ -0,0 +1,55 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Provisioning_ListLocations_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + "google.golang.org/api/iterator" + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewProvisioningClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END apigeeregistry_v1_generated_Provisioning_ListLocations_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/ListOperations/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/ListOperations/main.go new file mode 100644 index 00000000000..774df32ceb3 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/ListOperations/main.go @@ -0,0 +1,55 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Provisioning_ListOperations_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + "google.golang.org/api/iterator" + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewProvisioningClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END apigeeregistry_v1_generated_Provisioning_ListOperations_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/SetIamPolicy/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/SetIamPolicy/main.go new file mode 100644 index 00000000000..ae217184e2d --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/SetIamPolicy/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Provisioning_SetIamPolicy_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewProvisioningClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.SetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#SetIamPolicyRequest. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Provisioning_SetIamPolicy_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/TestIamPermissions/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..5c81b0a1a82 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/TestIamPermissions/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Provisioning_TestIamPermissions_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewProvisioningClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.TestIamPermissionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#TestIamPermissionsRequest. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Provisioning_TestIamPermissions_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CancelOperation/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CancelOperation/main.go new file mode 100644 index 00000000000..64066492d7e --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CancelOperation/main.go @@ -0,0 +1,46 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_CancelOperation_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END apigeeregistry_v1_generated_Registry_CancelOperation_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApi/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApi/main.go new file mode 100644 index 00000000000..2e149ea8516 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApi/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_CreateApi_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.CreateApiRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#CreateApiRequest. + } + resp, err := c.CreateApi(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_CreateApi_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiDeployment/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiDeployment/main.go new file mode 100644 index 00000000000..2344488a379 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiDeployment/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_CreateApiDeployment_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.CreateApiDeploymentRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#CreateApiDeploymentRequest. + } + resp, err := c.CreateApiDeployment(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_CreateApiDeployment_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiSpec/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiSpec/main.go new file mode 100644 index 00000000000..d57b77b8d9f --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiSpec/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_CreateApiSpec_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.CreateApiSpecRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#CreateApiSpecRequest. + } + resp, err := c.CreateApiSpec(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_CreateApiSpec_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiVersion/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiVersion/main.go new file mode 100644 index 00000000000..a413d723929 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiVersion/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_CreateApiVersion_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.CreateApiVersionRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#CreateApiVersionRequest. + } + resp, err := c.CreateApiVersion(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_CreateApiVersion_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateArtifact/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateArtifact/main.go new file mode 100644 index 00000000000..ef324bc47d3 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateArtifact/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_CreateArtifact_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.CreateArtifactRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#CreateArtifactRequest. + } + resp, err := c.CreateArtifact(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_CreateArtifact_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApi/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApi/main.go new file mode 100644 index 00000000000..ef4912f9c45 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApi/main.go @@ -0,0 +1,46 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_DeleteApi_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.DeleteApiRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#DeleteApiRequest. + } + err = c.DeleteApi(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END apigeeregistry_v1_generated_Registry_DeleteApi_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiDeployment/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiDeployment/main.go new file mode 100644 index 00000000000..f2988abfbc4 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiDeployment/main.go @@ -0,0 +1,46 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_DeleteApiDeployment_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.DeleteApiDeploymentRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#DeleteApiDeploymentRequest. + } + err = c.DeleteApiDeployment(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END apigeeregistry_v1_generated_Registry_DeleteApiDeployment_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiDeploymentRevision/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiDeploymentRevision/main.go new file mode 100644 index 00000000000..2bc855823c8 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiDeploymentRevision/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_DeleteApiDeploymentRevision_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.DeleteApiDeploymentRevisionRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#DeleteApiDeploymentRevisionRequest. + } + resp, err := c.DeleteApiDeploymentRevision(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_DeleteApiDeploymentRevision_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiSpec/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiSpec/main.go new file mode 100644 index 00000000000..58dc9d6ab82 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiSpec/main.go @@ -0,0 +1,46 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_DeleteApiSpec_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.DeleteApiSpecRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#DeleteApiSpecRequest. + } + err = c.DeleteApiSpec(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END apigeeregistry_v1_generated_Registry_DeleteApiSpec_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiSpecRevision/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiSpecRevision/main.go new file mode 100644 index 00000000000..a227c04e888 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiSpecRevision/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_DeleteApiSpecRevision_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.DeleteApiSpecRevisionRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#DeleteApiSpecRevisionRequest. + } + resp, err := c.DeleteApiSpecRevision(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_DeleteApiSpecRevision_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiVersion/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiVersion/main.go new file mode 100644 index 00000000000..f0d70c767c8 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiVersion/main.go @@ -0,0 +1,46 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_DeleteApiVersion_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.DeleteApiVersionRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#DeleteApiVersionRequest. + } + err = c.DeleteApiVersion(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END apigeeregistry_v1_generated_Registry_DeleteApiVersion_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteArtifact/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteArtifact/main.go new file mode 100644 index 00000000000..91c020335f8 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteArtifact/main.go @@ -0,0 +1,46 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_DeleteArtifact_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.DeleteArtifactRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#DeleteArtifactRequest. + } + err = c.DeleteArtifact(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END apigeeregistry_v1_generated_Registry_DeleteArtifact_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteOperation/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteOperation/main.go new file mode 100644 index 00000000000..4ee21667a7f --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteOperation/main.go @@ -0,0 +1,46 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_DeleteOperation_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END apigeeregistry_v1_generated_Registry_DeleteOperation_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApi/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApi/main.go new file mode 100644 index 00000000000..c4a3f2ef63d --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApi/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_GetApi_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.GetApiRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#GetApiRequest. + } + resp, err := c.GetApi(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_GetApi_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiDeployment/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiDeployment/main.go new file mode 100644 index 00000000000..c1edc29af67 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiDeployment/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_GetApiDeployment_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.GetApiDeploymentRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#GetApiDeploymentRequest. + } + resp, err := c.GetApiDeployment(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_GetApiDeployment_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiSpec/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiSpec/main.go new file mode 100644 index 00000000000..f49aa49da46 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiSpec/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_GetApiSpec_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.GetApiSpecRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#GetApiSpecRequest. + } + resp, err := c.GetApiSpec(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_GetApiSpec_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiSpecContents/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiSpecContents/main.go new file mode 100644 index 00000000000..b575e70b845 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiSpecContents/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_GetApiSpecContents_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.GetApiSpecContentsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#GetApiSpecContentsRequest. + } + resp, err := c.GetApiSpecContents(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_GetApiSpecContents_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiVersion/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiVersion/main.go new file mode 100644 index 00000000000..f2f2280d64d --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiVersion/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_GetApiVersion_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.GetApiVersionRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#GetApiVersionRequest. + } + resp, err := c.GetApiVersion(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_GetApiVersion_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetArtifact/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetArtifact/main.go new file mode 100644 index 00000000000..34c6bfa898c --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetArtifact/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_GetArtifact_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.GetArtifactRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#GetArtifactRequest. + } + resp, err := c.GetArtifact(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_GetArtifact_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetArtifactContents/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetArtifactContents/main.go new file mode 100644 index 00000000000..f1a1110ea49 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetArtifactContents/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_GetArtifactContents_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.GetArtifactContentsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#GetArtifactContentsRequest. + } + resp, err := c.GetArtifactContents(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_GetArtifactContents_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetIamPolicy/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetIamPolicy/main.go new file mode 100644 index 00000000000..ff7c63f17dd --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetIamPolicy/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_GetIamPolicy_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.GetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#GetIamPolicyRequest. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_GetIamPolicy_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetLocation/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetLocation/main.go new file mode 100644 index 00000000000..feabd066534 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetLocation/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_GetLocation_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_GetLocation_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetOperation/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetOperation/main.go new file mode 100644 index 00000000000..545abc8df26 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetOperation/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_GetOperation_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_GetOperation_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiDeploymentRevisions/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiDeploymentRevisions/main.go new file mode 100644 index 00000000000..e71abc725cd --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiDeploymentRevisions/main.go @@ -0,0 +1,55 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_ListApiDeploymentRevisions_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + "google.golang.org/api/iterator" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.ListApiDeploymentRevisionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#ListApiDeploymentRevisionsRequest. + } + it := c.ListApiDeploymentRevisions(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END apigeeregistry_v1_generated_Registry_ListApiDeploymentRevisions_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiDeployments/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiDeployments/main.go new file mode 100644 index 00000000000..7ba75f98f67 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiDeployments/main.go @@ -0,0 +1,55 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_ListApiDeployments_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + "google.golang.org/api/iterator" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.ListApiDeploymentsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#ListApiDeploymentsRequest. + } + it := c.ListApiDeployments(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END apigeeregistry_v1_generated_Registry_ListApiDeployments_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiSpecRevisions/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiSpecRevisions/main.go new file mode 100644 index 00000000000..7db75c51f12 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiSpecRevisions/main.go @@ -0,0 +1,55 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_ListApiSpecRevisions_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + "google.golang.org/api/iterator" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.ListApiSpecRevisionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#ListApiSpecRevisionsRequest. + } + it := c.ListApiSpecRevisions(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END apigeeregistry_v1_generated_Registry_ListApiSpecRevisions_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiSpecs/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiSpecs/main.go new file mode 100644 index 00000000000..eb3ed232b9d --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiSpecs/main.go @@ -0,0 +1,55 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_ListApiSpecs_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + "google.golang.org/api/iterator" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.ListApiSpecsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#ListApiSpecsRequest. + } + it := c.ListApiSpecs(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END apigeeregistry_v1_generated_Registry_ListApiSpecs_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiVersions/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiVersions/main.go new file mode 100644 index 00000000000..e7f095bfa01 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiVersions/main.go @@ -0,0 +1,55 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_ListApiVersions_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + "google.golang.org/api/iterator" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.ListApiVersionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#ListApiVersionsRequest. + } + it := c.ListApiVersions(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END apigeeregistry_v1_generated_Registry_ListApiVersions_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApis/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApis/main.go new file mode 100644 index 00000000000..4aeb46fec4d --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApis/main.go @@ -0,0 +1,55 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_ListApis_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + "google.golang.org/api/iterator" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.ListApisRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#ListApisRequest. + } + it := c.ListApis(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END apigeeregistry_v1_generated_Registry_ListApis_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListArtifacts/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListArtifacts/main.go new file mode 100644 index 00000000000..02bedd12f60 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListArtifacts/main.go @@ -0,0 +1,55 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_ListArtifacts_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + "google.golang.org/api/iterator" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.ListArtifactsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#ListArtifactsRequest. + } + it := c.ListArtifacts(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END apigeeregistry_v1_generated_Registry_ListArtifacts_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListLocations/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListLocations/main.go new file mode 100644 index 00000000000..01a528827a4 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListLocations/main.go @@ -0,0 +1,55 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_ListLocations_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + "google.golang.org/api/iterator" + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END apigeeregistry_v1_generated_Registry_ListLocations_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListOperations/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListOperations/main.go new file mode 100644 index 00000000000..0998fda1792 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListOperations/main.go @@ -0,0 +1,55 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_ListOperations_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + "google.golang.org/api/iterator" + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END apigeeregistry_v1_generated_Registry_ListOperations_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ReplaceArtifact/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ReplaceArtifact/main.go new file mode 100644 index 00000000000..d2f631088a9 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ReplaceArtifact/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_ReplaceArtifact_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.ReplaceArtifactRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#ReplaceArtifactRequest. + } + resp, err := c.ReplaceArtifact(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_ReplaceArtifact_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/RollbackApiDeployment/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/RollbackApiDeployment/main.go new file mode 100644 index 00000000000..f0845cea9a3 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/RollbackApiDeployment/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_RollbackApiDeployment_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.RollbackApiDeploymentRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#RollbackApiDeploymentRequest. + } + resp, err := c.RollbackApiDeployment(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_RollbackApiDeployment_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/RollbackApiSpec/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/RollbackApiSpec/main.go new file mode 100644 index 00000000000..fd00e1f67d9 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/RollbackApiSpec/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_RollbackApiSpec_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.RollbackApiSpecRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#RollbackApiSpecRequest. + } + resp, err := c.RollbackApiSpec(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_RollbackApiSpec_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/SetIamPolicy/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/SetIamPolicy/main.go new file mode 100644 index 00000000000..2c5a1f6a6fe --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/SetIamPolicy/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_SetIamPolicy_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.SetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#SetIamPolicyRequest. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_SetIamPolicy_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TagApiDeploymentRevision/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TagApiDeploymentRevision/main.go new file mode 100644 index 00000000000..b1b0df341ef --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TagApiDeploymentRevision/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_TagApiDeploymentRevision_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.TagApiDeploymentRevisionRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#TagApiDeploymentRevisionRequest. + } + resp, err := c.TagApiDeploymentRevision(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_TagApiDeploymentRevision_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TagApiSpecRevision/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TagApiSpecRevision/main.go new file mode 100644 index 00000000000..00f6ae9d321 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TagApiSpecRevision/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_TagApiSpecRevision_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.TagApiSpecRevisionRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#TagApiSpecRevisionRequest. + } + resp, err := c.TagApiSpecRevision(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_TagApiSpecRevision_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TestIamPermissions/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..3bb24e574a8 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TestIamPermissions/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_TestIamPermissions_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.TestIamPermissionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#TestIamPermissionsRequest. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_TestIamPermissions_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApi/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApi/main.go new file mode 100644 index 00000000000..aed4cd131fe --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApi/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_UpdateApi_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.UpdateApiRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#UpdateApiRequest. + } + resp, err := c.UpdateApi(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_UpdateApi_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiDeployment/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiDeployment/main.go new file mode 100644 index 00000000000..bc13c44f301 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiDeployment/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_UpdateApiDeployment_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.UpdateApiDeploymentRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#UpdateApiDeploymentRequest. + } + resp, err := c.UpdateApiDeployment(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_UpdateApiDeployment_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiSpec/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiSpec/main.go new file mode 100644 index 00000000000..059a97d3a23 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiSpec/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_UpdateApiSpec_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.UpdateApiSpecRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#UpdateApiSpecRequest. + } + resp, err := c.UpdateApiSpec(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_UpdateApiSpec_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiVersion/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiVersion/main.go new file mode 100644 index 00000000000..0a7d50089c0 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiVersion/main.go @@ -0,0 +1,48 @@ +// Copyright 2022 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 apigeeregistry_v1_generated_Registry_UpdateApiVersion_sync] + +package main + +import ( + "context" + + apigeeregistry "cloud.google.com/go/apigeeregistry/apiv1" + apigeeregistrypb "google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1" +) + +func main() { + ctx := context.Background() + c, err := apigeeregistry.NewRegistryClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &apigeeregistrypb.UpdateApiVersionRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/apigeeregistry/v1#UpdateApiVersionRequest. + } + resp, err := c.UpdateApiVersion(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END apigeeregistry_v1_generated_Registry_UpdateApiVersion_sync] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/snippet_metadata.google.cloud.apigeeregistry.v1.json b/internal/generated/snippets/apigeeregistry/apiv1/snippet_metadata.google.cloud.apigeeregistry.v1.json new file mode 100644 index 00000000000..d289580b432 --- /dev/null +++ b/internal/generated/snippets/apigeeregistry/apiv1/snippet_metadata.google.cloud.apigeeregistry.v1.json @@ -0,0 +1,2582 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/apigeeregistry/apiv1", + "version": "0.1.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.apigeeregistry.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "apigeeregistry_v1_generated_Provisioning_CancelOperation_sync", + "title": "apigeeregistry CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "ProvisioningClient/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ProvisioningClient", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning.CancelOperation", + "service": { + "shortName": "Provisioning", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 45, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Provisioning_CreateInstance_sync", + "title": "apigeeregistry CreateInstance Sample", + "description": "CreateInstance provisions instance resources for the Registry.", + "file": "ProvisioningClient/CreateInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateInstance", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient.CreateInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.CreateInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateInstanceOperation", + "client": { + "shortName": "ProvisioningClient", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning.CreateInstance", + "service": { + "shortName": "Provisioning", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Provisioning_DeleteInstance_sync", + "title": "apigeeregistry DeleteInstance Sample", + "description": "DeleteInstance deletes the Registry instance.", + "file": "ProvisioningClient/DeleteInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient.DeleteInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.DeleteInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteInstanceOperation", + "client": { + "shortName": "ProvisioningClient", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning.DeleteInstance", + "service": { + "shortName": "Provisioning", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 50, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Provisioning_DeleteOperation_sync", + "title": "apigeeregistry DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "ProvisioningClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ProvisioningClient", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning.DeleteOperation", + "service": { + "shortName": "Provisioning", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 45, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Provisioning_GetIamPolicy_sync", + "title": "apigeeregistry GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "ProvisioningClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "ProvisioningClient", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning.GetIamPolicy", + "service": { + "shortName": "Provisioning", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Provisioning_GetInstance_sync", + "title": "apigeeregistry GetInstance Sample", + "description": "GetInstance gets details of a single Instance.", + "file": "ProvisioningClient/GetInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInstance", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient.GetInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.GetInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.Instance", + "client": { + "shortName": "ProvisioningClient", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning.GetInstance", + "service": { + "shortName": "Provisioning", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Provisioning_GetLocation_sync", + "title": "apigeeregistry GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "ProvisioningClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "ProvisioningClient", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning.GetLocation", + "service": { + "shortName": "Provisioning", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Provisioning_GetOperation_sync", + "title": "apigeeregistry GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "ProvisioningClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "ProvisioningClient", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning.GetOperation", + "service": { + "shortName": "Provisioning", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Provisioning_ListLocations_sync", + "title": "apigeeregistry ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "ProvisioningClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "ProvisioningClient", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning.ListLocations", + "service": { + "shortName": "Provisioning", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Provisioning_ListOperations_sync", + "title": "apigeeregistry ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "ProvisioningClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "ProvisioningClient", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning.ListOperations", + "service": { + "shortName": "Provisioning", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Provisioning_SetIamPolicy_sync", + "title": "apigeeregistry SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "ProvisioningClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "ProvisioningClient", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning.SetIamPolicy", + "service": { + "shortName": "Provisioning", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Provisioning_TestIamPermissions_sync", + "title": "apigeeregistry TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "ProvisioningClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "ProvisioningClient", + "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning.TestIamPermissions", + "service": { + "shortName": "Provisioning", + "fullName": "google.cloud.apigeeregistry.v1.Provisioning" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_CancelOperation_sync", + "title": "apigeeregistry CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "RegistryClient/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.apigeeregistry.v1.Registry.CancelOperation", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 45, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_CreateApi_sync", + "title": "apigeeregistry CreateApi Sample", + "description": "CreateApi createApi creates a specified API.", + "file": "RegistryClient/CreateApi/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateApi", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.CreateApi", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.CreateApiRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.Api", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "CreateApi", + "fullName": "google.cloud.apigeeregistry.v1.Registry.CreateApi", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_CreateApiDeployment_sync", + "title": "apigeeregistry CreateApiDeployment Sample", + "description": "CreateApiDeployment createApiDeployment creates a specified deployment.", + "file": "RegistryClient/CreateApiDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateApiDeployment", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.CreateApiDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.CreateApiDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.ApiDeployment", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "CreateApiDeployment", + "fullName": "google.cloud.apigeeregistry.v1.Registry.CreateApiDeployment", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_CreateApiSpec_sync", + "title": "apigeeregistry CreateApiSpec Sample", + "description": "CreateApiSpec createApiSpec creates a specified spec.", + "file": "RegistryClient/CreateApiSpec/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateApiSpec", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.CreateApiSpec", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.CreateApiSpecRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.ApiSpec", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "CreateApiSpec", + "fullName": "google.cloud.apigeeregistry.v1.Registry.CreateApiSpec", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_CreateApiVersion_sync", + "title": "apigeeregistry CreateApiVersion Sample", + "description": "CreateApiVersion createApiVersion creates a specified version.", + "file": "RegistryClient/CreateApiVersion/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateApiVersion", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.CreateApiVersion", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.CreateApiVersionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.ApiVersion", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "CreateApiVersion", + "fullName": "google.cloud.apigeeregistry.v1.Registry.CreateApiVersion", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_CreateArtifact_sync", + "title": "apigeeregistry CreateArtifact Sample", + "description": "CreateArtifact createArtifact creates a specified artifact.", + "file": "RegistryClient/CreateArtifact/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateArtifact", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.CreateArtifact", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.CreateArtifactRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.Artifact", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "CreateArtifact", + "fullName": "google.cloud.apigeeregistry.v1.Registry.CreateArtifact", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_DeleteApi_sync", + "title": "apigeeregistry DeleteApi Sample", + "description": "DeleteApi deleteApi removes a specified API and all of the resources that it\nowns.", + "file": "RegistryClient/DeleteApi/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteApi", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.DeleteApi", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.DeleteApiRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "DeleteApi", + "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteApi", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 45, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_DeleteApiDeployment_sync", + "title": "apigeeregistry DeleteApiDeployment Sample", + "description": "DeleteApiDeployment deleteApiDeployment removes a specified deployment, all revisions, and all\nchild resources (e.g. artifacts).", + "file": "RegistryClient/DeleteApiDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteApiDeployment", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.DeleteApiDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.DeleteApiDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "DeleteApiDeployment", + "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteApiDeployment", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 45, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_DeleteApiDeploymentRevision_sync", + "title": "apigeeregistry DeleteApiDeploymentRevision Sample", + "description": "DeleteApiDeploymentRevision deleteApiDeploymentRevision deletes a revision of a deployment.", + "file": "RegistryClient/DeleteApiDeploymentRevision/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteApiDeploymentRevision", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.DeleteApiDeploymentRevision", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.DeleteApiDeploymentRevisionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.ApiDeployment", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "DeleteApiDeploymentRevision", + "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteApiDeploymentRevision", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_DeleteApiSpec_sync", + "title": "apigeeregistry DeleteApiSpec Sample", + "description": "DeleteApiSpec deleteApiSpec removes a specified spec, all revisions, and all child\nresources (e.g. artifacts).", + "file": "RegistryClient/DeleteApiSpec/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteApiSpec", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.DeleteApiSpec", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.DeleteApiSpecRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "DeleteApiSpec", + "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteApiSpec", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 45, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_DeleteApiSpecRevision_sync", + "title": "apigeeregistry DeleteApiSpecRevision Sample", + "description": "DeleteApiSpecRevision deleteApiSpecRevision deletes a revision of a spec.", + "file": "RegistryClient/DeleteApiSpecRevision/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteApiSpecRevision", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.DeleteApiSpecRevision", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.DeleteApiSpecRevisionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.ApiSpec", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "DeleteApiSpecRevision", + "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteApiSpecRevision", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_DeleteApiVersion_sync", + "title": "apigeeregistry DeleteApiVersion Sample", + "description": "DeleteApiVersion deleteApiVersion removes a specified version and all of the resources that\nit owns.", + "file": "RegistryClient/DeleteApiVersion/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteApiVersion", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.DeleteApiVersion", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.DeleteApiVersionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "DeleteApiVersion", + "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteApiVersion", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 45, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_DeleteArtifact_sync", + "title": "apigeeregistry DeleteArtifact Sample", + "description": "DeleteArtifact deleteArtifact removes a specified artifact.", + "file": "RegistryClient/DeleteArtifact/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteArtifact", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.DeleteArtifact", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.DeleteArtifactRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "DeleteArtifact", + "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteArtifact", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 45, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_DeleteOperation_sync", + "title": "apigeeregistry DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "RegistryClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteOperation", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 45, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_GetApi_sync", + "title": "apigeeregistry GetApi Sample", + "description": "GetApi getApi returns a specified API.", + "file": "RegistryClient/GetApi/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetApi", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.GetApi", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.GetApiRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.Api", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "GetApi", + "fullName": "google.cloud.apigeeregistry.v1.Registry.GetApi", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_GetApiDeployment_sync", + "title": "apigeeregistry GetApiDeployment Sample", + "description": "GetApiDeployment getApiDeployment returns a specified deployment.", + "file": "RegistryClient/GetApiDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetApiDeployment", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.GetApiDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.GetApiDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.ApiDeployment", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "GetApiDeployment", + "fullName": "google.cloud.apigeeregistry.v1.Registry.GetApiDeployment", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_GetApiSpec_sync", + "title": "apigeeregistry GetApiSpec Sample", + "description": "GetApiSpec getApiSpec returns a specified spec.", + "file": "RegistryClient/GetApiSpec/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetApiSpec", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.GetApiSpec", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.GetApiSpecRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.ApiSpec", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "GetApiSpec", + "fullName": "google.cloud.apigeeregistry.v1.Registry.GetApiSpec", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_GetApiSpecContents_sync", + "title": "apigeeregistry GetApiSpecContents Sample", + "description": "GetApiSpecContents getApiSpecContents returns the contents of a specified spec.\nIf specs are stored with GZip compression, the default behavior\nis to return the spec uncompressed (the mime_type response field\nindicates the exact format returned).", + "file": "RegistryClient/GetApiSpecContents/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetApiSpecContents", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.GetApiSpecContents", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.GetApiSpecContentsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "httpbodypb.HttpBody", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "GetApiSpecContents", + "fullName": "google.cloud.apigeeregistry.v1.Registry.GetApiSpecContents", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_GetApiVersion_sync", + "title": "apigeeregistry GetApiVersion Sample", + "description": "GetApiVersion getApiVersion returns a specified version.", + "file": "RegistryClient/GetApiVersion/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetApiVersion", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.GetApiVersion", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.GetApiVersionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.ApiVersion", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "GetApiVersion", + "fullName": "google.cloud.apigeeregistry.v1.Registry.GetApiVersion", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_GetArtifact_sync", + "title": "apigeeregistry GetArtifact Sample", + "description": "GetArtifact getArtifact returns a specified artifact.", + "file": "RegistryClient/GetArtifact/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetArtifact", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.GetArtifact", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.GetArtifactRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.Artifact", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "GetArtifact", + "fullName": "google.cloud.apigeeregistry.v1.Registry.GetArtifact", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_GetArtifactContents_sync", + "title": "apigeeregistry GetArtifactContents Sample", + "description": "GetArtifactContents getArtifactContents returns the contents of a specified artifact.\nIf artifacts are stored with GZip compression, the default behavior\nis to return the artifact uncompressed (the mime_type response field\nindicates the exact format returned).", + "file": "RegistryClient/GetArtifactContents/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetArtifactContents", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.GetArtifactContents", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.GetArtifactContentsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "httpbodypb.HttpBody", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "GetArtifactContents", + "fullName": "google.cloud.apigeeregistry.v1.Registry.GetArtifactContents", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_GetIamPolicy_sync", + "title": "apigeeregistry GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "RegistryClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.apigeeregistry.v1.Registry.GetIamPolicy", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_GetLocation_sync", + "title": "apigeeregistry GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "RegistryClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.apigeeregistry.v1.Registry.GetLocation", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_GetOperation_sync", + "title": "apigeeregistry GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "RegistryClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.apigeeregistry.v1.Registry.GetOperation", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_ListApiDeploymentRevisions_sync", + "title": "apigeeregistry ListApiDeploymentRevisions Sample", + "description": "ListApiDeploymentRevisions listApiDeploymentRevisions lists all revisions of a deployment.\nRevisions are returned in descending order of revision creation time.", + "file": "RegistryClient/ListApiDeploymentRevisions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListApiDeploymentRevisions", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.ListApiDeploymentRevisions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.ListApiDeploymentRevisionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ApiDeploymentIterator", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "ListApiDeploymentRevisions", + "fullName": "google.cloud.apigeeregistry.v1.Registry.ListApiDeploymentRevisions", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_ListApiDeployments_sync", + "title": "apigeeregistry ListApiDeployments Sample", + "description": "ListApiDeployments listApiDeployments returns matching deployments.", + "file": "RegistryClient/ListApiDeployments/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListApiDeployments", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.ListApiDeployments", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.ListApiDeploymentsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ApiDeploymentIterator", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "ListApiDeployments", + "fullName": "google.cloud.apigeeregistry.v1.Registry.ListApiDeployments", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_ListApiSpecRevisions_sync", + "title": "apigeeregistry ListApiSpecRevisions Sample", + "description": "ListApiSpecRevisions listApiSpecRevisions lists all revisions of a spec.\nRevisions are returned in descending order of revision creation time.", + "file": "RegistryClient/ListApiSpecRevisions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListApiSpecRevisions", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.ListApiSpecRevisions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.ListApiSpecRevisionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ApiSpecIterator", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "ListApiSpecRevisions", + "fullName": "google.cloud.apigeeregistry.v1.Registry.ListApiSpecRevisions", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_ListApiSpecs_sync", + "title": "apigeeregistry ListApiSpecs Sample", + "description": "ListApiSpecs listApiSpecs returns matching specs.", + "file": "RegistryClient/ListApiSpecs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListApiSpecs", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.ListApiSpecs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.ListApiSpecsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ApiSpecIterator", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "ListApiSpecs", + "fullName": "google.cloud.apigeeregistry.v1.Registry.ListApiSpecs", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_ListApiVersions_sync", + "title": "apigeeregistry ListApiVersions Sample", + "description": "ListApiVersions listApiVersions returns matching versions.", + "file": "RegistryClient/ListApiVersions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListApiVersions", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.ListApiVersions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.ListApiVersionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ApiVersionIterator", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "ListApiVersions", + "fullName": "google.cloud.apigeeregistry.v1.Registry.ListApiVersions", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_ListApis_sync", + "title": "apigeeregistry ListApis Sample", + "description": "ListApis listApis returns matching APIs.", + "file": "RegistryClient/ListApis/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListApis", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.ListApis", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.ListApisRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ApiIterator", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "ListApis", + "fullName": "google.cloud.apigeeregistry.v1.Registry.ListApis", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_ListArtifacts_sync", + "title": "apigeeregistry ListArtifacts Sample", + "description": "ListArtifacts listArtifacts returns matching artifacts.", + "file": "RegistryClient/ListArtifacts/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListArtifacts", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.ListArtifacts", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.ListArtifactsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ArtifactIterator", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "ListArtifacts", + "fullName": "google.cloud.apigeeregistry.v1.Registry.ListArtifacts", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_ListLocations_sync", + "title": "apigeeregistry ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "RegistryClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.apigeeregistry.v1.Registry.ListLocations", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_ListOperations_sync", + "title": "apigeeregistry ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "RegistryClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.apigeeregistry.v1.Registry.ListOperations", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_ReplaceArtifact_sync", + "title": "apigeeregistry ReplaceArtifact Sample", + "description": "ReplaceArtifact replaceArtifact can be used to replace a specified artifact.", + "file": "RegistryClient/ReplaceArtifact/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReplaceArtifact", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.ReplaceArtifact", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.ReplaceArtifactRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.Artifact", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "ReplaceArtifact", + "fullName": "google.cloud.apigeeregistry.v1.Registry.ReplaceArtifact", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_RollbackApiDeployment_sync", + "title": "apigeeregistry RollbackApiDeployment Sample", + "description": "RollbackApiDeployment rollbackApiDeployment sets the current revision to a specified prior\nrevision. Note that this creates a new revision with a new revision ID.", + "file": "RegistryClient/RollbackApiDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RollbackApiDeployment", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.RollbackApiDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.RollbackApiDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.ApiDeployment", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "RollbackApiDeployment", + "fullName": "google.cloud.apigeeregistry.v1.Registry.RollbackApiDeployment", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_RollbackApiSpec_sync", + "title": "apigeeregistry RollbackApiSpec Sample", + "description": "RollbackApiSpec rollbackApiSpec sets the current revision to a specified prior revision.\nNote that this creates a new revision with a new revision ID.", + "file": "RegistryClient/RollbackApiSpec/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RollbackApiSpec", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.RollbackApiSpec", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.RollbackApiSpecRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.ApiSpec", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "RollbackApiSpec", + "fullName": "google.cloud.apigeeregistry.v1.Registry.RollbackApiSpec", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_SetIamPolicy_sync", + "title": "apigeeregistry SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "RegistryClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.apigeeregistry.v1.Registry.SetIamPolicy", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_TagApiDeploymentRevision_sync", + "title": "apigeeregistry TagApiDeploymentRevision Sample", + "description": "TagApiDeploymentRevision tagApiDeploymentRevision adds a tag to a specified revision of a\ndeployment.", + "file": "RegistryClient/TagApiDeploymentRevision/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TagApiDeploymentRevision", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.TagApiDeploymentRevision", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.TagApiDeploymentRevisionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.ApiDeployment", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "TagApiDeploymentRevision", + "fullName": "google.cloud.apigeeregistry.v1.Registry.TagApiDeploymentRevision", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_TagApiSpecRevision_sync", + "title": "apigeeregistry TagApiSpecRevision Sample", + "description": "TagApiSpecRevision tagApiSpecRevision adds a tag to a specified revision of a spec.", + "file": "RegistryClient/TagApiSpecRevision/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TagApiSpecRevision", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.TagApiSpecRevision", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.TagApiSpecRevisionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.ApiSpec", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "TagApiSpecRevision", + "fullName": "google.cloud.apigeeregistry.v1.Registry.TagApiSpecRevision", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_TestIamPermissions_sync", + "title": "apigeeregistry TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "RegistryClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.apigeeregistry.v1.Registry.TestIamPermissions", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_UpdateApi_sync", + "title": "apigeeregistry UpdateApi Sample", + "description": "UpdateApi updateApi can be used to modify a specified API.", + "file": "RegistryClient/UpdateApi/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateApi", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.UpdateApi", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.UpdateApiRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.Api", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "UpdateApi", + "fullName": "google.cloud.apigeeregistry.v1.Registry.UpdateApi", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_UpdateApiDeployment_sync", + "title": "apigeeregistry UpdateApiDeployment Sample", + "description": "UpdateApiDeployment updateApiDeployment can be used to modify a specified deployment.", + "file": "RegistryClient/UpdateApiDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateApiDeployment", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.UpdateApiDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.UpdateApiDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.ApiDeployment", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "UpdateApiDeployment", + "fullName": "google.cloud.apigeeregistry.v1.Registry.UpdateApiDeployment", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_UpdateApiSpec_sync", + "title": "apigeeregistry UpdateApiSpec Sample", + "description": "UpdateApiSpec updateApiSpec can be used to modify a specified spec.", + "file": "RegistryClient/UpdateApiSpec/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateApiSpec", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.UpdateApiSpec", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.UpdateApiSpecRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.ApiSpec", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "UpdateApiSpec", + "fullName": "google.cloud.apigeeregistry.v1.Registry.UpdateApiSpec", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + }, + { + "regionTag": "apigeeregistry_v1_generated_Registry_UpdateApiVersion_sync", + "title": "apigeeregistry UpdateApiVersion Sample", + "description": "UpdateApiVersion updateApiVersion can be used to modify a specified version.", + "file": "RegistryClient/UpdateApiVersion/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateApiVersion", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient.UpdateApiVersion", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "apigeeregistrypb.UpdateApiVersionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "apigeeregistrypb.ApiVersion", + "client": { + "shortName": "RegistryClient", + "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" + }, + "method": { + "shortName": "UpdateApiVersion", + "fullName": "google.cloud.apigeeregistry.v1.Registry.UpdateApiVersion", + "service": { + "shortName": "Registry", + "fullName": "google.cloud.apigeeregistry.v1.Registry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 47, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/compute/apiv1/snippet_metadata.google.cloud.compute.v1.json b/internal/generated/snippets/compute/apiv1/snippet_metadata.google.cloud.compute.v1.json index 2e8407217f5..04fb5b34f19 100644 --- a/internal/generated/snippets/compute/apiv1/snippet_metadata.google.cloud.compute.v1.json +++ b/internal/generated/snippets/compute/apiv1/snippet_metadata.google.cloud.compute.v1.json @@ -6960,7 +6960,7 @@ { "regionTag": "compute_v1_generated_InstanceGroupManagers_ListManagedInstances_sync", "title": "compute ListManagedInstances Sample", - "description": "ListManagedInstances lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported.", + "description": "ListManagedInstances lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The pageToken query parameter is supported only in the alpha and beta API and only if the group’s listManagedInstancesResults field is set to PAGINATED.", "file": "InstanceGroupManagersClient/ListManagedInstances/main.go", "language": "GO", "clientMethod": { @@ -8294,7 +8294,7 @@ { "regionTag": "compute_v1_generated_Instances_BulkInsert_sync", "title": "compute BulkInsert Sample", - "description": "BulkInsert creates multiple instances. Count specifies the number of instances to create.", + "description": "BulkInsert creates multiple instances. Count specifies the number of instances to create. For more information, see About bulk creation of VMs.", "file": "InstancesClient/BulkInsert/main.go", "language": "GO", "clientMethod": { @@ -18552,7 +18552,7 @@ { "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ListManagedInstances_sync", "title": "compute ListManagedInstances Sample", - "description": "ListManagedInstances lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported.", + "description": "ListManagedInstances lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The pageToken query parameter is supported only in the alpha and beta API and only if the group’s listManagedInstancesResults field is set to PAGINATED.", "file": "RegionInstanceGroupManagersClient/ListManagedInstances/main.go", "language": "GO", "clientMethod": { diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/snippet_metadata.google.cloud.contactcenterinsights.v1.json b/internal/generated/snippets/contactcenterinsights/apiv1/snippet_metadata.google.cloud.contactcenterinsights.v1.json index ca059968f1d..c193278af93 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/snippet_metadata.google.cloud.contactcenterinsights.v1.json +++ b/internal/generated/snippets/contactcenterinsights/apiv1/snippet_metadata.google.cloud.contactcenterinsights.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/contactcenterinsights/apiv1", - "version": "1.2.1", + "version": "1.2.2", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/container/apiv1/snippet_metadata.google.container.v1.json b/internal/generated/snippets/container/apiv1/snippet_metadata.google.container.v1.json index 560f4873a28..5372db8883a 100644 --- a/internal/generated/snippets/container/apiv1/snippet_metadata.google.container.v1.json +++ b/internal/generated/snippets/container/apiv1/snippet_metadata.google.container.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/container/apiv1", - "version": "1.3.0", + "version": "1.3.1", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/dataform/apiv1alpha2/snippet_metadata.google.cloud.dataform.v1alpha2.json b/internal/generated/snippets/dataform/apiv1alpha2/snippet_metadata.google.cloud.dataform.v1alpha2.json index f85d263746b..ef99258f3d6 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/snippet_metadata.google.cloud.dataform.v1alpha2.json +++ b/internal/generated/snippets/dataform/apiv1alpha2/snippet_metadata.google.cloud.dataform.v1alpha2.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/dataform/apiv1alpha2", - "version": "0.1.0", + "version": "0.2.0", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/dialogflow/apiv2/snippet_metadata.google.cloud.dialogflow.v2.json b/internal/generated/snippets/dialogflow/apiv2/snippet_metadata.google.cloud.dialogflow.v2.json index bf4a6f66044..96786a5f4c4 100644 --- a/internal/generated/snippets/dialogflow/apiv2/snippet_metadata.google.cloud.dialogflow.v2.json +++ b/internal/generated/snippets/dialogflow/apiv2/snippet_metadata.google.cloud.dialogflow.v2.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/dialogflow/apiv2", - "version": "1.12.0", + "version": "1.12.1", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/snippet_metadata.google.cloud.dialogflow.cx.v3.json b/internal/generated/snippets/dialogflow/cx/apiv3/snippet_metadata.google.cloud.dialogflow.cx.v3.json index b0254807948..96abc8ee6aa 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/snippet_metadata.google.cloud.dialogflow.cx.v3.json +++ b/internal/generated/snippets/dialogflow/cx/apiv3/snippet_metadata.google.cloud.dialogflow.cx.v3.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/dialogflow/cx/apiv3", - "version": "1.12.0", + "version": "1.12.1", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/snippet_metadata.google.cloud.dialogflow.cx.v3beta1.json b/internal/generated/snippets/dialogflow/cx/apiv3beta1/snippet_metadata.google.cloud.dialogflow.cx.v3beta1.json index e78e8db5dae..2a8b373ad23 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/snippet_metadata.google.cloud.dialogflow.cx.v3beta1.json +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/snippet_metadata.google.cloud.dialogflow.cx.v3beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/dialogflow/cx/apiv3beta1", - "version": "1.12.0", + "version": "1.12.1", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/go.mod b/internal/generated/snippets/go.mod index 0db3de7126e..983c2444d92 100644 --- a/internal/generated/snippets/go.mod +++ b/internal/generated/snippets/go.mod @@ -119,10 +119,12 @@ require ( cloud.google.com/go/websecurityscanner v1.0.0 cloud.google.com/go/workflows v1.1.0 github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - google.golang.org/api v0.90.0 - google.golang.org/genproto v0.0.0-20220802133213-ce4fa296bf78 + google.golang.org/api v0.91.0 + google.golang.org/genproto v0.0.0-20220804142021-4e6b2dfa6612 ) +require cloud.google.com/go/apigeeregistry v0.0.0-00010101000000-000000000000 + require ( github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect @@ -135,7 +137,7 @@ require ( golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/grpc v1.48.0 // indirect - google.golang.org/protobuf v1.28.0 // indirect + google.golang.org/protobuf v1.28.1 // indirect ) replace cloud.google.com/go/storagetransfer => ../../../storagetransfer @@ -379,3 +381,5 @@ replace cloud.google.com/go/batch => ../../../batch replace cloud.google.com/go/dataform => ../../../dataform replace cloud.google.com/go/beyondcorp => ../../../beyondcorp + +replace cloud.google.com/go/apigeeregistry => ../../../apigeeregistry diff --git a/internal/generated/snippets/go.sum b/internal/generated/snippets/go.sum index b181fcca073..62d55739be4 100644 --- a/internal/generated/snippets/go.sum +++ b/internal/generated/snippets/go.sum @@ -193,8 +193,9 @@ google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6F google.golang.org/api v0.86.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= google.golang.org/api v0.87.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= google.golang.org/api v0.88.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= -google.golang.org/api v0.90.0 h1:WMnUWAvihIClUYFNeFA69VTuR3duKS3IalMGDQcLvq8= google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.91.0 h1:731+JzuwaJoZXRQGmPoBiV+SrsAfUaIkdMCWTcQNPyA= +google.golang.org/api v0.91.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= @@ -230,8 +231,9 @@ google.golang.org/genproto v0.0.0-20220719170305-83ca9fad585f/go.mod h1:GkXuJDJ6 google.golang.org/genproto v0.0.0-20220720214146-176da50484ac/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE= google.golang.org/genproto v0.0.0-20220725144611-272f38e5d71b/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= google.golang.org/genproto v0.0.0-20220801145646-83ce21fca29f/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= -google.golang.org/genproto v0.0.0-20220802133213-ce4fa296bf78 h1:QntLWYqZeuBtJkth3m/6DLznnI0AHJr+AgJXvVh/izw= google.golang.org/genproto v0.0.0-20220802133213-ce4fa296bf78/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= +google.golang.org/genproto v0.0.0-20220804142021-4e6b2dfa6612 h1:NX3L5YesD5qgxxrPHdKqHH38Ao0AG6poRXG+JljPsGU= +google.golang.org/genproto v0.0.0-20220804142021-4e6b2dfa6612/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= 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= @@ -263,8 +265,9 @@ google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlba google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/internal/godocfx/go.mod b/internal/godocfx/go.mod index 9fbf8887653..532405e6b9b 100644 --- a/internal/godocfx/go.mod +++ b/internal/godocfx/go.mod @@ -30,9 +30,9 @@ require ( golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect - google.golang.org/api v0.90.0 // indirect + google.golang.org/api v0.91.0 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20220802133213-ce4fa296bf78 // indirect + google.golang.org/genproto v0.0.0-20220804142021-4e6b2dfa6612 // indirect google.golang.org/grpc v1.48.0 // indirect google.golang.org/protobuf v1.28.0 // indirect ) diff --git a/internal/godocfx/go.sum b/internal/godocfx/go.sum index b30ac5750c8..c8c86c4abe7 100644 --- a/internal/godocfx/go.sum +++ b/internal/godocfx/go.sum @@ -235,8 +235,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= -google.golang.org/api v0.90.0 h1:WMnUWAvihIClUYFNeFA69VTuR3duKS3IalMGDQcLvq8= -google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.91.0 h1:731+JzuwaJoZXRQGmPoBiV+SrsAfUaIkdMCWTcQNPyA= +google.golang.org/api v0.91.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= @@ -272,8 +272,8 @@ google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljW google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220622131801-db39fadba55f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220802133213-ce4fa296bf78 h1:QntLWYqZeuBtJkth3m/6DLznnI0AHJr+AgJXvVh/izw= -google.golang.org/genproto v0.0.0-20220802133213-ce4fa296bf78/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= +google.golang.org/genproto v0.0.0-20220804142021-4e6b2dfa6612 h1:NX3L5YesD5qgxxrPHdKqHH38Ao0AG6poRXG+JljPsGU= +google.golang.org/genproto v0.0.0-20220804142021-4e6b2dfa6612/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= 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=