google-cloud-storage_transfer-v1 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/client.rb +540 -25
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/paths.rb +50 -0
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service.rb +1 -0
- data/lib/google/cloud/storage_transfer/v1/version.rb +1 -1
- data/lib/google/cloud/storage_transfer/v1.rb +2 -0
- data/lib/google/storagetransfer/v1/transfer_pb.rb +31 -1
- data/lib/google/storagetransfer/v1/transfer_services_pb.rb +14 -4
- data/lib/google/storagetransfer/v1/transfer_types_pb.rb +139 -2
- data/proto_docs/google/storagetransfer/v1/transfer.rb +129 -20
- data/proto_docs/google/storagetransfer/v1/transfer_types.rb +487 -113
- metadata +4 -3
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module StorageTransfer
|
23
|
+
module V1
|
24
|
+
module StorageTransferService
|
25
|
+
# Path helper methods for the StorageTransferService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified agentPools resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project_id}/agentPools/{agent_pool_id}`
|
33
|
+
#
|
34
|
+
# @param project_id [String]
|
35
|
+
# @param agent_pool_id [String]
|
36
|
+
#
|
37
|
+
# @return [::String]
|
38
|
+
def agent_pools_path project_id:, agent_pool_id:
|
39
|
+
raise ::ArgumentError, "project_id cannot contain /" if project_id.to_s.include? "/"
|
40
|
+
|
41
|
+
"projects/#{project_id}/agentPools/#{agent_pool_id}"
|
42
|
+
end
|
43
|
+
|
44
|
+
extend self
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -23,6 +23,7 @@ require "gapic/config/method"
|
|
23
23
|
require "google/cloud/storage_transfer/v1/version"
|
24
24
|
|
25
25
|
require "google/cloud/storage_transfer/v1/storage_transfer_service/credentials"
|
26
|
+
require "google/cloud/storage_transfer/v1/storage_transfer_service/paths"
|
26
27
|
require "google/cloud/storage_transfer/v1/storage_transfer_service/operations"
|
27
28
|
require "google/cloud/storage_transfer/v1/storage_transfer_service/client"
|
28
29
|
|
@@ -25,6 +25,8 @@ module Google
|
|
25
25
|
##
|
26
26
|
# To load this package, including all its services, and instantiate a client:
|
27
27
|
#
|
28
|
+
# @example
|
29
|
+
#
|
28
30
|
# require "google/cloud/storage_transfer/v1"
|
29
31
|
# client = ::Google::Cloud::StorageTransfer::V1::StorageTransferService::Client.new
|
30
32
|
#
|
@@ -5,7 +5,6 @@ require 'google/api/annotations_pb'
|
|
5
5
|
require 'google/api/client_pb'
|
6
6
|
require 'google/api/field_behavior_pb'
|
7
7
|
require 'google/longrunning/operations_pb'
|
8
|
-
require 'google/protobuf/duration_pb'
|
9
8
|
require 'google/protobuf/empty_pb'
|
10
9
|
require 'google/protobuf/field_mask_pb'
|
11
10
|
require 'google/storagetransfer/v1/transfer_types_pb'
|
@@ -48,6 +47,31 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
48
47
|
optional :job_name, :string, 1
|
49
48
|
optional :project_id, :string, 2
|
50
49
|
end
|
50
|
+
add_message "google.storagetransfer.v1.CreateAgentPoolRequest" do
|
51
|
+
optional :project_id, :string, 1
|
52
|
+
optional :agent_pool, :message, 2, "google.storagetransfer.v1.AgentPool"
|
53
|
+
optional :agent_pool_id, :string, 3
|
54
|
+
end
|
55
|
+
add_message "google.storagetransfer.v1.UpdateAgentPoolRequest" do
|
56
|
+
optional :agent_pool, :message, 1, "google.storagetransfer.v1.AgentPool"
|
57
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
58
|
+
end
|
59
|
+
add_message "google.storagetransfer.v1.GetAgentPoolRequest" do
|
60
|
+
optional :name, :string, 1
|
61
|
+
end
|
62
|
+
add_message "google.storagetransfer.v1.DeleteAgentPoolRequest" do
|
63
|
+
optional :name, :string, 1
|
64
|
+
end
|
65
|
+
add_message "google.storagetransfer.v1.ListAgentPoolsRequest" do
|
66
|
+
optional :project_id, :string, 1
|
67
|
+
optional :filter, :string, 2
|
68
|
+
optional :page_size, :int32, 3
|
69
|
+
optional :page_token, :string, 4
|
70
|
+
end
|
71
|
+
add_message "google.storagetransfer.v1.ListAgentPoolsResponse" do
|
72
|
+
repeated :agent_pools, :message, 1, "google.storagetransfer.v1.AgentPool"
|
73
|
+
optional :next_page_token, :string, 2
|
74
|
+
end
|
51
75
|
end
|
52
76
|
end
|
53
77
|
|
@@ -64,6 +88,12 @@ module Google
|
|
64
88
|
PauseTransferOperationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.PauseTransferOperationRequest").msgclass
|
65
89
|
ResumeTransferOperationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.ResumeTransferOperationRequest").msgclass
|
66
90
|
RunTransferJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.RunTransferJobRequest").msgclass
|
91
|
+
CreateAgentPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.CreateAgentPoolRequest").msgclass
|
92
|
+
UpdateAgentPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.UpdateAgentPoolRequest").msgclass
|
93
|
+
GetAgentPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.GetAgentPoolRequest").msgclass
|
94
|
+
DeleteAgentPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.DeleteAgentPoolRequest").msgclass
|
95
|
+
ListAgentPoolsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.ListAgentPoolsRequest").msgclass
|
96
|
+
ListAgentPoolsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.ListAgentPoolsResponse").msgclass
|
67
97
|
end
|
68
98
|
end
|
69
99
|
end
|
@@ -38,7 +38,7 @@ module Google
|
|
38
38
|
# Returns the Google service account that is used by Storage Transfer
|
39
39
|
# Service to access buckets in the project where transfers
|
40
40
|
# run or in other projects. Each Google service account is associated
|
41
|
-
# with one Google Cloud
|
41
|
+
# with one Google Cloud project. Users
|
42
42
|
# should add this service account to the Google Cloud Storage bucket
|
43
43
|
# ACLs to grant access to Storage Transfer Service. This service
|
44
44
|
# account is created and owned by Storage Transfer Service and can
|
@@ -49,8 +49,8 @@ module Google
|
|
49
49
|
# Updates a transfer job. Updating a job's transfer spec does not affect
|
50
50
|
# transfer operations that are running already.
|
51
51
|
#
|
52
|
-
# **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status]
|
53
|
-
#
|
52
|
+
# **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status] field can be modified
|
53
|
+
# using this RPC (for example, to set a job's status to
|
54
54
|
# [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED],
|
55
55
|
# [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or
|
56
56
|
# [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).
|
@@ -65,8 +65,18 @@ module Google
|
|
65
65
|
rpc :ResumeTransferOperation, ::Google::Cloud::StorageTransfer::V1::ResumeTransferOperationRequest, ::Google::Protobuf::Empty
|
66
66
|
# Attempts to start a new TransferOperation for the current TransferJob. A
|
67
67
|
# TransferJob has a maximum of one active TransferOperation. If this method
|
68
|
-
# is called while a TransferOperation is active, an error
|
68
|
+
# is called while a TransferOperation is active, an error will be returned.
|
69
69
|
rpc :RunTransferJob, ::Google::Cloud::StorageTransfer::V1::RunTransferJobRequest, ::Google::Longrunning::Operation
|
70
|
+
# Creates an agent pool resource.
|
71
|
+
rpc :CreateAgentPool, ::Google::Cloud::StorageTransfer::V1::CreateAgentPoolRequest, ::Google::Cloud::StorageTransfer::V1::AgentPool
|
72
|
+
# Updates an existing agent pool resource.
|
73
|
+
rpc :UpdateAgentPool, ::Google::Cloud::StorageTransfer::V1::UpdateAgentPoolRequest, ::Google::Cloud::StorageTransfer::V1::AgentPool
|
74
|
+
# Gets an agent pool.
|
75
|
+
rpc :GetAgentPool, ::Google::Cloud::StorageTransfer::V1::GetAgentPoolRequest, ::Google::Cloud::StorageTransfer::V1::AgentPool
|
76
|
+
# Lists agent pools.
|
77
|
+
rpc :ListAgentPools, ::Google::Cloud::StorageTransfer::V1::ListAgentPoolsRequest, ::Google::Cloud::StorageTransfer::V1::ListAgentPoolsResponse
|
78
|
+
# Deletes an agent pool.
|
79
|
+
rpc :DeleteAgentPool, ::Google::Cloud::StorageTransfer::V1::DeleteAgentPoolRequest, ::Google::Protobuf::Empty
|
70
80
|
end
|
71
81
|
|
72
82
|
Stub = Service.rpc_stub_class
|
@@ -1,9 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/storagetransfer/v1/transfer_types.proto
|
3
3
|
|
4
|
-
require 'google/api/annotations_pb'
|
5
4
|
require 'google/api/field_behavior_pb'
|
6
|
-
require 'google/
|
5
|
+
require 'google/api/resource_pb'
|
7
6
|
require 'google/protobuf/duration_pb'
|
8
7
|
require 'google/protobuf/timestamp_pb'
|
9
8
|
require 'google/rpc/code_pb'
|
@@ -51,23 +50,120 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
51
50
|
add_message "google.storagetransfer.v1.HttpData" do
|
52
51
|
optional :list_url, :string, 1
|
53
52
|
end
|
53
|
+
add_message "google.storagetransfer.v1.PosixFilesystem" do
|
54
|
+
optional :root_directory, :string, 1
|
55
|
+
end
|
56
|
+
add_message "google.storagetransfer.v1.AgentPool" do
|
57
|
+
optional :name, :string, 2
|
58
|
+
optional :display_name, :string, 3
|
59
|
+
optional :state, :enum, 4, "google.storagetransfer.v1.AgentPool.State"
|
60
|
+
optional :bandwidth_limit, :message, 5, "google.storagetransfer.v1.AgentPool.BandwidthLimit"
|
61
|
+
end
|
62
|
+
add_message "google.storagetransfer.v1.AgentPool.BandwidthLimit" do
|
63
|
+
optional :limit_mbps, :int64, 1
|
64
|
+
end
|
65
|
+
add_enum "google.storagetransfer.v1.AgentPool.State" do
|
66
|
+
value :STATE_UNSPECIFIED, 0
|
67
|
+
value :CREATING, 1
|
68
|
+
value :CREATED, 2
|
69
|
+
value :DELETING, 3
|
70
|
+
end
|
54
71
|
add_message "google.storagetransfer.v1.TransferOptions" do
|
55
72
|
optional :overwrite_objects_already_existing_in_sink, :bool, 1
|
56
73
|
optional :delete_objects_unique_in_sink, :bool, 2
|
57
74
|
optional :delete_objects_from_source_after_transfer, :bool, 3
|
75
|
+
optional :overwrite_when, :enum, 4, "google.storagetransfer.v1.TransferOptions.OverwriteWhen"
|
76
|
+
optional :metadata_options, :message, 5, "google.storagetransfer.v1.MetadataOptions"
|
77
|
+
end
|
78
|
+
add_enum "google.storagetransfer.v1.TransferOptions.OverwriteWhen" do
|
79
|
+
value :OVERWRITE_WHEN_UNSPECIFIED, 0
|
80
|
+
value :DIFFERENT, 1
|
81
|
+
value :NEVER, 2
|
82
|
+
value :ALWAYS, 3
|
58
83
|
end
|
59
84
|
add_message "google.storagetransfer.v1.TransferSpec" do
|
60
85
|
optional :object_conditions, :message, 5, "google.storagetransfer.v1.ObjectConditions"
|
61
86
|
optional :transfer_options, :message, 6, "google.storagetransfer.v1.TransferOptions"
|
87
|
+
optional :transfer_manifest, :message, 15, "google.storagetransfer.v1.TransferManifest"
|
88
|
+
optional :source_agent_pool_name, :string, 17
|
89
|
+
optional :sink_agent_pool_name, :string, 18
|
62
90
|
oneof :data_sink do
|
63
91
|
optional :gcs_data_sink, :message, 4, "google.storagetransfer.v1.GcsData"
|
92
|
+
optional :posix_data_sink, :message, 13, "google.storagetransfer.v1.PosixFilesystem"
|
64
93
|
end
|
65
94
|
oneof :data_source do
|
66
95
|
optional :gcs_data_source, :message, 1, "google.storagetransfer.v1.GcsData"
|
67
96
|
optional :aws_s3_data_source, :message, 2, "google.storagetransfer.v1.AwsS3Data"
|
68
97
|
optional :http_data_source, :message, 3, "google.storagetransfer.v1.HttpData"
|
98
|
+
optional :posix_data_source, :message, 14, "google.storagetransfer.v1.PosixFilesystem"
|
69
99
|
optional :azure_blob_storage_data_source, :message, 8, "google.storagetransfer.v1.AzureBlobStorageData"
|
70
100
|
end
|
101
|
+
oneof :intermediate_data_location do
|
102
|
+
optional :gcs_intermediate_data_location, :message, 16, "google.storagetransfer.v1.GcsData"
|
103
|
+
end
|
104
|
+
end
|
105
|
+
add_message "google.storagetransfer.v1.MetadataOptions" do
|
106
|
+
optional :symlink, :enum, 1, "google.storagetransfer.v1.MetadataOptions.Symlink"
|
107
|
+
optional :mode, :enum, 2, "google.storagetransfer.v1.MetadataOptions.Mode"
|
108
|
+
optional :gid, :enum, 3, "google.storagetransfer.v1.MetadataOptions.GID"
|
109
|
+
optional :uid, :enum, 4, "google.storagetransfer.v1.MetadataOptions.UID"
|
110
|
+
optional :acl, :enum, 5, "google.storagetransfer.v1.MetadataOptions.Acl"
|
111
|
+
optional :storage_class, :enum, 6, "google.storagetransfer.v1.MetadataOptions.StorageClass"
|
112
|
+
optional :temporary_hold, :enum, 7, "google.storagetransfer.v1.MetadataOptions.TemporaryHold"
|
113
|
+
optional :kms_key, :enum, 8, "google.storagetransfer.v1.MetadataOptions.KmsKey"
|
114
|
+
optional :time_created, :enum, 9, "google.storagetransfer.v1.MetadataOptions.TimeCreated"
|
115
|
+
end
|
116
|
+
add_enum "google.storagetransfer.v1.MetadataOptions.Symlink" do
|
117
|
+
value :SYMLINK_UNSPECIFIED, 0
|
118
|
+
value :SYMLINK_SKIP, 1
|
119
|
+
value :SYMLINK_PRESERVE, 2
|
120
|
+
end
|
121
|
+
add_enum "google.storagetransfer.v1.MetadataOptions.Mode" do
|
122
|
+
value :MODE_UNSPECIFIED, 0
|
123
|
+
value :MODE_SKIP, 1
|
124
|
+
value :MODE_PRESERVE, 2
|
125
|
+
end
|
126
|
+
add_enum "google.storagetransfer.v1.MetadataOptions.GID" do
|
127
|
+
value :GID_UNSPECIFIED, 0
|
128
|
+
value :GID_SKIP, 1
|
129
|
+
value :GID_NUMBER, 2
|
130
|
+
end
|
131
|
+
add_enum "google.storagetransfer.v1.MetadataOptions.UID" do
|
132
|
+
value :UID_UNSPECIFIED, 0
|
133
|
+
value :UID_SKIP, 1
|
134
|
+
value :UID_NUMBER, 2
|
135
|
+
end
|
136
|
+
add_enum "google.storagetransfer.v1.MetadataOptions.Acl" do
|
137
|
+
value :ACL_UNSPECIFIED, 0
|
138
|
+
value :ACL_DESTINATION_BUCKET_DEFAULT, 1
|
139
|
+
value :ACL_PRESERVE, 2
|
140
|
+
end
|
141
|
+
add_enum "google.storagetransfer.v1.MetadataOptions.StorageClass" do
|
142
|
+
value :STORAGE_CLASS_UNSPECIFIED, 0
|
143
|
+
value :STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT, 1
|
144
|
+
value :STORAGE_CLASS_PRESERVE, 2
|
145
|
+
value :STORAGE_CLASS_STANDARD, 3
|
146
|
+
value :STORAGE_CLASS_NEARLINE, 4
|
147
|
+
value :STORAGE_CLASS_COLDLINE, 5
|
148
|
+
value :STORAGE_CLASS_ARCHIVE, 6
|
149
|
+
end
|
150
|
+
add_enum "google.storagetransfer.v1.MetadataOptions.TemporaryHold" do
|
151
|
+
value :TEMPORARY_HOLD_UNSPECIFIED, 0
|
152
|
+
value :TEMPORARY_HOLD_SKIP, 1
|
153
|
+
value :TEMPORARY_HOLD_PRESERVE, 2
|
154
|
+
end
|
155
|
+
add_enum "google.storagetransfer.v1.MetadataOptions.KmsKey" do
|
156
|
+
value :KMS_KEY_UNSPECIFIED, 0
|
157
|
+
value :KMS_KEY_DESTINATION_BUCKET_DEFAULT, 1
|
158
|
+
value :KMS_KEY_PRESERVE, 2
|
159
|
+
end
|
160
|
+
add_enum "google.storagetransfer.v1.MetadataOptions.TimeCreated" do
|
161
|
+
value :TIME_CREATED_UNSPECIFIED, 0
|
162
|
+
value :TIME_CREATED_SKIP, 1
|
163
|
+
value :TIME_CREATED_PRESERVE_AS_CUSTOM_TIME, 2
|
164
|
+
end
|
165
|
+
add_message "google.storagetransfer.v1.TransferManifest" do
|
166
|
+
optional :location, :string, 1
|
71
167
|
end
|
72
168
|
add_message "google.storagetransfer.v1.Schedule" do
|
73
169
|
optional :schedule_start_date, :message, 1, "google.type.Date"
|
@@ -82,6 +178,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
82
178
|
optional :project_id, :string, 3
|
83
179
|
optional :transfer_spec, :message, 4, "google.storagetransfer.v1.TransferSpec"
|
84
180
|
optional :notification_config, :message, 11, "google.storagetransfer.v1.NotificationConfig"
|
181
|
+
optional :logging_config, :message, 14, "google.storagetransfer.v1.LoggingConfig"
|
85
182
|
optional :schedule, :message, 5, "google.storagetransfer.v1.Schedule"
|
86
183
|
optional :status, :enum, 6, "google.storagetransfer.v1.TransferJob.Status"
|
87
184
|
optional :creation_time, :message, 7, "google.protobuf.Timestamp"
|
@@ -121,6 +218,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
121
218
|
optional :bytes_from_source_failed, :int64, 14
|
122
219
|
optional :objects_failed_to_delete_from_sink, :int64, 15
|
123
220
|
optional :bytes_failed_to_delete_from_sink, :int64, 16
|
221
|
+
optional :directories_found_from_source, :int64, 17
|
222
|
+
optional :directories_failed_to_list_from_source, :int64, 18
|
223
|
+
optional :directories_successfully_listed_from_source, :int64, 19
|
224
|
+
optional :intermediate_objects_cleaned_up, :int64, 22
|
225
|
+
optional :intermediate_objects_failed_cleaned_up, :int64, 23
|
124
226
|
end
|
125
227
|
add_message "google.storagetransfer.v1.NotificationConfig" do
|
126
228
|
optional :pubsub_topic, :string, 1
|
@@ -138,6 +240,22 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
138
240
|
value :NONE, 1
|
139
241
|
value :JSON, 2
|
140
242
|
end
|
243
|
+
add_message "google.storagetransfer.v1.LoggingConfig" do
|
244
|
+
repeated :log_actions, :enum, 1, "google.storagetransfer.v1.LoggingConfig.LoggableAction"
|
245
|
+
repeated :log_action_states, :enum, 2, "google.storagetransfer.v1.LoggingConfig.LoggableActionState"
|
246
|
+
optional :enable_onprem_gcs_transfer_logs, :bool, 3
|
247
|
+
end
|
248
|
+
add_enum "google.storagetransfer.v1.LoggingConfig.LoggableAction" do
|
249
|
+
value :LOGGABLE_ACTION_UNSPECIFIED, 0
|
250
|
+
value :FIND, 1
|
251
|
+
value :DELETE, 2
|
252
|
+
value :COPY, 3
|
253
|
+
end
|
254
|
+
add_enum "google.storagetransfer.v1.LoggingConfig.LoggableActionState" do
|
255
|
+
value :LOGGABLE_ACTION_STATE_UNSPECIFIED, 0
|
256
|
+
value :SUCCEEDED, 1
|
257
|
+
value :FAILED, 2
|
258
|
+
end
|
141
259
|
add_message "google.storagetransfer.v1.TransferOperation" do
|
142
260
|
optional :name, :string, 1
|
143
261
|
optional :project_id, :string, 2
|
@@ -174,8 +292,24 @@ module Google
|
|
174
292
|
AwsS3Data = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AwsS3Data").msgclass
|
175
293
|
AzureBlobStorageData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AzureBlobStorageData").msgclass
|
176
294
|
HttpData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.HttpData").msgclass
|
295
|
+
PosixFilesystem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.PosixFilesystem").msgclass
|
296
|
+
AgentPool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AgentPool").msgclass
|
297
|
+
AgentPool::BandwidthLimit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AgentPool.BandwidthLimit").msgclass
|
298
|
+
AgentPool::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AgentPool.State").enummodule
|
177
299
|
TransferOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferOptions").msgclass
|
300
|
+
TransferOptions::OverwriteWhen = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferOptions.OverwriteWhen").enummodule
|
178
301
|
TransferSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferSpec").msgclass
|
302
|
+
MetadataOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions").msgclass
|
303
|
+
MetadataOptions::Symlink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.Symlink").enummodule
|
304
|
+
MetadataOptions::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.Mode").enummodule
|
305
|
+
MetadataOptions::GID = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.GID").enummodule
|
306
|
+
MetadataOptions::UID = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.UID").enummodule
|
307
|
+
MetadataOptions::Acl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.Acl").enummodule
|
308
|
+
MetadataOptions::StorageClass = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.StorageClass").enummodule
|
309
|
+
MetadataOptions::TemporaryHold = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.TemporaryHold").enummodule
|
310
|
+
MetadataOptions::KmsKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.KmsKey").enummodule
|
311
|
+
MetadataOptions::TimeCreated = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.TimeCreated").enummodule
|
312
|
+
TransferManifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferManifest").msgclass
|
179
313
|
Schedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.Schedule").msgclass
|
180
314
|
TransferJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferJob").msgclass
|
181
315
|
TransferJob::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferJob.Status").enummodule
|
@@ -185,6 +319,9 @@ module Google
|
|
185
319
|
NotificationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.NotificationConfig").msgclass
|
186
320
|
NotificationConfig::EventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.NotificationConfig.EventType").enummodule
|
187
321
|
NotificationConfig::PayloadFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.NotificationConfig.PayloadFormat").enummodule
|
322
|
+
LoggingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.LoggingConfig").msgclass
|
323
|
+
LoggingConfig::LoggableAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.LoggingConfig.LoggableAction").enummodule
|
324
|
+
LoggingConfig::LoggableActionState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.LoggingConfig.LoggableActionState").enummodule
|
188
325
|
TransferOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferOperation").msgclass
|
189
326
|
TransferOperation::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferOperation.Status").enummodule
|
190
327
|
end
|
@@ -24,8 +24,8 @@ module Google
|
|
24
24
|
# Request passed to GetGoogleServiceAccount.
|
25
25
|
# @!attribute [rw] project_id
|
26
26
|
# @return [::String]
|
27
|
-
# Required. The ID of the Google Cloud
|
28
|
-
#
|
27
|
+
# Required. The ID of the Google Cloud project that the Google service
|
28
|
+
# account is associated with.
|
29
29
|
class GetGoogleServiceAccountRequest
|
30
30
|
include ::Google::Protobuf::MessageExts
|
31
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -46,20 +46,19 @@ module Google
|
|
46
46
|
# Required. The name of job to update.
|
47
47
|
# @!attribute [rw] project_id
|
48
48
|
# @return [::String]
|
49
|
-
# Required. The ID of the Google Cloud
|
49
|
+
# Required. The ID of the Google Cloud project that owns the
|
50
50
|
# job.
|
51
51
|
# @!attribute [rw] transfer_job
|
52
52
|
# @return [::Google::Cloud::StorageTransfer::V1::TransferJob]
|
53
|
-
# Required. The job to update. `transferJob` is expected to specify
|
54
|
-
#
|
55
|
-
# {::Google::Cloud::StorageTransfer::V1::TransferJob#description description},
|
53
|
+
# Required. The job to update. `transferJob` is expected to specify one or more of
|
54
|
+
# five fields: {::Google::Cloud::StorageTransfer::V1::TransferJob#description description},
|
56
55
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#transfer_spec transfer_spec},
|
57
56
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#notification_config notification_config},
|
58
|
-
#
|
59
|
-
# `UpdateTransferJobRequest` that specifies
|
60
|
-
#
|
61
|
-
# job status
|
62
|
-
# {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::DELETED DELETED} requires
|
57
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferJob#logging_config logging_config}, and
|
58
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferJob#status status}. An `UpdateTransferJobRequest` that specifies
|
59
|
+
# other fields are rejected with the error
|
60
|
+
# {::Google::Rpc::Code::INVALID_ARGUMENT INVALID_ARGUMENT}. Updating a job status
|
61
|
+
# to {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::DELETED DELETED} requires
|
63
62
|
# `storagetransfer.jobs.delete` permissions.
|
64
63
|
# @!attribute [rw] update_transfer_job_field_mask
|
65
64
|
# @return [::Google::Protobuf::FieldMask]
|
@@ -68,10 +67,10 @@ module Google
|
|
68
67
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#description description},
|
69
68
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#transfer_spec transfer_spec},
|
70
69
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#notification_config notification_config},
|
71
|
-
#
|
72
|
-
# `transfer_spec` of the job, a
|
73
|
-
#
|
74
|
-
# rejected with the error
|
70
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferJob#logging_config logging_config}, and
|
71
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferJob#status status}. To update the `transfer_spec` of the job, a
|
72
|
+
# complete transfer specification must be provided. An incomplete
|
73
|
+
# specification missing any required fields is rejected with the error
|
75
74
|
# {::Google::Rpc::Code::INVALID_ARGUMENT INVALID_ARGUMENT}.
|
76
75
|
class UpdateTransferJobRequest
|
77
76
|
include ::Google::Protobuf::MessageExts
|
@@ -81,11 +80,10 @@ module Google
|
|
81
80
|
# Request passed to GetTransferJob.
|
82
81
|
# @!attribute [rw] job_name
|
83
82
|
# @return [::String]
|
84
|
-
# Required.
|
85
|
-
# The job to get.
|
83
|
+
# Required. The job to get.
|
86
84
|
# @!attribute [rw] project_id
|
87
85
|
# @return [::String]
|
88
|
-
# Required. The ID of the Google Cloud
|
86
|
+
# Required. The ID of the Google Cloud project that owns the
|
89
87
|
# job.
|
90
88
|
class GetTransferJobRequest
|
91
89
|
include ::Google::Protobuf::MessageExts
|
@@ -155,12 +153,123 @@ module Google
|
|
155
153
|
# Required. The name of the transfer job.
|
156
154
|
# @!attribute [rw] project_id
|
157
155
|
# @return [::String]
|
158
|
-
# Required. The ID of the Google Cloud
|
159
|
-
#
|
156
|
+
# Required. The ID of the Google Cloud project that owns the transfer
|
157
|
+
# job.
|
160
158
|
class RunTransferJobRequest
|
161
159
|
include ::Google::Protobuf::MessageExts
|
162
160
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
163
161
|
end
|
162
|
+
|
163
|
+
# Specifies the request passed to CreateAgentPool.
|
164
|
+
# @!attribute [rw] project_id
|
165
|
+
# @return [::String]
|
166
|
+
# Required. The ID of the Google Cloud project that owns the
|
167
|
+
# agent pool.
|
168
|
+
# @!attribute [rw] agent_pool
|
169
|
+
# @return [::Google::Cloud::StorageTransfer::V1::AgentPool]
|
170
|
+
# Required. The agent pool to create.
|
171
|
+
# @!attribute [rw] agent_pool_id
|
172
|
+
# @return [::String]
|
173
|
+
# Required. The ID of the agent pool to create.
|
174
|
+
#
|
175
|
+
# The `agent_pool_id` must meet the following requirements:
|
176
|
+
#
|
177
|
+
# * Length of 128 characters or less.
|
178
|
+
# * Not start with the string `goog`.
|
179
|
+
# * Start with a lowercase ASCII character, followed by:
|
180
|
+
# * Zero or more: lowercase Latin alphabet characters, numerals,
|
181
|
+
# hyphens (`-`), periods (`.`), underscores (`_`), or tildes (`~`).
|
182
|
+
# * One or more numerals or lowercase ASCII characters.
|
183
|
+
#
|
184
|
+
# As expressed by the regular expression:
|
185
|
+
# `^(?!goog)[a-z]([a-z0-9-._~]*[a-z0-9])?$`.
|
186
|
+
class CreateAgentPoolRequest
|
187
|
+
include ::Google::Protobuf::MessageExts
|
188
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
189
|
+
end
|
190
|
+
|
191
|
+
# Specifies the request passed to UpdateAgentPool.
|
192
|
+
# @!attribute [rw] agent_pool
|
193
|
+
# @return [::Google::Cloud::StorageTransfer::V1::AgentPool]
|
194
|
+
# Required. The agent pool to update. `agent_pool` is expected to specify following
|
195
|
+
# fields:
|
196
|
+
#
|
197
|
+
# * {::Google::Cloud::StorageTransfer::V1::AgentPool#name name}
|
198
|
+
#
|
199
|
+
# * {::Google::Cloud::StorageTransfer::V1::AgentPool#display_name display_name}
|
200
|
+
#
|
201
|
+
# * {::Google::Cloud::StorageTransfer::V1::AgentPool#bandwidth_limit bandwidth_limit}
|
202
|
+
# An `UpdateAgentPoolRequest` with any other fields is rejected
|
203
|
+
# with the error {::Google::Rpc::Code::INVALID_ARGUMENT INVALID_ARGUMENT}.
|
204
|
+
# @!attribute [rw] update_mask
|
205
|
+
# @return [::Google::Protobuf::FieldMask]
|
206
|
+
# The [field mask]
|
207
|
+
# (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf)
|
208
|
+
# of the fields in `agentPool` to update in this request.
|
209
|
+
# The following `agentPool` fields can be updated:
|
210
|
+
#
|
211
|
+
# * {::Google::Cloud::StorageTransfer::V1::AgentPool#display_name display_name}
|
212
|
+
#
|
213
|
+
# * {::Google::Cloud::StorageTransfer::V1::AgentPool#bandwidth_limit bandwidth_limit}
|
214
|
+
class UpdateAgentPoolRequest
|
215
|
+
include ::Google::Protobuf::MessageExts
|
216
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
217
|
+
end
|
218
|
+
|
219
|
+
# Specifies the request passed to GetAgentPool.
|
220
|
+
# @!attribute [rw] name
|
221
|
+
# @return [::String]
|
222
|
+
# Required. The name of the agent pool to get.
|
223
|
+
class GetAgentPoolRequest
|
224
|
+
include ::Google::Protobuf::MessageExts
|
225
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
226
|
+
end
|
227
|
+
|
228
|
+
# Specifies the request passed to DeleteAgentPool.
|
229
|
+
# @!attribute [rw] name
|
230
|
+
# @return [::String]
|
231
|
+
# Required. The name of the agent pool to delete.
|
232
|
+
class DeleteAgentPoolRequest
|
233
|
+
include ::Google::Protobuf::MessageExts
|
234
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
235
|
+
end
|
236
|
+
|
237
|
+
# The request passed to ListAgentPools.
|
238
|
+
# @!attribute [rw] project_id
|
239
|
+
# @return [::String]
|
240
|
+
# Required. The ID of the Google Cloud project that owns the job.
|
241
|
+
# @!attribute [rw] filter
|
242
|
+
# @return [::String]
|
243
|
+
# An optional list of query parameters specified as JSON text in the
|
244
|
+
# form of:
|
245
|
+
#
|
246
|
+
# `{"agentPoolNames":["agentpool1","agentpool2",...]}`
|
247
|
+
#
|
248
|
+
# Since `agentPoolNames` support multiple values, its values must be
|
249
|
+
# specified with array notation. When the filter is either empty or not
|
250
|
+
# provided, the list returns all agent pools for the project.
|
251
|
+
# @!attribute [rw] page_size
|
252
|
+
# @return [::Integer]
|
253
|
+
# The list page size. The max allowed value is `256`.
|
254
|
+
# @!attribute [rw] page_token
|
255
|
+
# @return [::String]
|
256
|
+
# The list page token.
|
257
|
+
class ListAgentPoolsRequest
|
258
|
+
include ::Google::Protobuf::MessageExts
|
259
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
260
|
+
end
|
261
|
+
|
262
|
+
# Response from ListAgentPools.
|
263
|
+
# @!attribute [rw] agent_pools
|
264
|
+
# @return [::Array<::Google::Cloud::StorageTransfer::V1::AgentPool>]
|
265
|
+
# A list of agent pools.
|
266
|
+
# @!attribute [rw] next_page_token
|
267
|
+
# @return [::String]
|
268
|
+
# The list next page token.
|
269
|
+
class ListAgentPoolsResponse
|
270
|
+
include ::Google::Protobuf::MessageExts
|
271
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
272
|
+
end
|
164
273
|
end
|
165
274
|
end
|
166
275
|
end
|