google-cloud-dataproc-v1 0.25.0 → 0.26.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/lib/google/cloud/dataproc/v1/autoscaling_policy_service/client.rb +13 -5
 - data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/rest/client.rb +13 -5
 - data/lib/google/cloud/dataproc/v1/batch_controller/client.rb +11 -4
 - data/lib/google/cloud/dataproc/v1/batch_controller/operations.rb +13 -5
 - data/lib/google/cloud/dataproc/v1/batch_controller/rest/client.rb +11 -4
 - data/lib/google/cloud/dataproc/v1/batch_controller/rest/operations.rb +11 -4
 - data/lib/google/cloud/dataproc/v1/cluster_controller/client.rb +19 -8
 - data/lib/google/cloud/dataproc/v1/cluster_controller/operations.rb +13 -5
 - data/lib/google/cloud/dataproc/v1/cluster_controller/rest/client.rb +19 -8
 - data/lib/google/cloud/dataproc/v1/cluster_controller/rest/operations.rb +11 -4
 - data/lib/google/cloud/dataproc/v1/job_controller/client.rb +17 -7
 - data/lib/google/cloud/dataproc/v1/job_controller/operations.rb +13 -5
 - data/lib/google/cloud/dataproc/v1/job_controller/rest/client.rb +17 -7
 - data/lib/google/cloud/dataproc/v1/job_controller/rest/operations.rb +11 -4
 - data/lib/google/cloud/dataproc/v1/node_group_controller/client.rb +9 -3
 - data/lib/google/cloud/dataproc/v1/node_group_controller/operations.rb +13 -5
 - data/lib/google/cloud/dataproc/v1/node_group_controller/rest/client.rb +9 -3
 - data/lib/google/cloud/dataproc/v1/node_group_controller/rest/operations.rb +11 -4
 - data/lib/google/cloud/dataproc/v1/session_controller/client.rb +13 -5
 - data/lib/google/cloud/dataproc/v1/session_controller/operations.rb +13 -5
 - data/lib/google/cloud/dataproc/v1/session_controller/rest/client.rb +13 -5
 - data/lib/google/cloud/dataproc/v1/session_controller/rest/operations.rb +11 -4
 - data/lib/google/cloud/dataproc/v1/session_template_controller/client.rb +13 -5
 - data/lib/google/cloud/dataproc/v1/session_template_controller/rest/client.rb +13 -5
 - data/lib/google/cloud/dataproc/v1/shared_pb.rb +3 -1
 - data/lib/google/cloud/dataproc/v1/version.rb +1 -1
 - data/lib/google/cloud/dataproc/v1/workflow_template_service/client.rb +17 -7
 - data/lib/google/cloud/dataproc/v1/workflow_template_service/operations.rb +13 -5
 - data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/client.rb +17 -7
 - data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/operations.rb +11 -4
 - data/proto_docs/google/api/client.rb +4 -0
 - data/proto_docs/google/cloud/dataproc/v1/shared.rb +32 -0
 - metadata +2 -2
 
| 
         @@ -26,6 +26,9 @@ module Google 
     | 
|
| 
       26 
26 
     | 
    
         
             
                    module NodeGroupController
         
     | 
| 
       27 
27 
     | 
    
         
             
                      # Service that implements Longrunning Operations API.
         
     | 
| 
       28 
28 
     | 
    
         
             
                      class Operations
         
     | 
| 
      
 29 
     | 
    
         
            +
                        # @private
         
     | 
| 
      
 30 
     | 
    
         
            +
                        API_VERSION = ""
         
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
       29 
32 
     | 
    
         
             
                        # @private
         
     | 
| 
       30 
33 
     | 
    
         
             
                        DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
         
     | 
| 
       31 
34 
     | 
    
         | 
| 
         @@ -191,10 +194,11 @@ module Google 
     | 
|
| 
       191 
194 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       192 
195 
     | 
    
         
             
                          metadata = @config.rpcs.list_operations.metadata.to_h
         
     | 
| 
       193 
196 
     | 
    
         | 
| 
       194 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 197 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       195 
198 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       196 
199 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       197 
200 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 201 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       198 
202 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       199 
203 
     | 
    
         | 
| 
       200 
204 
     | 
    
         
             
                          header_params = {}
         
     | 
| 
         @@ -287,10 +291,11 @@ module Google 
     | 
|
| 
       287 
291 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       288 
292 
     | 
    
         
             
                          metadata = @config.rpcs.get_operation.metadata.to_h
         
     | 
| 
       289 
293 
     | 
    
         | 
