google-cloud-dlp 0.8.0 → 0.9.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/dlp.rb +1 -1
 - data/lib/google/cloud/dlp/v2.rb +1 -1
 - data/lib/google/cloud/dlp/v2/credentials.rb +1 -1
 - data/lib/google/cloud/dlp/v2/dlp_service_client.rb +216 -101
 - data/lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb +160 -48
 - data/lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb +42 -22
 - data/lib/google/cloud/dlp/v2/doc/google/protobuf/any.rb +1 -1
 - data/lib/google/cloud/dlp/v2/doc/google/protobuf/duration.rb +1 -1
 - data/lib/google/cloud/dlp/v2/doc/google/protobuf/empty.rb +1 -1
 - data/lib/google/cloud/dlp/v2/doc/google/protobuf/field_mask.rb +1 -1
 - data/lib/google/cloud/dlp/v2/doc/google/protobuf/timestamp.rb +1 -1
 - data/lib/google/cloud/dlp/v2/doc/google/rpc/status.rb +18 -15
 - data/lib/google/cloud/dlp/v2/doc/google/type/date.rb +15 -10
 - data/lib/google/cloud/dlp/v2/doc/google/type/timeofday.rb +2 -2
 - data/lib/google/privacy/dlp/v2/dlp_pb.rb +18 -0
 - data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +4 -1
 - data/lib/google/privacy/dlp/v2/storage_pb.rb +4 -0
 - metadata +25 -6
 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Copyright  
     | 
| 
      
 1 
     | 
    
         
            +
            # Copyright 2019 Google LLC
         
     | 
| 
       2 
2 
     | 
    
         
             
            #
         
     | 
| 
       3 
3 
     | 
    
         
             
            # Licensed under the Apache License, Version 2.0 (the "License");
         
     | 
| 
       4 
4 
     | 
    
         
             
            # you may not use this file except in compliance with the License.
         
     | 
| 
         @@ -15,24 +15,25 @@ 
     | 
|
| 
       15 
15 
     | 
    
         | 
| 
       16 
16 
     | 
    
         
             
            module Google
         
     | 
| 
       17 
17 
     | 
    
         
             
              module Rpc
         
     | 
| 
       18 
     | 
    
         
            -
                # The `Status` type defines a logical error model that is suitable for 
     | 
| 
       19 
     | 
    
         
            -
                # programming environments, including REST APIs and RPC APIs. It is 
     | 
| 
       20 
     | 
    
         
            -
                # [gRPC](https://github.com/grpc). The error model is designed to be:
         
     | 
| 
      
 18 
     | 
    
         
            +
                # The `Status` type defines a logical error model that is suitable for
         
     | 
| 
      
 19 
     | 
    
         
            +
                # different programming environments, including REST APIs and RPC APIs. It is
         
     | 
| 
      
 20 
     | 
    
         
            +
                # used by [gRPC](https://github.com/grpc). The error model is designed to be:
         
     | 
| 
       21 
21 
     | 
    
         
             
                #
         
     | 
| 
       22 
22 
     | 
    
         
             
                # * Simple to use and understand for most users
         
     | 
| 
       23 
23 
     | 
    
         
             
                # * Flexible enough to meet unexpected needs
         
     | 
| 
       24 
24 
     | 
    
         
             
                #
         
     | 
| 
       25 
25 
     | 
    
         
             
                # = Overview
         
     | 
| 
       26 
26 
     | 
    
         
             
                #
         
     | 
| 
       27 
     | 
    
         
            -
                # The `Status` message contains three pieces of data: error code, error 
     | 
| 
       28 
     | 
    
         
            -
                # and error details. The error code should be an enum value of
         
     | 
| 
       29 
     | 
    
         
            -
                # {Google::Rpc::Code}, but it may accept additional error codes 
     | 
| 
       30 
     | 
    
         
            -
                # error message should be a developer-facing English message 
     | 
| 
       31 
     | 
    
         
            -
                # developers *understand* and *resolve* the error. If a localized 
     | 
| 
       32 
     | 
    
         
            -
                # error message is needed, put the localized message in the error 
     | 
