google-cloud-eventarc-publishing-v1 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 0ce08ec075469d4b64d68b312bcb8c82b64cc00b67418e7a5e405fb037c4a00a
         | 
| 4 | 
            +
              data.tar.gz: e081f51c621c6f574b4e43859179862c168e1f6d9c187b5d9f86c0803dcec7d9
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 0d22bf475016a07f67524c631d6fe961bd70581ee7c77a96527385b4a682563c4a650218e9c7d44c7095e17ff4201579445c1a75e7f6fba53b971b3e46aa99ab
         | 
| 7 | 
            +
              data.tar.gz: df5aaa7a4af589dd0a49e4d05e2be6a2047a742a9f29a23ef98a112c98a6d9f35eede8ac15cef49cdf5c09560ffee3989f7ddd64540e65defdb358e596ae1904
         | 
| @@ -543,8 +543,6 @@ module Google | |
| 543 543 | 
             
                          #   @return [::String,nil]
         | 
| 544 544 | 
             
                          # @!attribute [rw] credentials
         | 
| 545 545 | 
             
                          #   Credentials to send with calls. You may provide any of the following types:
         | 
| 546 | 
            -
                          #    *  (`String`) The path to a service account key file in JSON format
         | 
| 547 | 
            -
                          #    *  (`Hash`) A service account key as a Hash
         | 
| 548 546 | 
             
                          #    *  (`Google::Auth::Credentials`) A googleauth credentials object
         | 
| 549 547 | 
             
                          #       (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
         | 
| 550 548 | 
             
                          #    *  (`Signet::OAuth2::Client`) A signet oauth2 client object
         | 
| @@ -553,7 +551,26 @@ module Google | |
| 553 551 | 
             
                          #    *  (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
         | 
| 554 552 | 
             
                          #    *  (`nil`) indicating no credentials
         | 
| 555 553 | 
             
                          #
         | 
| 556 | 
            -
                          #   Warning:  | 
| 554 | 
            +
                          #   @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
         | 
| 555 | 
            +
                          #     is deprecated. Providing an unvalidated credential configuration to
         | 
| 556 | 
            +
                          #     Google APIs can compromise the security of your systems and data.
         | 
| 557 | 
            +
                          #
         | 
| 558 | 
            +
                          #   @example
         | 
| 559 | 
            +
                          #
         | 
| 560 | 
            +
                          #     # The recommended way to provide credentials is to use the `make_creds` method
         | 
| 561 | 
            +
                          #     # on the appropriate credentials class for your environment.
         | 
| 562 | 
            +
                          #
         | 
| 563 | 
            +
                          #     require "googleauth"
         | 
| 564 | 
            +
                          #
         | 
| 565 | 
            +
                          #     credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
         | 
| 566 | 
            +
                          #       json_key_io: ::File.open("/path/to/keyfile.json")
         | 
| 567 | 
            +
                          #     )
         | 
| 568 | 
            +
                          #
         | 
| 569 | 
            +
                          #     client = ::Google::Cloud::Eventarc::Publishing::V1::Publisher::Client.new do |config|
         | 
| 570 | 
            +
                          #       config.credentials = credentials
         | 
| 571 | 
            +
                          #     end
         | 
| 572 | 
            +
                          #
         | 
| 573 | 
            +
                          #   @note Warning: If you accept a credential configuration (JSON file or Hash) from an
         | 
| 557 574 | 
             
                          #   external source for authentication to Google Cloud, you must validate it before
         | 
| 558 575 | 
             
                          #   providing it to a Google API client library. Providing an unvalidated credential
         | 
| 559 576 | 
             
                          #   configuration to Google APIs can compromise the security of your systems and data.
         | 
| @@ -57,6 +57,12 @@ module Google | |
| 57 57 | 
             
                      #   @return [::Google::Protobuf::Any]
         | 
| 58 58 | 
             
                      #     Optional. Proto data.
         | 
| 59 59 | 
             
                      #
         | 
| 60 | 
            +
                      #     NOTE: The `protoData` field only functions as expected when the payload
         | 
| 61 | 
            +
                      #     is specifically a `CloudEvent` message type, and can't be used for
         | 
| 62 | 
            +
                      #     arbitrary protocol buffer messages. For any other protocol buffer type,
         | 
| 63 | 
            +
                      #     you must serialize your proto message into bytes, and use the
         | 
| 64 | 
            +
                      #     `binaryData` field instead.
         | 
| 65 | 
            +
                      #
         | 
| 60 66 | 
             
                      #     Note: The following fields are mutually exclusive: `proto_data`, `binary_data`, `text_data`. If a field in that set is populated, all other fields in the set will automatically be cleared.
         | 
| 61 67 | 
             
                      class CloudEvent
         | 
| 62 68 | 
             
                        include ::Google::Protobuf::MessageExts
         |