google-cloud-kms-v1 0.2.2 → 0.4.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/README.md +64 -0
- data/lib/google/cloud/kms/v1.rb +3 -0
- data/lib/google/cloud/kms/v1/iam_policy/client.rb +9 -3
- data/lib/google/cloud/kms/v1/key_management_service/client.rb +132 -28
- data/lib/google/cloud/kms/v1/resources_pb.rb +3 -0
- data/lib/google/cloud/kms/v1/service_pb.rb +16 -0
- data/lib/google/cloud/kms/v1/service_services_pb.rb +23 -23
- data/lib/google/cloud/kms/v1/version.rb +1 -1
- data/lib/google/iam/v1/iam_policy_services_pb.rb +3 -3
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/cloud/kms/v1/resources.rb +23 -2
- data/proto_docs/google/cloud/kms/v1/service.rb +221 -0
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- metadata +9 -6
| @@ -70,7 +70,16 @@ module Google | |
| 70 70 | 
             
                #         .setNanos((int) ((millis % 1000) * 1000000)).build();
         | 
| 71 71 | 
             
                #
         | 
| 72 72 | 
             
                #
         | 
| 73 | 
            -
                # Example 5: Compute Timestamp from  | 
| 73 | 
            +
                # Example 5: Compute Timestamp from Java `Instant.now()`.
         | 
| 74 | 
            +
                #
         | 
| 75 | 
            +
                #     Instant now = Instant.now();
         | 
| 76 | 
            +
                #
         | 
| 77 | 
            +
                #     Timestamp timestamp =
         | 
| 78 | 
            +
                #         Timestamp.newBuilder().setSeconds(now.getEpochSecond())
         | 
| 79 | 
            +
                #             .setNanos(now.getNano()).build();
         | 
| 80 | 
            +
                #
         | 
| 81 | 
            +
                #
         | 
| 82 | 
            +
                # Example 6: Compute Timestamp from current time in Python.
         | 
| 74 83 | 
             
                #
         | 
| 75 84 | 
             
                #     timestamp = Timestamp()
         | 
| 76 85 | 
             
                #     timestamp.GetCurrentTime()
         | 
| @@ -0,0 +1,121 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            # Copyright 2020 Google LLC
         | 
| 4 | 
            +
            #
         | 
| 5 | 
            +
            # Licensed under the Apache License, Version 2.0 (the "License");
         | 
| 6 | 
            +
            # you may not use this file except in compliance with the License.
         | 
| 7 | 
            +
            # You may obtain a copy of the License at
         | 
| 8 | 
            +
            #
         | 
| 9 | 
            +
            #     https://www.apache.org/licenses/LICENSE-2.0
         | 
| 10 | 
            +
            #
         | 
| 11 | 
            +
            # Unless required by applicable law or agreed to in writing, software
         | 
| 12 | 
            +
            # distributed under the License is distributed on an "AS IS" BASIS,
         | 
| 13 | 
            +
            # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         | 
| 14 | 
            +
            # See the License for the specific language governing permissions and
         | 
| 15 | 
            +
            # limitations under the License.
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
         | 
| 18 | 
            +
             | 
| 19 | 
            +
             | 
| 20 | 
            +
            module Google
         | 
| 21 | 
            +
              module Protobuf
         | 
| 22 | 
            +
                # Wrapper message for `double`.
         | 
| 23 | 
            +
                #
         | 
| 24 | 
            +
                # The JSON representation for `DoubleValue` is JSON number.
         | 
| 25 | 
            +
                # @!attribute [rw] value
         | 
| 26 | 
            +
                #   @return [::Float]
         | 
| 27 | 
            +
                #     The double value.
         | 
| 28 | 
            +
                class DoubleValue
         | 
| 29 | 
            +
                  include ::Google::Protobuf::MessageExts
         | 
| 30 | 
            +
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 31 | 
            +
                end
         | 
| 32 | 
            +
             | 
| 33 | 
            +
                # Wrapper message for `float`.
         | 
| 34 | 
            +
                #
         | 
