0.3.1 (latest) 0.3.0 0.2.0 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

> [!NOTE]
> **Note:** To get more information about this package, such as access to older versions, view [this package on pkg.go.dev](https://pkg.go.dev/cloud.google.com/go/ftp/apiv1).

<br />

Package ftp is an auto-generated package for the
Cloud FTP API.

A managed, cloud-native solution to move data in and out of Google Cloud
by using SSH File Transfer Protocol (SFTP).

```go
NOTE: This package is in beta. It is not stable, and may be subject to changes.
```

<br />

## General documentation

For information that is relevant for all client libraries please reference
<https://pkg.go.dev/cloud.google.com/go#pkg-overview>. Some information on this
page includes:

- [Authentication and Authorization](https://pkg.go.dev/cloud.google.com/go#hdr-Authentication_and_Authorization)
- [Timeouts and Cancellation](https://pkg.go.dev/cloud.google.com/go#hdr-Timeouts_and_Cancellation)
- [Testing against Client Libraries](https://pkg.go.dev/cloud.google.com/go#hdr-Testing)
- [Debugging Client Libraries](https://pkg.go.dev/cloud.google.com/go#hdr-Debugging)
- [Inspecting errors](https://pkg.go.dev/cloud.google.com/go#hdr-Inspecting_errors)

## Example usage

To get started with this package, create a client.

```go
// go get cloud.google.com/go/ftp/apiv1@latest
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_Options
c, err := ftp.NewCloudFtpRESTClient(ctx)
if err != nil {
    // TODO: Handle error.
}
defer c.Close()
```

<br />

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.

```go
req := &ftppb.CreateServerRequest{
    // TODO: Fill request struct fields.
    // See https://pkg.go.dev/cloud.google.com/go/ftp/apiv1/ftppb#CreateServerRequest.
}
op, err := c.CreateServer(ctx, req)
if err != nil {
    // TODO: Handle error.
}

resp, err := op.Wait(ctx)
if err != nil {
    // TODO: Handle error.
}
// TODO: Use resp.
_ = resp
```

<br />

## Use of Context

The ctx passed to NewCloudFtpRESTClient is used for authentication requests and
for 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

    func DefaultAuthScopes() []https://pkg.go.dev/builtin#string

DefaultAuthScopes reports the default set of authentication scopes to use with this package.

## CloudFtpCallOptions

    type CloudFtpCallOptions struct {
    	ListServers     []gax.CallOption
    	GetServer       []gax.CallOption
    	CreateServer    []gax.CallOption
    	UpdateServer    []gax.CallOption
    	DeleteServer    []gax.CallOption
    	ListUsers       []gax.CallOption
    	GetUser         []gax.CallOption
    	CreateUser      []gax.CallOption
    	UpdateUser      []gax.CallOption
    	DeleteUser      []gax.CallOption
    	StartServer     []gax.CallOption
    	StopServer      []gax.CallOption
    	GetLocation     []gax.CallOption
    	ListLocations   []gax.CallOption
    	CancelOperation []gax.CallOption
    	DeleteOperation []gax.CallOption
    	GetOperation    []gax.CallOption
    	ListOperations  []gax.CallOption
    }

CloudFtpCallOptions contains the retry settings for each method of CloudFtpClient.

## CloudFtpClient

    type CloudFtpClient struct {

    	// The call options for this service.
    	CallOptions *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpCallOptions

    	// 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
    }

CloudFtpClient is a client for interacting with Cloud FTP API.
Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

Service describing handlers for resources

### func NewCloudFtpRESTClient

    func NewCloudFtpRESTClient(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...option.ClientOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient, https://pkg.go.dev/builtin#error)

NewCloudFtpRESTClient creates a new cloud ftp rest client.

Service describing handlers for resources

#### Example

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	// TODO: Use client.
    	_ = c
    }

### func (\*CloudFtpClient) CancelOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) CancelOperation(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb.https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) https://pkg.go.dev/builtin#error

CancelOperation is a utility method from google.longrunning.Operations.

#### Example

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"

    	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &longrunningpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/longrunning/latest/autogen/longrunningpb.html#cloud_google_com_go_longrunning_autogen_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)
    	if err != nil {
    		// TODO: Handle error.
    	}
    }

### func (\*CloudFtpClient) Close

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) Close() https://pkg.go.dev/builtin#error

Close closes the connection to the API service. **Always** call Close() when
the client is no longer required.

### func (\*CloudFtpClient) Connection
(deprecated)

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) Connection() *grpc.ClientConn

Connection returns a connection to the API service.

Deprecated: Connections are now pooled so this method does not always
return the same resource.

### func (\*CloudFtpClient) CreateServer

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) CreateServer(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_CreateServerRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CreateServerOperation, https://pkg.go.dev/builtin#error)

CreateServer creates a new Server in a given project and location.

#### Example

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"
    	ftppb "cloud.google.com/go/ftp/apiv1/ftppb"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &ftppb.CreateServerRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/ftp/apiv1/ftppb#CreateServerRequest.
    	}
    	op, err := c.CreateServer(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}

    	resp, err := op.Wait(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*CloudFtpClient) CreateServerOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) CreateServerOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CreateServerOperation

CreateServerOperation returns a new CreateServerOperation from a given name.
The name must be that of a previously created CreateServerOperation, possibly from a different process.

### func (\*CloudFtpClient) CreateUser

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) CreateUser(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_CreateUserRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CreateUserOperation, https://pkg.go.dev/builtin#error)

CreateUser creates a new User in a given project and location and Server.

#### Example

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"
    	ftppb "cloud.google.com/go/ftp/apiv1/ftppb"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &ftppb.CreateUserRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/ftp/apiv1/ftppb#CreateUserRequest.
    	}
    	op, err := c.CreateUser(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}

    	resp, err := op.Wait(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*CloudFtpClient) CreateUserOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) CreateUserOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CreateUserOperation