| 
       290 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 294 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       291 
295 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       292 
296 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       293 
297 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 298 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       294 
299 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       295 
300 
     | 
    
         | 
| 
       296 
301 
     | 
    
         
             
                          header_params = {}
         
     | 
| 
         @@ -376,10 +381,11 @@ module Google 
     | 
|
| 
       376 
381 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       377 
382 
     | 
    
         
             
                          metadata = @config.rpcs.delete_operation.metadata.to_h
         
     | 
| 
       378 
383 
     | 
    
         | 
| 
       379 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 384 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       380 
385 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       381 
386 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       382 
387 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 388 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       383 
389 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       384 
390 
     | 
    
         | 
| 
       385 
391 
     | 
    
         
             
                          header_params = {}
         
     | 
| 
         @@ -470,10 +476,11 @@ module Google 
     | 
|
| 
       470 
476 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       471 
477 
     | 
    
         
             
                          metadata = @config.rpcs.cancel_operation.metadata.to_h
         
     | 
| 
       472 
478 
     | 
    
         | 
| 
       473 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 479 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       474 
480 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       475 
481 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       476 
482 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 483 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       477 
484 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       478 
485 
     | 
    
         | 
| 
       479 
486 
     | 
    
         
             
                          header_params = {}
         
     | 
| 
         @@ -574,10 +581,11 @@ module Google 
     | 
|
| 
       574 
581 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       575 
582 
     | 
    
         
             
                          metadata = @config.rpcs.wait_operation.metadata.to_h
         
     | 
| 
       576 
583 
     | 
    
         | 
| 
       577 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 584 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       578 
585 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       579 
586 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       580 
587 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 588 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       581 
589 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       582 
590 
     | 
    
         | 
| 
       583 
591 
     | 
    
         
             
                          options.apply_defaults timeout:      @config.rpcs.wait_operation.timeout,
         
     | 
| 
         @@ -34,6 +34,9 @@ module Google 
     | 
|
| 
       34 
34 
     | 
    
         
             
                        # of Compute Engine managed instances.
         
     | 
| 
       35 
35 
     | 
    
         
             
                        #
         
     | 
| 
       36 
36 
     | 
    
         
             
                        class Client
         
     | 
| 
      
 37 
     | 
    
         
            +
                          # @private
         
     | 
| 
      
 38 
     | 
    
         
            +
                          API_VERSION = ""
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
       37 
40 
     | 
    
         
             
                          # @private
         
     | 
| 
       38 
41 
     | 
    
         
             
                          DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
         
     | 
| 
       39 
42 
     | 
    
         | 
| 
         @@ -269,12 +272,13 @@ module Google 
     | 
|
| 
       269 
272 
     | 
    
         
             
                            # Customize the options with defaults
         
     | 
| 
       270 
273 
     | 
    
         
             
                            call_metadata = @config.rpcs.create_node_group.metadata.to_h
         
     | 
| 
       271 
274 
     | 
    
         | 
| 
       272 
     | 
    
         
            -
                            # Set x-goog-api-client  
     | 
| 
      
 275 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       273 
276 
     | 
    
         
             
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       274 
277 
     | 
    
         
             
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       275 
278 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
         
     | 
| 
       276 
279 
     | 
    
         
             
                              transports_version_send: [:rest]
         
     | 
| 
       277 
280 
     | 
    
         | 
| 
      
 281 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       278 
282 
     | 
    
         
             
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       279 
283 
     | 
    
         | 
| 
       280 
284 
     | 
    
         
             
                            options.apply_defaults timeout:      @config.rpcs.create_node_group.timeout,
         
     | 
| 
         @@ -389,12 +393,13 @@ module Google 
     | 
|
| 
       389 
393 
     | 
    
         
             
                            # Customize the options with defaults
         
     | 
| 
       390 
394 
     | 
    
         
             
                            call_metadata = @config.rpcs.resize_node_group.metadata.to_h
         
     | 
| 
       391 
395 
     | 
    
         | 
| 
       392 
     | 
    
         
            -
                            # Set x-goog-api-client  
     | 
| 
      
 396 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       393 
397 
     | 
    
         
             
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       394 
398 
     | 
    
         
             
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       395 
399 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
         
     | 
| 
       396 
400 
     | 
    
         
             
                              transports_version_send: [:rest]
         
     | 
| 
       397 
401 
     | 
    
         | 
| 
      
 402 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       398 
403 
     | 
    
         
             
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       399 
404 
     | 
    
         | 
| 
       400 