| 
       33 
     | 
    
         
            -
                # localize it in the client. The optional error details may contain 
     | 
| 
       34 
     | 
    
         
            -
                # information about the error. There is a predefined set of error 
     | 
| 
       35 
     | 
    
         
            -
                # in the package `google.rpc` that can be used for common error 
     | 
| 
      
 27 
     | 
    
         
            +
                # The `Status` message contains three pieces of data: error code, error
         
     | 
| 
      
 28 
     | 
    
         
            +
                # message, and error details. The error code should be an enum value of
         
     | 
| 
      
 29 
     | 
    
         
            +
                # {Google::Rpc::Code}, but it may accept additional error codes
         
     | 
| 
      
 30 
     | 
    
         
            +
                # if needed.  The error message should be a developer-facing English message
         
     | 
| 
      
 31 
     | 
    
         
            +
                # that helps developers *understand* and *resolve* the error. If a localized
         
     | 
| 
      
 32 
     | 
    
         
            +
                # user-facing error message is needed, put the localized message in the error
         
     | 
| 
      
 33 
     | 
    
         
            +
                # details or localize it in the client. The optional error details may contain
         
     | 
| 
      
 34 
     | 
    
         
            +
                # arbitrary information about the error. There is a predefined set of error
         
     | 
| 
      
 35 
     | 
    
         
            +
                # detail types in the package `google.rpc` that can be used for common error
         
     | 
| 
      
 36 
     | 
    
         
            +
                # conditions.
         
     | 
| 
       36 
37 
     | 
    
         
             
                #
         
     | 
| 
       37 
38 
     | 
    
         
             
                # = Language mapping
         
     | 
| 
       38 
39 
     | 
    
         
             
                #
         
     | 
| 
         @@ -69,12 +70,14 @@ module Google 
     | 
|
| 
       69 
70 
     | 
    
         
             
                #   be used directly after any stripping needed for security/privacy reasons.
         
     | 
| 
       70 
71 
     | 
    
         
             
                # @!attribute [rw] code
         
     | 
| 
       71 
72 
     | 
    
         
             
                #   @return [Integer]
         
     | 
| 
       72 
     | 
    
         
            -
                #     The status code, which should be an enum value of 
     | 
| 
      
 73 
     | 
    
         
            +
                #     The status code, which should be an enum value of
         
     | 
| 
      
 74 
     | 
    
         
            +
                #     {Google::Rpc::Code}.
         
     | 
| 
       73 
75 
     | 
    
         
             
                # @!attribute [rw] message
         
     | 
| 
       74 
76 
     | 
    
         
             
                #   @return [String]
         
     | 
| 
       75 
77 
     | 
    
         
             
                #     A developer-facing error message, which should be in English. Any
         
     | 
| 
       76 
78 
     | 
    
         
             
                #     user-facing error message should be localized and sent in the
         
     | 
| 
       77 
     | 
    
         
            -
                #     {Google::Rpc::Status#details} field, or localized 
     | 
| 
      
 79 
     | 
    
         
            +
                #     {Google::Rpc::Status#details} field, or localized
         
     | 
| 
      
 80 
     | 
    
         
            +
                #     by the client.
         
     | 
| 
       78 
81 
     | 
    
         
             
                # @!attribute [rw] details
         
     | 
| 
       79 
82 
     | 
    
         
             
                #   @return [Array<Google::Protobuf::Any>]
         
     | 
| 
       80 
83 
     | 
    
         
             
                #     A list of messages that carry the error details.  There is a common set of
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Copyright  
     | 
| 
      
 1 
     | 
    
         
            +
            # Copyright 2019 Google LLC
         
     | 
| 
       2 
2 
     | 
    
         
             
            #
         
     | 
| 
       3 
3 
     | 
    
         
             
            # Licensed under the Apache License, Version 2.0 (the "License");
         
     | 
| 
       4 
4 
     | 
    
         
             
            # you may not use this file except in compliance with the License.
         
     | 
| 
         @@ -15,24 +15,29 @@ 
     | 
|
| 
       15 
