{
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
}
}
}
},
"basePath": "",
"baseUrl": "https://ftp.googleapis.com/",
"batchPath": "batch",
"canonicalName": "Cloud FTP",
"description": "A managed, cloud-native solution to move data in and out of Google Cloud by using SSH File Transfer Protocol (SFTP).",
"discoveryVersion": "v1",
"documentationLink": "https://docs.cloud.google.com/cloud-ftp",
"fullyEncodeReservedExpansion": true,
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"id": "ftp:v1alpha",
"kind": "discovery#restDescription",
"mtlsRootUrl": "https://ftp.mtls.googleapis.com/",
"name": "ftp",
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
"$.xgafv": {
"description": "V1 error format.",
"enum": [
"1",
"2"
],
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"location": "query",
"type": "string"
},
"alt": {
"default": "json",
"description": "Data format for response.",
"enum": [
"json",
"media",
"proto"
],
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"location": "query",
"type": "string"
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"location": "query",
"type": "string"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"location": "query",
"type": "string"
},
"prettyPrint": {
"default": "true",
"description": "Returns response with indentations and line breaks.",
"location": "query",
"type": "boolean"
},
"quotaUser": {
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"location": "query",
"type": "string"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
"type": "string"
}
},
"protocol": "rest",
"resources": {
"projects": {
"resources": {
"locations": {
"methods": {
"get": {
"description": "Gets information about a location.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}",
"httpMethod": "GET",
"id": "ftp.projects.locations.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name for the location.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1alpha/{+name}",
"response": {
"$ref": "Location"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the 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.",
"flatPath": "v1alpha/projects/{projectsId}/locations",
"httpMethod": "GET",
"id": "ftp.projects.locations.list",
"parameterOrder": [
"name"
],
"parameters": {
"extraLocationTypes": {
"description": "Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.",
"location": "query",
"repeated": true,
"type": "string"
},
"filter": {
"description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).",
"location": "query",
"type": "string"
},
"name": {
"description": "The resource that owns the locations collection, if applicable.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
},
"pageSize": {
"description": "The maximum number of results to return. If not set, the service selects a default.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.",
"location": "query",
"type": "string"
}
},
"path": "v1alpha/{+name}/locations",
"response": {
"$ref": "ListLocationsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
},
"resources": {
"operations": {
"methods": {
"cancel": {
"description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
"httpMethod": "POST",
"id": "ftp.projects.locations.operations.cancel",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource to be cancelled.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1alpha/{+name}:cancel",
"request": {
"$ref": "CancelOperationRequest"
},
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
"httpMethod": "DELETE",
"id": "ftp.projects.locations.operations.delete",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource to be deleted.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1alpha/{+name}",
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
"httpMethod": "GET",
"id": "ftp.projects.locations.operations.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1alpha/{+name}",
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/operations",
"httpMethod": "GET",
"id": "ftp.projects.locations.operations.list",
"parameterOrder": [
"name"
],
"parameters": {
"filter": {
"description": "The standard list filter.",
"location": "query",
"type": "string"
},
"name": {
"description": "The name of the operation's parent resource.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
"type": "string"
},
"pageSize": {
"description": "The standard list page size.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "The standard list page token.",
"location": "query",
"type": "string"
},
"returnPartialSuccess": {
"description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",
"location": "query",
"type": "boolean"
}
},
"path": "v1alpha/{+name}/operations",
"response": {
"$ref": "ListOperationsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
"servers": {
"methods": {
"create": {
"description": "Creates a new Server in a given project and location.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/servers",
"httpMethod": "POST",
"id": "ftp.projects.locations.servers.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. Value for parent.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
"type": "string"
},
"requestId": {
"description": "Optional. 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).",
"location": "query",
"type": "string"
},
"serverId": {
"description": "Required. 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.",
"location": "query",
"type": "string"
}
},
"path": "v1alpha/{+parent}/servers",
"request": {
"$ref": "Server"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Deletes a single Server.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/servers/{serversId}",
"httpMethod": "DELETE",
"id": "ftp.projects.locations.servers.delete",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. Name of the resource",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/servers/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1alpha/{+name}",
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Gets details of a single Server.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/servers/{serversId}",
"httpMethod": "GET",
"id": "ftp.projects.locations.servers.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. Name of the resource",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/servers/[^/]+$",
"required": true,
"type": "string"
},
"view": {
"description": "Optional. The view of the Server resource to return.",
"enum": [
"SERVER_VIEW_UNSPECIFIED",
"SERVER_VIEW_BASIC",
"SERVER_VIEW_FULL"
],
"enumDescriptions": [
"Default value. Equivalent to SERVER_VIEW_BASIC.",
"Basic view. Excludes heavy configurations (internal_config, external_config, google_managed_server_credential).",
"Full view. Includes all fields."
],
"location": "query",
"type": "string"
}
},
"path": "v1alpha/{+name}",
"response": {
"$ref": "Server"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists Servers in a given project and location.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/servers",
"httpMethod": "GET",
"id": "ftp.projects.locations.servers.list",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "Optional. Filtering results",
"location": "query",
"type": "string"
},
"orderBy": {
"description": "Optional. Hint for how to order the results",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. A token identifying a page of results the server should return.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. Parent value for ListServersRequest",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
"type": "string"
},
"view": {
"description": "Optional. The view of the Server resource to return.",
"enum": [
"SERVER_VIEW_UNSPECIFIED",
"SERVER_VIEW_BASIC",
"SERVER_VIEW_FULL"
],
"enumDescriptions": [
"Default value. Equivalent to SERVER_VIEW_BASIC.",
"Basic view. Excludes heavy configurations (internal_config, external_config, google_managed_server_credential).",
"Full view. Includes all fields."
],
"location": "query",
"type": "string"
}
},
"path": "v1alpha/{+parent}/servers",
"response": {
"$ref": "ListServersResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"patch": {
"description": "Updates the parameters of a single Server.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/servers/{serversId}",
"httpMethod": "PATCH",
"id": "ftp.projects.locations.servers.patch",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Identifier. name of resource",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/servers/[^/]+$",
"required": true,
"type": "string"
},
"requestId": {
"description": "Optional. 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).",
"location": "query",
"type": "string"
},
"updateMask": {
"description": "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.",
"format": "google-fieldmask",
"location": "query",
"type": "string"
}
},
"path": "v1alpha/{+name}",
"request": {
"$ref": "Server"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"start": {
"description": "Starts a stopping/stopped Server.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/servers/{serversId}:start",
"httpMethod": "POST",
"id": "ftp.projects.locations.servers.start",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. Name of the resource Format: `projects/{project}/locations/{location}/servers/{server}`",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/servers/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1alpha/{+name}:start",
"request": {
"$ref": "StartServerRequest"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"stop": {
"description": "Stops an active Server.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/servers/{serversId}:stop",
"httpMethod": "POST",
"id": "ftp.projects.locations.servers.stop",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. Name of the resource. Format: `projects/{project}/locations/{location}/servers/{server}`",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/servers/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1alpha/{+name}:stop",
"request": {
"$ref": "StopServerRequest"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
},
"resources": {
"users": {
"methods": {
"create": {
"description": "Creates a new User in a given project and location and Server.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/servers/{serversId}/users",
"httpMethod": "POST",
"id": "ftp.projects.locations.servers.users.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. Value for parent.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/servers/[^/]+$",
"required": true,
"type": "string"
},
"requestId": {
"description": "Optional. 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).",
"location": "query",
"type": "string"
},
"userId": {
"description": "Required. 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.",
"location": "query",
"type": "string"
}
},
"path": "v1alpha/{+parent}/users",
"request": {
"$ref": "User"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Deletes a single User.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/servers/{serversId}/users/{usersId}",
"httpMethod": "DELETE",
"id": "ftp.projects.locations.servers.users.delete",
"parameterOrder": [
"name"
],
"parameters": {
"force": {
"description": "Optional. If set to true, the request will force the deletion of the User.",
"location": "query",
"type": "boolean"
},
"name": {
"description": "Required. Name of the resource",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/servers/[^/]+/users/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1alpha/{+name}",
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Gets details of a single User.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/servers/{serversId}/users/{usersId}",
"httpMethod": "GET",
"id": "ftp.projects.locations.servers.users.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. Name of the resource",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/servers/[^/]+/users/[^/]+$",
"required": true,
"type": "string"
},
"view": {
"description": "Optional. The view of the User resource to return.",
"enum": [
"USER_VIEW_UNSPECIFIED",
"USER_VIEW_BASIC",
"USER_VIEW_FULL"
],
"enumDescriptions": [
"Default value. Equivalent to USER_VIEW_BASIC.",
"Basic view. Excludes heavy configurations (user_credentials, storage_directory_mappings).",
"Full view. Includes all fields."
],
"location": "query",
"type": "string"
}
},
"path": "v1alpha/{+name}",
"response": {
"$ref": "User"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists Users in a given project and location.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/servers/{serversId}/users",
"httpMethod": "GET",
"id": "ftp.projects.locations.servers.users.list",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "Optional. Filtering results",
"location": "query",
"type": "string"
},
"orderBy": {
"description": "Optional. Hint for how to order the results",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional. 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).",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. A token identifying a page of results the user should return.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. Parent value for ListUsersRequest",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/servers/[^/]+$",
"required": true,
"type": "string"
},
"view": {
"description": "Optional. The view of the User resource to return.",
"enum": [
"USER_VIEW_UNSPECIFIED",
"USER_VIEW_BASIC",
"USER_VIEW_FULL"
],
"enumDescriptions": [
"Default value. Equivalent to USER_VIEW_BASIC.",
"Basic view. Excludes heavy configurations (user_credentials, storage_directory_mappings).",
"Full view. Includes all fields."
],
"location": "query",
"type": "string"
}
},
"path": "v1alpha/{+parent}/users",
"response": {
"$ref": "ListUsersResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"patch": {
"description": "Updates the parameters of a single User.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/servers/{serversId}/users/{usersId}",
"httpMethod": "PATCH",
"id": "ftp.projects.locations.servers.users.patch",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Identifier. User-friendly name via which User will be identified. projects/{project}/locations/{location}/servers/{server}/users/{user}",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/servers/[^/]+/users/[^/]+$",
"required": true,
"type": "string"
},
"updateMask": {
"description": "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.",
"format": "google-fieldmask",
"location": "query",
"type": "string"
}
},
"path": "v1alpha/{+name}",
"request": {
"$ref": "User"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
}
}
}
}
}
}
},
"revision": "20260805",
"rootUrl": "https://ftp.googleapis.com/",
"schemas": {
"AllowedConsumer": {
"description": "A consumer project or network that is permitted to connect to the server via PSC.",
"id": "AllowedConsumer",
"properties": {
"connectionLimit": {
"description": "Required. The connection limit for the consumer. Value must be greater than 0.",
"format": "int64",
"type": "string"
},
"project": {
"description": "The project ID or number of the consumer project. Must be in the format: `projects/{project}`.",
"type": "string"
}
},
"type": "object"
},
"CancelOperationRequest": {
"description": "The request message for Operations.CancelOperation.",
"id": "CancelOperationRequest",
"properties": {},
"type": "object"
},
"DeniedConsumer": {
"description": "A consumer project or network that is denied to connect to the server via PSC.",
"id": "DeniedConsumer",
"properties": {
"project": {
"description": "The project ID or number of the consumer project. Must be in the format: `projects/{project}`.",
"type": "string"
}
},
"type": "object"
},
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
"id": "Empty",
"properties": {},
"type": "object"
},
"ExternalServerConfig": {
"description": "Configuration for external server.",
"id": "ExternalServerConfig",
"properties": {
"allowedCidrBlocks": {
"description": "Optional. 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",
"items": {
"type": "string"
},
"type": "array"
},
"ipAddress": {
"description": "Output only. IP address of the LB via which clients will connect.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"InternalServerConfig": {
"description": "Configuration for private server accessible via PSC.",
"id": "InternalServerConfig",
"properties": {
"consumerAcceptList": {
"description": "Required. A list of projects that are permitted to connect. At least one project is required in the allow list.",
"items": {
"$ref": "AllowedConsumer"
},
"type": "array"
},
"consumerRejectList": {
"description": "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.",
"items": {
"$ref": "DeniedConsumer"
},
"type": "array"
},
"pscEndpoints": {
"description": "Output only. Details of endpoints created by the customer.",
"items": {
"$ref": "PscEndpoint"
},
"readOnly": true,
"type": "array"
},
"serviceAttachment": {
"description": "Output only. The resource name of the service attachment. Format: `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"ListLocationsResponse": {
"description": "The response message for Locations.ListLocations.",
"id": "ListLocationsResponse",
"properties": {
"locations": {
"description": "A list of locations that matches the specified filter in the request.",
"items": {
"$ref": "Location"
},
"type": "array"
},
"nextPageToken": {
"description": "The standard List next-page token.",
"type": "string"
}
},
"type": "object"
},
"ListOperationsResponse": {
"description": "The response message for Operations.ListOperations.",
"id": "ListOperationsResponse",
"properties": {
"nextPageToken": {
"description": "The standard List next-page token.",
"type": "string"
},
"operations": {
"description": "A list of operations that matches the specified filter in the request.",
"items": {
"$ref": "Operation"
},
"type": "array"
},
"unreachable": {
"description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"ListServersResponse": {
"description": "Message for response to listing Servers",
"id": "ListServersResponse",
"properties": {
"nextPageToken": {
"description": "A token identifying a page of results the server should return.",
"type": "string"
},
"servers": {
"description": "The list of Server",
"items": {
"$ref": "Server"
},
"type": "array"
},
"unreachable": {
"description": "Unordered list. Locations that could not be reached.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"ListUsersResponse": {
"description": "Message for response to listing Users",
"id": "ListUsersResponse",
"properties": {
"nextPageToken": {
"description": "A token identifying a page of results the user should return.",
"type": "string"
},
"unreachable": {
"description": "Unordered list. Locations that could not be reached.",
"items": {
"type": "string"
},
"type": "array"
},
"users": {
"description": "The list of User",
"items": {
"$ref": "User"
},
"type": "array"
}
},
"type": "object"
},
"Location": {
"description": "A resource that represents a Google Cloud location.",
"id": "Location",
"properties": {
"displayName": {
"description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".",
"type": "string"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}",
"type": "object"
},
"locationId": {
"description": "The canonical id for this location. For example: `\"us-east1\"`.",
"type": "string"
},
"metadata": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "Service-specific metadata. For example the available capacity at the given location.",
"type": "object"
},
"name": {
"description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`",
"type": "string"
}
},
"type": "object"
},
"Operation": {
"description": "This resource represents a long-running operation that is the result of a network API call.",
"id": "Operation",
"properties": {
"done": {
"description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.",
"type": "boolean"
},
"error": {
"$ref": "Status",
"description": "The error result of the operation in case of failure or cancellation."
},
"metadata": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.",
"type": "object"
},
"name": {
"description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.",
"type": "string"
},
"response": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.",
"type": "object"
}
},
"type": "object"
},
"OperationMetadata": {
"description": "Represents the metadata of the long-running operation.",
"id": "OperationMetadata",
"properties": {
"apiVersion": {
"description": "Output only. API version used to start the operation.",
"readOnly": true,
"type": "string"
},
"createTime": {
"description": "Output only. The time the operation was created.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"endTime": {
"description": "Output only. The time the operation finished running.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"requestedCancellation": {
"description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have google.longrunning.Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.",
"readOnly": true,
"type": "boolean"
},
"statusMessage": {
"description": "Output only. Human-readable status of the operation, if any.",
"readOnly": true,
"type": "string"
},
"target": {
"description": "Output only. Server-defined resource path for the target of the operation.",
"readOnly": true,
"type": "string"
},
"verb": {
"description": "Output only. Name of the verb executed by the operation.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"PscEndpoint": {
"description": "Details of PSC endpoint created by customer.",
"id": "PscEndpoint",
"properties": {
"endpoint": {
"description": "Output only. This is a Resource name for Private Service Connect endpoint. Format: `projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}`",
"readOnly": true,
"type": "string"
},
"network": {
"description": "Output only. The consumer network. Format: `projects/{project}/locations/{location}/networks/{network}`",
"readOnly": true,
"type": "string"
},
"status": {
"description": "Output only. The status of the connected endpoint.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"Server": {
"description": "Message describing Server object",
"id": "Server",
"properties": {
"accessType": {
"description": "Required. The access type of the Server.",
"enum": [
"ACCESS_TYPE_UNSPECIFIED",
"EXTERNAL",
"INTERNAL"
],
"enumDescriptions": [
"Default value. This value is unused.",
"Server is assigned a public IP.",
"Server is assigned an internal IP."
],
"type": "string"
},
"createTime": {
"description": "Output only. [Output only] Create time stamp",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"displayName": {
"description": "Optional. Display name of the Server",
"type": "string"
},
"externalConfig": {
"$ref": "ExternalServerConfig",
"description": "Configuration for external access."
},
"googleManagedServerCredential": {
"$ref": "ServerCredential",
"description": "Output only. Credentials of the FTP Server.",
"readOnly": true
},
"internalConfig": {
"$ref": "InternalServerConfig",
"description": "Configuration for internal access."
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. Labels as key value pairs",
"type": "object"
},
"name": {
"description": "Identifier. name of resource",
"type": "string"
},
"serviceAgent": {
"description": "Output only. Service agent used to access the customer bucket.",
"readOnly": true,
"type": "string"
},
"state": {
"description": "Output only. The state of the server.",
"enum": [
"STATE_UNSPECIFIED",
"CREATING",
"STARTING",
"ACTIVE",
"STOPPING",
"STOPPED",
"DELETING",
"ERROR",
"UPDATING"
],
"enumDescriptions": [
"Default value. This value is unused.",
"Server is being created.",
"Server is starting.",
"Server is ready to be used.",
"Server is stopping.",
"Server is stopped.",
"Server is being deleted.",
"Server is in error state.",
"Server is being updated."
],
"readOnly": true,
"type": "string"
},
"updateTime": {
"description": "Output only. [Output only] Update time stamp",
"format": "google-datetime",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"ServerCredential": {
"description": "Represents credentials of an FTP Server.",
"id": "ServerCredential",
"properties": {
"asymmetricAlgorithm": {
"description": "Output only. Asymmetric algorithm used by the public key. Possible values (can be expanded in future): - ssh-ed25519",
"readOnly": true,
"type": "string"
},
"fingerprint": {
"description": "Output 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.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"StartServerRequest": {
"description": "Request message for starting a Server.",
"id": "StartServerRequest",
"properties": {},
"type": "object"
},
"Status": {
"description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
"id": "Status",
"properties": {
"code": {
"description": "The status code, which should be an enum value of google.rpc.Code.",
"format": "int32",
"type": "integer"
},
"details": {
"description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
"items": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"type": "object"
},
"type": "array"
},
"message": {
"description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
"type": "string"
}
},
"type": "object"
},
"StopServerRequest": {
"description": "Request message for stopping a Server.",
"id": "StopServerRequest",
"properties": {},
"type": "object"
},
"StorageDirectoryMapping": {
"description": "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.",
"id": "StorageDirectoryMapping",
"properties": {
"bucket": {
"description": "Required. Name of the bucket.",
"type": "string"
},
"bucketPrefix": {
"description": "Optional. Prefix inside the bucket.",
"type": "string"
},
"directory": {
"description": "Required. Directory where the user lands in the SFTP server.",
"type": "string"
},
"permission": {
"description": "Required. Permission to the bucket.",
"enum": [
"PERMISSION_UNSPECIFIED",
"READ_ONLY",
"READ_WRITE"
],
"enumDescriptions": [
"Permission unspecified.",
"Read only permission.",
"Read write permission."
],
"type": "string"
}
},
"type": "object"
},
"User": {
"description": "Message describing User object",
"id": "User",
"properties": {
"createTime": {
"description": "Output only. [Output only] Create time stamp",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"customerServiceAccount": {
"description": "Required. Service account in customer project attached to this SFTP User.",
"type": "string"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. Labels as key value pairs",
"type": "object"
},
"name": {
"description": "Identifier. User-friendly name via which User will be identified. projects/{project}/locations/{location}/servers/{server}/users/{user}",
"type": "string"
},
"state": {
"description": "Output only. Tracks user creation.",
"enum": [
"STATE_UNSPECIFIED",
"CREATING",
"ACTIVE",
"ERROR",
"UPDATING",
"DELETING"
],
"enumDescriptions": [
"State unspecified.",
"User is being created.",
"User is ready to be used.",
"User creation failed.",
"The resource is being updated.",
"The resource is being deleted."
],
"readOnly": true,
"type": "string"
},
"storageDirectoryMappings": {
"description": "Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.",
"items": {
"$ref": "StorageDirectoryMapping"
},
"type": "array"
},
"updateTime": {
"description": "Output only. [Output only] Update time stamp",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"userCredentials": {
"description": "Required. User credential for the user. The maximum number of user credentials is 10.",
"items": {
"$ref": "UserCredential"
},
"type": "array"
},
"username": {
"description": "Output only. [Output only] The username of the user.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"UserCredential": {
"description": "Message describing UserCredential object",
"id": "UserCredential",
"properties": {
"credentialName": {
"description": "Required. Name of the user credential.",
"type": "string"
},
"credentialType": {
"description": "Required. Type of credential.",
"enum": [
"TYPE_UNSPECIFIED",
"PUBLIC_KEY"
],
"enumDescriptions": [
"Type unspecified.",
"Public key credential."
],
"type": "string"
},
"sshPublicKeyBody": {
"description": "Optional. SSH public key body in OpenSSH format. Example: \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ...\"",
"type": "string"
}
},
"type": "object"
}
},
"servicePath": "",
"title": "Cloud FTP API",
"version": "v1alpha",
"version_module": true
}