405 
     | 
    
         
             
                            options.apply_defaults timeout:      @config.rpcs.resize_node_group.timeout,
         
     | 
| 
         @@ -471,12 +476,13 @@ module Google 
     | 
|
| 
       471 
476 
     | 
    
         
             
                            # Customize the options with defaults
         
     | 
| 
       472 
477 
     | 
    
         
             
                            call_metadata = @config.rpcs.get_node_group.metadata.to_h
         
     | 
| 
       473 
478 
     | 
    
         | 
| 
       474 
     | 
    
         
            -
                            # Set x-goog-api-client  
     | 
| 
      
 479 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       475 
480 
     | 
    
         
             
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       476 
481 
     | 
    
         
             
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       477 
482 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
         
     | 
| 
       478 
483 
     | 
    
         
             
                              transports_version_send: [:rest]
         
     | 
| 
       479 
484 
     | 
    
         | 
| 
      
 485 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       480 
486 
     | 
    
         
             
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       481 
487 
     | 
    
         | 
| 
       482 
488 
     | 
    
         
             
                            options.apply_defaults timeout:      @config.rpcs.get_node_group.timeout,
         
     | 
| 
         @@ -26,6 +26,9 @@ module Google 
     | 
|
| 
       26 
26 
     | 
    
         
             
                      module Rest
         
     | 
| 
       27 
27 
     | 
    
         
             
                        # Service that implements Longrunning Operations API.
         
     | 
| 
       28 
28 
     | 
    
         
             
                        class Operations
         
     | 
| 
      
 29 
     | 
    
         
            +
                          # @private
         
     | 
| 
      
 30 
     | 
    
         
            +
                          API_VERSION = ""
         
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
       29 
32 
     | 
    
         
             
                          # @private
         
     | 
| 
       30 
33 
     | 
    
         
             
                          DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
         
     | 
| 
       31 
34 
     | 
    
         | 
| 
         @@ -181,12 +184,13 @@ module Google 
     | 
|
| 
       181 
184 
     | 
    
         
             
                            # Customize the options with defaults
         
     | 
| 
       182 
185 
     | 
    
         
             
                            call_metadata = @config.rpcs.list_operations.metadata.to_h
         
     | 
| 
       183 
186 
     | 
    
         | 
| 
       184 
     | 
    
         
            -
                            # Set x-goog-api-client  
     | 
| 
      
 187 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       185 
188 
     | 
    
         
             
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       186 
189 
     | 
    
         
             
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       187 
190 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
         
     | 
| 
       188 
191 
     | 
    
         
             
                              transports_version_send: [:rest]
         
     | 
| 
       189 
192 
     | 
    
         | 
| 
      
 193 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       190 
194 
     | 
    
         
             
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       191 
195 
     | 
    
         | 
| 
       192 
196 
     | 
    
         
             
                            options.apply_defaults timeout:      @config.rpcs.list_operations.timeout,
         
     | 
| 
         @@ -269,12 +273,13 @@ module Google 
     | 
|
| 
       269 
273 
     | 
    
         
             
                            # Customize the options with defaults
         
     | 
| 
       270 
274 
     | 
    
         
             
                            call_metadata = @config.rpcs.get_operation.metadata.to_h
         
     | 
| 
       271 
275 
     | 
    
         | 
| 
       272 
     | 
    
         
            -
                            # Set x-goog-api-client  
     | 
| 
      
 276 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       273 
277 
     | 
    
         
             
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       274 
278 
     | 
    
         
             
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       275 
279 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
         
     | 
| 
       276 
280 
     | 
    
         
             
                              transports_version_send: [:rest]
         
     | 
| 
       277 
281 
     | 
    
         | 
| 
      
 282 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       278 
283 
     | 
    
         
             
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       279 
284 
     | 
    
         | 
| 
       280 
285 
     | 
    
         
             
                            options.apply_defaults timeout:      @config.rpcs.get_operation.timeout,
         
     | 
| 
         @@ -351,12 +356,13 @@ module Google 
     | 
|
| 
       351 
356 
     | 
    
         
             
                            # Customize the options with defaults
         
     | 
| 
       352 
357 
     | 
    
         
             
                            call_metadata = @config.rpcs.delete_operation.metadata.to_h
         
     | 
| 
       353 
358 
     | 
    
         | 
| 
       354 
     | 
    
         
            -
                            # Set x-goog-api-client  
     | 
| 
      
 359 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       355 
360 
     | 
    
         
             
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       356 
361 
     | 
    
         
             
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       357 
362 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
         
     | 
| 
       358 