15 
     | 
    
         | 
| 
       16 
16 
     | 
    
         
             
            module Google
         
     | 
| 
       17 
17 
     | 
    
         
             
              module Type
         
     | 
| 
       18 
     | 
    
         
            -
                # Represents a whole calendar date, e.g.  
     | 
| 
       19 
     | 
    
         
            -
                # time zone are either specified elsewhere or are not significant. The date
         
     | 
| 
       20 
     | 
    
         
            -
                # is relative to the Proleptic Gregorian Calendar.  
     | 
| 
       21 
     | 
    
         
            -
                # 
     | 
| 
       22 
     | 
    
         
            -
                #  
     | 
| 
       23 
     | 
    
         
            -
                #  
     | 
| 
       24 
     | 
    
         
            -
                # and  
     | 
| 
      
 18 
     | 
    
         
            +
                # Represents a whole or partial calendar date, e.g. a birthday. The time of day
         
     | 
| 
      
 19 
     | 
    
         
            +
                # and time zone are either specified elsewhere or are not significant. The date
         
     | 
| 
      
 20 
     | 
    
         
            +
                # is relative to the Proleptic Gregorian Calendar. This can represent:
         
     | 
| 
      
 21 
     | 
    
         
            +
                #
         
     | 
| 
      
 22 
     | 
    
         
            +
                # * A full date, with non-zero year, month and day values
         
     | 
| 
      
 23 
     | 
    
         
            +
                # * A month and day value, with a zero year, e.g. an anniversary
         
     | 
| 
      
 24 
     | 
    
         
            +
                # * A year on its own, with zero month and day values
         
     | 
| 
      
 25 
     | 
    
         
            +
                # * A year and month value, with a zero day, e.g. a credit card expiration date
         
     | 
| 
      
 26 
     | 
    
         
            +
                #
         
     | 
| 
      
 27 
     | 
    
         
            +
                # Related types are {Google::Type::TimeOfDay} and `google.protobuf.Timestamp`.
         
     | 
| 
       25 
28 
     | 
    
         
             
                # @!attribute [rw] year
         
     | 
| 
       26 
29 
     | 
    
         
             
                #   @return [Integer]
         
     | 
| 
       27 
30 
     | 
    
         
             
                #     Year of date. Must be from 1 to 9999, or 0 if specifying a date without
         
     | 
| 
       28 
31 
     | 
    
         
             
                #     a year.
         
     | 
| 
       29 
32 
     | 
    
         
             
                # @!attribute [rw] month
         
     | 
| 
       30 
33 
     | 
    
         
             
                #   @return [Integer]
         
     | 
| 
       31 
     | 
    
         
            -
                #     Month of year. Must be from 1 to 12 
     | 
| 
      
 34 
     | 
    
         
            +
                #     Month of year. Must be from 1 to 12, or 0 if specifying a year without a
         
     | 
| 
      
 35 
     | 
    
         
            +
                #     month and day.
         
     | 
| 
       32 
36 
     | 
    
         
             
                # @!attribute [rw] day
         
     | 
| 
       33 
37 
     | 
    
         
             
                #   @return [Integer]
         
     | 
| 
       34 
38 
     | 
    
         
             
                #     Day of month. Must be from 1 to 31 and valid for the year and month, or 0
         
     | 
| 
       35 
     | 
    
         
            -
                #     if specifying a year 
     | 
| 
      
 39 
     | 
    
         
            +
                #     if specifying a year by itself or a year and month where the day is not
         
     | 
| 
      
 40 
     | 
    
         
            +
                #     significant.
         
     | 
| 
       36 
41 
     | 
    
         
             
                class Date; end
         
     | 
| 
       37 
42 
     | 
    
         
             
              end
         
     | 
| 
       38 
43 
     | 
    
         
             
            end
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Copyright  
     | 
| 
      
 1 
     | 
    
         
            +
            # Copyright 2019 Google LLC
         
     | 
| 
       2 
2 
     | 
    
         
             
            #
         
     | 
| 
       3 
