google-cloud-video-transcoder-v1 0.2.0 → 0.2.1
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
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 216a7f2a0c85c4a283d7e933801c0da7d1f1b4c96550f0e300e705c51aad36ee
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: f8badafb6e5c39dacb8050a1d8b2ea4de3a360a4bba60482d453df56e70ba38f
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 6d9404137bb0d6bd8c13058b2550aa03e280dbd30dafba4bc112a6ec5e1341025ceb239550785b1a8607935b0eac1bd7ba708905db0483958d57f0892c085390
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 66e77c979dad915b98f7a32d6bae11bc01ea041b004bd48a388d5c8b83cc1a2cf59d2706e58f234c8a99f440decbe1318293d8743864e5602804de1395ca977c
         
     | 
| 
         @@ -203,6 +203,21 @@ module Google 
     | 
|
| 
       203 
203 
     | 
    
         
             
                          #
         
     | 
| 
       204 
204 
     | 
    
         
             
                          # @raise [::Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
       205 
205 
     | 
    
         
             
                          #
         
     | 
| 
      
 206 
     | 
    
         
            +
                          # @example Basic example
         
     | 
| 
      
 207 
     | 
    
         
            +
                          #   require "google/cloud/video/transcoder/v1"
         
     | 
| 
      
 208 
     | 
    
         
            +
                          #
         
     | 
| 
      
 209 
     | 
    
         
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         
     | 
| 
      
 210 
     | 
    
         
            +
                          #   client = Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
         
     | 
| 
      
 211 
     | 
    
         
            +
                          #
         
     | 
| 
      
 212 
     | 
    
         
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         
     | 
| 
      
 213 
     | 
    
         
            +
                          #   request = Google::Cloud::Video::Transcoder::V1::CreateJobRequest.new
         
     | 
| 
      
 214 
     | 
    
         
            +
                          #
         
     | 
| 
      
 215 
     | 
    
         
            +
                          #   # Call the create_job method.
         
     | 
| 
      
 216 
     | 
    
         
            +
                          #   result = client.create_job request
         
     | 
| 
      
 217 
     | 
    
         
            +
                          #
         
     | 
| 
      
 218 
     | 
    
         
            +
                          #   # The returned object is of type Google::Cloud::Video::Transcoder::V1::Job.
         
     | 
| 
      
 219 
     | 
    
         
            +
                          #   p result
         
     | 
| 
      
 220 
     | 
    
         
            +
                          #
         
     | 
| 
       206 
221 
     | 
    
         
             
                          def create_job request, options = nil
         
     | 
| 
       207 
222 
     | 
    
         
             
                            raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
       208 
223 
     | 
    
         | 
| 
         @@ -220,9 +235,11 @@ module Google 
     | 
|
| 
       220 
235 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Video::Transcoder::V1::VERSION
         
     | 
| 
       221 
236 
     | 
    
         
             
                            metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       222 
237 
     | 
    
         | 