363 
     | 
    
         
             
                              transports_version_send: [:rest]
         
     | 
| 
       359 
364 
     | 
    
         | 
| 
      
 365 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       360 
366 
     | 
    
         
             
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       361 
367 
     | 
    
         | 
| 
       362 
368 
     | 
    
         
             
                            options.apply_defaults timeout:      @config.rpcs.delete_operation.timeout,
         
     | 
| 
         @@ -438,12 +444,13 @@ module Google 
     | 
|
| 
       438 
444 
     | 
    
         
             
                            # Customize the options with defaults
         
     | 
| 
       439 
445 
     | 
    
         
             
                            call_metadata = @config.rpcs.cancel_operation.metadata.to_h
         
     | 
| 
       440 
446 
     | 
    
         | 
| 
       441 
     | 
    
         
            -
                            # Set x-goog-api-client  
     | 
| 
      
 447 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       442 
448 
     | 
    
         
             
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       443 
449 
     | 
    
         
             
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       444 
450 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
         
     | 
| 
       445 
451 
     | 
    
         
             
                              transports_version_send: [:rest]
         
     | 
| 
       446 
452 
     | 
    
         | 
| 
      
 453 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       447 
454 
     | 
    
         
             
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       448 
455 
     | 
    
         | 
| 
       449 
456 
     | 
    
         
             
                            options.apply_defaults timeout:      @config.rpcs.cancel_operation.timeout,
         
     | 
| 
         @@ -31,6 +31,9 @@ module Google 
     | 
|
| 
       31 
31 
     | 
    
         
             
                      # The `SessionController` provides methods to manage interactive sessions.
         
     | 
| 
       32 
32 
     | 
    
         
             
                      #
         
     | 
| 
       33 
33 
     | 
    
         
             
                      class Client
         
     | 
| 
      
 34 
     | 
    
         
            +
                        # @private
         
     | 
| 
      
 35 
     | 
    
         
            +
                        API_VERSION = ""
         
     | 
| 
      
 36 
     | 
    
         
            +
             
     | 
| 
       34 
37 
     | 
    
         
             
                        # @private
         
     | 
| 
       35 
38 
     | 
    
         
             
                        DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
         
     | 
| 
       36 
39 
     | 
    
         | 
| 
         @@ -272,10 +275,11 @@ module Google 
     | 
|
| 
       272 
275 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       273 
276 
     | 
    
         
             
                          metadata = @config.rpcs.create_session.metadata.to_h
         
     | 
| 
       274 
277 
     | 
    
         | 
| 
       275 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 278 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       276 
279 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       277 
280 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       278 
281 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 282 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       279 
283 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       280 
284 
     | 
    
         | 
| 
       281 
285 
     | 
    
         
             
                          header_params = {}
         
     | 
| 
         @@ -358,10 +362,11 @@ module Google 
     | 
|
| 
       358 
362 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       359 
363 
     | 
    
         
             
                          metadata = @config.rpcs.get_session.metadata.to_h
         
     | 
| 
       360 
364 
     | 
    
         | 
| 
       361 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 365 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       362 
366 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       363 
367 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       364 
368 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 369 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       365 
370 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       366 
371 
     | 
    
         | 
| 
       367 
372 
     | 
    
         
             
                          header_params = {}
         
     | 
| 
         @@ -468,10 +473,11 @@ module Google 
     | 
|
| 
       468 
473 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       469 
474 
     | 
    
         
             
                          metadata = @config.rpcs.list_sessions.metadata.to_h
         
     | 
| 
       470 
475 
     | 
    
         | 
| 
       471 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 476 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       472 
477 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       473 
478 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       474 
479 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 480 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       475 
481 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       476 
482 
     | 
    
         | 
| 
       477 
483 
     | 
    
         
             
                          header_params = {}
         
     | 
| 
         @@ -572,10 +578,11 @@ module Google 
     | 
|
| 
       572 
578 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       573 
579 
     | 
    
         
             
                          metadata = @config.rpcs.terminate_session.metadata.to_h
         
     | 
| 
       574 
580 
     | 
    
         | 
| 
       575 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 581 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       576 
582 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       577 
583 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       578 
584 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 585 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       579 
586 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       580 
587 
     | 
    
         | 
| 
       581 
588 
     | 
    
         
             
                          header_params = {}
         
     | 
| 
         @@ -677,10 +684,11 @@ module Google 
     | 
|
| 
       677 
684 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       678 
685 
     | 
    
         
             
                          metadata = @config.rpcs.delete_session.metadata.to_h
         
     | 