CreateUserOperation returns a new CreateUserOperation from a given name.
The name must be that of a previously created CreateUserOperation, possibly from a different process.

### func (\*CloudFtpClient) DeleteOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) DeleteOperation(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb.https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) https://pkg.go.dev/builtin#error

DeleteOperation is a utility method from google.longrunning.Operations.

#### Example

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"

    	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &longrunningpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/longrunning/latest/autogen/longrunningpb.html#cloud_google_com_go_longrunning_autogen_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)
    	if err != nil {
    		// TODO: Handle error.
    	}
    }

### func (\*CloudFtpClient) DeleteServer

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) DeleteServer(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_DeleteServerRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_DeleteServerOperation, https://pkg.go.dev/builtin#error)

DeleteServer deletes a single Server.

#### Example

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"
    	ftppb "cloud.google.com/go/ftp/apiv1/ftppb"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &ftppb.DeleteServerRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/ftp/apiv1/ftppb#DeleteServerRequest.
    	}
    	op, err := c.DeleteServer(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}

    	err = op.Wait(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    }

### func (\*CloudFtpClient) DeleteServerOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) DeleteServerOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_DeleteServerOperation

DeleteServerOperation returns a new DeleteServerOperation from a given name.
The name must be that of a previously created DeleteServerOperation, possibly from a different process.

### func (\*CloudFtpClient) DeleteUser

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) DeleteUser(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_DeleteUserRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_DeleteUserOperation, https://pkg.go.dev/builtin#error)

DeleteUser deletes a single User.

#### Example

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"
    	ftppb "cloud.google.com/go/ftp/apiv1/ftppb"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &ftppb.DeleteUserRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/ftp/apiv1/ftppb#DeleteUserRequest.
    	}
    	op, err := c.DeleteUser(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}

    	err = op.Wait(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    }

### func (\*CloudFtpClient) DeleteUserOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) DeleteUserOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_DeleteUserOperation

DeleteUserOperation returns a new DeleteUserOperation from a given name.
The name must be that of a previously created DeleteUserOperation, possibly from a different process.

### func (\*CloudFtpClient) GetLocation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) GetLocation(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location.https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location.https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#Location, https://pkg.go.dev/builtin#error)

GetLocation gets information about a location.