| 
       223 
     | 
    
         
            -
                            header_params = {
         
     | 
| 
       224 
     | 
    
         
            -
             
     | 
| 
       225 
     | 
    
         
            -
             
     | 
| 
      
 238 
     | 
    
         
            +
                            header_params = {}
         
     | 
| 
      
 239 
     | 
    
         
            +
                            if request.parent
         
     | 
| 
      
 240 
     | 
    
         
            +
                              header_params["parent"] = request.parent
         
     | 
| 
      
 241 
     | 
    
         
            +
                            end
         
     | 
| 
      
 242 
     | 
    
         
            +
             
     | 
| 
       226 
243 
     | 
    
         
             
                            request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         
     | 
| 
       227 
244 
     | 
    
         
             
                            metadata[:"x-goog-request-params"] ||= request_params_header
         
     | 
| 
       228 
245 
     | 
    
         | 
| 
         @@ -282,6 +299,27 @@ module Google 
     | 
|
| 
       282 
299 
     | 
    
         
             
                          #
         
     | 
| 
       283 
300 
     | 
    
         
             
                          # @raise [::Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
       284 
301 
     | 
    
         
             
                          #
         
     | 
| 
      
 302 
     | 
    
         
            +
                          # @example Basic example
         
     | 
| 
      
 303 
     | 
    
         
            +
                          #   require "google/cloud/video/transcoder/v1"
         
     | 
| 
      
 304 
     | 
    
         
            +
                          #
         
     | 
| 
      
 305 
     | 
    
         
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         
     | 
| 
      
 306 
     | 
    
         
            +
                          #   client = Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
         
     | 
| 
      
 307 
     | 
    
         
            +
                          #
         
     | 
| 
      
 308 
     | 
    
         
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         
     | 
| 
      
 309 
     | 
    
         
            +
                          #   request = Google::Cloud::Video::Transcoder::V1::ListJobsRequest.new
         
     | 
| 
      
 310 
     | 
    
         
            +
                          #
         
     | 
| 
      
 311 
     | 
    
         
            +
                          #   # Call the list_jobs method.
         
     | 
| 
      
 312 
     | 
    
         
            +
                          #   result = client.list_jobs request
         
     | 
| 
      
 313 
     | 
    
         
            +
                          #
         
     | 
| 
      
 314 
     | 
    
         
            +
                          #   # The returned object is of type Gapic::PagedEnumerable. You can
         
     | 
| 
      
 315 
     | 
    
         
            +
                          #   # iterate over all elements by calling #each, and the enumerable
         
     | 
| 
      
 316 
     | 
    
         
            +
                          #   # will lazily make API calls to fetch subsequent pages. Other
         
     | 
| 
      
 317 
     | 
    
         
            +
                          #   # methods are also available for managing paging directly.
         
     | 
| 
      
 318 
     | 
    
         
            +
                          #   result.each do |response|
         
     | 
| 
      
 319 
     | 
    
         
            +
                          #     # Each element is of type ::Google::Cloud::Video::Transcoder::V1::Job.
         
     | 
| 
      
 320 
     | 
    
         
            +
                          #     p response
         
     | 
| 
      
 321 
     | 
    
         
            +
                          #   end
         
     | 
| 
      
 322 
     | 
    
         
            +
                          #
         
     | 
| 
       285 
323 
     | 
    
         
             
                          def list_jobs request, options = nil
         
     | 
| 
       286 
324 
     | 
    
         
             
                            raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
       287 
325 
     | 
    
         | 
| 
         @@ -299,9 +337,11 @@ module Google 
     | 
|
| 
       299 
337 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Video::Transcoder::V1::VERSION
         
     | 
| 
       300 
338 
     | 
    
         
             
                            metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       301 
339 
     | 
    
         | 
| 
       302 
     | 
    
         
            -
                            header_params = {
         
     | 
| 
       303 
     | 
    
         
            -
             
     | 
| 
       304 
     | 
    
         
            -
             
     | 
| 
      
 340 
     | 
    
         
            +
                            header_params = {}
         
     | 
| 
      
 341 
     | 
    
         
            +
                            if request.parent
         
     | 
| 
      
 342 
     | 
    
         
            +
                              header_params["parent"] = request.parent
         
     | 
| 
      
 343 
     | 
    
         
            +
                            end
         
     | 
| 
      
 344 
     | 
    
         
            +
             
     | 
| 
       305 
345 
     | 
    
         
             
                            request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         
     | 
| 
       306 
346 
     | 
    
         
             
                            metadata[:"x-goog-request-params"] ||= request_params_header
         
     | 
| 
       307 
347 
     | 
    
         | 
| 
         @@ -352,6 +392,21 @@ module Google 
     | 
|
| 
       352 
392 
     | 
    
         
             
                          #
         
     | 
| 
       353 
393 
     | 
    
         
             
                          # @raise [::Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
       354 
394 
     | 
    
         
             
                          #
         
     | 
| 
      
 395 
     | 
    
         
            +
                          # @example Basic example
         
     | 
| 
      
 396 
     | 
    
         
            +
                          #   require "google/cloud/video/transcoder/v1"
         
     | 
| 
      
 397 
     | 
    
         
            +
                          #
         
     | 
| 
      
 398 
     | 
    
         
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         
     | 
| 
      
 399 
     | 
    
         
            +
                          #   client = Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
         
     | 
| 
      
 400 
     | 
    
         
            +
                          #
         
     | 
| 
      
 401 
     | 
    
         
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         
     | 
| 
      
 402 
     | 
    
         
            +
                          #   request = Google::Cloud::Video::Transcoder::V1::GetJobRequest.new
         
     | 
| 
      
 403 
     | 
    
         
            +
                          #
         
     | 
| 
      
 404 
     | 
    
         
            +
                          #   # Call the get_job method.
         
     | 
| 
      
 405 
     | 
    
         
            +
                          #   result = client.get_job request
         
     | 
| 
      
 406 
     | 
    
         
            +
                          #
         
     | 
| 
      
 407 
     | 
    
         
            +
                          #   # The returned object is of type Google::Cloud::Video::Transcoder::V1::Job.
         
     | 
| 
      
 408 
     | 
    
         
            +
                          #   p result
         
     | 
| 
      
 409 
     | 
    
         
            +
                          #
         
     | 
| 
       355 
410 
     | 
    
         
             
                          def get_job request, options = nil
         
     | 
| 
       356 
411 
     | 
    
         
             
                            raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
       357 
412 
     | 
    
         | 
| 
         @@ -369,9 +424,11 @@ module Google 
     | 
|
| 
       369 
424 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Video::Transcoder::V1::VERSION
         
     | 
| 
       370 
425 
     | 
    
         
             
                            metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       371 
426 
     | 
    
         | 
| 
       372 
     | 
    
         
            -
                            header_params = {
         
     | 
| 
       373 
     | 
    
         
            -
             
     | 
| 
       374 
     | 
    
         
            -
             
     | 
| 
      
 427 
     | 
    
         
            +
                            header_params = {}
         
     | 
| 
      
 428 
     | 
    
         
            +
                            if request.name
         
     | 
| 
      
 429 
     | 
    
         
            +
                              header_params["name"] = request.name
         
     | 
| 
      
 430 
     | 
    
         
            +
                            end
         
     | 
| 
      
 431 
     | 
    
         
            +
             
     | 
| 
       375 
432 
     | 
    
         
             
                            request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         
     | 
| 
       376 
433 
     | 
    
         
             
                            metadata[:"x-goog-request-params"] ||= request_params_header
         
     | 
| 
       377 
434 
     | 
    
         | 
| 
         @@ -424,6 +481,21 @@ module Google 
     | 
|
| 
       424 
481 
     | 
    
         
             
                          #
         
     | 
| 
       425 
482 
     | 
    
         
             
                          # @raise [::Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
       426 
483 
     | 
    
         
             
                          #
         
     | 
| 
      
 484 
     | 
    
         
            +
                          # @example Basic example
         
     | 
| 
      
 485 
     | 
    
         
            +
                          #   require "google/cloud/video/transcoder/v1"
         
     | 
| 
      
 486 
     | 
    
         
            +
                          #
         
     | 
| 
      
 487 
     | 
    
         
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         
     | 
| 
      
 488 
     | 
    
         
            +
                          #   client = Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
         
     | 
| 
      
 489 
     | 
    
         
            +
                          #
         
     | 
| 
      
 490 
     | 
    
         
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         
     | 
| 
      
 491 
     | 
    
         
            +
                          #   request = Google::Cloud::Video::Transcoder::V1::DeleteJobRequest.new
         
     | 
| 
      
 492 
     | 
    
         
            +
                          #
         
     | 
| 
      
 493 
     | 
    
         
            +
                          #   # Call the delete_job method.
         
     | 
| 
      
 494 
     | 
    
         
            +
                          #   result = client.delete_job request
         
     | 
| 
      
 495 
     | 
    
         
            +
                          #
         
     | 
| 
      
 496 
     | 
    
         
            +
                          #   # The returned object is of type Google::Protobuf::Empty.
         
     | 
| 
      
 497 
     | 
    
         
            +
                          #   p result
         
     | 
| 
      
 498 
     | 
    
         
            +
                          #
         
     | 
| 
       427 
499 
     | 
    
         
             
                          def delete_job request, options = nil
         
     | 
| 
       428 
500 
     | 
    
         
             
                            raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
       429 
501 
     | 
    
         | 
| 
         @@ -441,9 +513,11 @@ module Google 
     | 
|
| 
       441 
513 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Video::Transcoder::V1::VERSION
         
     | 
| 
       442 
514 
     | 
    
         
             
                            metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       443 
515 
     | 
    
         | 
| 
       444 
     | 
    
         
            -
                            header_params = {
         
     | 
| 
       445 
     | 
    
         
            -
             
     | 
| 
       446 
     | 
    
         
            -
             
     | 
| 
      
 516 
     | 
    
         
            +
                            header_params = {}
         
     | 
| 
      
 517 
     | 
    
         
            +
                            if request.name
         
     | 
| 
      
 518 
     | 
    
         
            +
                              header_params["name"] = request.name
         
     | 
| 
      
 519 
     | 
    
         
            +
                            end
         
     | 
| 
      
 520 
     | 
    
         
            +
             
     | 
| 
       447 
521 
     | 
    
         
             
                            request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         
     | 
| 
       448 
522 
     | 
    
         
             
                            metadata[:"x-goog-request-params"] ||= request_params_header
         
     | 
| 
       449 
523 
     | 
    
         | 
| 
         @@ -501,6 +575,21 @@ module Google 
     | 
|
| 
       501 
575 
     | 
    
         
             
                          #
         
     | 
| 
       502 
576 
     | 
    
         
             
                          # @raise [::Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
       503 
577 
     | 
    
         
             
                          #
         
     | 
| 
      
 578 
     | 
    
         
            +
                          # @example Basic example
         
     | 
| 
      
 579 
     | 
    
         
            +
                          #   require "google/cloud/video/transcoder/v1"
         
     | 
| 
      
 580 
     | 
    
         
            +
                          #
         
     | 
| 
      
 581 
     | 
    
         
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         
     | 
| 
      
 582 
     | 
    
         
            +
                          #   client = Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
         
     | 
| 
      
 583 
     | 
    
         
            +
                          #
         
     | 
| 
      
 584 
     | 
    
         
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         
     | 
| 
      
 585 
     | 
    
         
            +
                          #   request = Google::Cloud::Video::Transcoder::V1::CreateJobTemplateRequest.new
         
     | 
| 
      
 586 
     | 
    
         
            +
                          #
         
     | 
| 
      
 587 
     | 
    
         
            +
                          #   # Call the create_job_template method.
         
     | 
| 
      
 588 
     | 
    
         
            +
                          #   result = client.create_job_template request
         
     | 
| 
      
 589 
     | 
    
         
            +
                          #
         
     | 
| 
      
 590 
     | 
    
         
            +
                          #   # The returned object is of type Google::Cloud::Video::Transcoder::V1::JobTemplate.
         
     | 
| 
      
 591 
     | 
    
         
            +
                          #   p result
         
     | 
| 
      
 592 
     | 
    
         
            +
                          #
         
     | 
| 
       504 
593 
     | 
    
         
             
                          def create_job_template request, options = nil
         
     | 
| 
       505 
594 
     | 
    
         
             
                            raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
       506 
595 
     | 
    
         | 
| 
         @@ -518,9 +607,11 @@ module Google 
     | 
|
| 
       518 
607 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Video::Transcoder::V1::VERSION
         
     | 
| 
       519 
608 
     | 
    
         
             
                            metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       520 
609 
     | 
    
         | 
| 
       521 
     | 
    
         
            -
                            header_params = {
         
     | 
| 
       522 
     | 
    
         
            -
             
     | 
| 
       523 
     | 
    
         
            -
             
     | 
| 
      
 610 
     | 
    
         
            +
                            header_params = {}
         
     | 
| 
      
 611 
     | 
    
         
            +
                            if request.parent
         
     | 
| 
      
 612 
     | 
    
         
            +
                              header_params["parent"] = request.parent
         
     | 
| 
      
 613 
     | 
    
         
            +
                            end
         
     | 
| 
      
 614 
     | 
    
         
            +
             
     | 
| 
       524 
615 
     | 
    
         
             
                            request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         
     | 
| 
       525 
616 
     | 
    
         
             
                            metadata[:"x-goog-request-params"] ||= request_params_header
         
     | 
| 
       526 
617 
     | 
    
         | 
| 
         @@ -581,6 +672,27 @@ module Google 
     | 
|
| 
       581 
672 
     | 
    
         
             
                          #
         
     | 
| 
       582 
673 
     | 
    
         
             
                          # @raise [::Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
       583 
674 
     | 
    
         
             
                          #
         
     | 
| 
      
 675 
     | 
    
         
            +
                          # @example Basic example
         
     | 
| 
      
 676 
     | 
    
         
            +
                          #   require "google/cloud/video/transcoder/v1"
         
     | 
| 
      
 677 
     | 
    
         
            +
                          #
         
     | 
| 
      
 678 
     | 
    
         
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         
     | 
| 
      
 679 
     | 
    
         
            +
                          #   client = Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
         
     | 
| 
      
 680 
     | 
    
         
            +
                          #
         
     | 
| 
      
 681 
     | 
    
         
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         
     | 
| 
      
 682 
     | 
    
         
            +
                          #   request = Google::Cloud::Video::Transcoder::V1::ListJobTemplatesRequest.new
         
     | 
| 
      
 683 
     | 
    
         
            +
                          #
         
     | 
| 
      
 684 
     | 
    
         
            +
                          #   # Call the list_job_templates method.
         
     | 
| 
      
 685 
     | 
    
         
            +
                          #   result = client.list_job_templates request
         
     | 
| 
      
 686 
     | 
    
         
            +
                          #
         
     | 
| 
      
 687 
     | 
    
         
            +
                          #   # The returned object is of type Gapic::PagedEnumerable. You can
         
     | 
| 
      
 688 
     | 
    
         
            +
                          #   # iterate over all elements by calling #each, and the enumerable
         
     | 
| 
      
 689 
     | 
    
         
            +
                          #   # will lazily make API calls to fetch subsequent pages. Other
         
     | 
| 
      
 690 
     | 
    
         
            +
                          #   # methods are also available for managing paging directly.
         
     | 
| 
      
 691 
     | 
    
         
            +
                          #   result.each do |response|
         
     | 
| 
      
 692 
     | 
    
         
            +
                          #     # Each element is of type ::Google::Cloud::Video::Transcoder::V1::JobTemplate.
         
     | 
| 
      
 693 
     | 
    
         
            +
                          #     p response
         
     | 
| 
      
 694 
     | 
    
         
            +
                          #   end
         
     | 
| 
      
 695 
     | 
    
         
            +
                          #
         
     | 
| 
       584 
696 
     | 
    
         
             
                          def list_job_templates request, options = nil
         
     | 
| 
       585 
697 
     | 
    
         
             
                            raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
       586 
698 
     | 
    
         | 
| 
         @@ -598,9 +710,11 @@ module Google 
     | 
|
| 
       598 
710 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Video::Transcoder::V1::VERSION
         
     | 
| 
       599 
711 
     | 
    
         
             
                            metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       600 
712 
     | 
    
         | 
| 
       601 
     | 
    
         
            -
                            header_params = {
         
     | 
| 
       602 
     | 
    
         
            -
             
     | 
| 
       603 
     | 
    
         
            -
             
     | 
| 
      
 713 
     | 
    
         
            +
                            header_params = {}
         
     | 
| 
      
 714 
     | 
    
         
            +
                            if request.parent
         
     | 
| 
      
 715 
     | 
    
         
            +
                              header_params["parent"] = request.parent
         
     | 
| 
      
 716 
     | 
    
         
            +
                            end
         
     | 
| 
      
 717 
     | 
    
         
            +
             
     | 
| 
       604 
718 
     | 
    
         
             
                            request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         
     | 
| 
       605 
719 
     | 
    
         
             
                            metadata[:"x-goog-request-params"] ||= request_params_header
         
     | 
| 
       606 
720 
     | 
    
         | 
| 
         @@ -652,6 +766,21 @@ module Google 
     | 
|
| 
       652 
766 
     | 
    
         
             
                          #
         
     | 
| 
       653 
767 
     | 
    
         
             
                          # @raise [::Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
       654 
768 
     | 
    
         
             
                          #
         
     | 
| 
      
 769 
     | 
    
         
            +
                          # @example Basic example
         
     | 
| 
      
 770 
     | 
    
         
            +
                          #   require "google/cloud/video/transcoder/v1"
         
     | 
| 
      
 771 
     | 
    
         
            +
                          #
         
     | 
| 
      
 772 
     | 
    
         
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         
     | 
| 
      
 773 
     | 
    
         
            +
                          #   client = Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
         
     | 
| 
      
 774 
     | 
    
         
            +
                          #
         
     | 
| 
      
 775 
     | 
    
         
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         
     | 
| 
      
 776 
     | 
    
         
            +
                          #   request = Google::Cloud::Video::Transcoder::V1::GetJobTemplateRequest.new
         
     | 
| 
      
 777 
     | 
    
         
            +
                          #
         
     | 
| 
      
 778 
     | 
    
         
            +
                          #   # Call the get_job_template method.
         
     | 
| 
      
 779 
     | 
    
         
            +
                          #   result = client.get_job_template request
         
     | 
| 
      
 780 
     | 
    
         
            +
                          #
         
     | 
| 
      
 781 
     | 
    
         
            +
                          #   # The returned object is of type Google::Cloud::Video::Transcoder::V1::JobTemplate.
         
     | 
| 
      
 782 
     | 
    
         
            +
                          #   p result
         
     | 
| 
      
 783 
     | 
    
         
            +
                          #
         
     | 
| 
       655 
784 
     | 
    
         
             
                          def get_job_template request, options = nil
         
     | 
| 
       656 
785 
     | 
    
         
             
                            raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
       657 
786 
     | 
    
         | 
| 
         @@ -669,9 +798,11 @@ module Google 
     | 
|
| 
       669 
798 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Video::Transcoder::V1::VERSION
         
     | 
| 
       670 
799 
     | 
    
         
             
                            metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       671 
800 
     | 
    
         | 
| 
       672 
     | 
    
         
            -
                            header_params = {
         
     | 
| 
       673 
     | 
    
         
            -
             
     | 
| 
       674 
     | 
    
         
            -
             
     | 
| 
      
 801 
     | 
    
         
            +
                            header_params = {}
         
     | 
| 
      
 802 
     | 
    
         
            +
                            if request.name
         
     | 
| 
      
 803 
     | 
    
         
            +
                              header_params["name"] = request.name
         
     | 
| 
      
 804 
     | 
    
         
            +
                            end
         
     | 
| 
      
 805 
     | 
    
         
            +
             
     | 
| 
       675 
806 
     | 
    
         
             
                            request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         
     | 
| 
       676 
807 
     | 
    
         
             
                            metadata[:"x-goog-request-params"] ||= request_params_header
         
     | 
| 
       677 
808 
     | 
    
         | 
| 
         @@ -724,6 +855,21 @@ module Google 
     | 
|
| 
       724 
855 
     | 
    
         
             
                          #
         
     | 
| 
       725 
856 
     | 
    
         
             
                          # @raise [::Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
       726 
857 
     | 
    
         
             
                          #
         
     | 
| 
      
 858 
     | 
    
         
            +
                          # @example Basic example
         
     | 
| 
      
 859 
     | 
    
         
            +
                          #   require "google/cloud/video/transcoder/v1"
         
     | 
| 
      
 860 
     | 
    
         
            +
                          #
         
     | 
| 
      
 861 
     | 
    
         
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         
     | 
| 
      
 862 
     | 
    
         
            +
                          #   client = Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
         
     | 
| 
      
 863 
     | 
    
         
            +
                          #
         
     | 
| 
      
 864 
     | 
    
         
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         
     | 
| 
      
 865 
     | 
    
         
            +
                          #   request = Google::Cloud::Video::Transcoder::V1::DeleteJobTemplateRequest.new
         
     | 
| 
      
 866 
     | 
    
         
            +
                          #
         
     | 
| 
      
 867 
     | 
    
         
            +
                          #   # Call the delete_job_template method.
         
     | 
| 
      
 868 
     | 
    
         
            +
                          #   result = client.delete_job_template request
         
     | 
| 
      
 869 
     | 
    
         
            +
                          #
         
     | 
| 
      
 870 
     | 
    
         
            +
                          #   # The returned object is of type Google::Protobuf::Empty.
         
     | 
| 
      
 871 
     | 
    
         
            +
                          #   p result
         
     | 
| 
      
 872 
     | 
    
         
            +
                          #
         
     | 
| 
       727 
873 
     | 
    
         
             
                          def delete_job_template request, options = nil
         
     | 
| 
       728 
874 
     | 
    
         
             
                            raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
       729 
875 
     | 
    
         | 
| 
         @@ -741,9 +887,11 @@ module Google 
     | 
|
| 
       741 
887 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Video::Transcoder::V1::VERSION
         
     | 
| 
       742 
888 
     | 
    
         
             
                            metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       743 
889 
     | 
    
         | 
| 
       744 
     | 
    
         
            -
                            header_params = {
         
     | 
| 
       745 
     | 
    
         
            -
             
     | 
| 
       746 
     | 
    
         
            -
             
     | 
| 
      
 890 
     | 
    
         
            +
                            header_params = {}
         
     | 
| 
      
 891 
     | 
    
         
            +
                            if request.name
         
     | 
| 
      
 892 
     | 
    
         
            +
                              header_params["name"] = request.name
         
     | 
| 
      
 893 
     | 
    
         
            +
                            end
         
     | 
| 
      
 894 
     | 
    
         
            +
             
     | 
| 
       747 
895 
     | 
    
         
             
                            request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         
     | 
| 
       748 
896 
     | 
    
         
             
                            metadata[:"x-goog-request-params"] ||= request_params_header
         
     | 
| 
       749 
897 
     | 
    
         | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: google-cloud-video-transcoder-v1
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.2. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.2.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Google LLC
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2021- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2021-11-08 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: gapic-common
         
     |