3 
     | 
    
         
             
            # Licensed under the Apache License, Version 2.0 (the "License");
         
     | 
| 
       4 
4 
     | 
    
         
             
            # you may not use this file except in compliance with the License.
         
     | 
| 
         @@ -16,7 +16,7 @@ 
     | 
|
| 
       16 
16 
     | 
    
         
             
            module Google
         
     | 
| 
       17 
17 
     | 
    
         
             
              module Type
         
     | 
| 
       18 
18 
     | 
    
         
             
                # Represents a time of day. The date and time zone are either not significant
         
     | 
| 
       19 
     | 
    
         
            -
                # or are specified elsewhere. An API may  
     | 
| 
      
 19 
     | 
    
         
            +
                # or are specified elsewhere. An API may choose to allow leap seconds. Related
         
     | 
| 
       20 
20 
     | 
    
         
             
                # types are {Google::Type::Date} and `google.protobuf.Timestamp`.
         
     | 
| 
       21 
21 
     | 
    
         
             
                # @!attribute [rw] hours
         
     | 
| 
       22 
22 
     | 
    
         
             
                #   @return [Integer]
         
     | 
| 
         @@ -5,6 +5,7 @@ 
     | 
|
| 
       5 
5 
     | 
    
         
             
            require 'google/protobuf'
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
7 
     | 
    
         
             
            require 'google/api/annotations_pb'
         
     | 
| 
      
 8 
     | 
    
         
            +
            require 'google/api/resource_pb'
         
     | 
| 
       8 
9 
     | 
    
         
             
            require 'google/privacy/dlp/v2/storage_pb'
         
     | 
| 
       9 
10 
     | 
    
         
             
            require 'google/protobuf/duration_pb'
         
     | 
| 
       10 
11 
     | 
    
         
             
            require 'google/protobuf/empty_pb'
         
     | 
| 
         @@ -225,6 +226,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do 
     | 
|
| 
       225 
226 
     | 
    
         
             
                optional :name, :string, 1
         
     | 
| 
       226 
227 
     | 
    
         
             
                optional :display_name, :string, 2
         
     | 
| 
       227 
228 
     | 
    
         
             
                repeated :supported_by, :enum, 3, "google.privacy.dlp.v2.InfoTypeSupportedBy"
         
     | 
| 
      
 229 
     | 
    
         
            +
                optional :description, :string, 4
         
     | 
| 
       228 
230 
     | 
    
         
             
              end
         
     | 
| 
       229 
231 
     | 
    
         
             
              add_message "google.privacy.dlp.v2.ListInfoTypesRequest" do
         
     | 
| 
       230 
232 
     | 
    
         
             
                optional :language_code, :string, 1
         
     | 
| 
         @@ -439,6 +441,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do 
     | 
|
| 
       439 
441 
     | 
    
         
             
                  optional :time_part_config, :message, 8, "google.privacy.dlp.v2.TimePartConfig"
         
     | 
| 
       440 
442 
     | 
    
         
             
                  optional :crypto_hash_config, :message, 9, "google.privacy.dlp.v2.CryptoHashConfig"
         
     | 
| 
       441 
443 
     | 
    
         
             
                  optional :date_shift_config, :message, 11, "google.privacy.dlp.v2.DateShiftConfig"
         
     | 
| 
      
 444 
     | 
    
         
            +
                  optional :crypto_deterministic_config, :message, 12, "google.privacy.dlp.v2.CryptoDeterministicConfig"
         
     | 
| 
       442 
445 
     | 
    
         
             
                end
         
     | 
| 
       443 
446 
     | 
    
         
             
              end
         
     | 
| 
       444 
447 
     | 
    
         
             
              add_message "google.privacy.dlp.v2.TimePartConfig" do
         
     | 
| 
         @@ -456,6 +459,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do 
     | 
|
| 
       456 
459 
     | 
    
         
             
              add_message "google.privacy.dlp.v2.CryptoHashConfig" do
         
     | 
| 
       457 
460 
     | 
    
         
             
                optional :crypto_key, :message, 1, "google.privacy.dlp.v2.CryptoKey"
         
     | 
