Service Client: Google::Cloud::Ftp::V1::Service::CloudFtpClient
Client stub representing the remote CloudFtp gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to ftp.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Ftp::V1::Service - Compiled Protocol Buffers messages for google/cloud/ftp/v1/service.proto
SYNOPSIS
use Google::Cloud::Ftp::V1::Service;
my $msg = Google::Cloud::Ftp::V1::Service::ExternalServerConfig->new({
ip_address => $ip_address,
allowed_cidr_blocks => $allowed_cidr_blocks,
});
# Read or update a field
my $val = $msg->ip_address();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Ftp::V1::Service::ExternalServerConfig->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/ftp/v1/service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Ftp::V1::Service::ExternalServerConfig
Configuration for external server.
Inherits from Protobuf::Message.
Accessors
$msg->ip_address()/$msg->ip_address($value)Type:
StringOutput only. IP address of the LB via which clients will connect.
$msg->allowed_cidr_blocks()/$msg->allowed_cidr_blocks($value)Type:
StringOptional. List of CIDR blocks that are allowed to access the Server. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). For now, only IPV4 addresses are supported. Examples: "203.0.113.0/24" - matches with the IP addresses in the range 203.0.113.0 - 203.0.113.255. "0.0.0.0/0" - matches against any IP address. This field must contain at least one entry if the access type is EXTERNAL. The number of allowed CIDR blocks cannot exceed 500. Example: 192.168.0.0/16
Google::Cloud::Ftp::V1::Service::InternalServerConfig
Configuration for private server accessible via PSC.
Inherits from Protobuf::Message.
Accessors
$msg->service_attachment()/$msg->service_attachment($value)Type:
StringOutput only. The resource name of the service attachment. Format: `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`
$msg->consumer_accept_list()/$msg->consumer_accept_list($value)Type:
Message(Google::Cloud::Ftp::V1::Service::InternalServerConfig::AllowedConsumer)Required. A list of projects that are permitted to connect. At least one project is required in the allow list.
$msg->consumer_reject_list()/$msg->consumer_reject_list($value)Type:
Message(Google::Cloud::Ftp::V1::Service::InternalServerConfig::DeniedConsumer)Optional. A list of projects that are denied connection. Format: "projects/sample_project_id" or "projects/1234567890" Projects in this list will be denied access, even if they are included in the `allow_list`. If this list is empty, no projects are explicitly rejected.
$msg->psc_endpoints()/$msg->psc_endpoints($value)Type:
Message(Google::Cloud::Ftp::V1::Service::InternalServerConfig::PscEndpoint)Output only. Details of endpoints created by the customer.
Google::Cloud::Ftp::V1::Service::ServerCredential
Represents credentials of an FTP Server.
Inherits from Protobuf::Message.
Accessors
$msg->fingerprint()/$msg->fingerprint($value)Type:
StringOutput only. The fingerprint is a hash of the public key, and is displayed when clients access the server for the first time to verify the server's identity.
$msg->asymmetric_algorithm()/$msg->asymmetric_algorithm($value)Type:
StringOutput only. Asymmetric algorithm used by the public key. Possible values (can be expanded in future): - ssh-ed25519
Google::Cloud::Ftp::V1::Service::Server
Message describing Server object
Inherits from Protobuf::Message.
Accessors
$msg->external_config()/$msg->external_config($value)Type:
Message(Google::Cloud::Ftp::V1::Service::ExternalServerConfig)Configuration for external access.
$msg->internal_config()/$msg->internal_config($value)Type:
Message(Google::Cloud::Ftp::V1::Service::InternalServerConfig)Configuration for internal access.
$msg->name()/$msg->name($value)Type:
StringIdentifier. name of resource
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. [Output only] Create time stamp
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. [Output only] Update time stamp
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Ftp::V1::Service::Server::LabelsEntry)Optional. Labels as key value pairs
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. Display name of the Server
$msg->access_type()/$msg->access_type($value)Type:
Enum(Google::Cloud::Ftp::V1::Server::AccessType)Required. The access type of the Server.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Ftp::V1::Server::State)Output only. The state of the server.
$msg->google_managed_server_credential()/$msg->google_managed_server_credential($value)Type:
Message(Google::Cloud::Ftp::V1::Service::ServerCredential)Output only. Credentials of the FTP Server.
$msg->service_agent()/$msg->service_agent($value)Type:
StringOutput only. Service agent used to access the customer bucket.
Enum: Server::AccessType
ACCESS_TYPE_UNSPECIFIED=>0EXTERNAL=>1INTERNAL=>2
Enum: Server::State
STATE_UNSPECIFIED=>0CREATING=>1STARTING=>2ACTIVE=>3STOPPING=>4STOPPED=>5DELETING=>6ERROR=>7UPDATING=>8
Google::Cloud::Ftp::V1::Service::ListServersRequest
Message for requesting list of Servers
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent value for ListServersRequest
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A token identifying a page of results the server should return.
$msg->filter()/$msg->filter($value)Type:
StringOptional. Filtering results
$msg->order_by()/$msg->order_by($value)Type:
StringOptional. Hint for how to order the results
$msg->view()/$msg->view($value)Type:
Enum(Google::Cloud::Ftp::V1::ServerView)Optional. The view of the Server resource to return.
Google::Cloud::Ftp::V1::Service::ListServersResponse
Message for response to listing Servers
Inherits from Protobuf::Message.
Accessors
$msg->servers()/$msg->servers($value)Type:
Message(Google::Cloud::Ftp::V1::Service::Server)The list of Server
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token identifying a page of results the server should return.
$msg->unreachable()/$msg->unreachable($value)Type:
StringUnordered list. Locations that could not be reached.
Google::Cloud::Ftp::V1::Service::GetServerRequest
Message for getting a Server
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the resource
$msg->view()/$msg->view($value)Type:
Enum(Google::Cloud::Ftp::V1::ServerView)Optional. The view of the Server resource to return.
Google::Cloud::Ftp::V1::Service::CreateServerRequest
Message for creating a Server
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Value for parent.
$msg->server_id()/$msg->server_id($value)Type:
StringRequired. A unique ID for the server. Must start with a lowercase letter, and end with a lowercase letter or number. Can contain lowercase letters, numbers, and hyphens. Maximum length is 30 characters.
$msg->server()/$msg->server($value)Type:
Message(Google::Cloud::Ftp::V1::Service::Server)Required. The resource being created
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Google::Cloud::Ftp::V1::Service::UpdateServerRequest
Message for updating a Server
Inherits from Protobuf::Message.
Accessors
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. Field mask is used to specify the fields to be overwritten in the Server resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields present in the request will be overwritten.
$msg->server()/$msg->server($value)Type:
Message(Google::Cloud::Ftp::V1::Service::Server)Required. The resource being updated
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Google::Cloud::Ftp::V1::Service::DeleteServerRequest
Message for deleting a Server Note: Cascading delete is not supported. Any nested User resources under this Server must be deleted before the Server itself can be deleted. Attempting to delete a Server with active User resources will result in an error.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the resource
Google::Cloud::Ftp::V1::Service::StorageDirectoryMapping
Mapping of backing Cloud Storage path to the directory where the user lands in the SFTP server. If directory is not specified, it'll default to '/'.
Eg 1 - (bucket_name: bucket, bucket_prefix: path1/path2, directory: /abc/def/username)
The user will land at /abcd/def/username, and the view there will match that of /bucket/path1/path2. The user will not be aware of Cloud Storage prefix '/bucket/path1' and there will be no such directory in the view.
Eg 2 - (bucket_name: bucket, bucket_prefix: path1/path2, directory: '')
The user will land at '/', and the view there will match that of /bucket/path1/path2. The user will not be aware of Cloud Storage prefix '/bucket/path1/path2' and there will be no such directory in the view.
Inherits from Protobuf::Message.
Accessors
$msg->bucket()/$msg->bucket($value)Type:
StringRequired. Name of the bucket.
$msg->bucket_prefix()/$msg->bucket_prefix($value)Type:
StringOptional. Prefix inside the bucket.
$msg->directory()/$msg->directory($value)Type:
StringRequired. Directory where the user lands in the SFTP server.
$msg->permission()/$msg->permission($value)Type:
Enum(Google::Cloud::Ftp::V1::StorageDirectoryMapping::Permission)Required. Permission to the bucket.
Enum: StorageDirectoryMapping::Permission
PERMISSION_UNSPECIFIED=>0READ_ONLY=>1READ_WRITE=>2
Google::Cloud::Ftp::V1::Service::User
Message describing User object
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. User-friendly name via which User will be identified. projects/{project}/locations/{location}/servers/{server}/users/{user}
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. [Output only] Create time stamp
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. [Output only] Update time stamp
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Ftp::V1::Service::User::LabelsEntry)Optional. Labels as key value pairs
$msg->username()/$msg->username($value)Type:
StringOutput only. [Output only] The username of the user.
$msg->customer_service_account()/$msg->customer_service_account($value)Type:
StringRequired. Service account in customer project attached to this SFTP User.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Ftp::V1::User::State)Output only. Tracks user creation.
$msg->user_credentials()/$msg->user_credentials($value)Type:
Message(Google::Cloud::Ftp::V1::Service::UserCredential)Required. User credential for the user. The maximum number of user credentials is 10.
$msg->storage_directory_mappings()/$msg->storage_directory_mappings($value)Type:
Message(Google::Cloud::Ftp::V1::Service::StorageDirectoryMapping)Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.
Enum: User::State
STATE_UNSPECIFIED=>0CREATING=>1ACTIVE=>2ERROR=>3UPDATING=>4DELETING=>5
Google::Cloud::Ftp::V1::Service::ListUsersRequest
Message for requesting list of Users
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent value for ListUsersRequest
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Requested page size. User may return fewer items than requested. The maximum value is 1000; The default value is 50 if the field is omitted (or set to 0).
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A token identifying a page of results the user should return.
$msg->filter()/$msg->filter($value)Type:
StringOptional. Filtering results
$msg->order_by()/$msg->order_by($value)Type:
StringOptional. Hint for how to order the results
$msg->view()/$msg->view($value)Type:
Enum(Google::Cloud::Ftp::V1::UserView)Optional. The view of the User resource to return.
Google::Cloud::Ftp::V1::Service::ListUsersResponse
Message for response to listing Users
Inherits from Protobuf::Message.
Accessors
$msg->users()/$msg->users($value)Type:
Message(Google::Cloud::Ftp::V1::Service::User)The list of User
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token identifying a page of results the user should return.
$msg->unreachable()/$msg->unreachable($value)Type:
StringUnordered list. Locations that could not be reached.
Google::Cloud::Ftp::V1::Service::GetUserRequest
Message for getting a User
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the resource
$msg->view()/$msg->view($value)Type:
Enum(Google::Cloud::Ftp::V1::UserView)Optional. The view of the User resource to return.
Google::Cloud::Ftp::V1::Service::CreateUserRequest
Message for creating a User
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Value for parent.
$msg->user_id()/$msg->user_id($value)Type:
StringRequired. A unique user ID for the SFTP user. The user ID must start with a lowercase letter and can include lowercase letters, numbers, or hyphens.
$msg->user()/$msg->user($value)Type:
Message(Google::Cloud::Ftp::V1::Service::User)Required. The resource being created
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Google::Cloud::Ftp::V1::Service::UpdateUserRequest
Message for updating a User
Inherits from Protobuf::Message.
Accessors
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. Field mask is used to specify the fields to be overwritten in the User resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields present in the request will be overwritten.
$msg->user()/$msg->user($value)Type:
Message(Google::Cloud::Ftp::V1::Service::User)Required. The resource being updated
Google::Cloud::Ftp::V1::Service::DeleteUserRequest
Message for deleting a User
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the resource
$msg->force()/$msg->force($value)Type:
BoolOptional. If set to true, the request will force the deletion of the User.
Google::Cloud::Ftp::V1::Service::StartServerRequest
Request message for starting a Server.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the resource Format: `projects/{project}/locations/{location}/servers/{server}`
Google::Cloud::Ftp::V1::Service::StopServerRequest
Request message for stopping a Server.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the resource. Format: `projects/{project}/locations/{location}/servers/{server}`
Google::Cloud::Ftp::V1::Service::UserCredential
Message describing UserCredential object
Inherits from Protobuf::Message.
Accessors
$msg->credential_name()/$msg->credential_name($value)Type:
StringRequired. Name of the user credential.
$msg->credential_type()/$msg->credential_type($value)Type:
Enum(Google::Cloud::Ftp::V1::UserCredential::Type)Required. Type of credential.
$msg->ssh_public_key_body()/$msg->ssh_public_key_body($value)Type:
StringOptional. SSH public key body in OpenSSH format. Example: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ..."
Enum: UserCredential::Type
TYPE_UNSPECIFIED=>0PUBLIC_KEY=>1
Google::Cloud::Ftp::V1::Service::OperationMetadata
Represents the metadata of the long-running operation.
Inherits from Protobuf::Message.
Accessors
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time the operation was created.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time the operation finished running.
$msg->target()/$msg->target($value)Type:
StringOutput only. Server-defined resource path for the target of the operation.
$msg->verb()/$msg->verb($value)Type:
StringOutput only. Name of the verb executed by the operation.
$msg->status_message()/$msg->status_message($value)Type:
StringOutput only. Human-readable status of the operation, if any.
$msg->requested_cancellation()/$msg->requested_cancellation($value)Type:
BoolOutput only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have [google.longrunning.Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`, corresponding to `Code.CANCELLED`.
$msg->api_version()/$msg->api_version($value)Type:
StringOutput only. API version used to start the operation.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Ftp::V1::Service::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.