Cloud Dataplex API v1 - Package cloud.google.com/go/dataplex/apiv1 (v1.27.1) Stay organized with collections Save and categorize content based on your preferences.
Package dataplex is an auto-generated package for theCloud Dataplex API.
A unified, intelligent governance solution for data and AI assets.
General documentation
For information that is relevant for all client libraries please referencehttps://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on thispage includes:
- Authentication and Authorization
- Timeouts and Cancellation
- Testing against Client Libraries
- Debugging Client Libraries
- Inspecting errors
Example usage
To get started with this package, create a client.
// go get cloud.google.com/go/dataplex/apiv1@latestctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()
The client will use your default application credentials. Clients should be reused instead of created as needed.The methods of Client are safe for concurrent use by multiple goroutines.The returned client must be Closed when it is done being used.
Using the Client
The following is an example of making an API call with the newly created client, mentioned above.
req:=&dataplexpb.CancelJobRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CancelJobRequest.}err=c.CancelJob(ctx,req)iferr!=nil{// TODO: Handle error.}
Use of Context
The ctx passed to NewClient is used for authentication requests andfor creating the underlying connection, but is not used for subsequent calls.Individual methods on the client use the ctx given to them.
To close the open connection, use the Close() method.
Functions
func DefaultAuthScopes
funcDefaultAuthScopes()[]stringDefaultAuthScopes reports the default set of authentication scopes to use with this package.
ActionIterator
typeActionIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.Action,nextPageTokenstring,errerror)// contains filtered or unexported fields}ActionIterator manages a stream of *dataplexpb.Action.
func (*ActionIterator) All
func(it*ActionIterator)All()iter.Seq2[*dataplexpb.Action,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*ActionIterator) Next
func(it*ActionIterator)Next()(*dataplexpb.Action,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*ActionIterator) PageInfo
func(it*ActionIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
AspectTypeIterator
typeAspectTypeIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.AspectType,nextPageTokenstring,errerror)// contains filtered or unexported fields}AspectTypeIterator manages a stream of *dataplexpb.AspectType.
func (*AspectTypeIterator) All
func(it*AspectTypeIterator)All()iter.Seq2[*dataplexpb.AspectType,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*AspectTypeIterator) Next
func(it*AspectTypeIterator)Next()(*dataplexpb.AspectType,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*AspectTypeIterator) PageInfo
func(it*AspectTypeIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
AssetIterator
typeAssetIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.Asset,nextPageTokenstring,errerror)// contains filtered or unexported fields}AssetIterator manages a stream of *dataplexpb.Asset.
func (*AssetIterator) All
func(it*AssetIterator)All()iter.Seq2[*dataplexpb.Asset,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*AssetIterator) Next
func(it*AssetIterator)Next()(*dataplexpb.Asset,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*AssetIterator) PageInfo
func(it*AssetIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
BusinessGlossaryCallOptions
typeBusinessGlossaryCallOptionsstruct{CreateGlossary[]gax.CallOptionUpdateGlossary[]gax.CallOptionDeleteGlossary[]gax.CallOptionGetGlossary[]gax.CallOptionListGlossaries[]gax.CallOptionCreateGlossaryCategory[]gax.CallOptionUpdateGlossaryCategory[]gax.CallOptionDeleteGlossaryCategory[]gax.CallOptionGetGlossaryCategory[]gax.CallOptionListGlossaryCategories[]gax.CallOptionCreateGlossaryTerm[]gax.CallOptionUpdateGlossaryTerm[]gax.CallOptionDeleteGlossaryTerm[]gax.CallOptionGetGlossaryTerm[]gax.CallOptionListGlossaryTerms[]gax.CallOptionGetLocation[]gax.CallOptionListLocations[]gax.CallOptionCancelOperation[]gax.CallOptionDeleteOperation[]gax.CallOptionGetOperation[]gax.CallOptionListOperations[]gax.CallOption}BusinessGlossaryCallOptions contains the retry settings for each method of BusinessGlossaryClient.
BusinessGlossaryClient
typeBusinessGlossaryClientstruct{// The call options for this service.CallOptions*BusinessGlossaryCallOptions// LROClient is used internally to handle long-running operations.// It is exposed so that its CallOptions can be modified if required.// Users should not Close this client.LROClient*lroauto.OperationsClient// contains filtered or unexported fields}BusinessGlossaryClient is a client for interacting with Cloud Dataplex API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
BusinessGlossaryService provides APIs for managing business glossaryresources for enterprise customers.The resources currently supported in Business Glossary are:
Glossary
GlossaryCategory
GlossaryTerm
func NewBusinessGlossaryClient
funcNewBusinessGlossaryClient(ctxcontext.Context,opts...option.ClientOption)(*BusinessGlossaryClient,error)NewBusinessGlossaryClient creates a new business glossary service client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.
BusinessGlossaryService provides APIs for managing business glossaryresources for enterprise customers.The resources currently supported in Business Glossary are:
Glossary
GlossaryCategory
GlossaryTerm
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func NewBusinessGlossaryRESTClient
funcNewBusinessGlossaryRESTClient(ctxcontext.Context,opts...option.ClientOption)(*BusinessGlossaryClient,error)NewBusinessGlossaryRESTClient creates a new business glossary service rest client.
BusinessGlossaryService provides APIs for managing business glossaryresources for enterprise customers.The resources currently supported in Business Glossary are:
Glossary
GlossaryCategory
GlossaryTerm
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func (*BusinessGlossaryClient) CancelOperation
func(c*BusinessGlossaryClient)CancelOperation(ctxcontext.Context,req*longrunningpb.CancelOperationRequest,opts...gax.CallOption)errorCancelOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.CancelOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.}err=c.CancelOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*BusinessGlossaryClient) Close
func(c*BusinessGlossaryClient)Close()errorClose closes the connection to the API service. The user should invoke this whenthe client is no longer required.
func (*BusinessGlossaryClient) Connection (deprecated)
func(c*BusinessGlossaryClient)Connection()*grpc.ClientConnConnection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.
func (*BusinessGlossaryClient) CreateGlossary
func(c*BusinessGlossaryClient)CreateGlossary(ctxcontext.Context,req*dataplexpb.CreateGlossaryRequest,opts...gax.CallOption)(*CreateGlossaryOperation,error)CreateGlossary creates a new Glossary resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateGlossaryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateGlossaryRequest.}op,err:=c.CreateGlossary(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*BusinessGlossaryClient) CreateGlossaryCategory
func(c*BusinessGlossaryClient)CreateGlossaryCategory(ctxcontext.Context,req*dataplexpb.CreateGlossaryCategoryRequest,opts...gax.CallOption)(*dataplexpb.GlossaryCategory,error)CreateGlossaryCategory creates a new GlossaryCategory resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateGlossaryCategoryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateGlossaryCategoryRequest.}resp,err:=c.CreateGlossaryCategory(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*BusinessGlossaryClient) CreateGlossaryOperation
func(c*BusinessGlossaryClient)CreateGlossaryOperation(namestring)*CreateGlossaryOperationCreateGlossaryOperation returns a new CreateGlossaryOperation from a given name.The name must be that of a previously created CreateGlossaryOperation, possibly from a different process.
func (*BusinessGlossaryClient) CreateGlossaryTerm
func(c*BusinessGlossaryClient)CreateGlossaryTerm(ctxcontext.Context,req*dataplexpb.CreateGlossaryTermRequest,opts...gax.CallOption)(*dataplexpb.GlossaryTerm,error)CreateGlossaryTerm creates a new GlossaryTerm resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateGlossaryTermRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateGlossaryTermRequest.}resp,err:=c.CreateGlossaryTerm(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*BusinessGlossaryClient) DeleteGlossary
func(c*BusinessGlossaryClient)DeleteGlossary(ctxcontext.Context,req*dataplexpb.DeleteGlossaryRequest,opts...gax.CallOption)(*DeleteGlossaryOperation,error)DeleteGlossary deletes a Glossary resource. All the categories and terms within theGlossary must be deleted before the Glossary can be deleted.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteGlossaryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteGlossaryRequest.}op,err:=c.DeleteGlossary(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*BusinessGlossaryClient) DeleteGlossaryCategory
func(c*BusinessGlossaryClient)DeleteGlossaryCategory(ctxcontext.Context,req*dataplexpb.DeleteGlossaryCategoryRequest,opts...gax.CallOption)errorDeleteGlossaryCategory deletes a GlossaryCategory resource. All the GlossaryCategories andGlossaryTerms nested directly under the specified GlossaryCategory will bemoved one level up to the parent in the hierarchy.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteGlossaryCategoryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteGlossaryCategoryRequest.}err=c.DeleteGlossaryCategory(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*BusinessGlossaryClient) DeleteGlossaryOperation
func(c*BusinessGlossaryClient)DeleteGlossaryOperation(namestring)*DeleteGlossaryOperationDeleteGlossaryOperation returns a new DeleteGlossaryOperation from a given name.The name must be that of a previously created DeleteGlossaryOperation, possibly from a different process.
func (*BusinessGlossaryClient) DeleteGlossaryTerm
func(c*BusinessGlossaryClient)DeleteGlossaryTerm(ctxcontext.Context,req*dataplexpb.DeleteGlossaryTermRequest,opts...gax.CallOption)errorDeleteGlossaryTerm deletes a GlossaryTerm resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteGlossaryTermRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteGlossaryTermRequest.}err=c.DeleteGlossaryTerm(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*BusinessGlossaryClient) DeleteOperation
func(c*BusinessGlossaryClient)DeleteOperation(ctxcontext.Context,req*longrunningpb.DeleteOperationRequest,opts...gax.CallOption)errorDeleteOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.DeleteOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.}err=c.DeleteOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*BusinessGlossaryClient) GetGlossary
func(c*BusinessGlossaryClient)GetGlossary(ctxcontext.Context,req*dataplexpb.GetGlossaryRequest,opts...gax.CallOption)(*dataplexpb.Glossary,error)GetGlossary gets a Glossary resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetGlossaryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetGlossaryRequest.}resp,err:=c.GetGlossary(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*BusinessGlossaryClient) GetGlossaryCategory
func(c*BusinessGlossaryClient)GetGlossaryCategory(ctxcontext.Context,req*dataplexpb.GetGlossaryCategoryRequest,opts...gax.CallOption)(*dataplexpb.GlossaryCategory,error)GetGlossaryCategory gets a GlossaryCategory resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetGlossaryCategoryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetGlossaryCategoryRequest.}resp,err:=c.GetGlossaryCategory(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*BusinessGlossaryClient) GetGlossaryTerm
func(c*BusinessGlossaryClient)GetGlossaryTerm(ctxcontext.Context,req*dataplexpb.GetGlossaryTermRequest,opts...gax.CallOption)(*dataplexpb.GlossaryTerm,error)GetGlossaryTerm gets a GlossaryTerm resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetGlossaryTermRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetGlossaryTermRequest.}resp,err:=c.GetGlossaryTerm(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*BusinessGlossaryClient) GetLocation
func(c*BusinessGlossaryClient)GetLocation(ctxcontext.Context,req*locationpb.GetLocationRequest,opts...gax.CallOption)(*locationpb.Location,error)GetLocation gets information about a location.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*BusinessGlossaryClient) GetOperation
func(c*BusinessGlossaryClient)GetOperation(ctxcontext.Context,req*longrunningpb.GetOperationRequest,opts...gax.CallOption)(*longrunningpb.Operation,error)GetOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.GetOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.}resp,err:=c.GetOperation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*BusinessGlossaryClient) ListGlossaries
func(c*BusinessGlossaryClient)ListGlossaries(ctxcontext.Context,req*dataplexpb.ListGlossariesRequest,opts...gax.CallOption)*GlossaryIteratorListGlossaries lists Glossary resources in a project and location.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListGlossariesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListGlossariesRequest.}it:=c.ListGlossaries(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListGlossariesResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListGlossariesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListGlossariesRequest.}forresp,err:=rangec.ListGlossaries(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*BusinessGlossaryClient) ListGlossaryCategories
func(c*BusinessGlossaryClient)ListGlossaryCategories(ctxcontext.Context,req*dataplexpb.ListGlossaryCategoriesRequest,opts...gax.CallOption)*GlossaryCategoryIteratorListGlossaryCategories lists GlossaryCategory resources in a Glossary.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListGlossaryCategoriesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListGlossaryCategoriesRequest.}it:=c.ListGlossaryCategories(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListGlossaryCategoriesResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListGlossaryCategoriesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListGlossaryCategoriesRequest.}forresp,err:=rangec.ListGlossaryCategories(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*BusinessGlossaryClient) ListGlossaryTerms
func(c*BusinessGlossaryClient)ListGlossaryTerms(ctxcontext.Context,req*dataplexpb.ListGlossaryTermsRequest,opts...gax.CallOption)*GlossaryTermIteratorListGlossaryTerms lists GlossaryTerm resources in a Glossary.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListGlossaryTermsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListGlossaryTermsRequest.}it:=c.ListGlossaryTerms(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListGlossaryTermsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListGlossaryTermsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListGlossaryTermsRequest.}forresp,err:=rangec.ListGlossaryTerms(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*BusinessGlossaryClient) ListLocations
func(c*BusinessGlossaryClient)ListLocations(ctxcontext.Context,req*locationpb.ListLocationsRequest,opts...gax.CallOption)*LocationIteratorListLocations lists information about the supported locations for this service.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1""google.golang.org/api/iterator"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*locationpb.ListLocationsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.ListLocationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.}forresp,err:=rangec.ListLocations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*BusinessGlossaryClient) ListOperations
func(c*BusinessGlossaryClient)ListOperations(ctxcontext.Context,req*longrunningpb.ListOperationsRequest,opts...gax.CallOption)*OperationIteratorListOperations is a utility method from google.longrunning.Operations.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}it:=c.ListOperations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*longrunningpb.ListOperationsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}forresp,err:=rangec.ListOperations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*BusinessGlossaryClient) UpdateGlossary
func(c*BusinessGlossaryClient)UpdateGlossary(ctxcontext.Context,req*dataplexpb.UpdateGlossaryRequest,opts...gax.CallOption)(*UpdateGlossaryOperation,error)UpdateGlossary updates a Glossary resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateGlossaryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateGlossaryRequest.}op,err:=c.UpdateGlossary(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*BusinessGlossaryClient) UpdateGlossaryCategory
func(c*BusinessGlossaryClient)UpdateGlossaryCategory(ctxcontext.Context,req*dataplexpb.UpdateGlossaryCategoryRequest,opts...gax.CallOption)(*dataplexpb.GlossaryCategory,error)UpdateGlossaryCategory updates a GlossaryCategory resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateGlossaryCategoryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateGlossaryCategoryRequest.}resp,err:=c.UpdateGlossaryCategory(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*BusinessGlossaryClient) UpdateGlossaryOperation
func(c*BusinessGlossaryClient)UpdateGlossaryOperation(namestring)*UpdateGlossaryOperationUpdateGlossaryOperation returns a new UpdateGlossaryOperation from a given name.The name must be that of a previously created UpdateGlossaryOperation, possibly from a different process.
func (*BusinessGlossaryClient) UpdateGlossaryTerm
func(c*BusinessGlossaryClient)UpdateGlossaryTerm(ctxcontext.Context,req*dataplexpb.UpdateGlossaryTermRequest,opts...gax.CallOption)(*dataplexpb.GlossaryTerm,error)UpdateGlossaryTerm updates a GlossaryTerm resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewBusinessGlossaryClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateGlossaryTermRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateGlossaryTermRequest.}resp,err:=c.UpdateGlossaryTerm(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}CallOptions
typeCallOptionsstruct{CreateLake[]gax.CallOptionUpdateLake[]gax.CallOptionDeleteLake[]gax.CallOptionListLakes[]gax.CallOptionGetLake[]gax.CallOptionListLakeActions[]gax.CallOptionCreateZone[]gax.CallOptionUpdateZone[]gax.CallOptionDeleteZone[]gax.CallOptionListZones[]gax.CallOptionGetZone[]gax.CallOptionListZoneActions[]gax.CallOptionCreateAsset[]gax.CallOptionUpdateAsset[]gax.CallOptionDeleteAsset[]gax.CallOptionListAssets[]gax.CallOptionGetAsset[]gax.CallOptionListAssetActions[]gax.CallOptionCreateTask[]gax.CallOptionUpdateTask[]gax.CallOptionDeleteTask[]gax.CallOptionListTasks[]gax.CallOptionGetTask[]gax.CallOptionListJobs[]gax.CallOptionRunTask[]gax.CallOptionGetJob[]gax.CallOptionCancelJob[]gax.CallOptionCreateEnvironment[]gax.CallOptionUpdateEnvironment[]gax.CallOptionDeleteEnvironment[]gax.CallOptionListEnvironments[]gax.CallOptionGetEnvironment[]gax.CallOptionListSessions[]gax.CallOptionGetLocation[]gax.CallOptionListLocations[]gax.CallOptionCancelOperation[]gax.CallOptionDeleteOperation[]gax.CallOptionGetOperation[]gax.CallOptionListOperations[]gax.CallOption}CallOptions contains the retry settings for each method of Client.
CatalogCallOptions
typeCatalogCallOptionsstruct{CreateEntryType[]gax.CallOptionUpdateEntryType[]gax.CallOptionDeleteEntryType[]gax.CallOptionListEntryTypes[]gax.CallOptionGetEntryType[]gax.CallOptionCreateAspectType[]gax.CallOptionUpdateAspectType[]gax.CallOptionDeleteAspectType[]gax.CallOptionListAspectTypes[]gax.CallOptionGetAspectType[]gax.CallOptionCreateEntryGroup[]gax.CallOptionUpdateEntryGroup[]gax.CallOptionDeleteEntryGroup[]gax.CallOptionListEntryGroups[]gax.CallOptionGetEntryGroup[]gax.CallOptionCreateEntry[]gax.CallOptionUpdateEntry[]gax.CallOptionDeleteEntry[]gax.CallOptionListEntries[]gax.CallOptionGetEntry[]gax.CallOptionLookupEntry[]gax.CallOptionSearchEntries[]gax.CallOptionCreateMetadataJob[]gax.CallOptionGetMetadataJob[]gax.CallOptionListMetadataJobs[]gax.CallOptionCancelMetadataJob[]gax.CallOptionCreateEntryLink[]gax.CallOptionDeleteEntryLink[]gax.CallOptionGetEntryLink[]gax.CallOptionGetLocation[]gax.CallOptionListLocations[]gax.CallOptionCancelOperation[]gax.CallOptionDeleteOperation[]gax.CallOptionGetOperation[]gax.CallOptionListOperations[]gax.CallOption}CatalogCallOptions contains the retry settings for each method of CatalogClient.
CatalogClient
typeCatalogClientstruct{// The call options for this service.CallOptions*CatalogCallOptions// LROClient is used internally to handle long-running operations.// It is exposed so that its CallOptions can be modified if required.// Users should not Close this client.LROClient*lroauto.OperationsClient// contains filtered or unexported fields}CatalogClient is a client for interacting with Cloud Dataplex API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
The primary resources offered by this service are EntryGroups, EntryTypes,AspectTypes, Entries and EntryLinks. They collectively let dataadministrators organize, manage, secure, and catalog data located acrosscloud projects in their organization in a variety of storage systems,including Cloud Storage and BigQuery.
func NewCatalogClient
funcNewCatalogClient(ctxcontext.Context,opts...option.ClientOption)(*CatalogClient,error)NewCatalogClient creates a new catalog service client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.
The primary resources offered by this service are EntryGroups, EntryTypes,AspectTypes, Entries and EntryLinks. They collectively let dataadministrators organize, manage, secure, and catalog data located acrosscloud projects in their organization in a variety of storage systems,including Cloud Storage and BigQuery.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func NewCatalogRESTClient
funcNewCatalogRESTClient(ctxcontext.Context,opts...option.ClientOption)(*CatalogClient,error)NewCatalogRESTClient creates a new catalog service rest client.
The primary resources offered by this service are EntryGroups, EntryTypes,AspectTypes, Entries and EntryLinks. They collectively let dataadministrators organize, manage, secure, and catalog data located acrosscloud projects in their organization in a variety of storage systems,including Cloud Storage and BigQuery.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func (*CatalogClient) CancelMetadataJob
func(c*CatalogClient)CancelMetadataJob(ctxcontext.Context,req*dataplexpb.CancelMetadataJobRequest,opts...gax.CallOption)errorCancelMetadataJob cancels a metadata job.
If you cancel a metadata import job that is in progress, the changes in thejob might be partially applied. We recommend that you reset the state ofthe entry groups in your project by running another metadata job thatreverts the changes from the canceled job.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CancelMetadataJobRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CancelMetadataJobRequest.}err=c.CancelMetadataJob(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*CatalogClient) CancelOperation
func(c*CatalogClient)CancelOperation(ctxcontext.Context,req*longrunningpb.CancelOperationRequest,opts...gax.CallOption)errorCancelOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.CancelOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.}err=c.CancelOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*CatalogClient) Close
func(c*CatalogClient)Close()errorClose closes the connection to the API service. The user should invoke this whenthe client is no longer required.
func (*CatalogClient) Connection (deprecated)
func(c*CatalogClient)Connection()*grpc.ClientConnConnection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.
func (*CatalogClient) CreateAspectType
func(c*CatalogClient)CreateAspectType(ctxcontext.Context,req*dataplexpb.CreateAspectTypeRequest,opts...gax.CallOption)(*CreateAspectTypeOperation,error)CreateAspectType creates an AspectType.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateAspectTypeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateAspectTypeRequest.}op,err:=c.CreateAspectType(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) CreateAspectTypeOperation
func(c*CatalogClient)CreateAspectTypeOperation(namestring)*CreateAspectTypeOperationCreateAspectTypeOperation returns a new CreateAspectTypeOperation from a given name.The name must be that of a previously created CreateAspectTypeOperation, possibly from a different process.
func (*CatalogClient) CreateEntry
func(c*CatalogClient)CreateEntry(ctxcontext.Context,req*dataplexpb.CreateEntryRequest,opts...gax.CallOption)(*dataplexpb.Entry,error)CreateEntry creates an Entry.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateEntryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateEntryRequest.}resp,err:=c.CreateEntry(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) CreateEntryGroup
func(c*CatalogClient)CreateEntryGroup(ctxcontext.Context,req*dataplexpb.CreateEntryGroupRequest,opts...gax.CallOption)(*CreateEntryGroupOperation,error)CreateEntryGroup creates an EntryGroup.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateEntryGroupRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateEntryGroupRequest.}op,err:=c.CreateEntryGroup(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) CreateEntryGroupOperation
func(c*CatalogClient)CreateEntryGroupOperation(namestring)*CreateEntryGroupOperationCreateEntryGroupOperation returns a new CreateEntryGroupOperation from a given name.The name must be that of a previously created CreateEntryGroupOperation, possibly from a different process.
func (*CatalogClient) CreateEntryLink
func(c*CatalogClient)CreateEntryLink(ctxcontext.Context,req*dataplexpb.CreateEntryLinkRequest,opts...gax.CallOption)(*dataplexpb.EntryLink,error)CreateEntryLink creates an Entry Link.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateEntryLinkRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateEntryLinkRequest.}resp,err:=c.CreateEntryLink(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) CreateEntryType
func(c*CatalogClient)CreateEntryType(ctxcontext.Context,req*dataplexpb.CreateEntryTypeRequest,opts...gax.CallOption)(*CreateEntryTypeOperation,error)CreateEntryType creates an EntryType.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateEntryTypeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateEntryTypeRequest.}op,err:=c.CreateEntryType(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) CreateEntryTypeOperation
func(c*CatalogClient)CreateEntryTypeOperation(namestring)*CreateEntryTypeOperationCreateEntryTypeOperation returns a new CreateEntryTypeOperation from a given name.The name must be that of a previously created CreateEntryTypeOperation, possibly from a different process.
func (*CatalogClient) CreateMetadataJob
func(c*CatalogClient)CreateMetadataJob(ctxcontext.Context,req*dataplexpb.CreateMetadataJobRequest,opts...gax.CallOption)(*CreateMetadataJobOperation,error)CreateMetadataJob creates a metadata job. For example, use a metadata job to import metadatafrom a third-party system into Dataplex Universal Catalog.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateMetadataJobRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateMetadataJobRequest.}op,err:=c.CreateMetadataJob(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) CreateMetadataJobOperation
func(c*CatalogClient)CreateMetadataJobOperation(namestring)*CreateMetadataJobOperationCreateMetadataJobOperation returns a new CreateMetadataJobOperation from a given name.The name must be that of a previously created CreateMetadataJobOperation, possibly from a different process.
func (*CatalogClient) DeleteAspectType
func(c*CatalogClient)DeleteAspectType(ctxcontext.Context,req*dataplexpb.DeleteAspectTypeRequest,opts...gax.CallOption)(*DeleteAspectTypeOperation,error)DeleteAspectType deletes an AspectType.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteAspectTypeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteAspectTypeRequest.}op,err:=c.DeleteAspectType(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*CatalogClient) DeleteAspectTypeOperation
func(c*CatalogClient)DeleteAspectTypeOperation(namestring)*DeleteAspectTypeOperationDeleteAspectTypeOperation returns a new DeleteAspectTypeOperation from a given name.The name must be that of a previously created DeleteAspectTypeOperation, possibly from a different process.
func (*CatalogClient) DeleteEntry
func(c*CatalogClient)DeleteEntry(ctxcontext.Context,req*dataplexpb.DeleteEntryRequest,opts...gax.CallOption)(*dataplexpb.Entry,error)DeleteEntry deletes an Entry.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteEntryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteEntryRequest.}resp,err:=c.DeleteEntry(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) DeleteEntryGroup
func(c*CatalogClient)DeleteEntryGroup(ctxcontext.Context,req*dataplexpb.DeleteEntryGroupRequest,opts...gax.CallOption)(*DeleteEntryGroupOperation,error)DeleteEntryGroup deletes an EntryGroup.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteEntryGroupRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteEntryGroupRequest.}op,err:=c.DeleteEntryGroup(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*CatalogClient) DeleteEntryGroupOperation
func(c*CatalogClient)DeleteEntryGroupOperation(namestring)*DeleteEntryGroupOperationDeleteEntryGroupOperation returns a new DeleteEntryGroupOperation from a given name.The name must be that of a previously created DeleteEntryGroupOperation, possibly from a different process.
func (*CatalogClient) DeleteEntryLink
func(c*CatalogClient)DeleteEntryLink(ctxcontext.Context,req*dataplexpb.DeleteEntryLinkRequest,opts...gax.CallOption)(*dataplexpb.EntryLink,error)DeleteEntryLink deletes an Entry Link.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteEntryLinkRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteEntryLinkRequest.}resp,err:=c.DeleteEntryLink(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) DeleteEntryType
func(c*CatalogClient)DeleteEntryType(ctxcontext.Context,req*dataplexpb.DeleteEntryTypeRequest,opts...gax.CallOption)(*DeleteEntryTypeOperation,error)DeleteEntryType deletes an EntryType.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteEntryTypeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteEntryTypeRequest.}op,err:=c.DeleteEntryType(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*CatalogClient) DeleteEntryTypeOperation
func(c*CatalogClient)DeleteEntryTypeOperation(namestring)*DeleteEntryTypeOperationDeleteEntryTypeOperation returns a new DeleteEntryTypeOperation from a given name.The name must be that of a previously created DeleteEntryTypeOperation, possibly from a different process.
func (*CatalogClient) DeleteOperation
func(c*CatalogClient)DeleteOperation(ctxcontext.Context,req*longrunningpb.DeleteOperationRequest,opts...gax.CallOption)errorDeleteOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.DeleteOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.}err=c.DeleteOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*CatalogClient) GetAspectType
func(c*CatalogClient)GetAspectType(ctxcontext.Context,req*dataplexpb.GetAspectTypeRequest,opts...gax.CallOption)(*dataplexpb.AspectType,error)GetAspectType gets an AspectType.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetAspectTypeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetAspectTypeRequest.}resp,err:=c.GetAspectType(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) GetEntry
func(c*CatalogClient)GetEntry(ctxcontext.Context,req*dataplexpb.GetEntryRequest,opts...gax.CallOption)(*dataplexpb.Entry,error)GetEntry gets an Entry.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetEntryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetEntryRequest.}resp,err:=c.GetEntry(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) GetEntryGroup
func(c*CatalogClient)GetEntryGroup(ctxcontext.Context,req*dataplexpb.GetEntryGroupRequest,opts...gax.CallOption)(*dataplexpb.EntryGroup,error)GetEntryGroup gets an EntryGroup.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetEntryGroupRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetEntryGroupRequest.}resp,err:=c.GetEntryGroup(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) GetEntryLink
func(c*CatalogClient)GetEntryLink(ctxcontext.Context,req*dataplexpb.GetEntryLinkRequest,opts...gax.CallOption)(*dataplexpb.EntryLink,error)GetEntryLink gets an Entry Link.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetEntryLinkRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetEntryLinkRequest.}resp,err:=c.GetEntryLink(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) GetEntryType
func(c*CatalogClient)GetEntryType(ctxcontext.Context,req*dataplexpb.GetEntryTypeRequest,opts...gax.CallOption)(*dataplexpb.EntryType,error)GetEntryType gets an EntryType.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetEntryTypeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetEntryTypeRequest.}resp,err:=c.GetEntryType(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) GetLocation
func(c*CatalogClient)GetLocation(ctxcontext.Context,req*locationpb.GetLocationRequest,opts...gax.CallOption)(*locationpb.Location,error)GetLocation gets information about a location.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) GetMetadataJob
func(c*CatalogClient)GetMetadataJob(ctxcontext.Context,req*dataplexpb.GetMetadataJobRequest,opts...gax.CallOption)(*dataplexpb.MetadataJob,error)GetMetadataJob gets a metadata job.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetMetadataJobRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetMetadataJobRequest.}resp,err:=c.GetMetadataJob(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) GetOperation
func(c*CatalogClient)GetOperation(ctxcontext.Context,req*longrunningpb.GetOperationRequest,opts...gax.CallOption)(*longrunningpb.Operation,error)GetOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.GetOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.}resp,err:=c.GetOperation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) ListAspectTypes
func(c*CatalogClient)ListAspectTypes(ctxcontext.Context,req*dataplexpb.ListAspectTypesRequest,opts...gax.CallOption)*AspectTypeIteratorListAspectTypes lists AspectType resources in a project and location.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListAspectTypesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListAspectTypesRequest.}it:=c.ListAspectTypes(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListAspectTypesResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListAspectTypesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListAspectTypesRequest.}forresp,err:=rangec.ListAspectTypes(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CatalogClient) ListEntries
func(c*CatalogClient)ListEntries(ctxcontext.Context,req*dataplexpb.ListEntriesRequest,opts...gax.CallOption)*EntryIteratorListEntries lists Entries within an EntryGroup.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListEntriesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListEntriesRequest.}it:=c.ListEntries(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListEntriesResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListEntriesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListEntriesRequest.}forresp,err:=rangec.ListEntries(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CatalogClient) ListEntryGroups
func(c*CatalogClient)ListEntryGroups(ctxcontext.Context,req*dataplexpb.ListEntryGroupsRequest,opts...gax.CallOption)*EntryGroupIteratorListEntryGroups lists EntryGroup resources in a project and location.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListEntryGroupsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListEntryGroupsRequest.}it:=c.ListEntryGroups(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListEntryGroupsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListEntryGroupsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListEntryGroupsRequest.}forresp,err:=rangec.ListEntryGroups(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CatalogClient) ListEntryTypes
func(c*CatalogClient)ListEntryTypes(ctxcontext.Context,req*dataplexpb.ListEntryTypesRequest,opts...gax.CallOption)*EntryTypeIteratorListEntryTypes lists EntryType resources in a project and location.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListEntryTypesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListEntryTypesRequest.}it:=c.ListEntryTypes(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListEntryTypesResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListEntryTypesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListEntryTypesRequest.}forresp,err:=rangec.ListEntryTypes(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CatalogClient) ListLocations
func(c*CatalogClient)ListLocations(ctxcontext.Context,req*locationpb.ListLocationsRequest,opts...gax.CallOption)*LocationIteratorListLocations lists information about the supported locations for this service.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1""google.golang.org/api/iterator"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*locationpb.ListLocationsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.ListLocationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.}forresp,err:=rangec.ListLocations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CatalogClient) ListMetadataJobs
func(c*CatalogClient)ListMetadataJobs(ctxcontext.Context,req*dataplexpb.ListMetadataJobsRequest,opts...gax.CallOption)*MetadataJobIteratorListMetadataJobs lists metadata jobs.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListMetadataJobsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListMetadataJobsRequest.}it:=c.ListMetadataJobs(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListMetadataJobsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListMetadataJobsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListMetadataJobsRequest.}forresp,err:=rangec.ListMetadataJobs(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CatalogClient) ListOperations
func(c*CatalogClient)ListOperations(ctxcontext.Context,req*longrunningpb.ListOperationsRequest,opts...gax.CallOption)*OperationIteratorListOperations is a utility method from google.longrunning.Operations.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}it:=c.ListOperations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*longrunningpb.ListOperationsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}forresp,err:=rangec.ListOperations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CatalogClient) LookupEntry
func(c*CatalogClient)LookupEntry(ctxcontext.Context,req*dataplexpb.LookupEntryRequest,opts...gax.CallOption)(*dataplexpb.Entry,error)LookupEntry looks up an entry by name using the permission on the source system.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.LookupEntryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#LookupEntryRequest.}resp,err:=c.LookupEntry(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) SearchEntries
func(c*CatalogClient)SearchEntries(ctxcontext.Context,req*dataplexpb.SearchEntriesRequest,opts...gax.CallOption)*SearchEntriesResultIteratorSearchEntries searches for Entries matching the given query and scope.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.SearchEntriesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#SearchEntriesRequest.}it:=c.SearchEntries(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.SearchEntriesResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.SearchEntriesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#SearchEntriesRequest.}forresp,err:=rangec.SearchEntries(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CatalogClient) UpdateAspectType
func(c*CatalogClient)UpdateAspectType(ctxcontext.Context,req*dataplexpb.UpdateAspectTypeRequest,opts...gax.CallOption)(*UpdateAspectTypeOperation,error)UpdateAspectType updates an AspectType.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateAspectTypeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateAspectTypeRequest.}op,err:=c.UpdateAspectType(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) UpdateAspectTypeOperation
func(c*CatalogClient)UpdateAspectTypeOperation(namestring)*UpdateAspectTypeOperationUpdateAspectTypeOperation returns a new UpdateAspectTypeOperation from a given name.The name must be that of a previously created UpdateAspectTypeOperation, possibly from a different process.
func (*CatalogClient) UpdateEntry
func(c*CatalogClient)UpdateEntry(ctxcontext.Context,req*dataplexpb.UpdateEntryRequest,opts...gax.CallOption)(*dataplexpb.Entry,error)UpdateEntry updates an Entry.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateEntryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateEntryRequest.}resp,err:=c.UpdateEntry(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) UpdateEntryGroup
func(c*CatalogClient)UpdateEntryGroup(ctxcontext.Context,req*dataplexpb.UpdateEntryGroupRequest,opts...gax.CallOption)(*UpdateEntryGroupOperation,error)UpdateEntryGroup updates an EntryGroup.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateEntryGroupRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateEntryGroupRequest.}op,err:=c.UpdateEntryGroup(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) UpdateEntryGroupOperation
func(c*CatalogClient)UpdateEntryGroupOperation(namestring)*UpdateEntryGroupOperationUpdateEntryGroupOperation returns a new UpdateEntryGroupOperation from a given name.The name must be that of a previously created UpdateEntryGroupOperation, possibly from a different process.
func (*CatalogClient) UpdateEntryType
func(c*CatalogClient)UpdateEntryType(ctxcontext.Context,req*dataplexpb.UpdateEntryTypeRequest,opts...gax.CallOption)(*UpdateEntryTypeOperation,error)UpdateEntryType updates an EntryType.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCatalogClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateEntryTypeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateEntryTypeRequest.}op,err:=c.UpdateEntryType(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CatalogClient) UpdateEntryTypeOperation
func(c*CatalogClient)UpdateEntryTypeOperation(namestring)*UpdateEntryTypeOperationUpdateEntryTypeOperation returns a new UpdateEntryTypeOperation from a given name.The name must be that of a previously created UpdateEntryTypeOperation, possibly from a different process.
Client
typeClientstruct{// The call options for this service.CallOptions*CallOptions// LROClient is used internally to handle long-running operations.// It is exposed so that its CallOptions can be modified if required.// Users should not Close this client.LROClient*lroauto.OperationsClient// contains filtered or unexported fields}Client is a client for interacting with Cloud Dataplex API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
Dataplex service provides data lakes as a service. The primary resourcesoffered by this service are Lakes, Zones and Assets which collectively allowa data administrator to organize, manage, secure and catalog data acrosstheir organization located across cloud projects in a variety of storagesystems including Cloud Storage and BigQuery.
func NewClient
NewClient creates a new dataplex service client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.
Dataplex service provides data lakes as a service. The primary resourcesoffered by this service are Lakes, Zones and Assets which collectively allowa data administrator to organize, manage, secure and catalog data acrosstheir organization located across cloud projects in a variety of storagesystems including Cloud Storage and BigQuery.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func NewRESTClient
NewRESTClient creates a new dataplex service rest client.
Dataplex service provides data lakes as a service. The primary resourcesoffered by this service are Lakes, Zones and Assets which collectively allowa data administrator to organize, manage, secure and catalog data acrosstheir organization located across cloud projects in a variety of storagesystems including Cloud Storage and BigQuery.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func (*Client) CancelJob
func(c*Client)CancelJob(ctxcontext.Context,req*dataplexpb.CancelJobRequest,opts...gax.CallOption)errorCancelJob cancel jobs running for the task resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CancelJobRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CancelJobRequest.}err=c.CancelJob(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*Client) CancelOperation
func(c*Client)CancelOperation(ctxcontext.Context,req*longrunningpb.CancelOperationRequest,opts...gax.CallOption)errorCancelOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.CancelOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.}err=c.CancelOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*Client) Close
Close closes the connection to the API service. The user should invoke this whenthe client is no longer required.
func (*Client) Connection (deprecated)
func(c*Client)Connection()*grpc.ClientConnConnection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.
func (*Client) CreateAsset
func(c*Client)CreateAsset(ctxcontext.Context,req*dataplexpb.CreateAssetRequest,opts...gax.CallOption)(*CreateAssetOperation,error)CreateAsset creates an asset resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateAssetRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateAssetRequest.}op,err:=c.CreateAsset(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateAssetOperation
func(c*Client)CreateAssetOperation(namestring)*CreateAssetOperationCreateAssetOperation returns a new CreateAssetOperation from a given name.The name must be that of a previously created CreateAssetOperation, possibly from a different process.
func (*Client) CreateEnvironment
func(c*Client)CreateEnvironment(ctxcontext.Context,req*dataplexpb.CreateEnvironmentRequest,opts...gax.CallOption)(*CreateEnvironmentOperation,error)CreateEnvironment create an environment resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateEnvironmentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateEnvironmentRequest.}op,err:=c.CreateEnvironment(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateEnvironmentOperation
func(c*Client)CreateEnvironmentOperation(namestring)*CreateEnvironmentOperationCreateEnvironmentOperation returns a new CreateEnvironmentOperation from a given name.The name must be that of a previously created CreateEnvironmentOperation, possibly from a different process.
func (*Client) CreateLake
func(c*Client)CreateLake(ctxcontext.Context,req*dataplexpb.CreateLakeRequest,opts...gax.CallOption)(*CreateLakeOperation,error)CreateLake creates a lake resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateLakeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateLakeRequest.}op,err:=c.CreateLake(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateLakeOperation
func(c*Client)CreateLakeOperation(namestring)*CreateLakeOperationCreateLakeOperation returns a new CreateLakeOperation from a given name.The name must be that of a previously created CreateLakeOperation, possibly from a different process.
func (*Client) CreateTask
func(c*Client)CreateTask(ctxcontext.Context,req*dataplexpb.CreateTaskRequest,opts...gax.CallOption)(*CreateTaskOperation,error)CreateTask creates a task resource within a lake.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateTaskRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateTaskRequest.}op,err:=c.CreateTask(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateTaskOperation
func(c*Client)CreateTaskOperation(namestring)*CreateTaskOperationCreateTaskOperation returns a new CreateTaskOperation from a given name.The name must be that of a previously created CreateTaskOperation, possibly from a different process.
func (*Client) CreateZone
func(c*Client)CreateZone(ctxcontext.Context,req*dataplexpb.CreateZoneRequest,opts...gax.CallOption)(*CreateZoneOperation,error)CreateZone creates a zone resource within a lake.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateZoneRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateZoneRequest.}op,err:=c.CreateZone(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateZoneOperation
func(c*Client)CreateZoneOperation(namestring)*CreateZoneOperationCreateZoneOperation returns a new CreateZoneOperation from a given name.The name must be that of a previously created CreateZoneOperation, possibly from a different process.
func (*Client) DeleteAsset
func(c*Client)DeleteAsset(ctxcontext.Context,req*dataplexpb.DeleteAssetRequest,opts...gax.CallOption)(*DeleteAssetOperation,error)DeleteAsset deletes an asset resource. The referenced storage resource is detached(default) or deleted based on the associated Lifecycle policy.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteAssetRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteAssetRequest.}op,err:=c.DeleteAsset(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteAssetOperation
func(c*Client)DeleteAssetOperation(namestring)*DeleteAssetOperationDeleteAssetOperation returns a new DeleteAssetOperation from a given name.The name must be that of a previously created DeleteAssetOperation, possibly from a different process.
func (*Client) DeleteEnvironment
func(c*Client)DeleteEnvironment(ctxcontext.Context,req*dataplexpb.DeleteEnvironmentRequest,opts...gax.CallOption)(*DeleteEnvironmentOperation,error)DeleteEnvironment delete the environment resource. All the child resources must have beendeleted before environment deletion can be initiated.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteEnvironmentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteEnvironmentRequest.}op,err:=c.DeleteEnvironment(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteEnvironmentOperation
func(c*Client)DeleteEnvironmentOperation(namestring)*DeleteEnvironmentOperationDeleteEnvironmentOperation returns a new DeleteEnvironmentOperation from a given name.The name must be that of a previously created DeleteEnvironmentOperation, possibly from a different process.
func (*Client) DeleteLake
func(c*Client)DeleteLake(ctxcontext.Context,req*dataplexpb.DeleteLakeRequest,opts...gax.CallOption)(*DeleteLakeOperation,error)DeleteLake deletes a lake resource. All zones within the lake must be deleted beforethe lake can be deleted.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteLakeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteLakeRequest.}op,err:=c.DeleteLake(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteLakeOperation
func(c*Client)DeleteLakeOperation(namestring)*DeleteLakeOperationDeleteLakeOperation returns a new DeleteLakeOperation from a given name.The name must be that of a previously created DeleteLakeOperation, possibly from a different process.
func (*Client) DeleteOperation
func(c*Client)DeleteOperation(ctxcontext.Context,req*longrunningpb.DeleteOperationRequest,opts...gax.CallOption)errorDeleteOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.DeleteOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.}err=c.DeleteOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteTask
func(c*Client)DeleteTask(ctxcontext.Context,req*dataplexpb.DeleteTaskRequest,opts...gax.CallOption)(*DeleteTaskOperation,error)DeleteTask delete the task resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteTaskRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteTaskRequest.}op,err:=c.DeleteTask(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteTaskOperation
func(c*Client)DeleteTaskOperation(namestring)*DeleteTaskOperationDeleteTaskOperation returns a new DeleteTaskOperation from a given name.The name must be that of a previously created DeleteTaskOperation, possibly from a different process.
func (*Client) DeleteZone
func(c*Client)DeleteZone(ctxcontext.Context,req*dataplexpb.DeleteZoneRequest,opts...gax.CallOption)(*DeleteZoneOperation,error)DeleteZone deletes a zone resource. All assets within a zone must be deleted beforethe zone can be deleted.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteZoneRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteZoneRequest.}op,err:=c.DeleteZone(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteZoneOperation
func(c*Client)DeleteZoneOperation(namestring)*DeleteZoneOperationDeleteZoneOperation returns a new DeleteZoneOperation from a given name.The name must be that of a previously created DeleteZoneOperation, possibly from a different process.
func (*Client) GetAsset
func(c*Client)GetAsset(ctxcontext.Context,req*dataplexpb.GetAssetRequest,opts...gax.CallOption)(*dataplexpb.Asset,error)GetAsset retrieves an asset resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetAssetRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetAssetRequest.}resp,err:=c.GetAsset(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetEnvironment
func(c*Client)GetEnvironment(ctxcontext.Context,req*dataplexpb.GetEnvironmentRequest,opts...gax.CallOption)(*dataplexpb.Environment,error)GetEnvironment get environment resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetEnvironmentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetEnvironmentRequest.}resp,err:=c.GetEnvironment(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetJob
func(c*Client)GetJob(ctxcontext.Context,req*dataplexpb.GetJobRequest,opts...gax.CallOption)(*dataplexpb.Job,error)GetJob get job resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetJobRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetJobRequest.}resp,err:=c.GetJob(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetLake
func(c*Client)GetLake(ctxcontext.Context,req*dataplexpb.GetLakeRequest,opts...gax.CallOption)(*dataplexpb.Lake,error)GetLake retrieves a lake resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetLakeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetLakeRequest.}resp,err:=c.GetLake(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetLocation
func(c*Client)GetLocation(ctxcontext.Context,req*locationpb.GetLocationRequest,opts...gax.CallOption)(*locationpb.Location,error)GetLocation gets information about a location.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetOperation
func(c*Client)GetOperation(ctxcontext.Context,req*longrunningpb.GetOperationRequest,opts...gax.CallOption)(*longrunningpb.Operation,error)GetOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.GetOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.}resp,err:=c.GetOperation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetTask
func(c*Client)GetTask(ctxcontext.Context,req*dataplexpb.GetTaskRequest,opts...gax.CallOption)(*dataplexpb.Task,error)GetTask get task resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetTaskRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetTaskRequest.}resp,err:=c.GetTask(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetZone
func(c*Client)GetZone(ctxcontext.Context,req*dataplexpb.GetZoneRequest,opts...gax.CallOption)(*dataplexpb.Zone,error)GetZone retrieves a zone resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetZoneRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetZoneRequest.}resp,err:=c.GetZone(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) ListAssetActions
func(c*Client)ListAssetActions(ctxcontext.Context,req*dataplexpb.ListAssetActionsRequest,opts...gax.CallOption)*ActionIteratorListAssetActions lists action resources in an asset.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListAssetActionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListAssetActionsRequest.}it:=c.ListAssetActions(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListActionsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListAssetActionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListAssetActionsRequest.}forresp,err:=rangec.ListAssetActions(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListAssets
func(c*Client)ListAssets(ctxcontext.Context,req*dataplexpb.ListAssetsRequest,opts...gax.CallOption)*AssetIteratorListAssets lists asset resources in a zone.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListAssetsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListAssetsRequest.}it:=c.ListAssets(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListAssetsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListAssetsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListAssetsRequest.}forresp,err:=rangec.ListAssets(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListEnvironments
func(c*Client)ListEnvironments(ctxcontext.Context,req*dataplexpb.ListEnvironmentsRequest,opts...gax.CallOption)*EnvironmentIteratorListEnvironments lists environments under the given lake.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListEnvironmentsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListEnvironmentsRequest.}it:=c.ListEnvironments(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListEnvironmentsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListEnvironmentsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListEnvironmentsRequest.}forresp,err:=rangec.ListEnvironments(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListJobs
func(c*Client)ListJobs(ctxcontext.Context,req*dataplexpb.ListJobsRequest,opts...gax.CallOption)*JobIteratorListJobs lists Jobs under the given task.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListJobsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListJobsRequest.}it:=c.ListJobs(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListJobsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListJobsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListJobsRequest.}forresp,err:=rangec.ListJobs(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListLakeActions
func(c*Client)ListLakeActions(ctxcontext.Context,req*dataplexpb.ListLakeActionsRequest,opts...gax.CallOption)*ActionIteratorListLakeActions lists action resources in a lake.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListLakeActionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListLakeActionsRequest.}it:=c.ListLakeActions(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListActionsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListLakeActionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListLakeActionsRequest.}forresp,err:=rangec.ListLakeActions(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListLakes
func(c*Client)ListLakes(ctxcontext.Context,req*dataplexpb.ListLakesRequest,opts...gax.CallOption)*LakeIteratorListLakes lists lake resources in a project and location.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListLakesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListLakesRequest.}it:=c.ListLakes(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListLakesResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListLakesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListLakesRequest.}forresp,err:=rangec.ListLakes(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListLocations
func(c*Client)ListLocations(ctxcontext.Context,req*locationpb.ListLocationsRequest,opts...gax.CallOption)*LocationIteratorListLocations lists information about the supported locations for this service.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1""google.golang.org/api/iterator"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*locationpb.ListLocationsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.ListLocationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.}forresp,err:=rangec.ListLocations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListOperations
func(c*Client)ListOperations(ctxcontext.Context,req*longrunningpb.ListOperationsRequest,opts...gax.CallOption)*OperationIteratorListOperations is a utility method from google.longrunning.Operations.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}it:=c.ListOperations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*longrunningpb.ListOperationsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}forresp,err:=rangec.ListOperations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListSessions
func(c*Client)ListSessions(ctxcontext.Context,req*dataplexpb.ListSessionsRequest,opts...gax.CallOption)*SessionIteratorListSessions lists session resources in an environment.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListSessionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListSessionsRequest.}it:=c.ListSessions(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListSessionsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListSessionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListSessionsRequest.}forresp,err:=rangec.ListSessions(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListTasks
func(c*Client)ListTasks(ctxcontext.Context,req*dataplexpb.ListTasksRequest,opts...gax.CallOption)*TaskIteratorListTasks lists tasks under the given lake.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListTasksRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListTasksRequest.}it:=c.ListTasks(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListTasksResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListTasksRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListTasksRequest.}forresp,err:=rangec.ListTasks(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListZoneActions
func(c*Client)ListZoneActions(ctxcontext.Context,req*dataplexpb.ListZoneActionsRequest,opts...gax.CallOption)*ActionIteratorListZoneActions lists action resources in a zone.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListZoneActionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListZoneActionsRequest.}it:=c.ListZoneActions(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListActionsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListZoneActionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListZoneActionsRequest.}forresp,err:=rangec.ListZoneActions(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListZones
func(c*Client)ListZones(ctxcontext.Context,req*dataplexpb.ListZonesRequest,opts...gax.CallOption)*ZoneIteratorListZones lists zone resources in a lake.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListZonesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListZonesRequest.}it:=c.ListZones(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListZonesResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListZonesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListZonesRequest.}forresp,err:=rangec.ListZones(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) RunTask
func(c*Client)RunTask(ctxcontext.Context,req*dataplexpb.RunTaskRequest,opts...gax.CallOption)(*dataplexpb.RunTaskResponse,error)RunTask run an on demand execution of a Task.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.RunTaskRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#RunTaskRequest.}resp,err:=c.RunTask(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateAsset
func(c*Client)UpdateAsset(ctxcontext.Context,req*dataplexpb.UpdateAssetRequest,opts...gax.CallOption)(*UpdateAssetOperation,error)UpdateAsset updates an asset resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateAssetRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateAssetRequest.}op,err:=c.UpdateAsset(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateAssetOperation
func(c*Client)UpdateAssetOperation(namestring)*UpdateAssetOperationUpdateAssetOperation returns a new UpdateAssetOperation from a given name.The name must be that of a previously created UpdateAssetOperation, possibly from a different process.
func (*Client) UpdateEnvironment
func(c*Client)UpdateEnvironment(ctxcontext.Context,req*dataplexpb.UpdateEnvironmentRequest,opts...gax.CallOption)(*UpdateEnvironmentOperation,error)UpdateEnvironment update the environment resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateEnvironmentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateEnvironmentRequest.}op,err:=c.UpdateEnvironment(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateEnvironmentOperation
func(c*Client)UpdateEnvironmentOperation(namestring)*UpdateEnvironmentOperationUpdateEnvironmentOperation returns a new UpdateEnvironmentOperation from a given name.The name must be that of a previously created UpdateEnvironmentOperation, possibly from a different process.
func (*Client) UpdateLake
func(c*Client)UpdateLake(ctxcontext.Context,req*dataplexpb.UpdateLakeRequest,opts...gax.CallOption)(*UpdateLakeOperation,error)UpdateLake updates a lake resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateLakeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateLakeRequest.}op,err:=c.UpdateLake(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateLakeOperation
func(c*Client)UpdateLakeOperation(namestring)*UpdateLakeOperationUpdateLakeOperation returns a new UpdateLakeOperation from a given name.The name must be that of a previously created UpdateLakeOperation, possibly from a different process.
func (*Client) UpdateTask
func(c*Client)UpdateTask(ctxcontext.Context,req*dataplexpb.UpdateTaskRequest,opts...gax.CallOption)(*UpdateTaskOperation,error)UpdateTask update the task resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateTaskRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateTaskRequest.}op,err:=c.UpdateTask(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateTaskOperation
func(c*Client)UpdateTaskOperation(namestring)*UpdateTaskOperationUpdateTaskOperation returns a new UpdateTaskOperation from a given name.The name must be that of a previously created UpdateTaskOperation, possibly from a different process.
func (*Client) UpdateZone
func(c*Client)UpdateZone(ctxcontext.Context,req*dataplexpb.UpdateZoneRequest,opts...gax.CallOption)(*UpdateZoneOperation,error)UpdateZone updates a zone resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateZoneRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateZoneRequest.}op,err:=c.UpdateZone(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateZoneOperation
func(c*Client)UpdateZoneOperation(namestring)*UpdateZoneOperationUpdateZoneOperation returns a new UpdateZoneOperation from a given name.The name must be that of a previously created UpdateZoneOperation, possibly from a different process.
CmekCallOptions
typeCmekCallOptionsstruct{CreateEncryptionConfig[]gax.CallOptionUpdateEncryptionConfig[]gax.CallOptionDeleteEncryptionConfig[]gax.CallOptionListEncryptionConfigs[]gax.CallOptionGetEncryptionConfig[]gax.CallOptionGetLocation[]gax.CallOptionListLocations[]gax.CallOptionCancelOperation[]gax.CallOptionDeleteOperation[]gax.CallOptionGetOperation[]gax.CallOptionListOperations[]gax.CallOption}CmekCallOptions contains the retry settings for each method of CmekClient.
CmekClient
typeCmekClientstruct{// The call options for this service.CallOptions*CmekCallOptions// LROClient is used internally to handle long-running operations.// It is exposed so that its CallOptions can be modified if required.// Users should not Close this client.LROClient*lroauto.OperationsClient// contains filtered or unexported fields}CmekClient is a client for interacting with Cloud Dataplex API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
Dataplex Universal Catalog Customer Managed Encryption Keys (CMEK) Service
func NewCmekClient
funcNewCmekClient(ctxcontext.Context,opts...option.ClientOption)(*CmekClient,error)NewCmekClient creates a new cmek service client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.
Dataplex Universal Catalog Customer Managed Encryption Keys (CMEK) Service
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCmekClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func NewCmekRESTClient
funcNewCmekRESTClient(ctxcontext.Context,opts...option.ClientOption)(*CmekClient,error)NewCmekRESTClient creates a new cmek service rest client.
Dataplex Universal Catalog Customer Managed Encryption Keys (CMEK) Service
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCmekRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func (*CmekClient) CancelOperation
func(c*CmekClient)CancelOperation(ctxcontext.Context,req*longrunningpb.CancelOperationRequest,opts...gax.CallOption)errorCancelOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCmekClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.CancelOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.}err=c.CancelOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*CmekClient) Close
func(c*CmekClient)Close()errorClose closes the connection to the API service. The user should invoke this whenthe client is no longer required.
func (*CmekClient) Connection (deprecated)
func(c*CmekClient)Connection()*grpc.ClientConnConnection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.
func (*CmekClient) CreateEncryptionConfig
func(c*CmekClient)CreateEncryptionConfig(ctxcontext.Context,req*dataplexpb.CreateEncryptionConfigRequest,opts...gax.CallOption)(*CreateEncryptionConfigOperation,error)CreateEncryptionConfig create an EncryptionConfig.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCmekClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateEncryptionConfigRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateEncryptionConfigRequest.}op,err:=c.CreateEncryptionConfig(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CmekClient) CreateEncryptionConfigOperation
func(c*CmekClient)CreateEncryptionConfigOperation(namestring)*CreateEncryptionConfigOperationCreateEncryptionConfigOperation returns a new CreateEncryptionConfigOperation from a given name.The name must be that of a previously created CreateEncryptionConfigOperation, possibly from a different process.
func (*CmekClient) DeleteEncryptionConfig
func(c*CmekClient)DeleteEncryptionConfig(ctxcontext.Context,req*dataplexpb.DeleteEncryptionConfigRequest,opts...gax.CallOption)(*DeleteEncryptionConfigOperation,error)DeleteEncryptionConfig delete an EncryptionConfig.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCmekClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteEncryptionConfigRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteEncryptionConfigRequest.}op,err:=c.DeleteEncryptionConfig(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*CmekClient) DeleteEncryptionConfigOperation
func(c*CmekClient)DeleteEncryptionConfigOperation(namestring)*DeleteEncryptionConfigOperationDeleteEncryptionConfigOperation returns a new DeleteEncryptionConfigOperation from a given name.The name must be that of a previously created DeleteEncryptionConfigOperation, possibly from a different process.
func (*CmekClient) DeleteOperation
func(c*CmekClient)DeleteOperation(ctxcontext.Context,req*longrunningpb.DeleteOperationRequest,opts...gax.CallOption)errorDeleteOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCmekClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.DeleteOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.}err=c.DeleteOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*CmekClient) GetEncryptionConfig
func(c*CmekClient)GetEncryptionConfig(ctxcontext.Context,req*dataplexpb.GetEncryptionConfigRequest,opts...gax.CallOption)(*dataplexpb.EncryptionConfig,error)GetEncryptionConfig get an EncryptionConfig.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCmekClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetEncryptionConfigRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetEncryptionConfigRequest.}resp,err:=c.GetEncryptionConfig(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CmekClient) GetLocation
func(c*CmekClient)GetLocation(ctxcontext.Context,req*locationpb.GetLocationRequest,opts...gax.CallOption)(*locationpb.Location,error)GetLocation gets information about a location.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCmekClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CmekClient) GetOperation
func(c*CmekClient)GetOperation(ctxcontext.Context,req*longrunningpb.GetOperationRequest,opts...gax.CallOption)(*longrunningpb.Operation,error)GetOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCmekClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.GetOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.}resp,err:=c.GetOperation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CmekClient) ListEncryptionConfigs
func(c*CmekClient)ListEncryptionConfigs(ctxcontext.Context,req*dataplexpb.ListEncryptionConfigsRequest,opts...gax.CallOption)*EncryptionConfigIteratorListEncryptionConfigs list EncryptionConfigs.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCmekClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListEncryptionConfigsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListEncryptionConfigsRequest.}it:=c.ListEncryptionConfigs(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListEncryptionConfigsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCmekClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListEncryptionConfigsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListEncryptionConfigsRequest.}forresp,err:=rangec.ListEncryptionConfigs(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CmekClient) ListLocations
func(c*CmekClient)ListLocations(ctxcontext.Context,req*locationpb.ListLocationsRequest,opts...gax.CallOption)*LocationIteratorListLocations lists information about the supported locations for this service.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1""google.golang.org/api/iterator"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCmekClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*locationpb.ListLocationsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCmekClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.ListLocationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.}forresp,err:=rangec.ListLocations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CmekClient) ListOperations
func(c*CmekClient)ListOperations(ctxcontext.Context,req*longrunningpb.ListOperationsRequest,opts...gax.CallOption)*OperationIteratorListOperations is a utility method from google.longrunning.Operations.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCmekClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}it:=c.ListOperations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*longrunningpb.ListOperationsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCmekClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}forresp,err:=rangec.ListOperations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CmekClient) UpdateEncryptionConfig
func(c*CmekClient)UpdateEncryptionConfig(ctxcontext.Context,req*dataplexpb.UpdateEncryptionConfigRequest,opts...gax.CallOption)(*UpdateEncryptionConfigOperation,error)UpdateEncryptionConfig update an EncryptionConfig.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewCmekClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateEncryptionConfigRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateEncryptionConfigRequest.}op,err:=c.UpdateEncryptionConfig(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CmekClient) UpdateEncryptionConfigOperation
func(c*CmekClient)UpdateEncryptionConfigOperation(namestring)*UpdateEncryptionConfigOperationUpdateEncryptionConfigOperation returns a new UpdateEncryptionConfigOperation from a given name.The name must be that of a previously created UpdateEncryptionConfigOperation, possibly from a different process.
ContentCallOptions
typeContentCallOptionsstruct{CreateContent[]gax.CallOptionUpdateContent[]gax.CallOptionDeleteContent[]gax.CallOptionGetContent[]gax.CallOptionGetIamPolicy[]gax.CallOptionSetIamPolicy[]gax.CallOptionTestIamPermissions[]gax.CallOptionListContent[]gax.CallOptionGetLocation[]gax.CallOptionListLocations[]gax.CallOptionCancelOperation[]gax.CallOptionDeleteOperation[]gax.CallOptionGetOperation[]gax.CallOptionListOperations[]gax.CallOption}ContentCallOptions contains the retry settings for each method of ContentClient.
ContentClient
typeContentClientstruct{// The call options for this service.CallOptions*ContentCallOptions// contains filtered or unexported fields}ContentClient is a client for interacting with Cloud Dataplex API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
ContentService manages Notebook and SQL Scripts for Dataplex UniversalCatalog.
func NewContentClient
funcNewContentClient(ctxcontext.Context,opts...option.ClientOption)(*ContentClient,error)NewContentClient creates a new content service client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.
ContentService manages Notebook and SQL Scripts for Dataplex UniversalCatalog.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func NewContentRESTClient
funcNewContentRESTClient(ctxcontext.Context,opts...option.ClientOption)(*ContentClient,error)NewContentRESTClient creates a new content service rest client.
ContentService manages Notebook and SQL Scripts for Dataplex UniversalCatalog.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func (*ContentClient) CancelOperation
func(c*ContentClient)CancelOperation(ctxcontext.Context,req*longrunningpb.CancelOperationRequest,opts...gax.CallOption)errorCancelOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.CancelOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.}err=c.CancelOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*ContentClient) Close
func(c*ContentClient)Close()errorClose closes the connection to the API service. The user should invoke this whenthe client is no longer required.
func (*ContentClient) Connection (deprecated)
func(c*ContentClient)Connection()*grpc.ClientConnConnection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.
func (*ContentClient) CreateContent
func(c*ContentClient)CreateContent(ctxcontext.Context,req*dataplexpb.CreateContentRequest,opts...gax.CallOption)(*dataplexpb.Content,error)CreateContent create a content.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateContentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateContentRequest.}resp,err:=c.CreateContent(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*ContentClient) DeleteContent
func(c*ContentClient)DeleteContent(ctxcontext.Context,req*dataplexpb.DeleteContentRequest,opts...gax.CallOption)errorDeleteContent delete a content.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteContentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteContentRequest.}err=c.DeleteContent(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*ContentClient) DeleteOperation
func(c*ContentClient)DeleteOperation(ctxcontext.Context,req*longrunningpb.DeleteOperationRequest,opts...gax.CallOption)errorDeleteOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.DeleteOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.}err=c.DeleteOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*ContentClient) GetContent
func(c*ContentClient)GetContent(ctxcontext.Context,req*dataplexpb.GetContentRequest,opts...gax.CallOption)(*dataplexpb.Content,error)GetContent get a content resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetContentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetContentRequest.}resp,err:=c.GetContent(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*ContentClient) GetIamPolicy
func(c*ContentClient)GetIamPolicy(ctxcontext.Context,req*iampb.GetIamPolicyRequest,opts...gax.CallOption)(*iampb.Policy,error)GetIamPolicy gets the access control policy for a contentitem resource. A NOT_FOUNDerror is returned if the resource does not exist. An empty policy isreturned if the resource exists but does not have a policy set on it.
Caller must have Google IAM dataplex.content.getIamPolicy permissionon the resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"iampb"cloud.google.com/go/iam/apiv1/iampb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&iampb.GetIamPolicyRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.}resp,err:=c.GetIamPolicy(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*ContentClient) GetLocation
func(c*ContentClient)GetLocation(ctxcontext.Context,req*locationpb.GetLocationRequest,opts...gax.CallOption)(*locationpb.Location,error)GetLocation gets information about a location.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*ContentClient) GetOperation
func(c*ContentClient)GetOperation(ctxcontext.Context,req*longrunningpb.GetOperationRequest,opts...gax.CallOption)(*longrunningpb.Operation,error)GetOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.GetOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.}resp,err:=c.GetOperation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*ContentClient) ListContent
func(c*ContentClient)ListContent(ctxcontext.Context,req*dataplexpb.ListContentRequest,opts...gax.CallOption)*ContentIteratorListContent list content.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListContentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListContentRequest.}it:=c.ListContent(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListContentResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListContentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListContentRequest.}forresp,err:=rangec.ListContent(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*ContentClient) ListLocations
func(c*ContentClient)ListLocations(ctxcontext.Context,req*locationpb.ListLocationsRequest,opts...gax.CallOption)*LocationIteratorListLocations lists information about the supported locations for this service.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1""google.golang.org/api/iterator"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*locationpb.ListLocationsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.ListLocationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.}forresp,err:=rangec.ListLocations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*ContentClient) ListOperations
func(c*ContentClient)ListOperations(ctxcontext.Context,req*longrunningpb.ListOperationsRequest,opts...gax.CallOption)*OperationIteratorListOperations is a utility method from google.longrunning.Operations.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}it:=c.ListOperations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*longrunningpb.ListOperationsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}forresp,err:=rangec.ListOperations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*ContentClient) SetIamPolicy
func(c*ContentClient)SetIamPolicy(ctxcontext.Context,req*iampb.SetIamPolicyRequest,opts...gax.CallOption)(*iampb.Policy,error)SetIamPolicy sets the access control policy on the specified contentitem resource.Replaces any existing policy.
Caller must have Google IAM dataplex.content.setIamPolicy permissionon the resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"iampb"cloud.google.com/go/iam/apiv1/iampb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&iampb.SetIamPolicyRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.}resp,err:=c.SetIamPolicy(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*ContentClient) TestIamPermissions
func(c*ContentClient)TestIamPermissions(ctxcontext.Context,req*iampb.TestIamPermissionsRequest,opts...gax.CallOption)(*iampb.TestIamPermissionsResponse,error)TestIamPermissions returns the caller’s permissions on a resource.If the resource does not exist, an empty set ofpermissions is returned (a NOT_FOUND error is not returned).
A caller is not required to have Google IAM permission to make thisrequest.
Note: This operation is designed to be used for building permission-awareUIs and command-line tools, not for authorization checking. This operationmay “fail open” without warning.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"iampb"cloud.google.com/go/iam/apiv1/iampb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&iampb.TestIamPermissionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.}resp,err:=c.TestIamPermissions(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*ContentClient) UpdateContent
func(c*ContentClient)UpdateContent(ctxcontext.Context,req*dataplexpb.UpdateContentRequest,opts...gax.CallOption)(*dataplexpb.Content,error)UpdateContent update a content. Only supports full resource update.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewContentClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateContentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateContentRequest.}resp,err:=c.UpdateContent(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}ContentIterator
typeContentIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.Content,nextPageTokenstring,errerror)// contains filtered or unexported fields}ContentIterator manages a stream of *dataplexpb.Content.
func (*ContentIterator) All
func(it*ContentIterator)All()iter.Seq2[*dataplexpb.Content,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*ContentIterator) Next
func(it*ContentIterator)Next()(*dataplexpb.Content,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*ContentIterator) PageInfo
func(it*ContentIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
CreateAspectTypeOperation
typeCreateAspectTypeOperationstruct{// contains filtered or unexported fields}CreateAspectTypeOperation manages a long-running operation from CreateAspectType.
func (*CreateAspectTypeOperation) Done
func(op*CreateAspectTypeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateAspectTypeOperation) Metadata
func(op*CreateAspectTypeOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateAspectTypeOperation) Name
func(op*CreateAspectTypeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateAspectTypeOperation) Poll
func(op*CreateAspectTypeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.AspectType,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateAspectTypeOperation) Wait
func(op*CreateAspectTypeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.AspectType,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateAssetOperation
typeCreateAssetOperationstruct{// contains filtered or unexported fields}CreateAssetOperation manages a long-running operation from CreateAsset.
func (*CreateAssetOperation) Done
func(op*CreateAssetOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateAssetOperation) Metadata
func(op*CreateAssetOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateAssetOperation) Name
func(op*CreateAssetOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateAssetOperation) Poll
func(op*CreateAssetOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Asset,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateAssetOperation) Wait
func(op*CreateAssetOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Asset,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateDataAttributeBindingOperation
typeCreateDataAttributeBindingOperationstruct{// contains filtered or unexported fields}CreateDataAttributeBindingOperation manages a long-running operation from CreateDataAttributeBinding.
func (*CreateDataAttributeBindingOperation) Done
func(op*CreateDataAttributeBindingOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateDataAttributeBindingOperation) Metadata
func(op*CreateDataAttributeBindingOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateDataAttributeBindingOperation) Name
func(op*CreateDataAttributeBindingOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateDataAttributeBindingOperation) Poll
func(op*CreateDataAttributeBindingOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.DataAttributeBinding,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateDataAttributeBindingOperation) Wait
func(op*CreateDataAttributeBindingOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.DataAttributeBinding,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateDataAttributeOperation
typeCreateDataAttributeOperationstruct{// contains filtered or unexported fields}CreateDataAttributeOperation manages a long-running operation from CreateDataAttribute.
func (*CreateDataAttributeOperation) Done
func(op*CreateDataAttributeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateDataAttributeOperation) Metadata
func(op*CreateDataAttributeOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateDataAttributeOperation) Name
func(op*CreateDataAttributeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateDataAttributeOperation) Poll
func(op*CreateDataAttributeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.DataAttribute,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateDataAttributeOperation) Wait
func(op*CreateDataAttributeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.DataAttribute,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateDataScanOperation
typeCreateDataScanOperationstruct{// contains filtered or unexported fields}CreateDataScanOperation manages a long-running operation from CreateDataScan.
func (*CreateDataScanOperation) Done
func(op*CreateDataScanOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateDataScanOperation) Metadata
func(op*CreateDataScanOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateDataScanOperation) Name
func(op*CreateDataScanOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateDataScanOperation) Poll
func(op*CreateDataScanOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.DataScan,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateDataScanOperation) Wait
func(op*CreateDataScanOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.DataScan,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateDataTaxonomyOperation
typeCreateDataTaxonomyOperationstruct{// contains filtered or unexported fields}CreateDataTaxonomyOperation manages a long-running operation from CreateDataTaxonomy.
func (*CreateDataTaxonomyOperation) Done
func(op*CreateDataTaxonomyOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateDataTaxonomyOperation) Metadata
func(op*CreateDataTaxonomyOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateDataTaxonomyOperation) Name
func(op*CreateDataTaxonomyOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateDataTaxonomyOperation) Poll
func(op*CreateDataTaxonomyOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.DataTaxonomy,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateDataTaxonomyOperation) Wait
func(op*CreateDataTaxonomyOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.DataTaxonomy,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateEncryptionConfigOperation
typeCreateEncryptionConfigOperationstruct{// contains filtered or unexported fields}CreateEncryptionConfigOperation manages a long-running operation from CreateEncryptionConfig.
func (*CreateEncryptionConfigOperation) Done
func(op*CreateEncryptionConfigOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateEncryptionConfigOperation) Metadata
func(op*CreateEncryptionConfigOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateEncryptionConfigOperation) Name
func(op*CreateEncryptionConfigOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateEncryptionConfigOperation) Poll
func(op*CreateEncryptionConfigOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.EncryptionConfig,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateEncryptionConfigOperation) Wait
func(op*CreateEncryptionConfigOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.EncryptionConfig,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateEntryGroupOperation
typeCreateEntryGroupOperationstruct{// contains filtered or unexported fields}CreateEntryGroupOperation manages a long-running operation from CreateEntryGroup.
func (*CreateEntryGroupOperation) Done
func(op*CreateEntryGroupOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateEntryGroupOperation) Metadata
func(op*CreateEntryGroupOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateEntryGroupOperation) Name
func(op*CreateEntryGroupOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateEntryGroupOperation) Poll
func(op*CreateEntryGroupOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.EntryGroup,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateEntryGroupOperation) Wait
func(op*CreateEntryGroupOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.EntryGroup,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateEntryTypeOperation
typeCreateEntryTypeOperationstruct{// contains filtered or unexported fields}CreateEntryTypeOperation manages a long-running operation from CreateEntryType.
func (*CreateEntryTypeOperation) Done
func(op*CreateEntryTypeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateEntryTypeOperation) Metadata
func(op*CreateEntryTypeOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateEntryTypeOperation) Name
func(op*CreateEntryTypeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateEntryTypeOperation) Poll
func(op*CreateEntryTypeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.EntryType,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateEntryTypeOperation) Wait
func(op*CreateEntryTypeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.EntryType,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateEnvironmentOperation
typeCreateEnvironmentOperationstruct{// contains filtered or unexported fields}CreateEnvironmentOperation manages a long-running operation from CreateEnvironment.
func (*CreateEnvironmentOperation) Done
func(op*CreateEnvironmentOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateEnvironmentOperation) Metadata
func(op*CreateEnvironmentOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateEnvironmentOperation) Name
func(op*CreateEnvironmentOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateEnvironmentOperation) Poll
func(op*CreateEnvironmentOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Environment,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateEnvironmentOperation) Wait
func(op*CreateEnvironmentOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Environment,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateGlossaryOperation
typeCreateGlossaryOperationstruct{// contains filtered or unexported fields}CreateGlossaryOperation manages a long-running operation from CreateGlossary.
func (*CreateGlossaryOperation) Done
func(op*CreateGlossaryOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateGlossaryOperation) Metadata
func(op*CreateGlossaryOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateGlossaryOperation) Name
func(op*CreateGlossaryOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateGlossaryOperation) Poll
func(op*CreateGlossaryOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Glossary,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateGlossaryOperation) Wait
func(op*CreateGlossaryOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Glossary,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateLakeOperation
typeCreateLakeOperationstruct{// contains filtered or unexported fields}CreateLakeOperation manages a long-running operation from CreateLake.
func (*CreateLakeOperation) Done
func(op*CreateLakeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateLakeOperation) Metadata
func(op*CreateLakeOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateLakeOperation) Name
func(op*CreateLakeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateLakeOperation) Poll
func(op*CreateLakeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Lake,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateLakeOperation) Wait
func(op*CreateLakeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Lake,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateMetadataJobOperation
typeCreateMetadataJobOperationstruct{// contains filtered or unexported fields}CreateMetadataJobOperation manages a long-running operation from CreateMetadataJob.
func (*CreateMetadataJobOperation) Done
func(op*CreateMetadataJobOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateMetadataJobOperation) Metadata
func(op*CreateMetadataJobOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateMetadataJobOperation) Name
func(op*CreateMetadataJobOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateMetadataJobOperation) Poll
func(op*CreateMetadataJobOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.MetadataJob,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateMetadataJobOperation) Wait
func(op*CreateMetadataJobOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.MetadataJob,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateTaskOperation
typeCreateTaskOperationstruct{// contains filtered or unexported fields}CreateTaskOperation manages a long-running operation from CreateTask.
func (*CreateTaskOperation) Done
func(op*CreateTaskOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateTaskOperation) Metadata
func(op*CreateTaskOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateTaskOperation) Name
func(op*CreateTaskOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateTaskOperation) Poll
func(op*CreateTaskOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Task,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateTaskOperation) Wait
func(op*CreateTaskOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Task,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateZoneOperation
typeCreateZoneOperationstruct{// contains filtered or unexported fields}CreateZoneOperation manages a long-running operation from CreateZone.
func (*CreateZoneOperation) Done
func(op*CreateZoneOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateZoneOperation) Metadata
func(op*CreateZoneOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateZoneOperation) Name
func(op*CreateZoneOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateZoneOperation) Poll
func(op*CreateZoneOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Zone,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateZoneOperation) Wait
func(op*CreateZoneOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Zone,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DataAttributeBindingIterator
typeDataAttributeBindingIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.DataAttributeBinding,nextPageTokenstring,errerror)// contains filtered or unexported fields}DataAttributeBindingIterator manages a stream of *dataplexpb.DataAttributeBinding.
func (*DataAttributeBindingIterator) All
func(it*DataAttributeBindingIterator)All()iter.Seq2[*dataplexpb.DataAttributeBinding,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*DataAttributeBindingIterator) Next
func(it*DataAttributeBindingIterator)Next()(*dataplexpb.DataAttributeBinding,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*DataAttributeBindingIterator) PageInfo
func(it*DataAttributeBindingIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
DataAttributeIterator
typeDataAttributeIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.DataAttribute,nextPageTokenstring,errerror)// contains filtered or unexported fields}DataAttributeIterator manages a stream of *dataplexpb.DataAttribute.
func (*DataAttributeIterator) All
func(it*DataAttributeIterator)All()iter.Seq2[*dataplexpb.DataAttribute,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*DataAttributeIterator) Next
func(it*DataAttributeIterator)Next()(*dataplexpb.DataAttribute,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*DataAttributeIterator) PageInfo
func(it*DataAttributeIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
DataScanCallOptions
typeDataScanCallOptionsstruct{CreateDataScan[]gax.CallOptionUpdateDataScan[]gax.CallOptionDeleteDataScan[]gax.CallOptionGetDataScan[]gax.CallOptionListDataScans[]gax.CallOptionRunDataScan[]gax.CallOptionGetDataScanJob[]gax.CallOptionListDataScanJobs[]gax.CallOptionGenerateDataQualityRules[]gax.CallOptionGetLocation[]gax.CallOptionListLocations[]gax.CallOptionCancelOperation[]gax.CallOptionDeleteOperation[]gax.CallOptionGetOperation[]gax.CallOptionListOperations[]gax.CallOption}DataScanCallOptions contains the retry settings for each method of DataScanClient.
DataScanClient
typeDataScanClientstruct{// The call options for this service.CallOptions*DataScanCallOptions// LROClient is used internally to handle long-running operations.// It is exposed so that its CallOptions can be modified if required.// Users should not Close this client.LROClient*lroauto.OperationsClient// contains filtered or unexported fields}DataScanClient is a client for interacting with Cloud Dataplex API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
DataScanService manages DataScan resources which can be configured to runvarious types of data scanning workload and generate enriched metadata (e.g.Data Profile, Data Quality) for the data source.
func NewDataScanClient
funcNewDataScanClient(ctxcontext.Context,opts...option.ClientOption)(*DataScanClient,error)NewDataScanClient creates a new data scan service client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.
DataScanService manages DataScan resources which can be configured to runvarious types of data scanning workload and generate enriched metadata (e.g.Data Profile, Data Quality) for the data source.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func NewDataScanRESTClient
funcNewDataScanRESTClient(ctxcontext.Context,opts...option.ClientOption)(*DataScanClient,error)NewDataScanRESTClient creates a new data scan service rest client.
DataScanService manages DataScan resources which can be configured to runvarious types of data scanning workload and generate enriched metadata (e.g.Data Profile, Data Quality) for the data source.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func (*DataScanClient) CancelOperation
func(c*DataScanClient)CancelOperation(ctxcontext.Context,req*longrunningpb.CancelOperationRequest,opts...gax.CallOption)errorCancelOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.CancelOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.}err=c.CancelOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*DataScanClient) Close
func(c*DataScanClient)Close()errorClose closes the connection to the API service. The user should invoke this whenthe client is no longer required.
func (*DataScanClient) Connection (deprecated)
func(c*DataScanClient)Connection()*grpc.ClientConnConnection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.
func (*DataScanClient) CreateDataScan
func(c*DataScanClient)CreateDataScan(ctxcontext.Context,req*dataplexpb.CreateDataScanRequest,opts...gax.CallOption)(*CreateDataScanOperation,error)CreateDataScan creates a DataScan resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateDataScanRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateDataScanRequest.}op,err:=c.CreateDataScan(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataScanClient) CreateDataScanOperation
func(c*DataScanClient)CreateDataScanOperation(namestring)*CreateDataScanOperationCreateDataScanOperation returns a new CreateDataScanOperation from a given name.The name must be that of a previously created CreateDataScanOperation, possibly from a different process.
func (*DataScanClient) DeleteDataScan
func(c*DataScanClient)DeleteDataScan(ctxcontext.Context,req*dataplexpb.DeleteDataScanRequest,opts...gax.CallOption)(*DeleteDataScanOperation,error)DeleteDataScan deletes a DataScan resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteDataScanRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteDataScanRequest.}op,err:=c.DeleteDataScan(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*DataScanClient) DeleteDataScanOperation
func(c*DataScanClient)DeleteDataScanOperation(namestring)*DeleteDataScanOperationDeleteDataScanOperation returns a new DeleteDataScanOperation from a given name.The name must be that of a previously created DeleteDataScanOperation, possibly from a different process.
func (*DataScanClient) DeleteOperation
func(c*DataScanClient)DeleteOperation(ctxcontext.Context,req*longrunningpb.DeleteOperationRequest,opts...gax.CallOption)errorDeleteOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.DeleteOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.}err=c.DeleteOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*DataScanClient) GenerateDataQualityRules
func(c*DataScanClient)GenerateDataQualityRules(ctxcontext.Context,req*dataplexpb.GenerateDataQualityRulesRequest,opts...gax.CallOption)(*dataplexpb.GenerateDataQualityRulesResponse,error)GenerateDataQualityRules generates recommended data quality rules based on the results of a dataprofiling scan.
Use the recommendations to build rules for a data quality scan.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GenerateDataQualityRulesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GenerateDataQualityRulesRequest.}resp,err:=c.GenerateDataQualityRules(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataScanClient) GetDataScan
func(c*DataScanClient)GetDataScan(ctxcontext.Context,req*dataplexpb.GetDataScanRequest,opts...gax.CallOption)(*dataplexpb.DataScan,error)GetDataScan gets a DataScan resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetDataScanRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetDataScanRequest.}resp,err:=c.GetDataScan(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataScanClient) GetDataScanJob
func(c*DataScanClient)GetDataScanJob(ctxcontext.Context,req*dataplexpb.GetDataScanJobRequest,opts...gax.CallOption)(*dataplexpb.DataScanJob,error)GetDataScanJob gets a DataScanJob resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetDataScanJobRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetDataScanJobRequest.}resp,err:=c.GetDataScanJob(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataScanClient) GetLocation
func(c*DataScanClient)GetLocation(ctxcontext.Context,req*locationpb.GetLocationRequest,opts...gax.CallOption)(*locationpb.Location,error)GetLocation gets information about a location.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataScanClient) GetOperation
func(c*DataScanClient)GetOperation(ctxcontext.Context,req*longrunningpb.GetOperationRequest,opts...gax.CallOption)(*longrunningpb.Operation,error)GetOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.GetOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.}resp,err:=c.GetOperation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataScanClient) ListDataScanJobs
func(c*DataScanClient)ListDataScanJobs(ctxcontext.Context,req*dataplexpb.ListDataScanJobsRequest,opts...gax.CallOption)*DataScanJobIteratorListDataScanJobs lists DataScanJobs under the given DataScan.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListDataScanJobsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListDataScanJobsRequest.}it:=c.ListDataScanJobs(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListDataScanJobsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListDataScanJobsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListDataScanJobsRequest.}forresp,err:=rangec.ListDataScanJobs(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*DataScanClient) ListDataScans
func(c*DataScanClient)ListDataScans(ctxcontext.Context,req*dataplexpb.ListDataScansRequest,opts...gax.CallOption)*DataScanIteratorListDataScans lists DataScans.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListDataScansRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListDataScansRequest.}it:=c.ListDataScans(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListDataScansResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListDataScansRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListDataScansRequest.}forresp,err:=rangec.ListDataScans(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*DataScanClient) ListLocations
func(c*DataScanClient)ListLocations(ctxcontext.Context,req*locationpb.ListLocationsRequest,opts...gax.CallOption)*LocationIteratorListLocations lists information about the supported locations for this service.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1""google.golang.org/api/iterator"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*locationpb.ListLocationsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.ListLocationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.}forresp,err:=rangec.ListLocations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*DataScanClient) ListOperations
func(c*DataScanClient)ListOperations(ctxcontext.Context,req*longrunningpb.ListOperationsRequest,opts...gax.CallOption)*OperationIteratorListOperations is a utility method from google.longrunning.Operations.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}it:=c.ListOperations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*longrunningpb.ListOperationsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}forresp,err:=rangec.ListOperations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*DataScanClient) RunDataScan
func(c*DataScanClient)RunDataScan(ctxcontext.Context,req*dataplexpb.RunDataScanRequest,opts...gax.CallOption)(*dataplexpb.RunDataScanResponse,error)RunDataScan runs an on-demand execution of a DataScan
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.RunDataScanRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#RunDataScanRequest.}resp,err:=c.RunDataScan(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataScanClient) UpdateDataScan
func(c*DataScanClient)UpdateDataScan(ctxcontext.Context,req*dataplexpb.UpdateDataScanRequest,opts...gax.CallOption)(*UpdateDataScanOperation,error)UpdateDataScan updates a DataScan resource.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataScanClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateDataScanRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateDataScanRequest.}op,err:=c.UpdateDataScan(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataScanClient) UpdateDataScanOperation
func(c*DataScanClient)UpdateDataScanOperation(namestring)*UpdateDataScanOperationUpdateDataScanOperation returns a new UpdateDataScanOperation from a given name.The name must be that of a previously created UpdateDataScanOperation, possibly from a different process.
DataScanIterator
typeDataScanIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.DataScan,nextPageTokenstring,errerror)// contains filtered or unexported fields}DataScanIterator manages a stream of *dataplexpb.DataScan.
func (*DataScanIterator) All
func(it*DataScanIterator)All()iter.Seq2[*dataplexpb.DataScan,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*DataScanIterator) Next
func(it*DataScanIterator)Next()(*dataplexpb.DataScan,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*DataScanIterator) PageInfo
func(it*DataScanIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
DataScanJobIterator
typeDataScanJobIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.DataScanJob,nextPageTokenstring,errerror)// contains filtered or unexported fields}DataScanJobIterator manages a stream of *dataplexpb.DataScanJob.
func (*DataScanJobIterator) All
func(it*DataScanJobIterator)All()iter.Seq2[*dataplexpb.DataScanJob,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*DataScanJobIterator) Next
func(it*DataScanJobIterator)Next()(*dataplexpb.DataScanJob,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*DataScanJobIterator) PageInfo
func(it*DataScanJobIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
DataTaxonomyCallOptions
typeDataTaxonomyCallOptionsstruct{CreateDataTaxonomy[]gax.CallOptionUpdateDataTaxonomy[]gax.CallOptionDeleteDataTaxonomy[]gax.CallOptionListDataTaxonomies[]gax.CallOptionGetDataTaxonomy[]gax.CallOptionCreateDataAttributeBinding[]gax.CallOptionUpdateDataAttributeBinding[]gax.CallOptionDeleteDataAttributeBinding[]gax.CallOptionListDataAttributeBindings[]gax.CallOptionGetDataAttributeBinding[]gax.CallOptionCreateDataAttribute[]gax.CallOptionUpdateDataAttribute[]gax.CallOptionDeleteDataAttribute[]gax.CallOptionListDataAttributes[]gax.CallOptionGetDataAttribute[]gax.CallOptionGetLocation[]gax.CallOptionListLocations[]gax.CallOptionCancelOperation[]gax.CallOptionDeleteOperation[]gax.CallOptionGetOperation[]gax.CallOptionListOperations[]gax.CallOption}DataTaxonomyCallOptions contains the retry settings for each method of DataTaxonomyClient.
DataTaxonomyClient (deprecated)
typeDataTaxonomyClientstruct{// The call options for this service.CallOptions*DataTaxonomyCallOptions// LROClient is used internally to handle long-running operations.// It is exposed so that its CallOptions can be modified if required.// Users should not Close this client.LROClient*lroauto.OperationsClient// contains filtered or unexported fields}DataTaxonomyClient is a client for interacting with Cloud Dataplex API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
DataTaxonomyService enables attribute-based governance. The resourcescurrently offered include DataTaxonomy and DataAttribute.
Deprecated: DataTaxonomyService may be removed in a future version.
func NewDataTaxonomyClient (deprecated)
funcNewDataTaxonomyClient(ctxcontext.Context,opts...option.ClientOption)(*DataTaxonomyClient,error)NewDataTaxonomyClient creates a new data taxonomy service client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.
DataTaxonomyService enables attribute-based governance. The resourcescurrently offered include DataTaxonomy and DataAttribute.
Deprecated: DataTaxonomyService may be removed in a future version.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func NewDataTaxonomyRESTClient (deprecated)
funcNewDataTaxonomyRESTClient(ctxcontext.Context,opts...option.ClientOption)(*DataTaxonomyClient,error)NewDataTaxonomyRESTClient creates a new data taxonomy service rest client.
DataTaxonomyService enables attribute-based governance. The resourcescurrently offered include DataTaxonomy and DataAttribute.
Deprecated: DataTaxonomyService may be removed in a future version.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func (*DataTaxonomyClient) CancelOperation (deprecated)
func(c*DataTaxonomyClient)CancelOperation(ctxcontext.Context,req*longrunningpb.CancelOperationRequest,opts...gax.CallOption)errorCancelOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.CancelOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.}err=c.CancelOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*DataTaxonomyClient) Close (deprecated)
func(c*DataTaxonomyClient)Close()errorClose closes the connection to the API service. The user should invoke this whenthe client is no longer required.
func (*DataTaxonomyClient) Connection (deprecated)
func(c*DataTaxonomyClient)Connection()*grpc.ClientConnConnection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.
func (*DataTaxonomyClient) CreateDataAttribute (deprecated)
func(c*DataTaxonomyClient)CreateDataAttribute(ctxcontext.Context,req*dataplexpb.CreateDataAttributeRequest,opts...gax.CallOption)(*CreateDataAttributeOperation,error)CreateDataAttribute create a DataAttribute resource.
Deprecated: CreateDataAttribute may be removed in a future version.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateDataAttributeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateDataAttributeRequest.}op,err:=c.CreateDataAttribute(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataTaxonomyClient) CreateDataAttributeBinding (deprecated)
func(c*DataTaxonomyClient)CreateDataAttributeBinding(ctxcontext.Context,req*dataplexpb.CreateDataAttributeBindingRequest,opts...gax.CallOption)(*CreateDataAttributeBindingOperation,error)CreateDataAttributeBinding create a DataAttributeBinding resource.
Deprecated: CreateDataAttributeBinding may be removed in a future version.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateDataAttributeBindingRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateDataAttributeBindingRequest.}op,err:=c.CreateDataAttributeBinding(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataTaxonomyClient) CreateDataAttributeBindingOperation (deprecated)
func(c*DataTaxonomyClient)CreateDataAttributeBindingOperation(namestring)*CreateDataAttributeBindingOperationCreateDataAttributeBindingOperation returns a new CreateDataAttributeBindingOperation from a given name.The name must be that of a previously created CreateDataAttributeBindingOperation, possibly from a different process.
func (*DataTaxonomyClient) CreateDataAttributeOperation (deprecated)
func(c*DataTaxonomyClient)CreateDataAttributeOperation(namestring)*CreateDataAttributeOperationCreateDataAttributeOperation returns a new CreateDataAttributeOperation from a given name.The name must be that of a previously created CreateDataAttributeOperation, possibly from a different process.
func (*DataTaxonomyClient) CreateDataTaxonomy (deprecated)
func(c*DataTaxonomyClient)CreateDataTaxonomy(ctxcontext.Context,req*dataplexpb.CreateDataTaxonomyRequest,opts...gax.CallOption)(*CreateDataTaxonomyOperation,error)CreateDataTaxonomy create a DataTaxonomy resource.
Deprecated: CreateDataTaxonomy may be removed in a future version.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateDataTaxonomyRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateDataTaxonomyRequest.}op,err:=c.CreateDataTaxonomy(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataTaxonomyClient) CreateDataTaxonomyOperation (deprecated)
func(c*DataTaxonomyClient)CreateDataTaxonomyOperation(namestring)*CreateDataTaxonomyOperationCreateDataTaxonomyOperation returns a new CreateDataTaxonomyOperation from a given name.The name must be that of a previously created CreateDataTaxonomyOperation, possibly from a different process.
func (*DataTaxonomyClient) DeleteDataAttribute (deprecated)
func(c*DataTaxonomyClient)DeleteDataAttribute(ctxcontext.Context,req*dataplexpb.DeleteDataAttributeRequest,opts...gax.CallOption)(*DeleteDataAttributeOperation,error)DeleteDataAttribute deletes a Data Attribute resource.
Deprecated: DeleteDataAttribute may be removed in a future version.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteDataAttributeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteDataAttributeRequest.}op,err:=c.DeleteDataAttribute(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*DataTaxonomyClient) DeleteDataAttributeBinding (deprecated)
func(c*DataTaxonomyClient)DeleteDataAttributeBinding(ctxcontext.Context,req*dataplexpb.DeleteDataAttributeBindingRequest,opts...gax.CallOption)(*DeleteDataAttributeBindingOperation,error)DeleteDataAttributeBinding deletes a DataAttributeBinding resource. All attributes within theDataAttributeBinding must be deleted before the DataAttributeBinding can bedeleted.
Deprecated: DeleteDataAttributeBinding may be removed in a future version.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteDataAttributeBindingRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteDataAttributeBindingRequest.}op,err:=c.DeleteDataAttributeBinding(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*DataTaxonomyClient) DeleteDataAttributeBindingOperation (deprecated)
func(c*DataTaxonomyClient)DeleteDataAttributeBindingOperation(namestring)*DeleteDataAttributeBindingOperationDeleteDataAttributeBindingOperation returns a new DeleteDataAttributeBindingOperation from a given name.The name must be that of a previously created DeleteDataAttributeBindingOperation, possibly from a different process.
func (*DataTaxonomyClient) DeleteDataAttributeOperation (deprecated)
func(c*DataTaxonomyClient)DeleteDataAttributeOperation(namestring)*DeleteDataAttributeOperationDeleteDataAttributeOperation returns a new DeleteDataAttributeOperation from a given name.The name must be that of a previously created DeleteDataAttributeOperation, possibly from a different process.
func (*DataTaxonomyClient) DeleteDataTaxonomy (deprecated)
func(c*DataTaxonomyClient)DeleteDataTaxonomy(ctxcontext.Context,req*dataplexpb.DeleteDataTaxonomyRequest,opts...gax.CallOption)(*DeleteDataTaxonomyOperation,error)DeleteDataTaxonomy deletes a DataTaxonomy resource. All attributes within the DataTaxonomymust be deleted before the DataTaxonomy can be deleted.
Deprecated: DeleteDataTaxonomy may be removed in a future version.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteDataTaxonomyRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteDataTaxonomyRequest.}op,err:=c.DeleteDataTaxonomy(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*DataTaxonomyClient) DeleteDataTaxonomyOperation (deprecated)
func(c*DataTaxonomyClient)DeleteDataTaxonomyOperation(namestring)*DeleteDataTaxonomyOperationDeleteDataTaxonomyOperation returns a new DeleteDataTaxonomyOperation from a given name.The name must be that of a previously created DeleteDataTaxonomyOperation, possibly from a different process.
func (*DataTaxonomyClient) DeleteOperation (deprecated)
func(c*DataTaxonomyClient)DeleteOperation(ctxcontext.Context,req*longrunningpb.DeleteOperationRequest,opts...gax.CallOption)errorDeleteOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.DeleteOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.}err=c.DeleteOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*DataTaxonomyClient) GetDataAttribute (deprecated)
func(c*DataTaxonomyClient)GetDataAttribute(ctxcontext.Context,req*dataplexpb.GetDataAttributeRequest,opts...gax.CallOption)(*dataplexpb.DataAttribute,error)GetDataAttribute retrieves a Data Attribute resource.
Deprecated: GetDataAttribute may be removed in a future version.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetDataAttributeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetDataAttributeRequest.}resp,err:=c.GetDataAttribute(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataTaxonomyClient) GetDataAttributeBinding (deprecated)
func(c*DataTaxonomyClient)GetDataAttributeBinding(ctxcontext.Context,req*dataplexpb.GetDataAttributeBindingRequest,opts...gax.CallOption)(*dataplexpb.DataAttributeBinding,error)GetDataAttributeBinding retrieves a DataAttributeBinding resource.
Deprecated: GetDataAttributeBinding may be removed in a future version.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetDataAttributeBindingRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetDataAttributeBindingRequest.}resp,err:=c.GetDataAttributeBinding(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataTaxonomyClient) GetDataTaxonomy (deprecated)
func(c*DataTaxonomyClient)GetDataTaxonomy(ctxcontext.Context,req*dataplexpb.GetDataTaxonomyRequest,opts...gax.CallOption)(*dataplexpb.DataTaxonomy,error)GetDataTaxonomy retrieves a DataTaxonomy resource.
Deprecated: GetDataTaxonomy may be removed in a future version.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetDataTaxonomyRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetDataTaxonomyRequest.}resp,err:=c.GetDataTaxonomy(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataTaxonomyClient) GetLocation (deprecated)
func(c*DataTaxonomyClient)GetLocation(ctxcontext.Context,req*locationpb.GetLocationRequest,opts...gax.CallOption)(*locationpb.Location,error)GetLocation gets information about a location.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataTaxonomyClient) GetOperation (deprecated)
func(c*DataTaxonomyClient)GetOperation(ctxcontext.Context,req*longrunningpb.GetOperationRequest,opts...gax.CallOption)(*longrunningpb.Operation,error)GetOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.GetOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.}resp,err:=c.GetOperation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataTaxonomyClient) ListDataAttributeBindings (deprecated)
func(c*DataTaxonomyClient)ListDataAttributeBindings(ctxcontext.Context,req*dataplexpb.ListDataAttributeBindingsRequest,opts...gax.CallOption)*DataAttributeBindingIteratorListDataAttributeBindings lists DataAttributeBinding resources in a project and location.
Deprecated: ListDataAttributeBindings may be removed in a future version.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListDataAttributeBindingsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListDataAttributeBindingsRequest.}it:=c.ListDataAttributeBindings(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListDataAttributeBindingsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListDataAttributeBindingsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListDataAttributeBindingsRequest.}forresp,err:=rangec.ListDataAttributeBindings(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*DataTaxonomyClient) ListDataAttributes (deprecated)
func(c*DataTaxonomyClient)ListDataAttributes(ctxcontext.Context,req*dataplexpb.ListDataAttributesRequest,opts...gax.CallOption)*DataAttributeIteratorListDataAttributes lists Data Attribute resources in a DataTaxonomy.
Deprecated: ListDataAttributes may be removed in a future version.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListDataAttributesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListDataAttributesRequest.}it:=c.ListDataAttributes(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListDataAttributesResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListDataAttributesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListDataAttributesRequest.}forresp,err:=rangec.ListDataAttributes(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*DataTaxonomyClient) ListDataTaxonomies (deprecated)
func(c*DataTaxonomyClient)ListDataTaxonomies(ctxcontext.Context,req*dataplexpb.ListDataTaxonomiesRequest,opts...gax.CallOption)*DataTaxonomyIteratorListDataTaxonomies lists DataTaxonomy resources in a project and location.
Deprecated: ListDataTaxonomies may be removed in a future version.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListDataTaxonomiesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListDataTaxonomiesRequest.}it:=c.ListDataTaxonomies(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListDataTaxonomiesResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListDataTaxonomiesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListDataTaxonomiesRequest.}forresp,err:=rangec.ListDataTaxonomies(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*DataTaxonomyClient) ListLocations (deprecated)
func(c*DataTaxonomyClient)ListLocations(ctxcontext.Context,req*locationpb.ListLocationsRequest,opts...gax.CallOption)*LocationIteratorListLocations lists information about the supported locations for this service.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1""google.golang.org/api/iterator"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*locationpb.ListLocationsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.ListLocationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.}forresp,err:=rangec.ListLocations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*DataTaxonomyClient) ListOperations (deprecated)
func(c*DataTaxonomyClient)ListOperations(ctxcontext.Context,req*longrunningpb.ListOperationsRequest,opts...gax.CallOption)*OperationIteratorListOperations is a utility method from google.longrunning.Operations.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}it:=c.ListOperations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*longrunningpb.ListOperationsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}forresp,err:=rangec.ListOperations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*DataTaxonomyClient) UpdateDataAttribute (deprecated)
func(c*DataTaxonomyClient)UpdateDataAttribute(ctxcontext.Context,req*dataplexpb.UpdateDataAttributeRequest,opts...gax.CallOption)(*UpdateDataAttributeOperation,error)UpdateDataAttribute updates a DataAttribute resource.
Deprecated: UpdateDataAttribute may be removed in a future version.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateDataAttributeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateDataAttributeRequest.}op,err:=c.UpdateDataAttribute(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataTaxonomyClient) UpdateDataAttributeBinding (deprecated)
func(c*DataTaxonomyClient)UpdateDataAttributeBinding(ctxcontext.Context,req*dataplexpb.UpdateDataAttributeBindingRequest,opts...gax.CallOption)(*UpdateDataAttributeBindingOperation,error)UpdateDataAttributeBinding updates a DataAttributeBinding resource.
Deprecated: UpdateDataAttributeBinding may be removed in a future version.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateDataAttributeBindingRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateDataAttributeBindingRequest.}op,err:=c.UpdateDataAttributeBinding(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataTaxonomyClient) UpdateDataAttributeBindingOperation (deprecated)
func(c*DataTaxonomyClient)UpdateDataAttributeBindingOperation(namestring)*UpdateDataAttributeBindingOperationUpdateDataAttributeBindingOperation returns a new UpdateDataAttributeBindingOperation from a given name.The name must be that of a previously created UpdateDataAttributeBindingOperation, possibly from a different process.
func (*DataTaxonomyClient) UpdateDataAttributeOperation (deprecated)
func(c*DataTaxonomyClient)UpdateDataAttributeOperation(namestring)*UpdateDataAttributeOperationUpdateDataAttributeOperation returns a new UpdateDataAttributeOperation from a given name.The name must be that of a previously created UpdateDataAttributeOperation, possibly from a different process.
func (*DataTaxonomyClient) UpdateDataTaxonomy (deprecated)
func(c*DataTaxonomyClient)UpdateDataTaxonomy(ctxcontext.Context,req*dataplexpb.UpdateDataTaxonomyRequest,opts...gax.CallOption)(*UpdateDataTaxonomyOperation,error)UpdateDataTaxonomy updates a DataTaxonomy resource.
Deprecated: UpdateDataTaxonomy may be removed in a future version.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewDataTaxonomyClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateDataTaxonomyRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateDataTaxonomyRequest.}op,err:=c.UpdateDataTaxonomy(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*DataTaxonomyClient) UpdateDataTaxonomyOperation (deprecated)
func(c*DataTaxonomyClient)UpdateDataTaxonomyOperation(namestring)*UpdateDataTaxonomyOperationUpdateDataTaxonomyOperation returns a new UpdateDataTaxonomyOperation from a given name.The name must be that of a previously created UpdateDataTaxonomyOperation, possibly from a different process.
DataTaxonomyIterator
typeDataTaxonomyIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.DataTaxonomy,nextPageTokenstring,errerror)// contains filtered or unexported fields}DataTaxonomyIterator manages a stream of *dataplexpb.DataTaxonomy.
func (*DataTaxonomyIterator) All
func(it*DataTaxonomyIterator)All()iter.Seq2[*dataplexpb.DataTaxonomy,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*DataTaxonomyIterator) Next
func(it*DataTaxonomyIterator)Next()(*dataplexpb.DataTaxonomy,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*DataTaxonomyIterator) PageInfo
func(it*DataTaxonomyIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
DeleteAspectTypeOperation
typeDeleteAspectTypeOperationstruct{// contains filtered or unexported fields}DeleteAspectTypeOperation manages a long-running operation from DeleteAspectType.
func (*DeleteAspectTypeOperation) Done
func(op*DeleteAspectTypeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteAspectTypeOperation) Metadata
func(op*DeleteAspectTypeOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteAspectTypeOperation) Name
func(op*DeleteAspectTypeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteAspectTypeOperation) Poll
func(op*DeleteAspectTypeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteAspectTypeOperation) Wait
func(op*DeleteAspectTypeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteAssetOperation
typeDeleteAssetOperationstruct{// contains filtered or unexported fields}DeleteAssetOperation manages a long-running operation from DeleteAsset.
func (*DeleteAssetOperation) Done
func(op*DeleteAssetOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteAssetOperation) Metadata
func(op*DeleteAssetOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteAssetOperation) Name
func(op*DeleteAssetOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteAssetOperation) Poll
func(op*DeleteAssetOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteAssetOperation) Wait
func(op*DeleteAssetOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteDataAttributeBindingOperation
typeDeleteDataAttributeBindingOperationstruct{// contains filtered or unexported fields}DeleteDataAttributeBindingOperation manages a long-running operation from DeleteDataAttributeBinding.
func (*DeleteDataAttributeBindingOperation) Done
func(op*DeleteDataAttributeBindingOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteDataAttributeBindingOperation) Metadata
func(op*DeleteDataAttributeBindingOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteDataAttributeBindingOperation) Name
func(op*DeleteDataAttributeBindingOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteDataAttributeBindingOperation) Poll
func(op*DeleteDataAttributeBindingOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteDataAttributeBindingOperation) Wait
func(op*DeleteDataAttributeBindingOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteDataAttributeOperation
typeDeleteDataAttributeOperationstruct{// contains filtered or unexported fields}DeleteDataAttributeOperation manages a long-running operation from DeleteDataAttribute.
func (*DeleteDataAttributeOperation) Done
func(op*DeleteDataAttributeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteDataAttributeOperation) Metadata
func(op*DeleteDataAttributeOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteDataAttributeOperation) Name
func(op*DeleteDataAttributeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteDataAttributeOperation) Poll
func(op*DeleteDataAttributeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteDataAttributeOperation) Wait
func(op*DeleteDataAttributeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteDataScanOperation
typeDeleteDataScanOperationstruct{// contains filtered or unexported fields}DeleteDataScanOperation manages a long-running operation from DeleteDataScan.
func (*DeleteDataScanOperation) Done
func(op*DeleteDataScanOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteDataScanOperation) Metadata
func(op*DeleteDataScanOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteDataScanOperation) Name
func(op*DeleteDataScanOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteDataScanOperation) Poll
func(op*DeleteDataScanOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteDataScanOperation) Wait
func(op*DeleteDataScanOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteDataTaxonomyOperation
typeDeleteDataTaxonomyOperationstruct{// contains filtered or unexported fields}DeleteDataTaxonomyOperation manages a long-running operation from DeleteDataTaxonomy.
func (*DeleteDataTaxonomyOperation) Done
func(op*DeleteDataTaxonomyOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteDataTaxonomyOperation) Metadata
func(op*DeleteDataTaxonomyOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteDataTaxonomyOperation) Name
func(op*DeleteDataTaxonomyOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteDataTaxonomyOperation) Poll
func(op*DeleteDataTaxonomyOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteDataTaxonomyOperation) Wait
func(op*DeleteDataTaxonomyOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteEncryptionConfigOperation
typeDeleteEncryptionConfigOperationstruct{// contains filtered or unexported fields}DeleteEncryptionConfigOperation manages a long-running operation from DeleteEncryptionConfig.
func (*DeleteEncryptionConfigOperation) Done
func(op*DeleteEncryptionConfigOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteEncryptionConfigOperation) Metadata
func(op*DeleteEncryptionConfigOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteEncryptionConfigOperation) Name
func(op*DeleteEncryptionConfigOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteEncryptionConfigOperation) Poll
func(op*DeleteEncryptionConfigOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteEncryptionConfigOperation) Wait
func(op*DeleteEncryptionConfigOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteEntryGroupOperation
typeDeleteEntryGroupOperationstruct{// contains filtered or unexported fields}DeleteEntryGroupOperation manages a long-running operation from DeleteEntryGroup.
func (*DeleteEntryGroupOperation) Done
func(op*DeleteEntryGroupOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteEntryGroupOperation) Metadata
func(op*DeleteEntryGroupOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteEntryGroupOperation) Name
func(op*DeleteEntryGroupOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteEntryGroupOperation) Poll
func(op*DeleteEntryGroupOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteEntryGroupOperation) Wait
func(op*DeleteEntryGroupOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteEntryTypeOperation
typeDeleteEntryTypeOperationstruct{// contains filtered or unexported fields}DeleteEntryTypeOperation manages a long-running operation from DeleteEntryType.
func (*DeleteEntryTypeOperation) Done
func(op*DeleteEntryTypeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteEntryTypeOperation) Metadata
func(op*DeleteEntryTypeOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteEntryTypeOperation) Name
func(op*DeleteEntryTypeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteEntryTypeOperation) Poll
func(op*DeleteEntryTypeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteEntryTypeOperation) Wait
func(op*DeleteEntryTypeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteEnvironmentOperation
typeDeleteEnvironmentOperationstruct{// contains filtered or unexported fields}DeleteEnvironmentOperation manages a long-running operation from DeleteEnvironment.
func (*DeleteEnvironmentOperation) Done
func(op*DeleteEnvironmentOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteEnvironmentOperation) Metadata
func(op*DeleteEnvironmentOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteEnvironmentOperation) Name
func(op*DeleteEnvironmentOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteEnvironmentOperation) Poll
func(op*DeleteEnvironmentOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteEnvironmentOperation) Wait
func(op*DeleteEnvironmentOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteGlossaryOperation
typeDeleteGlossaryOperationstruct{// contains filtered or unexported fields}DeleteGlossaryOperation manages a long-running operation from DeleteGlossary.
func (*DeleteGlossaryOperation) Done
func(op*DeleteGlossaryOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteGlossaryOperation) Metadata
func(op*DeleteGlossaryOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteGlossaryOperation) Name
func(op*DeleteGlossaryOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteGlossaryOperation) Poll
func(op*DeleteGlossaryOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteGlossaryOperation) Wait
func(op*DeleteGlossaryOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteLakeOperation
typeDeleteLakeOperationstruct{// contains filtered or unexported fields}DeleteLakeOperation manages a long-running operation from DeleteLake.
func (*DeleteLakeOperation) Done
func(op*DeleteLakeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteLakeOperation) Metadata
func(op*DeleteLakeOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteLakeOperation) Name
func(op*DeleteLakeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteLakeOperation) Poll
func(op*DeleteLakeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteLakeOperation) Wait
func(op*DeleteLakeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteTaskOperation
typeDeleteTaskOperationstruct{// contains filtered or unexported fields}DeleteTaskOperation manages a long-running operation from DeleteTask.
func (*DeleteTaskOperation) Done
func(op*DeleteTaskOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteTaskOperation) Metadata
func(op*DeleteTaskOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteTaskOperation) Name
func(op*DeleteTaskOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteTaskOperation) Poll
func(op*DeleteTaskOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteTaskOperation) Wait
func(op*DeleteTaskOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteZoneOperation
typeDeleteZoneOperationstruct{// contains filtered or unexported fields}DeleteZoneOperation manages a long-running operation from DeleteZone.
func (*DeleteZoneOperation) Done
func(op*DeleteZoneOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteZoneOperation) Metadata
func(op*DeleteZoneOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteZoneOperation) Name
func(op*DeleteZoneOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteZoneOperation) Poll
func(op*DeleteZoneOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteZoneOperation) Wait
func(op*DeleteZoneOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
EncryptionConfigIterator
typeEncryptionConfigIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.EncryptionConfig,nextPageTokenstring,errerror)// contains filtered or unexported fields}EncryptionConfigIterator manages a stream of *dataplexpb.EncryptionConfig.
func (*EncryptionConfigIterator) All
func(it*EncryptionConfigIterator)All()iter.Seq2[*dataplexpb.EncryptionConfig,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*EncryptionConfigIterator) Next
func(it*EncryptionConfigIterator)Next()(*dataplexpb.EncryptionConfig,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*EncryptionConfigIterator) PageInfo
func(it*EncryptionConfigIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
EntityIterator
typeEntityIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.Entity,nextPageTokenstring,errerror)// contains filtered or unexported fields}EntityIterator manages a stream of *dataplexpb.Entity.
func (*EntityIterator) All
func(it*EntityIterator)All()iter.Seq2[*dataplexpb.Entity,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*EntityIterator) Next
func(it*EntityIterator)Next()(*dataplexpb.Entity,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*EntityIterator) PageInfo
func(it*EntityIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
EntryGroupIterator
typeEntryGroupIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.EntryGroup,nextPageTokenstring,errerror)// contains filtered or unexported fields}EntryGroupIterator manages a stream of *dataplexpb.EntryGroup.
func (*EntryGroupIterator) All
func(it*EntryGroupIterator)All()iter.Seq2[*dataplexpb.EntryGroup,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*EntryGroupIterator) Next
func(it*EntryGroupIterator)Next()(*dataplexpb.EntryGroup,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*EntryGroupIterator) PageInfo
func(it*EntryGroupIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
EntryIterator
typeEntryIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.Entry,nextPageTokenstring,errerror)// contains filtered or unexported fields}EntryIterator manages a stream of *dataplexpb.Entry.
func (*EntryIterator) All
func(it*EntryIterator)All()iter.Seq2[*dataplexpb.Entry,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*EntryIterator) Next
func(it*EntryIterator)Next()(*dataplexpb.Entry,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*EntryIterator) PageInfo
func(it*EntryIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
EntryTypeIterator
typeEntryTypeIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.EntryType,nextPageTokenstring,errerror)// contains filtered or unexported fields}EntryTypeIterator manages a stream of *dataplexpb.EntryType.
func (*EntryTypeIterator) All
func(it*EntryTypeIterator)All()iter.Seq2[*dataplexpb.EntryType,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*EntryTypeIterator) Next
func(it*EntryTypeIterator)Next()(*dataplexpb.EntryType,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*EntryTypeIterator) PageInfo
func(it*EntryTypeIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
EnvironmentIterator
typeEnvironmentIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.Environment,nextPageTokenstring,errerror)// contains filtered or unexported fields}EnvironmentIterator manages a stream of *dataplexpb.Environment.
func (*EnvironmentIterator) All
func(it*EnvironmentIterator)All()iter.Seq2[*dataplexpb.Environment,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*EnvironmentIterator) Next
func(it*EnvironmentIterator)Next()(*dataplexpb.Environment,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*EnvironmentIterator) PageInfo
func(it*EnvironmentIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
GlossaryCategoryIterator
typeGlossaryCategoryIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.GlossaryCategory,nextPageTokenstring,errerror)// contains filtered or unexported fields}GlossaryCategoryIterator manages a stream of *dataplexpb.GlossaryCategory.
func (*GlossaryCategoryIterator) All
func(it*GlossaryCategoryIterator)All()iter.Seq2[*dataplexpb.GlossaryCategory,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*GlossaryCategoryIterator) Next
func(it*GlossaryCategoryIterator)Next()(*dataplexpb.GlossaryCategory,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*GlossaryCategoryIterator) PageInfo
func(it*GlossaryCategoryIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
GlossaryIterator
typeGlossaryIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.Glossary,nextPageTokenstring,errerror)// contains filtered or unexported fields}GlossaryIterator manages a stream of *dataplexpb.Glossary.
func (*GlossaryIterator) All
func(it*GlossaryIterator)All()iter.Seq2[*dataplexpb.Glossary,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*GlossaryIterator) Next
func(it*GlossaryIterator)Next()(*dataplexpb.Glossary,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*GlossaryIterator) PageInfo
func(it*GlossaryIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
GlossaryTermIterator
typeGlossaryTermIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.GlossaryTerm,nextPageTokenstring,errerror)// contains filtered or unexported fields}GlossaryTermIterator manages a stream of *dataplexpb.GlossaryTerm.
func (*GlossaryTermIterator) All
func(it*GlossaryTermIterator)All()iter.Seq2[*dataplexpb.GlossaryTerm,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*GlossaryTermIterator) Next
func(it*GlossaryTermIterator)Next()(*dataplexpb.GlossaryTerm,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*GlossaryTermIterator) PageInfo
func(it*GlossaryTermIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
JobIterator
typeJobIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.Job,nextPageTokenstring,errerror)// contains filtered or unexported fields}JobIterator manages a stream of *dataplexpb.Job.
func (*JobIterator) All
func(it*JobIterator)All()iter.Seq2[*dataplexpb.Job,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*JobIterator) Next
func(it*JobIterator)Next()(*dataplexpb.Job,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*JobIterator) PageInfo
func(it*JobIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
LakeIterator
typeLakeIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.Lake,nextPageTokenstring,errerror)// contains filtered or unexported fields}LakeIterator manages a stream of *dataplexpb.Lake.
func (*LakeIterator) All
func(it*LakeIterator)All()iter.Seq2[*dataplexpb.Lake,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*LakeIterator) Next
func(it*LakeIterator)Next()(*dataplexpb.Lake,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*LakeIterator) PageInfo
func(it*LakeIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
LocationIterator
typeLocationIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*locationpb.Location,nextPageTokenstring,errerror)// contains filtered or unexported fields}LocationIterator manages a stream of *locationpb.Location.
func (*LocationIterator) All
func(it*LocationIterator)All()iter.Seq2[*locationpb.Location,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*LocationIterator) Next
func(it*LocationIterator)Next()(*locationpb.Location,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*LocationIterator) PageInfo
func(it*LocationIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
MetadataCallOptions
typeMetadataCallOptionsstruct{CreateEntity[]gax.CallOptionUpdateEntity[]gax.CallOptionDeleteEntity[]gax.CallOptionGetEntity[]gax.CallOptionListEntities[]gax.CallOptionCreatePartition[]gax.CallOptionDeletePartition[]gax.CallOptionGetPartition[]gax.CallOptionListPartitions[]gax.CallOptionGetLocation[]gax.CallOptionListLocations[]gax.CallOptionCancelOperation[]gax.CallOptionDeleteOperation[]gax.CallOptionGetOperation[]gax.CallOptionListOperations[]gax.CallOption}MetadataCallOptions contains the retry settings for each method of MetadataClient.
MetadataClient
typeMetadataClientstruct{// The call options for this service.CallOptions*MetadataCallOptions// contains filtered or unexported fields}MetadataClient is a client for interacting with Cloud Dataplex API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
Metadata service manages metadata resources such as tables, filesets andpartitions.
func NewMetadataClient
funcNewMetadataClient(ctxcontext.Context,opts...option.ClientOption)(*MetadataClient,error)NewMetadataClient creates a new metadata service client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.
Metadata service manages metadata resources such as tables, filesets andpartitions.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func NewMetadataRESTClient
funcNewMetadataRESTClient(ctxcontext.Context,opts...option.ClientOption)(*MetadataClient,error)NewMetadataRESTClient creates a new metadata service rest client.
Metadata service manages metadata resources such as tables, filesets andpartitions.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func (*MetadataClient) CancelOperation
func(c*MetadataClient)CancelOperation(ctxcontext.Context,req*longrunningpb.CancelOperationRequest,opts...gax.CallOption)errorCancelOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.CancelOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.}err=c.CancelOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*MetadataClient) Close
func(c*MetadataClient)Close()errorClose closes the connection to the API service. The user should invoke this whenthe client is no longer required.
func (*MetadataClient) Connection (deprecated)
func(c*MetadataClient)Connection()*grpc.ClientConnConnection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.
func (*MetadataClient) CreateEntity
func(c*MetadataClient)CreateEntity(ctxcontext.Context,req*dataplexpb.CreateEntityRequest,opts...gax.CallOption)(*dataplexpb.Entity,error)CreateEntity create a metadata entity.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreateEntityRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreateEntityRequest.}resp,err:=c.CreateEntity(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*MetadataClient) CreatePartition
func(c*MetadataClient)CreatePartition(ctxcontext.Context,req*dataplexpb.CreatePartitionRequest,opts...gax.CallOption)(*dataplexpb.Partition,error)CreatePartition create a metadata partition.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.CreatePartitionRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#CreatePartitionRequest.}resp,err:=c.CreatePartition(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*MetadataClient) DeleteEntity
func(c*MetadataClient)DeleteEntity(ctxcontext.Context,req*dataplexpb.DeleteEntityRequest,opts...gax.CallOption)errorDeleteEntity delete a metadata entity.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeleteEntityRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeleteEntityRequest.}err=c.DeleteEntity(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*MetadataClient) DeleteOperation
func(c*MetadataClient)DeleteOperation(ctxcontext.Context,req*longrunningpb.DeleteOperationRequest,opts...gax.CallOption)errorDeleteOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.DeleteOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.}err=c.DeleteOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*MetadataClient) DeletePartition
func(c*MetadataClient)DeletePartition(ctxcontext.Context,req*dataplexpb.DeletePartitionRequest,opts...gax.CallOption)errorDeletePartition delete a metadata partition.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.DeletePartitionRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#DeletePartitionRequest.}err=c.DeletePartition(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*MetadataClient) GetEntity
func(c*MetadataClient)GetEntity(ctxcontext.Context,req*dataplexpb.GetEntityRequest,opts...gax.CallOption)(*dataplexpb.Entity,error)GetEntity get a metadata entity.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetEntityRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetEntityRequest.}resp,err:=c.GetEntity(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*MetadataClient) GetLocation
func(c*MetadataClient)GetLocation(ctxcontext.Context,req*locationpb.GetLocationRequest,opts...gax.CallOption)(*locationpb.Location,error)GetLocation gets information about a location.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*MetadataClient) GetOperation
func(c*MetadataClient)GetOperation(ctxcontext.Context,req*longrunningpb.GetOperationRequest,opts...gax.CallOption)(*longrunningpb.Operation,error)GetOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.GetOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.}resp,err:=c.GetOperation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*MetadataClient) GetPartition
func(c*MetadataClient)GetPartition(ctxcontext.Context,req*dataplexpb.GetPartitionRequest,opts...gax.CallOption)(*dataplexpb.Partition,error)GetPartition get a metadata partition of an entity.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.GetPartitionRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#GetPartitionRequest.}resp,err:=c.GetPartition(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*MetadataClient) ListEntities
func(c*MetadataClient)ListEntities(ctxcontext.Context,req*dataplexpb.ListEntitiesRequest,opts...gax.CallOption)*EntityIteratorListEntities list metadata entities in a zone.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListEntitiesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListEntitiesRequest.}it:=c.ListEntities(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListEntitiesResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListEntitiesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListEntitiesRequest.}forresp,err:=rangec.ListEntities(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*MetadataClient) ListLocations
func(c*MetadataClient)ListLocations(ctxcontext.Context,req*locationpb.ListLocationsRequest,opts...gax.CallOption)*LocationIteratorListLocations lists information about the supported locations for this service.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1""google.golang.org/api/iterator"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*locationpb.ListLocationsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.ListLocationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.}forresp,err:=rangec.ListLocations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*MetadataClient) ListOperations
func(c*MetadataClient)ListOperations(ctxcontext.Context,req*longrunningpb.ListOperationsRequest,opts...gax.CallOption)*OperationIteratorListOperations is a utility method from google.longrunning.Operations.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}it:=c.ListOperations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*longrunningpb.ListOperationsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}forresp,err:=rangec.ListOperations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*MetadataClient) ListPartitions
func(c*MetadataClient)ListPartitions(ctxcontext.Context,req*dataplexpb.ListPartitionsRequest,opts...gax.CallOption)*PartitionIteratorListPartitions list metadata partitions of an entity.
Examples
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListPartitionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListPartitionsRequest.}it:=c.ListPartitions(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*dataplexpb.ListPartitionsResponse)}}all
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.ListPartitionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#ListPartitionsRequest.}forresp,err:=rangec.ListPartitions(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*MetadataClient) UpdateEntity
func(c*MetadataClient)UpdateEntity(ctxcontext.Context,req*dataplexpb.UpdateEntityRequest,opts...gax.CallOption)(*dataplexpb.Entity,error)UpdateEntity update a metadata entity. Only supports full resource update.
Example
packagemainimport("context"dataplex"cloud.google.com/go/dataplex/apiv1"dataplexpb"cloud.google.com/go/dataplex/apiv1/dataplexpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=dataplex.NewMetadataClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&dataplexpb.UpdateEntityRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/dataplex/apiv1/dataplexpb#UpdateEntityRequest.}resp,err:=c.UpdateEntity(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}MetadataJobIterator
typeMetadataJobIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.MetadataJob,nextPageTokenstring,errerror)// contains filtered or unexported fields}MetadataJobIterator manages a stream of *dataplexpb.MetadataJob.
func (*MetadataJobIterator) All
func(it*MetadataJobIterator)All()iter.Seq2[*dataplexpb.MetadataJob,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*MetadataJobIterator) Next
func(it*MetadataJobIterator)Next()(*dataplexpb.MetadataJob,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*MetadataJobIterator) PageInfo
func(it*MetadataJobIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
OperationIterator
typeOperationIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*longrunningpb.Operation,nextPageTokenstring,errerror)// contains filtered or unexported fields}OperationIterator manages a stream of *longrunningpb.Operation.
func (*OperationIterator) All
func(it*OperationIterator)All()iter.Seq2[*longrunningpb.Operation,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*OperationIterator) Next
func(it*OperationIterator)Next()(*longrunningpb.Operation,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*OperationIterator) PageInfo
func(it*OperationIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
PartitionIterator
typePartitionIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.Partition,nextPageTokenstring,errerror)// contains filtered or unexported fields}PartitionIterator manages a stream of *dataplexpb.Partition.
func (*PartitionIterator) All
func(it*PartitionIterator)All()iter.Seq2[*dataplexpb.Partition,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*PartitionIterator) Next
func(it*PartitionIterator)Next()(*dataplexpb.Partition,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*PartitionIterator) PageInfo
func(it*PartitionIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
SearchEntriesResultIterator
typeSearchEntriesResultIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.SearchEntriesResult,nextPageTokenstring,errerror)// contains filtered or unexported fields}SearchEntriesResultIterator manages a stream of *dataplexpb.SearchEntriesResult.
func (*SearchEntriesResultIterator) All
func(it*SearchEntriesResultIterator)All()iter.Seq2[*dataplexpb.SearchEntriesResult,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*SearchEntriesResultIterator) Next
func(it*SearchEntriesResultIterator)Next()(*dataplexpb.SearchEntriesResult,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*SearchEntriesResultIterator) PageInfo
func(it*SearchEntriesResultIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
SessionIterator
typeSessionIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.Session,nextPageTokenstring,errerror)// contains filtered or unexported fields}SessionIterator manages a stream of *dataplexpb.Session.
func (*SessionIterator) All
func(it*SessionIterator)All()iter.Seq2[*dataplexpb.Session,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*SessionIterator) Next
func(it*SessionIterator)Next()(*dataplexpb.Session,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*SessionIterator) PageInfo
func(it*SessionIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
TaskIterator
typeTaskIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.Task,nextPageTokenstring,errerror)// contains filtered or unexported fields}TaskIterator manages a stream of *dataplexpb.Task.
func (*TaskIterator) All
func(it*TaskIterator)All()iter.Seq2[*dataplexpb.Task,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*TaskIterator) Next
func(it*TaskIterator)Next()(*dataplexpb.Task,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*TaskIterator) PageInfo
func(it*TaskIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
UpdateAspectTypeOperation
typeUpdateAspectTypeOperationstruct{// contains filtered or unexported fields}UpdateAspectTypeOperation manages a long-running operation from UpdateAspectType.
func (*UpdateAspectTypeOperation) Done
func(op*UpdateAspectTypeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateAspectTypeOperation) Metadata
func(op*UpdateAspectTypeOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateAspectTypeOperation) Name
func(op*UpdateAspectTypeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateAspectTypeOperation) Poll
func(op*UpdateAspectTypeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.AspectType,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateAspectTypeOperation) Wait
func(op*UpdateAspectTypeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.AspectType,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateAssetOperation
typeUpdateAssetOperationstruct{// contains filtered or unexported fields}UpdateAssetOperation manages a long-running operation from UpdateAsset.
func (*UpdateAssetOperation) Done
func(op*UpdateAssetOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateAssetOperation) Metadata
func(op*UpdateAssetOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateAssetOperation) Name
func(op*UpdateAssetOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateAssetOperation) Poll
func(op*UpdateAssetOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Asset,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateAssetOperation) Wait
func(op*UpdateAssetOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Asset,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateDataAttributeBindingOperation
typeUpdateDataAttributeBindingOperationstruct{// contains filtered or unexported fields}UpdateDataAttributeBindingOperation manages a long-running operation from UpdateDataAttributeBinding.
func (*UpdateDataAttributeBindingOperation) Done
func(op*UpdateDataAttributeBindingOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateDataAttributeBindingOperation) Metadata
func(op*UpdateDataAttributeBindingOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateDataAttributeBindingOperation) Name
func(op*UpdateDataAttributeBindingOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateDataAttributeBindingOperation) Poll
func(op*UpdateDataAttributeBindingOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.DataAttributeBinding,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateDataAttributeBindingOperation) Wait
func(op*UpdateDataAttributeBindingOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.DataAttributeBinding,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateDataAttributeOperation
typeUpdateDataAttributeOperationstruct{// contains filtered or unexported fields}UpdateDataAttributeOperation manages a long-running operation from UpdateDataAttribute.
func (*UpdateDataAttributeOperation) Done
func(op*UpdateDataAttributeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateDataAttributeOperation) Metadata
func(op*UpdateDataAttributeOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateDataAttributeOperation) Name
func(op*UpdateDataAttributeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateDataAttributeOperation) Poll
func(op*UpdateDataAttributeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.DataAttribute,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateDataAttributeOperation) Wait
func(op*UpdateDataAttributeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.DataAttribute,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateDataScanOperation
typeUpdateDataScanOperationstruct{// contains filtered or unexported fields}UpdateDataScanOperation manages a long-running operation from UpdateDataScan.
func (*UpdateDataScanOperation) Done
func(op*UpdateDataScanOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateDataScanOperation) Metadata
func(op*UpdateDataScanOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateDataScanOperation) Name
func(op*UpdateDataScanOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateDataScanOperation) Poll
func(op*UpdateDataScanOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.DataScan,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateDataScanOperation) Wait
func(op*UpdateDataScanOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.DataScan,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateDataTaxonomyOperation
typeUpdateDataTaxonomyOperationstruct{// contains filtered or unexported fields}UpdateDataTaxonomyOperation manages a long-running operation from UpdateDataTaxonomy.
func (*UpdateDataTaxonomyOperation) Done
func(op*UpdateDataTaxonomyOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateDataTaxonomyOperation) Metadata
func(op*UpdateDataTaxonomyOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateDataTaxonomyOperation) Name
func(op*UpdateDataTaxonomyOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateDataTaxonomyOperation) Poll
func(op*UpdateDataTaxonomyOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.DataTaxonomy,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateDataTaxonomyOperation) Wait
func(op*UpdateDataTaxonomyOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.DataTaxonomy,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateEncryptionConfigOperation
typeUpdateEncryptionConfigOperationstruct{// contains filtered or unexported fields}UpdateEncryptionConfigOperation manages a long-running operation from UpdateEncryptionConfig.
func (*UpdateEncryptionConfigOperation) Done
func(op*UpdateEncryptionConfigOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateEncryptionConfigOperation) Metadata
func(op*UpdateEncryptionConfigOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateEncryptionConfigOperation) Name
func(op*UpdateEncryptionConfigOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateEncryptionConfigOperation) Poll
func(op*UpdateEncryptionConfigOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.EncryptionConfig,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateEncryptionConfigOperation) Wait
func(op*UpdateEncryptionConfigOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.EncryptionConfig,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateEntryGroupOperation
typeUpdateEntryGroupOperationstruct{// contains filtered or unexported fields}UpdateEntryGroupOperation manages a long-running operation from UpdateEntryGroup.
func (*UpdateEntryGroupOperation) Done
func(op*UpdateEntryGroupOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateEntryGroupOperation) Metadata
func(op*UpdateEntryGroupOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateEntryGroupOperation) Name
func(op*UpdateEntryGroupOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateEntryGroupOperation) Poll
func(op*UpdateEntryGroupOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.EntryGroup,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateEntryGroupOperation) Wait
func(op*UpdateEntryGroupOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.EntryGroup,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateEntryTypeOperation
typeUpdateEntryTypeOperationstruct{// contains filtered or unexported fields}UpdateEntryTypeOperation manages a long-running operation from UpdateEntryType.
func (*UpdateEntryTypeOperation) Done
func(op*UpdateEntryTypeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateEntryTypeOperation) Metadata
func(op*UpdateEntryTypeOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateEntryTypeOperation) Name
func(op*UpdateEntryTypeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateEntryTypeOperation) Poll
func(op*UpdateEntryTypeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.EntryType,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateEntryTypeOperation) Wait
func(op*UpdateEntryTypeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.EntryType,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateEnvironmentOperation
typeUpdateEnvironmentOperationstruct{// contains filtered or unexported fields}UpdateEnvironmentOperation manages a long-running operation from UpdateEnvironment.
func (*UpdateEnvironmentOperation) Done
func(op*UpdateEnvironmentOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateEnvironmentOperation) Metadata
func(op*UpdateEnvironmentOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateEnvironmentOperation) Name
func(op*UpdateEnvironmentOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateEnvironmentOperation) Poll
func(op*UpdateEnvironmentOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Environment,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateEnvironmentOperation) Wait
func(op*UpdateEnvironmentOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Environment,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateGlossaryOperation
typeUpdateGlossaryOperationstruct{// contains filtered or unexported fields}UpdateGlossaryOperation manages a long-running operation from UpdateGlossary.
func (*UpdateGlossaryOperation) Done
func(op*UpdateGlossaryOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateGlossaryOperation) Metadata
func(op*UpdateGlossaryOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateGlossaryOperation) Name
func(op*UpdateGlossaryOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateGlossaryOperation) Poll
func(op*UpdateGlossaryOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Glossary,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateGlossaryOperation) Wait
func(op*UpdateGlossaryOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Glossary,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateLakeOperation
typeUpdateLakeOperationstruct{// contains filtered or unexported fields}UpdateLakeOperation manages a long-running operation from UpdateLake.
func (*UpdateLakeOperation) Done
func(op*UpdateLakeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateLakeOperation) Metadata
func(op*UpdateLakeOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateLakeOperation) Name
func(op*UpdateLakeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateLakeOperation) Poll
func(op*UpdateLakeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Lake,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateLakeOperation) Wait
func(op*UpdateLakeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Lake,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateTaskOperation
typeUpdateTaskOperationstruct{// contains filtered or unexported fields}UpdateTaskOperation manages a long-running operation from UpdateTask.
func (*UpdateTaskOperation) Done
func(op*UpdateTaskOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateTaskOperation) Metadata
func(op*UpdateTaskOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateTaskOperation) Name
func(op*UpdateTaskOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateTaskOperation) Poll
func(op*UpdateTaskOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Task,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateTaskOperation) Wait
func(op*UpdateTaskOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Task,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateZoneOperation
typeUpdateZoneOperationstruct{// contains filtered or unexported fields}UpdateZoneOperation manages a long-running operation from UpdateZone.
func (*UpdateZoneOperation) Done
func(op*UpdateZoneOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateZoneOperation) Metadata
func(op*UpdateZoneOperation)Metadata()(*dataplexpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateZoneOperation) Name
func(op*UpdateZoneOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateZoneOperation) Poll
func(op*UpdateZoneOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Zone,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateZoneOperation) Wait
func(op*UpdateZoneOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*dataplexpb.Zone,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
ZoneIterator
typeZoneIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*dataplexpb.Zone,nextPageTokenstring,errerror)// contains filtered or unexported fields}ZoneIterator manages a stream of *dataplexpb.Zone.
func (*ZoneIterator) All
func(it*ZoneIterator)All()iter.Seq2[*dataplexpb.Zone,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*ZoneIterator) Next
func(it*ZoneIterator)Next()(*dataplexpb.Zone,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*ZoneIterator) PageInfo
func(it*ZoneIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.