| 
       458 
461 
     | 
    
         
             
              end
         
     | 
| 
      
 462 
     | 
    
         
            +
              add_message "google.privacy.dlp.v2.CryptoDeterministicConfig" do
         
     | 
| 
      
 463 
     | 
    
         
            +
                optional :crypto_key, :message, 1, "google.privacy.dlp.v2.CryptoKey"
         
     | 
| 
      
 464 
     | 
    
         
            +
                optional :surrogate_info_type, :message, 2, "google.privacy.dlp.v2.InfoType"
         
     | 
| 
      
 465 
     | 
    
         
            +
                optional :context, :message, 3, "google.privacy.dlp.v2.FieldId"
         
     | 
| 
      
 466 
     | 
    
         
            +
              end
         
     | 
| 
       459 
467 
     | 
    
         
             
              add_message "google.privacy.dlp.v2.ReplaceValueConfig" do
         
     | 
| 
       460 
468 
     | 
    
         
             
                optional :new_value, :message, 1, "google.privacy.dlp.v2.Value"
         
     | 
| 
       461 
469 
     | 
    
         
             
              end
         
     | 
| 
         @@ -659,6 +667,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do 
     | 
|
| 
       659 
667 
     | 
    
         
             
                  optional :save_findings, :message, 1, "google.privacy.dlp.v2.Action.SaveFindings"
         
     | 
| 
       660 
668 
     | 
    
         
             
                  optional :pub_sub, :message, 2, "google.privacy.dlp.v2.Action.PublishToPubSub"
         
     | 
| 
       661 
669 
     | 
    
         
             
                  optional :publish_summary_to_cscc, :message, 3, "google.privacy.dlp.v2.Action.PublishSummaryToCscc"
         
     | 
| 
      
 670 
     | 
    
         
            +
                  optional :job_notification_emails, :message, 8, "google.privacy.dlp.v2.Action.JobNotificationEmails"
         
     | 
| 
       662 
671 
     | 
    
         
             
                end
         
     | 
| 
       663 
672 
     | 
    
         
             
              end
         
     | 
| 
       664 
673 
     | 
    
         
             
              add_message "google.privacy.dlp.v2.Action.SaveFindings" do
         
     | 
| 
         @@ -669,6 +678,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do 
     | 
|
| 
       669 
678 
     | 
    
         
             
              end
         
     | 
| 
       670 
679 
     | 
    
         
             
              add_message "google.privacy.dlp.v2.Action.PublishSummaryToCscc" do
         
     | 
| 
       671 
680 
     | 
    
         
             
              end
         
     | 
| 
      
 681 
     | 
    
         
            +
              add_message "google.privacy.dlp.v2.Action.JobNotificationEmails" do
         
     | 
| 
      
 682 
     | 
    
         
            +
              end
         
     | 
| 
       672 
683 
     | 
    
         
             
              add_message "google.privacy.dlp.v2.CreateInspectTemplateRequest" do
         
     | 
| 
       673 
684 
     | 
    
         
             
                optional :parent, :string, 1
         
     | 
| 
       674 
685 
     | 
    
         
             
                optional :inspect_template, :message, 2, "google.privacy.dlp.v2.InspectTemplate"
         
     | 
| 
         @@ -700,6 +711,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do 
     | 
|
| 
       700 
711 
     | 
    
         
             
                optional :job_trigger, :message, 2, "google.privacy.dlp.v2.JobTrigger"
         
     | 
| 
       701 
712 
     | 
    
         
             
                optional :trigger_id, :string, 3
         
     | 
| 
       702 
713 
     | 
    
         
             
              end
         
     | 
| 
      
 714 
     | 
    
         
            +
              add_message "google.privacy.dlp.v2.ActivateJobTriggerRequest" do
         
     | 
| 
      
 715 
     | 
    
         
            +
                optional :name, :string, 1
         
     | 
| 
      
 716 
     | 
    
         
            +
              end
         
     | 
| 
       703 
717 
     | 
    
         
             
              add_message "google.privacy.dlp.v2.UpdateJobTriggerRequest" do
         
     | 
