google-cloud-security_center-v1 0.40.0 → 0.41.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/security_center/v1/security_center/client.rb +93 -45
 - data/lib/google/cloud/security_center/v1/security_center/operations.rb +13 -5
 - data/lib/google/cloud/security_center/v1/security_center/rest/client.rb +93 -45
 - data/lib/google/cloud/security_center/v1/security_center/rest/operations.rb +11 -4
 - data/lib/google/cloud/security_center/v1/version.rb +1 -1
 - data/lib/google/cloud/securitycenter/v1/finding_pb.rb +5 -1
 - data/lib/google/cloud/securitycenter/v1/group_membership_pb.rb +43 -0
 - data/lib/google/cloud/securitycenter/v1/toxic_combination_pb.rb +42 -0
 - data/proto_docs/google/cloud/securitycenter/v1/finding.rb +18 -0
 - data/proto_docs/google/cloud/securitycenter/v1/group_membership.rb +48 -0
 - data/proto_docs/google/cloud/securitycenter/v1/toxic_combination.rb +45 -0
 - metadata +6 -2
 
| 
         @@ -26,6 +26,9 @@ module Google 
     | 
|
| 
       26 
26 
     | 
    
         
             
                    module SecurityCenter
         
     | 
| 
       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 = "securitycenter.$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::SecurityCenter::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::SecurityCenter::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::SecurityCenter::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::SecurityCenter::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::SecurityCenter::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,
         
     |