#### Example

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"

    	locationpb "google.golang.org/genproto/googleapis/cloud/location"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_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.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_GetLocation(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*CloudFtpClient) GetOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) GetOperation(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb.https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb.https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#Operation, https://pkg.go.dev/builtin#error)

GetOperation is a utility method from google.longrunning.Operations.

#### Example

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"

    	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &longrunningpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/longrunning/latest/autogen/longrunningpb.html#cloud_google_com_go_longrunning_autogen_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)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*CloudFtpClient) GetServer

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) GetServer(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_GetServerRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_Server, https://pkg.go.dev/builtin#error)

GetServer gets details of a single Server.

#### Example

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"
    	ftppb "cloud.google.com/go/ftp/apiv1/ftppb"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &ftppb.GetServerRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/ftp/apiv1/ftppb#GetServerRequest.
    	}
    	resp, err := c.GetServer(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*CloudFtpClient) GetUser

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) GetUser(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_GetUserRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_User, https://pkg.go.dev/builtin#error)

GetUser gets details of a single User.

#### Example

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"
    	ftppb "cloud.google.com/go/ftp/apiv1/ftppb"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &ftppb.GetUserRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/ftp/apiv1/ftppb#GetUserRequest.
    	}
    	resp, err := c.GetUser(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*CloudFtpClient) ListLocations

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) ListLocations(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location.https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_LocationIterator

ListLocations lists information about the supported locations for this service.

This method lists locations based on the resource scope provided in
the \[ListLocationsRequest.name (at http://ListLocationsRequest.name)\]\[google.cloud.location.ListLocationsRequest.name (at <http://google.cloud.location.ListLocationsRequest.name>)\] field: \*
Global locations: If name is empty, the method lists the
public locations available to all projects. \* Project-specific
locations: If name follows the format
projects/{project}, the method lists locations visible to that
specific project. This includes public, private, or other
project-specific locations enabled for the project.

For gRPC and client library implementations, the resource name is
passed as the name field. For direct service calls, the resource
name is
incorporated into the request path based on the specific service
implementation and version.

#### Examples

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"
    	"google.golang.org/api/iterator"

    	locationpb "google.golang.org/genproto/googleapis/cloud/location"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &locationpb.ListLocationsRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
    	}
    	it := c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_ListLocations(ctx, req)
    	for {
    		resp, err := it.Next()
    		if err == iterator.Done {
    			break
    		}
    		if err != 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

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"

    	locationpb "google.golang.org/genproto/googleapis/cloud/location"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &locationpb.ListLocationsRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
    	}
    	for resp, err := range c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_ListLocations(ctx, req).All() {
    		if err != nil {
    			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
    		}
    		// TODO: Use resp.
    		_ = resp
    	}
    }

### func (\*CloudFtpClient) ListOperations

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) ListOperations(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb.https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_OperationIterator

ListOperations is a utility method from google.longrunning.Operations.

#### Examples

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"

    	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
    	"google.golang.org/api/iterator"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &longrunningpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/longrunning/latest/autogen/longrunningpb.html#cloud_google_com_go_longrunning_autogen_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()
    		if err == iterator.Done {
    			break
    		}
    		if err != 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.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/longrunning/latest/autogen/longrunningpb.html#cloud_google_com_go_longrunning_autogen_longrunningpb_ListOperationsResponse)
    	}
    }

##### all

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"

    	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &longrunningpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/longrunning/latest/autogen/longrunningpb.html#cloud_google_com_go_longrunning_autogen_longrunningpb_ListOperationsRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
    	}
    	for resp, err := range c.ListOperations(ctx, req).All() {
    		if err != nil {
    			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
    		}
    		// TODO: Use resp.
    		_ = resp
    	}
    }

### func (\*CloudFtpClient) ListServers

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) ListServers(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_ListServersRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_ServerIterator

ListServers lists Servers in a given project and location.

#### Examples

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"
    	ftppb "cloud.google.com/go/ftp/apiv1/ftppb"
    	"google.golang.org/api/iterator"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &ftppb.ListServersRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/ftp/apiv1/ftppb#ListServersRequest.
    	}
    	it := c.ListServers(ctx, req)
    	for {
    		resp, err := it.Next()
    		if err == iterator.Done {
    			break
    		}
    		if err != 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.(*ftppb.ListServersResponse)
    	}
    }

##### all

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"
    	ftppb "cloud.google.com/go/ftp/apiv1/ftppb"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &ftppb.ListServersRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/ftp/apiv1/ftppb#ListServersRequest.
    	}
    	for resp, err := range c.ListServers(ctx, req).All() {
    		if err != nil {
    			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
    		}
    		// TODO: Use resp.
    		_ = resp
    	}
    }

### func (\*CloudFtpClient) ListUsers

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) ListUsers(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_ListUsersRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_UserIterator

ListUsers lists Users in a given project and location.

#### Examples

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"
    	ftppb "cloud.google.com/go/ftp/apiv1/ftppb"
    	"google.golang.org/api/iterator"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &ftppb.ListUsersRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/ftp/apiv1/ftppb#ListUsersRequest.
    	}
    	it := c.ListUsers(ctx, req)
    	for {
    		resp, err := it.Next()
    		if err == iterator.Done {
    			break
    		}
    		if err != 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.(*ftppb.ListUsersResponse)
    	}
    }