| 
       679 
686 
     | 
    
         | 
| 
       680 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 687 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       681 
688 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       682 
689 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       683 
690 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 691 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       684 
692 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       685 
693 
     | 
    
         | 
| 
       686 
694 
     | 
    
         
             
                          header_params = {}
         
     | 
| 
         @@ -26,6 +26,9 @@ module Google 
     | 
|
| 
       26 
26 
     | 
    
         
             
                    module SessionController
         
     | 
| 
       27 
27 
     | 
    
         
             
                      # Service that implements Longrunning Operations API.
         
     | 
| 
       28 
28 
     | 
    
         
             
                      class Operations
         
     | 
| 
      
 29 
     | 
    
         
            +
                        # @private
         
     | 
| 
      
 30 
     | 
    
         
            +
                        API_VERSION = ""
         
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
       29 
32 
     | 
    
         
             
                        # @private
         
     | 
| 
       30 
33 
     | 
    
         
             
                        DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
         
     | 
| 
       31 
34 
     | 
    
         | 
| 
         @@ -191,10 +194,11 @@ module Google 
     | 
|
| 
       191 
194 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       192 
195 
     | 
    
         
             
                          metadata = @config.rpcs.list_operations.metadata.to_h
         
     | 
| 
       193 
196 
     | 
    
         | 
| 
       194 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 197 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       195 
198 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       196 
199 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       197 
200 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 201 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       198 
202 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       199 
203 
     | 
    
         | 
| 
       200 
204 
     | 
    
         
             
                          header_params = {}
         
     | 
| 
         @@ -287,10 +291,11 @@ module Google 
     | 
|
| 
       287 
291 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       288 
292 
     | 
    
         
             
                          metadata = @config.rpcs.get_operation.metadata.to_h
         
     | 
| 
       289 
293 
     | 
    
         | 
| 
       290 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 294 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       291 
295 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       292 
296 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       293 
297 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 298 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       294 
299 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       295 
300 
     | 
    
         | 
| 
       296 
301 
     | 
    
         
             
                          header_params = {}
         
     | 
| 
         @@ -376,10 +381,11 @@ module Google 
     | 
|
| 
       376 
381 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       377 
382 
     | 
    
         
             
                          metadata = @config.rpcs.delete_operation.metadata.to_h
         
     | 
| 
       378 
383 
     | 
    
         | 
| 
       379 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 384 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       380 
385 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       381 
386 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       382 
387 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 388 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       383 
389 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       384 
390 
     | 
    
         | 
| 
       385 
391 
     | 
    
         
             
                          header_params = {}
         
     | 
| 
         @@ -470,10 +476,11 @@ module Google 
     | 
|
| 
       470 
476 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       471 
477 
     | 
    
         
             
                          metadata = @config.rpcs.cancel_operation.metadata.to_h
         
     | 
| 
       472 
478 
     | 
    
         | 
| 
       473 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 479 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       474 
480 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       475 
481 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       476 
482 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 483 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       477 
484 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       478 
485 
     | 
    
         | 
| 
       479 
486 
     | 
    
         
             
                          header_params = {}
         
     | 
| 
         @@ -574,10 +581,11 @@ module Google 
     | 
|
| 
       574 
581 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       575 
582 
     | 
    
         
             
                          metadata = @config.rpcs.wait_operation.metadata.to_h
         
     | 
| 
       576 
583 
     | 
    
         | 
| 
       577 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 584 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       578 
585 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       579 
586 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       580 
587 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 588 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       581 
589 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       582 
590 
     | 
    
         | 
| 
       583 
591 
     | 
    
         
             
                          options.apply_defaults timeout:      @config.rpcs.wait_operation.timeout,
         
     | 
| 
         @@ -33,6 +33,9 @@ module Google 
     | 
|
| 
       33 
33 
     | 
    
         
             
                        # The `SessionController` provides methods to manage interactive sessions.
         
     | 
| 
       34 
34 
     | 
    
         
             
                        #
         
     | 
| 
       35 
35 
     | 
    
         
             
                        class Client
         
     | 
| 
      
 36 
     | 
    
         
            +
                          # @private
         
     | 
| 
      
 37 
     | 
    
         
            +
                          API_VERSION = ""
         
     | 
| 
      
 38 
     | 
    
         
            +
             
     | 
| 
       36 
39 
     | 
    
         
             
                          # @private
         
     | 
| 
       37 
40 
     | 
    
         
             
                          DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
         
     | 
| 
       38 
41 
     | 
    
         | 
