google-cloud-storage_transfer-v1 0.1.0 → 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/.yardopts +1 -1
 - data/AUTHENTICATION.md +7 -25
 - data/README.md +1 -1
 - data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/client.rb +704 -43
 - data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/operations.rb +115 -12
 - 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 +33 -3
 - data/lib/google/storagetransfer/v1/transfer_services_pb.rb +15 -5
 - data/lib/google/storagetransfer/v1/transfer_types_pb.rb +141 -4
 - data/proto_docs/google/api/resource.rb +10 -71
 - data/proto_docs/google/storagetransfer/v1/transfer.rb +129 -20
 - data/proto_docs/google/storagetransfer/v1/transfer_types.rb +487 -113
 - metadata +4 -3
 
| 
         @@ -143,6 +143,27 @@ module Google 
     | 
|
| 
       143 
143 
     | 
    
         
             
                        #
         
     | 
| 
       144 
144 
     | 
    
         
             
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
       145 
145 
     | 
    
         
             
                        #
         
     | 
| 
      
 146 
     | 
    
         
            +
                        # @example Basic example
         
     | 
| 
      
 147 
     | 
    
         
            +
                        #   require "google/longrunning"
         
     | 
| 
      
 148 
     | 
    
         
            +
                        #
         
     | 
| 
      
 149 
     | 
    
         
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         
     | 
| 
      
 150 
     | 
    
         
            +
                        #   client = Google::Longrunning::Operations::Client.new
         
     | 
| 
      
 151 
     | 
    
         
            +
                        #
         
     | 
| 
      
 152 
     | 
    
         
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         
     | 
| 
      
 153 
     | 
    
         
            +
                        #   request = Google::Longrunning::ListOperationsRequest.new
         
     | 
| 
      
 154 
     | 
    
         
            +
                        #
         
     | 
| 
      
 155 
     | 
    
         
            +
                        #   # Call the list_operations method.
         
     | 
| 
      
 156 
     | 
    
         
            +
                        #   result = client.list_operations request
         
     | 
| 
      
 157 
     | 
    
         
            +
                        #
         
     | 
| 
      
 158 
     | 
    
         
            +
                        #   # The returned object is of type Gapic::PagedEnumerable. You can
         
     | 
| 
      
 159 
     | 
    
         
            +
                        #   # iterate over all elements by calling #each, and the enumerable
         
     | 
| 
      
 160 
     | 
    
         
            +
                        #   # will lazily make API calls to fetch subsequent pages. Other
         
     | 
| 
      
 161 
     | 
    
         
            +
                        #   # methods are also available for managing paging directly.
         
     | 
| 
      
 162 
     | 
    
         
            +
                        #   result.each do |response|
         
     | 
| 
      
 163 
     | 
    
         
            +
                        #     # Each element is of type ::Google::Longrunning::Operation.
         
     | 
| 
      
 164 
     | 
    
         
            +
                        #     p response
         
     | 
| 
      
 165 
     | 
    
         
            +
                        #   end
         
     | 
| 
      
 166 
     | 
    
         
            +
                        #
         
     | 
| 
       146 
167 
     | 
    
         
             
                        def list_operations request, options = nil
         
     | 
| 
       147 
168 
     | 
    
         
             
                          raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
       148 
169 
     | 
    
         | 
| 
         @@ -160,9 +181,11 @@ module Google 
     | 
|
| 
       160 
181 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
         
     | 
| 
       161 
182 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       162 
183 
     | 
    
         | 