##### all

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"
    	ftppb "cloud.google.com/go/ftp/apiv1/ftppb"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &ftppb.ListUsersRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/ftp/apiv1/ftppb#ListUsersRequest.
    	}
    	for resp, err := range c.ListUsers(ctx, req).All() {
    		if err != nil {
    			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
    		}
    		// TODO: Use resp.
    		_ = resp
    	}
    }

### func (\*CloudFtpClient) StartServer

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) StartServer(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_StartServerRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_StartServerOperation, https://pkg.go.dev/builtin#error)

StartServer starts a stopping/stopped Server.

#### Example

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"
    	ftppb "cloud.google.com/go/ftp/apiv1/ftppb"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &ftppb.StartServerRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/ftp/apiv1/ftppb#StartServerRequest.
    	}
    	op, err := c.StartServer(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}

    	resp, err := op.Wait(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*CloudFtpClient) StartServerOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) StartServerOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_StartServerOperation

StartServerOperation returns a new StartServerOperation from a given name.
The name must be that of a previously created StartServerOperation, possibly from a different process.

### func (\*CloudFtpClient) StopServer

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) StopServer(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_StopServerRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_StopServerOperation, https://pkg.go.dev/builtin#error)

StopServer stops an active Server.

#### Example

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"
    	ftppb "cloud.google.com/go/ftp/apiv1/ftppb"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &ftppb.StopServerRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/ftp/apiv1/ftppb#StopServerRequest.
    	}
    	op, err := c.StopServer(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}

    	resp, err := op.Wait(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*CloudFtpClient) StopServerOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) StopServerOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_StopServerOperation

StopServerOperation returns a new StopServerOperation from a given name.
The name must be that of a previously created StopServerOperation, possibly from a different process.

### func (\*CloudFtpClient) UpdateServer

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) UpdateServer(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_UpdateServerRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_UpdateServerOperation, https://pkg.go.dev/builtin#error)

UpdateServer updates the parameters of a single Server.

#### Example

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"
    	ftppb "cloud.google.com/go/ftp/apiv1/ftppb"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &ftppb.UpdateServerRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/ftp/apiv1/ftppb#UpdateServerRequest.
    	}
    	op, err := c.UpdateServer(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}

    	resp, err := op.Wait(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*CloudFtpClient) UpdateServerOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) UpdateServerOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_UpdateServerOperation

UpdateServerOperation returns a new UpdateServerOperation from a given name.
The name must be that of a previously created UpdateServerOperation, possibly from a different process.

### func (\*CloudFtpClient) UpdateUser

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) UpdateUser(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_UpdateUserRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_UpdateUserOperation, https://pkg.go.dev/builtin#error)

UpdateUser updates the parameters of a single User.

#### Example

    package main

    import (
    	"context"

    	ftp "cloud.google.com/go/ftp/apiv1"
    	ftppb "cloud.google.com/go/ftp/apiv1/ftppb"
    )

    func main() {
    	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_Options
    	c, err := ftp.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_NewCloudFtpRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1.html#cloud_google_com_go_ftp_apiv1_CloudFtpClient_Close()

    	req := &ftppb.UpdateUserRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/ftp/apiv1/ftppb#UpdateUserRequest.
    	}
    	op, err := c.UpdateUser(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}

    	resp, err := op.Wait(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*CloudFtpClient) UpdateUserOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CloudFtpClient) UpdateUserOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_UpdateUserOperation

UpdateUserOperation returns a new UpdateUserOperation from a given name.
The name must be that of a previously created UpdateUserOperation, possibly from a different process.

## CreateServerOperation

    type CreateServerOperation struct {
    	// contains filtered or unexported fields
    }

CreateServerOperation manages a long-running operation from CreateServer.

### func (\*CreateServerOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CreateServerOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*CreateServerOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CreateServerOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_OperationMetadata, https://pkg.go.dev/builtin#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 (\*CreateServerOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CreateServerOperation) Name() https://pkg.go.dev/builtin#string