| 
         @@ -265,12 +268,13 @@ module Google 
     | 
|
| 
       265 
268 
     | 
    
         
             
                            # Customize the options with defaults
         
     | 
| 
       266 
269 
     | 
    
         
             
                            call_metadata = @config.rpcs.create_session.metadata.to_h
         
     | 
| 
       267 
270 
     | 
    
         | 
| 
       268 
     | 
    
         
            -
                            # Set x-goog-api-client  
     | 
| 
      
 271 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       269 
272 
     | 
    
         
             
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       270 
273 
     | 
    
         
             
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       271 
274 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
         
     | 
| 
       272 
275 
     | 
    
         
             
                              transports_version_send: [:rest]
         
     | 
| 
       273 
276 
     | 
    
         | 
| 
      
 277 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       274 
278 
     | 
    
         
             
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       275 
279 
     | 
    
         | 
| 
       276 
280 
     | 
    
         
             
                            options.apply_defaults timeout:      @config.rpcs.create_session.timeout,
         
     | 
| 
         @@ -344,12 +348,13 @@ module Google 
     | 
|
| 
       344 
348 
     | 
    
         
             
                            # Customize the options with defaults
         
     | 
| 
       345 
349 
     | 
    
         
             
                            call_metadata = @config.rpcs.get_session.metadata.to_h
         
     | 
| 
       346 
350 
     | 
    
         | 
| 
       347 
     | 
    
         
            -
                            # Set x-goog-api-client  
     | 
| 
      
 351 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       348 
352 
     | 
    
         
             
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       349 
353 
     | 
    
         
             
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       350 
354 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
         
     | 
| 
       351 
355 
     | 
    
         
             
                              transports_version_send: [:rest]
         
     | 
| 
       352 
356 
     | 
    
         | 
| 
      
 357 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       353 
358 
     | 
    
         
             
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       354 
359 
     | 
    
         | 
| 
       355 
360 
     | 
    
         
             
                            options.apply_defaults timeout:      @config.rpcs.get_session.timeout,
         
     | 
| 
         @@ -447,12 +452,13 @@ module Google 
     | 
|
| 
       447 
452 
     | 
    
         
             
                            # Customize the options with defaults
         
     | 
| 
       448 
453 
     | 
    
         
             
                            call_metadata = @config.rpcs.list_sessions.metadata.to_h
         
     | 
| 
       449 
454 
     | 
    
         | 
| 
       450 
     | 
    
         
            -
                            # Set x-goog-api-client  
     | 
| 
      
 455 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       451 
456 
     | 
    
         
             
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       452 
457 
     | 
    
         
             
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       453 
458 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
         
     | 
| 
       454 
459 
     | 
    
         
             
                              transports_version_send: [:rest]
         
     | 
| 
       455 
460 
     | 
    
         | 
| 
      
 461 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       456 
462 
     | 
    
         
             
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       457 
463 
     | 
    
         | 
| 
       458 
464 
     | 
    
         
             
                            options.apply_defaults timeout:      @config.rpcs.list_sessions.timeout,
         
     | 
| 
         @@ -544,12 +550,13 @@ module Google 
     | 
|
| 
       544 
550 
     | 
    
         
             
                            # Customize the options with defaults
         
     | 
| 
       545 
551 
     | 
    
         
             
                            call_metadata = @config.rpcs.terminate_session.metadata.to_h
         
     | 
| 
       546 
552 
     | 
    
         | 
| 
       547 
     | 
    
         
            -
                            # Set x-goog-api-client  
     | 
| 
      
 553 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       548 
554 
     | 
    
         
             
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       549 
555 
     | 
    
         
             
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       550 
556 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
         
     | 
| 
       551 
557 
     | 
    
         
             
                              transports_version_send: [:rest]
         
     | 
| 
       552 
558 
     | 
    
         | 
| 
      
 559 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       553 
560 
     | 
    
         
             
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       554 
561 
     | 
    
         | 
| 
       555 
562 
     | 
    
         
             
                            options.apply_defaults timeout:      @config.rpcs.terminate_session.timeout,
         
     | 
| 
         @@ -642,12 +649,13 @@ module Google 
     | 
|
| 
       642 
649 
     | 
    
         
             
                            # Customize the options with defaults
         
     | 
| 
       643 
650 
     | 
    
         
             
                            call_metadata = @config.rpcs.delete_session.metadata.to_h
         
     | 
| 
       644 
651 
     | 
    
         | 
| 
       645 
     | 
    
         
            -
                            # Set x-goog-api-client  
     | 