| 
       163 
     | 
    
         
            -
                          header_params = {
         
     | 
| 
       164 
     | 
    
         
            -
             
     | 
| 
       165 
     | 
    
         
            -
             
     | 
| 
      
 184 
     | 
    
         
            +
                          header_params = {}
         
     | 
| 
      
 185 
     | 
    
         
            +
                          if request.name
         
     | 
| 
      
 186 
     | 
    
         
            +
                            header_params["name"] = request.name
         
     | 
| 
      
 187 
     | 
    
         
            +
                          end
         
     | 
| 
      
 188 
     | 
    
         
            +
             
     | 
| 
       166 
189 
     | 
    
         
             
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         
     | 
| 
       167 
190 
     | 
    
         
             
                          metadata[:"x-goog-request-params"] ||= request_params_header
         
     | 
| 
       168 
191 
     | 
    
         | 
| 
         @@ -215,6 +238,28 @@ module Google 
     | 
|
| 
       215 
238 
     | 
    
         
             
                        #
         
     | 
| 
       216 
239 
     | 
    
         
             
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
       217 
240 
     | 
    
         
             
                        #
         
     | 
| 
      
 241 
     | 
    
         
            +
                        # @example Basic example
         
     | 
| 
      
 242 
     | 
    
         
            +
                        #   require "google/longrunning"
         
     | 
| 
      
 243 
     | 
    
         
            +
                        #
         
     | 
| 
      
 244 
     | 
    
         
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         
     | 
| 
      
 245 
     | 
    
         
            +
                        #   client = Google::Longrunning::Operations::Client.new
         
     | 
| 
      
 246 
     | 
    
         
            +
                        #
         
     | 
| 
      
 247 
     | 
    
         
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         
     | 
| 
      
 248 
     | 
    
         
            +
                        #   request = Google::Longrunning::GetOperationRequest.new
         
     | 
| 
      
 249 
     | 
    
         
            +
                        #
         
     | 
| 
      
 250 
     | 
    
         
            +
                        #   # Call the get_operation method.
         
     | 
| 
      
 251 
     | 
    
         
            +
                        #   result = client.get_operation request
         
     | 
| 
      
 252 
     | 
    
         
            +
                        #
         
     | 
| 
      
 253 
     | 
    
         
            +
                        #   # The returned object is of type Gapic::Operation. You can use this
         
     | 
| 
      
 254 
     | 
    
         
            +
                        #   # object to check the status of an operation, cancel it, or wait
         
     | 
| 
      
 255 
     | 
    
         
            +
                        #   # for results. Here is how to block until completion:
         
     | 
| 
      
 256 
     | 
    
         
            +
                        #   result.wait_until_done! timeout: 60
         
     | 
| 
      
 257 
     | 
    
         
            +
                        #   if result.response?
         
     | 
| 
      
 258 
     | 
    
         
            +
                        #     p result.response
         
     | 
| 
      
 259 
     | 
    
         
            +
                        #   else
         
     | 
| 
      
 260 
     | 
    
         
            +
                        #     puts "Error!"
         
     | 
| 
      
 261 
     | 
    
         
            +
                        #   end
         
     | 
| 
      
 262 
     | 
    
         
            +
                        #
         
     | 
| 
       218 
263 
     | 
    
         
             
                        def get_operation request, options = nil
         
     | 
| 
       219 
264 
     | 
    
         
             
                          raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
       220 
265 
     | 
    
         | 
| 
         @@ -232,9 +277,11 @@ module Google 
     | 
|
| 
       232 
277 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
         
     | 
| 
       233 
278 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       234 
279 
     | 
    
         | 
| 
       235 
     | 
    
         
            -
                          header_params = {
         
     | 
| 
       236 
     | 
    
         
            -
             
     | 
| 
       237 
     | 
    
         
            -
             
     | 
| 
      
 280 
     | 
    
         
            +
                          header_params = {}
         
     | 
| 
      
 281 
     | 
    
         
            +
                          if request.name
         
     | 
| 
      
 282 
     | 
    
         
            +
                            header_params["name"] = request.name
         
     | 
| 
      
 283 
     | 
    
         
            +
                          end
         
     | 
| 
      
 284 
     | 
    
         
            +
             
     | 
| 
       238 
285 
     | 
    
         
             
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         
     | 
| 
       239 
286 
     | 
    
         
             
                          metadata[:"x-goog-request-params"] ||= request_params_header
         
     | 
| 
       240 
287 
     | 
    
         | 
| 
         @@ -287,6 +334,21 @@ module Google 
     | 
|
| 
       287 
334 
     | 
    
         
             
                        #
         
     | 
| 
       288 
335 
     | 
    
         
             
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
       289 
336 
     | 
    
         
             
                        #
         
     | 
| 
      
 337 
     | 
    
         
            +
                        # @example Basic example
         
     | 
| 
      
 338 
     | 
    
         
            +
                        #   require "google/longrunning"
         
     | 
| 
      
 339 
     | 
    
         
            +
                        #
         
     | 
| 
      
 340 
     | 
    
         
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         
     | 
| 
      
 341 
     | 
    
         
            +
                        #   client = Google::Longrunning::Operations::Client.new
         
     | 
| 
      
 342 
     | 
    
         
            +
                        #
         
     | 
| 
      
 343 
     | 
    
         
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         
     | 
| 
      
 344 
     | 
    
         
            +
                        #   request = Google::Longrunning::DeleteOperationRequest.new
         
     | 
| 
      
 345 
     | 
    
         
            +
                        #
         
     | 
| 
      
 346 
     | 
    
         
            +
                        #   # Call the delete_operation method.
         
     | 
| 
      
 347 
     | 
    
         
            +
                        #   result = client.delete_operation request
         
     | 
| 
      
 348 
     | 
    
         
            +
                        #
         
     | 
| 
      
 349 
     | 
    
         
            +
                        #   # The returned object is of type Google::Protobuf::Empty.
         
     | 
| 
      
 350 
     | 
    
         
            +
                        #   p result
         
     | 
| 
      
 351 
     | 
    
         
            +
                        #
         
     | 
| 
       290 
352 
     | 
    
         
             
                        def delete_operation request, options = nil
         
     | 
| 
       291 
353 
     | 
    
         
             
                          raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
       292 
354 
     | 
    
         | 
| 
         @@ -304,9 +366,11 @@ module Google 
     | 
|
| 
       304 
366 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
         
     | 
| 
       305 
367 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       306 
368 
     | 
    
         | 
| 
       307 
     | 
    
         
            -
                          header_params = {
         
     | 
| 
       308 
     | 
    
         
            -
             
     | 
| 
       309 
     | 
    
         
            -
             
     | 
| 
      
 369 
     | 
    
         
            +
                          header_params = {}
         
     | 
| 
      
 370 
     | 
    
         
            +
                          if request.name
         
     | 
| 
      
 371 
     | 
    
         
            +
                            header_params["name"] = request.name
         
     | 
| 
      
 372 
     | 
    
         
            +
                          end
         
     | 
| 
      
 373 
     | 
    
         
            +
             
     | 
| 
       310 
374 
     | 
    
         
             
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         
     | 
| 
       311 
375 
     | 
    
         
             
                          metadata[:"x-goog-request-params"] ||= request_params_header
         
     | 
| 
       312 
376 
     | 
    
         | 
| 
         @@ -364,6 +428,21 @@ module Google 
     | 
|
| 
       364 
428 
     | 
    
         
             
                        #
         
     | 
| 
       365 
429 
     | 
    
         
             
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
       366 
430 
     | 
    
         
             
                        #
         
     | 
| 
      
 431 
     | 
    
         
            +
                        # @example Basic example
         
     | 
| 
      
 432 
     | 
    
         
            +
                        #   require "google/longrunning"
         
     | 
| 
      
 433 
     | 
    
         
            +
                        #
         
     | 
| 
      
 434 
     | 
    
         
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         
     | 
| 
      
 435 
     | 
    
         
            +
                        #   client = Google::Longrunning::Operations::Client.new
         
     | 
| 
      
 436 
     | 
    
         
            +
                        #
         
     | 
| 
      
 437 
     | 
    
         
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         
     | 
| 
      
 438 
     | 
    
         
            +
                        #   request = Google::Longrunning::CancelOperationRequest.new
         
     | 
| 
      
 439 
     | 
    
         
            +
                        #
         
     | 
| 
      
 440 
     | 
    
         
            +
                        #   # Call the cancel_operation method.
         
     | 
| 
      
 441 
     | 
    
         
            +
                        #   result = client.cancel_operation request
         
     | 
| 
      
 442 
     | 
    
         
            +
                        #
         
     | 
| 
      
 443 
     | 
    
         
            +
                        #   # The returned object is of type Google::Protobuf::Empty.
         
     | 
| 
      
 444 
     | 
    
         
            +
                        #   p result
         
     | 
| 
      
 445 
     | 
    
         
            +
                        #
         
     | 
| 
       367 
446 
     | 
    
         
             
                        def cancel_operation request, options = nil
         
     | 
| 
       368 
447 
     | 
    
         
             
                          raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
       369 
448 
     | 
    
         | 
| 
         @@ -381,9 +460,11 @@ module Google 
     | 
|
| 
       381 
460 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
         
     | 
| 
       382 
461 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       383 
462 
     | 
    
         | 
| 
       384 
     | 
    
         
            -
                          header_params = {
         
     | 
| 
       385 
     | 
    
         
            -
             
     | 
| 
       386 
     | 
    
         
            -
             
     | 
| 
      
 463 
     | 
    
         
            +
                          header_params = {}
         
     | 
| 
      
 464 
     | 
    
         
            +
                          if request.name
         
     | 
| 
      
 465 
     | 
    
         
            +
                            header_params["name"] = request.name
         
     | 
| 
      
 466 
     | 
    
         
            +
                          end
         
     | 
| 
      
 467 
     | 
    
         
            +
             
     | 
| 
       387 
468 
     | 
    
         
             
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         
     | 
| 
       388 
469 
     | 
    
         
             
                          metadata[:"x-goog-request-params"] ||= request_params_header
         
     | 
| 
       389 
470 
     | 
    
         | 
| 
         @@ -444,6 +525,28 @@ module Google 
     | 
|
| 
       444 
525 
     | 
    
         
             
                        #
         
     | 
| 
       445 
526 
     | 
    
         
             
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
       446 
527 
     | 
    
         
             
                        #
         
     | 
| 
      
 528 
     | 
    
         
            +
                        # @example Basic example
         
     | 
| 
      
 529 
     | 
    
         
            +
                        #   require "google/longrunning"
         
     | 
| 
      
 530 
     | 
    
         
            +
                        #
         
     | 
| 
      
 531 
     | 
    
         
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         
     | 
| 
      
 532 
     | 
    
         
            +
                        #   client = Google::Longrunning::Operations::Client.new
         
     | 
| 
      
 533 
     | 
    
         
            +
                        #
         
     | 
| 
      
 534 
     | 
    
         
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         
     | 
| 
      
 535 
     | 
    
         
            +
                        #   request = Google::Longrunning::WaitOperationRequest.new
         
     | 
| 
      
 536 
     | 
    
         
            +
                        #
         
     | 
| 
      
 537 
     | 
    
         
            +
                        #   # Call the wait_operation method.
         
     | 
| 
      
 538 
     | 
    
         
            +
                        #   result = client.wait_operation request
         
     | 
| 
      
 539 
     | 
    
         
            +
                        #
         
     | 
| 
      
 540 
     | 
    
         
            +
                        #   # The returned object is of type Gapic::Operation. You can use this
         
     | 
| 
      
 541 
     | 
    
         
            +
                        #   # object to check the status of an operation, cancel it, or wait
         
     | 
| 
      
 542 
     | 
    
         
            +
                        #   # for results. Here is how to block until completion:
         
     | 
| 
      
 543 
     | 
    
         
            +
                        #   result.wait_until_done! timeout: 60
         
     | 
| 
      
 544 
     | 
    
         
            +
                        #   if result.response?
         
     | 
| 
      
 545 
     | 
    
         
            +
                        #     p result.response
         
     | 
| 
      
 546 
     | 
    
         
            +
                        #   else
         
     | 
| 
      
 547 
     | 
    
         
            +
                        #     puts "Error!"
         
     | 
| 
      
 548 
     | 
    
         
            +
                        #   end
         
     | 
| 
      
 549 
     | 
    
         
            +
                        #
         
     | 
| 
       447 
550 
     | 
    
         
             
                        def wait_operation request, options = nil
         
     | 
| 
       448 
551 
     | 
    
         
             
                          raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
       449 
552 
     | 
    
         | 
| 
         @@ -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 
     | 
    
         
             
                  #
         
     | 
| 
         @@ -1,16 +1,15 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # Generated by the protocol buffer compiler.  DO NOT EDIT!
         
     | 
| 
       2 
2 
     | 
    
         
             
            # source: google/storagetransfer/v1/transfer.proto
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
     | 
    
         
            -
            require 'google/protobuf'
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
4 
     | 
    
         
             
            require 'google/api/annotations_pb'
         
     | 
| 
       7 
5 
     | 
    
         
             
            require 'google/api/client_pb'
         
     | 
| 
       8 
6 
     | 
    
         
             
            require 'google/api/field_behavior_pb'
         
     | 
| 
       9 
7 
     | 
    
         
             
            require 'google/longrunning/operations_pb'
         
     | 
| 
       10 
     | 
    
         
            -
            require 'google/protobuf/duration_pb'
         
     | 
| 
       11 
8 
     | 
    
         
             
            require 'google/protobuf/empty_pb'
         
     | 
| 
       12 
9 
     | 
    
         
             
            require 'google/protobuf/field_mask_pb'
         
     | 
| 
       13 
10 
     | 
    
         
             
            require 'google/storagetransfer/v1/transfer_types_pb'
         
     | 
| 
      
 11 
     | 
    
         
            +
            require 'google/protobuf'
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
       14 
13 
     | 
    
         
             
            Google::Protobuf::DescriptorPool.generated_pool.build do
         
     | 
| 
       15 
14 
     | 
    
         
             
              add_file("google/storagetransfer/v1/transfer.proto", :syntax => :proto3) do
         
     | 
| 
       16 
15 
     | 
    
         
             
                add_message "google.storagetransfer.v1.GetGoogleServiceAccountRequest" do
         
     | 
| 
         @@ -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
         
     | 
| 
         @@ -29,7 +29,7 @@ module Google 
     | 
|
| 
       29 
29 
     | 
    
         
             
                      # source external to Google to a Cloud Storage bucket.
         
     | 
| 
       30 
30 
     | 
    
         
             
                      class Service
         
     | 
| 
       31 
31 
     | 
    
         | 
| 
       32 
     | 
    
         
            -
                        include GRPC::GenericService
         
     | 
| 
      
 32 
     | 
    
         
            +
                        include ::GRPC::GenericService
         
     | 
| 
       33 
33 
     | 
    
         | 
| 
       34 
34 
     | 
    
         
             
                        self.marshal_class_method = :encode
         
     | 
| 
       35 
35 
     | 
    
         
             
                        self.unmarshal_class_method = :decode
         
     | 
| 
         @@ -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,16 +1,15 @@ 
     | 
|
| 
       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/protobuf'
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
            require 'google/api/annotations_pb'
         
     | 
| 
       7 
4 
     | 
    
         
             
            require 'google/api/field_behavior_pb'
         
     | 
| 
       8 
     | 
    
         
            -
            require 'google/ 
     | 
| 
      
 5 
     | 
    
         
            +
            require 'google/api/resource_pb'
         
     | 
| 
       9 
6 
     | 
    
         
             
            require 'google/protobuf/duration_pb'
         
     | 
| 
       10 
7 
     | 
    
         
             
            require 'google/protobuf/timestamp_pb'
         
     | 
| 
       11 
8 
     | 
    
         
             
            require 'google/rpc/code_pb'
         
     | 
| 
       12 
9 
     | 
    
         
             
            require 'google/type/date_pb'
         
     | 
| 
       13 
10 
     | 
    
         
             
            require 'google/type/timeofday_pb'
         
     | 
| 
      
 11 
     | 
    
         
            +
            require 'google/protobuf'
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
       14 
13 
     | 
    
         
             
            Google::Protobuf::DescriptorPool.generated_pool.build do
         
     | 
| 
       15 
14 
     | 
    
         
             
              add_file("google/storagetransfer/v1/transfer_types.proto", :syntax => :proto3) do
         
     | 
| 
       16 
15 
     | 
    
         
             
                add_message "google.storagetransfer.v1.GoogleServiceAccount" do
         
     | 
| 
         @@ -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
         
     |