| 35 | 
            +
                # The JSON representation for `FloatValue` is JSON number.
         | 
| 36 | 
            +
                # @!attribute [rw] value
         | 
| 37 | 
            +
                #   @return [::Float]
         | 
| 38 | 
            +
                #     The float value.
         | 
| 39 | 
            +
                class FloatValue
         | 
| 40 | 
            +
                  include ::Google::Protobuf::MessageExts
         | 
| 41 | 
            +
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 42 | 
            +
                end
         | 
| 43 | 
            +
             | 
| 44 | 
            +
                # Wrapper message for `int64`.
         | 
| 45 | 
            +
                #
         | 
| 46 | 
            +
                # The JSON representation for `Int64Value` is JSON string.
         | 
| 47 | 
            +
                # @!attribute [rw] value
         | 
| 48 | 
            +
                #   @return [::Integer]
         | 
| 49 | 
            +
                #     The int64 value.
         | 
| 50 | 
            +
                class Int64Value
         | 
| 51 | 
            +
                  include ::Google::Protobuf::MessageExts
         | 
| 52 | 
            +
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 53 | 
            +
                end
         | 
| 54 | 
            +
             | 
| 55 | 
            +
                # Wrapper message for `uint64`.
         | 
| 56 | 
            +
                #
         | 
| 57 | 
            +
                # The JSON representation for `UInt64Value` is JSON string.
         | 
| 58 | 
            +
                # @!attribute [rw] value
         | 
| 59 | 
            +
                #   @return [::Integer]
         | 
| 60 | 
            +
                #     The uint64 value.
         | 
| 61 | 
            +
                class UInt64Value
         | 
| 62 | 
            +
                  include ::Google::Protobuf::MessageExts
         | 
| 63 | 
            +
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 64 | 
            +
                end
         | 
| 65 | 
            +
             | 
| 66 | 
            +
                # Wrapper message for `int32`.
         | 
| 67 | 
            +
                #
         | 
| 68 | 
            +
                # The JSON representation for `Int32Value` is JSON number.
         | 
| 69 | 
            +
                # @!attribute [rw] value
         | 
| 70 | 
            +
                #   @return [::Integer]
         | 
| 71 | 
            +
                #     The int32 value.
         | 
| 72 | 
            +
                class Int32Value
         | 
| 73 | 
            +
                  include ::Google::Protobuf::MessageExts
         | 
| 74 | 
            +
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 75 | 
            +
                end
         | 
| 76 | 
            +
             | 
| 77 | 
            +
                # Wrapper message for `uint32`.
         | 
| 78 | 
            +
                #
         | 
| 79 | 
            +
                # The JSON representation for `UInt32Value` is JSON number.
         | 
| 80 | 
            +
                # @!attribute [rw] value
         | 
| 81 | 
            +
                #   @return [::Integer]
         | 
| 82 | 
            +
                #     The uint32 value.
         | 
| 83 | 
            +
                class UInt32Value
         | 
| 84 | 
            +
                  include ::Google::Protobuf::MessageExts
         | 
| 85 | 
            +
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 86 | 
            +
                end
         | 
| 87 | 
            +
             | 
| 88 | 
            +
                # Wrapper message for `bool`.
         | 
| 89 | 
            +
                #
         | 
| 90 | 
            +
                # The JSON representation for `BoolValue` is JSON `true` and `false`.
         | 
| 91 | 
            +
                # @!attribute [rw] value
         | 
| 92 | 
            +
                #   @return [::Boolean]
         | 
| 93 | 
            +
                #     The bool value.
         | 
| 94 | 
            +
                class BoolValue
         | 
| 95 | 
            +
                  include ::Google::Protobuf::MessageExts
         | 
| 96 | 
            +
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 97 | 
            +
                end
         | 
| 98 | 
            +
             | 
| 99 | 
            +
                # Wrapper message for `string`.
         | 
| 100 | 
            +
                #
         | 
| 101 | 
            +
                # The JSON representation for `StringValue` is JSON string.
         | 