| 
      
 652 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       646 
653 
     | 
    
         
             
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       647 
654 
     | 
    
         
             
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       648 
655 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
         
     | 
| 
       649 
656 
     | 
    
         
             
                              transports_version_send: [:rest]
         
     | 
| 
       650 
657 
     | 
    
         | 
| 
      
 658 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       651 
659 
     | 
    
         
             
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       652 
660 
     | 
    
         | 
| 
       653 
661 
     | 
    
         
             
                            options.apply_defaults timeout:      @config.rpcs.delete_session.timeout,
         
     | 
| 
         @@ -26,6 +26,9 @@ module Google 
     | 
|
| 
       26 
26 
     | 
    
         
             
                      module Rest
         
     | 
| 
       27 
27 
     | 
    
         
             
                        # Service that implements Longrunning Operations API.
         
     | 
| 
       28 
28 
     | 
    
         
             
                        class Operations
         
     | 
| 
      
 29 
     | 
    
         
            +
                          # @private
         
     | 
| 
      
 30 
     | 
    
         
            +
                          API_VERSION = ""
         
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
       29 
32 
     | 
    
         
             
                          # @private
         
     | 
| 
       30 
33 
     | 
    
         
             
                          DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
         
     | 
| 
       31 
34 
     | 
    
         | 
| 
         @@ -181,12 +184,13 @@ module Google 
     | 
|
| 
       181 
184 
     | 
    
         
             
                            # Customize the options with defaults
         
     | 
| 
       182 
185 
     | 
    
         
             
                            call_metadata = @config.rpcs.list_operations.metadata.to_h
         
     | 
| 
       183 
186 
     | 
    
         | 
| 
       184 
     | 
    
         
            -
                            # Set x-goog-api-client  
     | 
| 
      
 187 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       185 
188 
     | 
    
         
             
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       186 
189 
     | 
    
         
             
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       187 
190 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
         
     | 
| 
       188 
191 
     | 
    
         
             
                              transports_version_send: [:rest]
         
     | 
| 
       189 
192 
     | 
    
         | 
| 
      
 193 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       190 
194 
     | 
    
         
             
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       191 
195 
     | 
    
         | 
| 
       192 
196 
     | 
    
         
             
                            options.apply_defaults timeout:      @config.rpcs.list_operations.timeout,
         
     | 
| 
         @@ -269,12 +273,13 @@ module Google 
     | 
|
| 
       269 
273 
     | 
    
         
             
                            # Customize the options with defaults
         
     | 
| 
       270 
274 
     | 
    
         
             
                            call_metadata = @config.rpcs.get_operation.metadata.to_h
         
     | 
| 
       271 
275 
     | 
    
         | 
| 
       272 
     | 
    
         
            -
                            # Set x-goog-api-client  
     | 
| 
      
 276 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       273 
277 
     | 
    
         
             
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       274 
278 
     | 
    
         
             
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       275 
279 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
         
     | 
| 
       276 
280 
     | 
    
         
             
                              transports_version_send: [:rest]
         
     | 
| 
       277 
281 
     | 
    
         | 
| 
      
 282 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       278 
283 
     | 
    
         
             
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       279 
284 
     | 
    
         | 
| 
       280 
285 
     | 
    
         
             
                            options.apply_defaults timeout:      @config.rpcs.get_operation.timeout,
         
     | 
| 
         @@ -351,12 +356,13 @@ module Google 
     | 
|
| 
       351 
356 
     | 
    
         
             
                            # Customize the options with defaults
         
     | 
| 
       352 
357 
     | 
    
         
             
                            call_metadata = @config.rpcs.delete_operation.metadata.to_h
         
     | 
| 
       353 
358 
     | 
    
         | 
| 
       354 
     | 
    
         
            -
                            # Set x-goog-api-client  
     | 
| 
      
 359 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       355 
360 
     | 
    
         
             
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       356 
361 
     | 
    
         
             
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       357 
362 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
         
     | 
| 
       358 
363 
     | 
    
         
             
                              transports_version_send: [:rest]
         
     | 
| 
       359 
364 
     | 
    
         | 
| 
      
 365 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       360 
366 
     | 
    
         
             
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       361 
367 
     | 
    
         | 
| 
       362 
368 
     | 
    
         
             
                            options.apply_defaults timeout:      @config.rpcs.delete_operation.timeout,
         
     | 
| 
         @@ -438,12 +444,13 @@ module Google 
     | 
|
| 
       438 
444 
     | 
    
         
             
                            # Customize the options with defaults
         
     | 