Name 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 (\*CreateServerOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CreateServerOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_Server, https://pkg.go.dev/builtin#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 and
the 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 (\*CreateServerOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CreateServerOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_Server, https://pkg.go.dev/builtin#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.

## CreateUserOperation

    type CreateUserOperation struct {
    	// contains filtered or unexported fields
    }

CreateUserOperation manages a long-running operation from CreateUser.

### func (\*CreateUserOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CreateUserOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*CreateUserOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CreateUserOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_OperationMetadata, https://pkg.go.dev/builtin#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 (\*CreateUserOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CreateUserOperation) Name() https://pkg.go.dev/builtin#string

Name 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 (\*CreateUserOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CreateUserOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_User, https://pkg.go.dev/builtin#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 and
the 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 (\*CreateUserOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_CreateUserOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_User, https://pkg.go.dev/builtin#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.

## DeleteServerOperation

    type DeleteServerOperation struct {
    	// contains filtered or unexported fields
    }

DeleteServerOperation manages a long-running operation from DeleteServer.

### func (\*DeleteServerOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_DeleteServerOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*DeleteServerOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_DeleteServerOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_OperationMetadata, https://pkg.go.dev/builtin#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 (\*DeleteServerOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_DeleteServerOperation) Name() https://pkg.go.dev/builtin#string

Name 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 (\*DeleteServerOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_DeleteServerOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) https://pkg.go.dev/builtin#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 and
the 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 (\*DeleteServerOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_DeleteServerOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) https://pkg.go.dev/builtin#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.

## DeleteUserOperation

    type DeleteUserOperation struct {
    	// contains filtered or unexported fields
    }

DeleteUserOperation manages a long-running operation from DeleteUser.

### func (\*DeleteUserOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_DeleteUserOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*DeleteUserOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_DeleteUserOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_OperationMetadata, https://pkg.go.dev/builtin#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 (\*DeleteUserOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_DeleteUserOperation) Name() https://pkg.go.dev/builtin#string

Name 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 (\*DeleteUserOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_DeleteUserOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) https://pkg.go.dev/builtin#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 and
the 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 (\*DeleteUserOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_DeleteUserOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) https://pkg.go.dev/builtin#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.

## LocationIterator

    type LocationIterator struct {

    	// 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.
    	Response interface{}

    	// 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.
    	InternalFetch func(pageSize https://pkg.go.dev/builtin#int, pageToken https://pkg.go.dev/builtin#string) (results []*locationpb.Location, nextPageToken https://pkg.go.dev/builtin#string, err https://pkg.go.dev/builtin#error)
    	// contains filtered or unexported fields
    }

LocationIterator manages a stream of \*locationpb.Location.

### func (\*LocationIterator) All

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_LocationIterator) All() iter.Seq2[*locationpb.Location, error]

All returns an iterator. If an error is returned by the iterator, the
iterator will stop after that iteration.

### func (\*LocationIterator) Next

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_LocationIterator) Next() (*https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location.https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#Location, https://pkg.go.dev/builtin#error)

Next returns the next result. Its second return value is iterator.Done if there are no more
results. Once Next returns Done, all subsequent calls will return Done.

### func (\*LocationIterator) PageInfo

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_LocationIterator) PageInfo() *iterator.PageInfo

PageInfo supports pagination. See the \[google.golang.org/api/iterator\] package for details.

## OperationIterator

    type OperationIterator struct {

    	// 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.
    	Response interface{}

    	// 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.
    	InternalFetch func(pageSize https://pkg.go.dev/builtin#int, pageToken https://pkg.go.dev/builtin#string) (results []*longrunningpb.Operation, nextPageToken https://pkg.go.dev/builtin#string, err https://pkg.go.dev/builtin#error)
    	// contains filtered or unexported fields
    }

OperationIterator manages a stream of \*longrunningpb.Operation.

### func (\*OperationIterator) All

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_OperationIterator) All() iter.Seq2[*longrunningpb.Operation, error]

All returns an iterator. If an error is returned by the iterator, the
iterator will stop after that iteration.

### func (\*OperationIterator) Next

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_OperationIterator) Next() (*https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb.https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#Operation, https://pkg.go.dev/builtin#error)

Next returns the next result. Its second return value is iterator.Done if there are no more
results. Once Next returns Done, all subsequent calls will return Done.

### func (\*OperationIterator) PageInfo

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_OperationIterator) PageInfo() *iterator.PageInfo

PageInfo supports pagination. See the \[google.golang.org/api/iterator\] package for details.

## ServerIterator

    type ServerIterator struct {

    	// 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.
    	Response interface{}

    	// 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.
    	InternalFetch func(pageSize https://pkg.go.dev/builtin#int, pageToken https://pkg.go.dev/builtin#string) (results []*ftppb.Server, nextPageToken https://pkg.go.dev/builtin#string, err https://pkg.go.dev/builtin#error)
    	// contains filtered or unexported fields
    }

ServerIterator manages a stream of \*ftppb.Server.

### func (\*ServerIterator) All

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_ServerIterator) All() iter.Seq2[*ftppb.Server, error]

All returns an iterator. If an error is returned by the iterator, the
iterator will stop after that iteration.

### func (\*ServerIterator) Next

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_ServerIterator) Next() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_Server, https://pkg.go.dev/builtin#error)

Next returns the next result. Its second return value is iterator.Done if there are no more
results. Once Next returns Done, all subsequent calls will return Done.

### func (\*ServerIterator) PageInfo

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_ServerIterator) PageInfo() *iterator.PageInfo