| 102 | 
            +
                # @!attribute [rw] value
         | 
| 103 | 
            +
                #   @return [::String]
         | 
| 104 | 
            +
                #     The string value.
         | 
| 105 | 
            +
                class StringValue
         | 
| 106 | 
            +
                  include ::Google::Protobuf::MessageExts
         | 
| 107 | 
            +
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 108 | 
            +
                end
         | 
| 109 | 
            +
             | 
| 110 | 
            +
                # Wrapper message for `bytes`.
         | 
| 111 | 
            +
                #
         | 
| 112 | 
            +
                # The JSON representation for `BytesValue` is JSON string.
         | 
| 113 | 
            +
                # @!attribute [rw] value
         | 
| 114 | 
            +
                #   @return [::String]
         | 
| 115 | 
            +
                #     The bytes value.
         | 
| 116 | 
            +
                class BytesValue
         | 
| 117 | 
            +
                  include ::Google::Protobuf::MessageExts
         | 
| 118 | 
            +
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 119 | 
            +
                end
         | 
| 120 | 
            +
              end
         | 
| 121 | 
            +
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: google-cloud-kms-v1
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.4.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: 2021-02-03 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: gapic-common
         | 
| @@ -16,14 +16,14 @@ dependencies: | |
| 16 16 | 
             
                requirements:
         | 
| 17 17 | 
             
                - - "~>"
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version: '0. | 
| 19 | 
            +
                    version: '0.3'
         | 
| 20 20 | 
             
              type: :runtime
         | 
| 21 21 | 
             
              prerelease: false
         | 
| 22 22 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 23 | 
             
                requirements:
         | 
| 24 24 | 
             
                - - "~>"
         | 
| 25 25 | 
             
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            -
                    version: '0. | 
| 26 | 
            +
                    version: '0.3'
         | 
| 27 27 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 28 28 | 
             
              name: google-cloud-errors
         | 
| 29 29 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -171,7 +171,9 @@ dependencies: | |
| 171 171 | 
             
                  - !ruby/object:Gem::Version
         | 
| 172 172 | 
             
                    version: '0.9'
         | 
| 173 173 | 
             
            description: Manages keys and performs cryptographic operations in a central cloud
         | 
| 174 | 
            -
              service, for direct use by other cloud resources and applications.
         | 
| 174 | 
            +
              service, for direct use by other cloud resources and applications. Note that google-cloud-kms-v1
         | 
| 175 | 
            +
              is a version-specific client library. For most uses, we recommend installing the
         | 
| 176 | 
            +
              main client library google-cloud-kms instead. See the readme for more details.
         | 
| 175 177 | 
             
            email: googleapis-packages@google.com
         | 
| 176 178 | 
             
            executables: []
         | 
| 177 179 | 
             
            extensions: []
         | 
| @@ -206,6 +208,7 @@ files: | |
| 206 208 | 
             
            - proto_docs/google/protobuf/duration.rb
         | 
| 207 209 | 
             
            - proto_docs/google/protobuf/field_mask.rb
         | 
| 208 210 | 
             
            - proto_docs/google/protobuf/timestamp.rb
         | 
| 211 | 
            +
            - proto_docs/google/protobuf/wrappers.rb
         | 
| 209 212 | 
             
            - proto_docs/google/type/expr.rb
         | 
| 210 213 | 
             
            homepage: https://github.com/googleapis/google-cloud-ruby
         | 
| 211 214 | 
             
            licenses:
         | 
| @@ -226,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 226 229 | 
             
                - !ruby/object:Gem::Version
         | 
| 227 230 | 
             
                  version: '0'
         | 
| 228 231 | 
             
            requirements: []
         | 
| 229 | 
            -
            rubygems_version: 3. | 
| 232 | 
            +
            rubygems_version: 3.2.6
         | 
| 230 233 | 
             
            signing_key: 
         | 
| 231 234 | 
             
            specification_version: 4
         | 
| 232 235 | 
             
            summary: API Client library for the Cloud Key Management Service (KMS) V1 API
         |