| 
       704 
718 
     | 
    
         
             
                optional :name, :string, 1
         
     | 
| 
       705 
719 
     | 
    
         
             
                optional :job_trigger, :message, 2, "google.privacy.dlp.v2.JobTrigger"
         
     | 
| 
         @@ -721,6 +735,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do 
     | 
|
| 
       721 
735 
     | 
    
         
             
                optional :page_token, :string, 2
         
     | 
| 
       722 
736 
     | 
    
         
             
                optional :page_size, :int32, 3
         
     | 
| 
       723 
737 
     | 
    
         
             
                optional :order_by, :string, 4
         
     | 
| 
      
 738 
     | 
    
         
            +
                optional :filter, :string, 5
         
     | 
| 
       724 
739 
     | 
    
         
             
              end
         
     | 
| 
       725 
740 
     | 
    
         
             
              add_message "google.privacy.dlp.v2.ListJobTriggersResponse" do
         
     | 
| 
       726 
741 
     | 
    
         
             
                repeated :job_triggers, :message, 1, "google.privacy.dlp.v2.JobTrigger"
         
     | 
| 
         @@ -980,6 +995,7 @@ module Google 
     | 
|
| 
       980 
995 
     | 
    
         
             
                    TimePartConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TimePartConfig").msgclass
         
     | 
| 
       981 
996 
     | 
    
         
             
                    TimePartConfig::TimePart = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TimePartConfig.TimePart").enummodule
         
     | 
| 
       982 
997 
     | 
    
         
             
                    CryptoHashConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CryptoHashConfig").msgclass
         
     | 
| 
      
 998 
     | 
    
         
            +
                    CryptoDeterministicConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CryptoDeterministicConfig").msgclass
         
     | 
| 
       983 
999 
     | 
    
         
             
                    ReplaceValueConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ReplaceValueConfig").msgclass
         
     | 
| 
       984 
1000 
     | 
    
         
             
                    ReplaceWithInfoTypeConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ReplaceWithInfoTypeConfig").msgclass
         
     | 
| 
       985 
1001 
     | 
    
         
             
                    RedactConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RedactConfig").msgclass
         
     | 
| 
         @@ -1021,6 +1037,7 @@ module Google 
     | 
|
| 
       1021 
1037 
     | 
    
         
             
                    Action::SaveFindings = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.SaveFindings").msgclass
         
     | 
| 
       1022 
1038 
     | 
    
         
             
                    Action::PublishToPubSub = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.PublishToPubSub").msgclass
         
     | 
| 
       1023 
1039 
     | 
    
         
             
                    Action::PublishSummaryToCscc = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.PublishSummaryToCscc").msgclass
         
     | 
| 
      
 1040 
     | 
    
         
            +
                    Action::JobNotificationEmails = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.JobNotificationEmails").msgclass
         
     | 
| 
       1024 
1041 
     | 
    
         
             
                    CreateInspectTemplateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CreateInspectTemplateRequest").msgclass
         
     | 
| 
       1025 
1042 
     | 
    
         
             
                    UpdateInspectTemplateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.UpdateInspectTemplateRequest").msgclass
         
     | 
| 
       1026 
1043 
     | 
    
         
             
                    GetInspectTemplateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.GetInspectTemplateRequest").msgclass
         
     | 
| 
         @@ -1028,6 +1045,7 @@ module Google 
     | 
|
| 
       1028 
1045 
     | 
    
         
             
                    ListInspectTemplatesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ListInspectTemplatesResponse").msgclass
         
     | 
| 
       1029 
1046 
     | 
    
         
             
                    DeleteInspectTemplateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DeleteInspectTemplateRequest").msgclass
         
     | 
| 
       1030 
1047 
     | 
    
         
             
                    CreateJobTriggerRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CreateJobTriggerRequest").msgclass
         
     | 
| 
      
 1048 
     | 
    
         
            +
                    ActivateJobTriggerRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ActivateJobTriggerRequest").msgclass
         
     | 
| 
       1031 