PageInfo supports pagination. See the \[google.golang.org/api/iterator\] package for details.

## StartServerOperation

    type StartServerOperation struct {
    	// contains filtered or unexported fields
    }

StartServerOperation manages a long-running operation from StartServer.

### func (\*StartServerOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_StartServerOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*StartServerOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_StartServerOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_OperationMetadata, https://pkg.go.dev/builtin#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 (\*StartServerOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_StartServerOperation) Name() https://pkg.go.dev/builtin#string

Name 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 (\*StartServerOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_StartServerOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_Server, https://pkg.go.dev/builtin#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 and
the 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 (\*StartServerOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_StartServerOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_Server, https://pkg.go.dev/builtin#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.

## StopServerOperation

    type StopServerOperation struct {
    	// contains filtered or unexported fields
    }

StopServerOperation manages a long-running operation from StopServer.

### func (\*StopServerOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_StopServerOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*StopServerOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_StopServerOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_OperationMetadata, https://pkg.go.dev/builtin#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 (\*StopServerOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_StopServerOperation) Name() https://pkg.go.dev/builtin#string

Name 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 (\*StopServerOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_StopServerOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_Server, https://pkg.go.dev/builtin#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 and
the 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 (\*StopServerOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_StopServerOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_Server, https://pkg.go.dev/builtin#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.

## UpdateServerOperation

    type UpdateServerOperation struct {
    	// contains filtered or unexported fields
    }

UpdateServerOperation manages a long-running operation from UpdateServer.

### func (\*UpdateServerOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_UpdateServerOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*UpdateServerOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_UpdateServerOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_OperationMetadata, https://pkg.go.dev/builtin#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 (\*UpdateServerOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_UpdateServerOperation) Name() https://pkg.go.dev/builtin#string

Name 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 (\*UpdateServerOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_UpdateServerOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_Server, https://pkg.go.dev/builtin#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 and
the 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 (\*UpdateServerOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_UpdateServerOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_Server, https://pkg.go.dev/builtin#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.

## UpdateUserOperation

    type UpdateUserOperation struct {
    	// contains filtered or unexported fields
    }

UpdateUserOperation manages a long-running operation from UpdateUser.

### func (\*UpdateUserOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_UpdateUserOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*UpdateUserOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_UpdateUserOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_OperationMetadata, https://pkg.go.dev/builtin#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 (\*UpdateUserOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_UpdateUserOperation) Name() https://pkg.go.dev/builtin#string

Name 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 (\*UpdateUserOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_UpdateUserOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_User, https://pkg.go.dev/builtin#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 and
the 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 (\*UpdateUserOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_UpdateUserOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_User, https://pkg.go.dev/builtin#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.

## UserIterator

    type UserIterator struct {

    	// 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.
    	Response interface{}

    	// 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.
    	InternalFetch func(pageSize https://pkg.go.dev/builtin#int, pageToken https://pkg.go.dev/builtin#string) (results []*ftppb.User, nextPageToken https://pkg.go.dev/builtin#string, err https://pkg.go.dev/builtin#error)
    	// contains filtered or unexported fields
    }

UserIterator manages a stream of \*ftppb.User.

### func (\*UserIterator) All

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_UserIterator) All() iter.Seq2[*ftppb.User, error]

All returns an iterator. If an error is returned by the iterator, the
iterator will stop after that iteration.

### func (\*UserIterator) Next

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_UserIterator) Next() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1/ftppb#cloud_google_com_go_ftp_apiv1_ftppb_User, https://pkg.go.dev/builtin#error)

Next returns the next result. Its second return value is iterator.Done if there are no more
results. Once Next returns Done, all subsequent calls will return Done.

### func (\*UserIterator) PageInfo

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/ftp/latest/apiv1#cloud_google_com_go_ftp_apiv1_UserIterator) PageInfo() *iterator.PageInfo

PageInfo supports pagination. See the \[google.golang.org/api/iterator\] package for details.