| 
       439 
445 
     | 
    
         
             
                            call_metadata = @config.rpcs.cancel_operation.metadata.to_h
         
     | 
| 
       440 
446 
     | 
    
         | 
| 
       441 
     | 
    
         
            -
                            # Set x-goog-api-client  
     | 
| 
      
 447 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       442 
448 
     | 
    
         
             
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       443 
449 
     | 
    
         
             
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       444 
450 
     | 
    
         
             
                              gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
         
     | 
| 
       445 
451 
     | 
    
         
             
                              transports_version_send: [:rest]
         
     | 
| 
       446 
452 
     | 
    
         | 
| 
      
 453 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       447 
454 
     | 
    
         
             
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       448 
455 
     | 
    
         | 
| 
       449 
456 
     | 
    
         
             
                            options.apply_defaults timeout:      @config.rpcs.cancel_operation.timeout,
         
     | 
| 
         @@ -31,6 +31,9 @@ module Google 
     | 
|
| 
       31 
31 
     | 
    
         
             
                      # The SessionTemplateController provides methods to manage session templates.
         
     | 
| 
       32 
32 
     | 
    
         
             
                      #
         
     | 
| 
       33 
33 
     | 
    
         
             
                      class Client
         
     | 
| 
      
 34 
     | 
    
         
            +
                        # @private
         
     | 
| 
      
 35 
     | 
    
         
            +
                        API_VERSION = ""
         
     | 
| 
      
 36 
     | 
    
         
            +
             
     | 
| 
       34 
37 
     | 
    
         
             
                        # @private
         
     | 
| 
       35 
38 
     | 
    
         
             
                        DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
         
     | 
| 
       36 
39 
     | 
    
         | 
| 
         @@ -232,10 +235,11 @@ module Google 
     | 
|
| 
       232 
235 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       233 
236 
     | 
    
         
             
                          metadata = @config.rpcs.create_session_template.metadata.to_h
         
     | 
| 
       234 
237 
     | 
    
         | 
| 
       235 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 238 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       236 
239 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       237 
240 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       238 
241 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 242 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       239 
243 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       240 
244 
     | 
    
         | 
| 
       241 
245 
     | 
    
         
             
                          header_params = {}
         
     | 
| 
         @@ -317,10 +321,11 @@ module Google 
     | 
|
| 
       317 
321 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       318 
322 
     | 
    
         
             
                          metadata = @config.rpcs.update_session_template.metadata.to_h
         
     | 
| 
       319 
323 
     | 
    
         | 
| 
       320 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 324 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       321 
325 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       322 
326 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       323 
327 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 328 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       324 
329 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       325 
330 
     | 
    
         | 
| 
       326 
331 
     | 
    
         
             
                          header_params = {}
         
     | 
| 
         @@ -402,10 +407,11 @@ module Google 
     | 
|
| 
       402 
407 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       403 
408 
     | 
    
         
             
                          metadata = @config.rpcs.get_session_template.metadata.to_h
         
     | 
| 
       404 
409 
     | 
    
         | 
| 
       405 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 410 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       406 
411 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       407 
412 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       408 
413 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 414 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       409 
415 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       410 
416 
     | 
    
         | 
| 
       411 
417 
     | 
    
         
             
                          header_params = {}
         
     | 
| 
         @@ -502,10 +508,11 @@ module Google 
     | 
|
| 
       502 
508 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       503 
509 
     | 
    
         
             
                          metadata = @config.rpcs.list_session_templates.metadata.to_h
         
     | 
| 
       504 
510 
     | 
    
         | 
| 
       505 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 511 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       506 
512 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       507 
513 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       508 
514 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 515 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       509 
516 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       510 
517 
     | 
    
         | 
| 
       511 
518 
     | 
    
         
             
                          header_params = {}
         
     | 
| 
         @@ -588,10 +595,11 @@ module Google 
     | 
|
| 
       588 
595 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       589 
596 
     | 
    
         
             
                          metadata = @config.rpcs.delete_session_template.metadata.to_h
         
     | 
| 
       590 
597 
     | 
    
         | 
| 
       591 
     | 
    
         
            -
                          # Set x-goog-api-client  
     | 
| 
      
 598 
     | 
    
         
            +
                          # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
       592 
599 
     | 
    
         
             
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       593 
600 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       594 
601 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
         
     | 
| 
      
 602 
     | 
    
         
            +
                          metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
       595 
603 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
       596 
604 
     | 
    
         | 
| 
       597 
605 
     | 
    
         
             
                          header_params = {}
         
     |