1049 
     | 
    
         
             
                    UpdateJobTriggerRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.UpdateJobTriggerRequest").msgclass
         
     | 
| 
       1032 
1050 
     | 
    
         
             
                    GetJobTriggerRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.GetJobTriggerRequest").msgclass
         
     | 
| 
       1033 
1051 
     | 
    
         
             
                    CreateDlpJobRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CreateDlpJobRequest").msgclass
         
     | 
| 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # Generated by the protocol buffer compiler.  DO NOT EDIT!
         
     | 
| 
       2 
2 
     | 
    
         
             
            # Source: google/privacy/dlp/v2/dlp.proto for package 'google.privacy.dlp.v2'
         
     | 
| 
       3 
3 
     | 
    
         
             
            # Original file comments:
         
     | 
| 
       4 
     | 
    
         
            -
            # Copyright  
     | 
| 
      
 4 
     | 
    
         
            +
            # Copyright 2019 Google LLC.
         
     | 
| 
       5 
5 
     | 
    
         
             
            #
         
     | 
| 
       6 
6 
     | 
    
         
             
            # Licensed under the Apache License, Version 2.0 (the "License");
         
     | 
| 
       7 
7 
     | 
    
         
             
            # you may not use this file except in compliance with the License.
         
     | 
| 
         @@ -133,6 +133,9 @@ module Google 
     | 
|
| 
       133 
133 
     | 
    
         
             
                        # Deletes a job trigger.
         
     | 
| 
       134 
134 
     | 
    
         
             
                        # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
         
     | 
| 
       135 
135 
     | 
    
         
             
                        rpc :DeleteJobTrigger, DeleteJobTriggerRequest, Google::Protobuf::Empty
         
     | 
| 
      
 136 
     | 
    
         
            +
                        # Activate a job trigger. Causes the immediate execute of a trigger
         
     | 
| 
      
 137 
     | 
    
         
            +
                        # instead of waiting on the trigger event to occur.
         
     | 
| 
      
 138 
     | 
    
         
            +
                        rpc :ActivateJobTrigger, ActivateJobTriggerRequest, DlpJob
         
     | 
| 
       136 
139 
     | 
    
         
             
                        # Creates a new job to inspect storage or calculate risk metrics.
         
     | 
| 
       137 
140 
     | 
    
         
             
                        # See https://cloud.google.com/dlp/docs/inspecting-storage and
         
     | 
| 
       138 
141 
     | 
    
         
             
                        # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
         
     | 
| 
         @@ -5,6 +5,7 @@ 
     | 
|
| 
       5 
5 
     | 
    
         
             
            require 'google/protobuf'
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
7 
     | 
    
         
             
            require 'google/api/annotations_pb'
         
     | 
| 
      
 8 
     | 
    
         
            +
            require 'google/api/resource_pb'
         
     | 
| 
       8 
9 
     | 
    
         
             
            require 'google/protobuf/timestamp_pb'
         
     | 
| 
       9 
10 
     | 
    
         
             
            Google::Protobuf::DescriptorPool.generated_pool.build do
         
     | 
| 
       10 
11 
     | 
    
         
             
              add_message "google.privacy.dlp.v2.InfoType" do
         
     | 
| 
         @@ -37,6 +38,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do 
     | 
|
| 
       37 
38 
     | 
    
         
             
              end
         
     | 
| 
       38 
39 
     | 
    
         
             
              add_message "google.privacy.dlp.v2.CustomInfoType.Regex" do
         
     | 
| 
       39 
40 
     | 
    
         
             
                optional :pattern, :string, 1
         
     | 
| 
      
 41 
     | 
    
         
            +
                repeated :group_indexes, :int32, 2
         
     | 
| 
       40 
42 
     | 
    
         
             
              end
         
     | 
| 
       41 
43 
     | 
    
         
             
              add_message "google.privacy.dlp.v2.CustomInfoType.SurrogateType" do
         
     | 
| 
       42 
44 
     | 
    
         
             
              end
         
     | 
| 
         @@ -152,6 +154,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do 
     | 
|
| 
       152 
154 
     | 
    
         
             
                end
         
     | 
| 
       153 
155 
     | 
    
         
             
              end
         
     | 
| 
       154 
156 
     | 
    
         
             
              add_message "google.privacy.dlp.v2.RecordKey" do
         
     | 
| 
      
 157 
     | 
    
         
            +
                repeated :id_values, :string, 5
         
     | 
| 
       155 
158 
     | 
    
         
             
                oneof :type do
         
     | 
| 
       156 
159 
     | 
    
         
             
                  optional :datastore_key, :message, 2, "google.privacy.dlp.v2.DatastoreKey"
         
     | 
| 
       157 
160 
     | 
    
         
             
                  optional :big_query_key, :message, 3, "google.privacy.dlp.v2.BigQueryKey"
         
     | 
| 
         @@ -181,6 +184,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do 
     | 
|
| 
       181 
184 
     | 
    
         
             
                value :FILE_TYPE_UNSPECIFIED, 0
         
     | 
| 
       182 
185 
     | 
    
         
             
                value :BINARY_FILE, 1
         
     | 
| 
       183 
186 
     | 
    
         
             
                value :TEXT_FILE, 2
         
     | 
| 
      
 187 
     | 
    
         
            +
                value :IMAGE, 3
         
     | 
| 
       184 
188 
     | 
    
         
             
              end
         
     | 
| 
       185 
189 
     | 
    
         
             
            end
         
     | 
| 
       186 
190 
     | 
    
         | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: google-cloud-dlp
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.9.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Google LLC
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2019-04-09 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: google-gax
         
     | 
| 
         @@ -24,6 +24,26 @@ dependencies: 
     | 
|
| 
       24 
24 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       25 
25 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       26 
26 
     | 
    
         
             
                    version: '1.3'
         
     | 
| 
      
 27 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 28 
     | 
    
         
            +
              name: googleapis-common-protos
         
     | 
| 
      
 29 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 30 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 31 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 32 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 33 
     | 
    
         
            +
                    version: 1.3.9
         
     | 
| 
      
 34 
     | 
    
         
            +
                - - "<"
         
     | 
| 
      
 35 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 36 
     | 
    
         
            +
                    version: '2.0'
         
     | 
| 
      
 37 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 38 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 39 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 40 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 41 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 42 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 43 
     | 
    
         
            +
                    version: 1.3.9
         
     | 
| 
      
 44 
     | 
    
         
            +
                - - "<"
         
     | 
| 
      
 45 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 46 
     | 
    
         
            +
                    version: '2.0'
         
     | 
| 
       27 
47 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       28 
48 
     | 
    
         
             
              name: minitest
         
     | 
| 
       29 
49 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -58,14 +78,14 @@ dependencies: 
     | 
|
| 
       58 
78 
     | 
    
         
             
                requirements:
         
     | 
| 
       59 
79 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       60 
80 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       61 
     | 
    
         
            -
                    version: 0. 
     | 
| 
      
 81 
     | 
    
         
            +
                    version: 0.64.0
         
     | 
| 
       62 
82 
     | 
    
         
             
              type: :development
         
     | 
| 
       63 
83 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       64 
84 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       65 
85 
     | 
    
         
             
                requirements:
         
     | 
| 
       66 
86 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       67 
87 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       68 
     | 
    
         
            -
                    version: 0. 
     | 
| 
      
 88 
     | 
    
         
            +
                    version: 0.64.0
         
     | 
| 
       69 
89 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       70 
90 
     | 
    
         
             
              name: simplecov
         
     | 
| 
       71 
91 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -141,8 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       141 
161 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       142 
162 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       143 
163 
     | 
    
         
             
            requirements: []
         
     | 
| 
       144 
     | 
    
         
            -
             
     | 
| 
       145 
     | 
    
         
            -
            rubygems_version: 2.7.7
         
     | 
| 
      
 164 
     | 
    
         
            +
            rubygems_version: 3.0.3
         
     | 
| 
       146 
165 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       147 
166 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       148 
167 
     | 
    
         
             
            summary: API Client library for Cloud Data Loss Prevention (DLP) API
         
     |