google-cloud-location 0.5.1 → 0.6.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
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: a8f95c228820fa0cccacd1b0b64051018111272a039d9e09e011b986ba67a5cf
         | 
| 4 | 
            +
              data.tar.gz: 17ccd042d790fd10983b89da3ff7e05fd0a9161b339507a1e4d9873d12d6031a
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 175a0888c931e828c1b4493a32121bfa59917a61a1c3a7690bee51ed9d60e882853be9e8004836f260d02efca54bb19e9fe470c1dca701eee6f5d2beefee4fb1
         | 
| 7 | 
            +
              data.tar.gz: 4a0db694ae9daab369e2d6c275ca5ad5493ed07927f9e822cbe87f2281ace7f5f1b6dc933cecf62bcfdca7eaefcfae420d3b5e5ffbd9e2003fd8c3cb19b80fe3
         | 
| @@ -137,7 +137,8 @@ module Google | |
| 137 137 | 
             
                          credentials:  credentials,
         | 
| 138 138 | 
             
                          endpoint:     @config.endpoint,
         | 
| 139 139 | 
             
                          channel_args: @config.channel_args,
         | 
| 140 | 
            -
                          interceptors: @config.interceptors
         | 
| 140 | 
            +
                          interceptors: @config.interceptors,
         | 
| 141 | 
            +
                          channel_pool_config: @config.channel_pool
         | 
| 141 142 | 
             
                        )
         | 
| 142 143 | 
             
                      end
         | 
| 143 144 |  | 
| @@ -443,6 +444,14 @@ module Google | |
| 443 444 | 
             
                          end
         | 
| 444 445 | 
             
                        end
         | 
| 445 446 |  | 
| 447 | 
            +
                        ##
         | 
| 448 | 
            +
                        # Configuration for the channel pool
         | 
| 449 | 
            +
                        # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
         | 
| 450 | 
            +
                        #
         | 
| 451 | 
            +
                        def channel_pool
         | 
| 452 | 
            +
                          @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
         | 
| 453 | 
            +
                        end
         | 
| 454 | 
            +
             | 
| 446 455 | 
             
                        ##
         | 
| 447 456 | 
             
                        # Configuration RPC class for the Locations API.
         | 
| 448 457 | 
             
                        #
         | 
| @@ -167,6 +167,26 @@ module Google | |
| 167 167 | 
             
                        # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Location::Location>]
         | 
| 168 168 | 
             
                        #
         | 
| 169 169 | 
             
                        # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 170 | 
            +
                        #
         | 
| 171 | 
            +
                        # @example Basic example
         | 
| 172 | 
            +
                        #   require "google/cloud/location"
         | 
| 173 | 
            +
                        #
         | 
| 174 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 175 | 
            +
                        #   client = Google::Cloud::Location::Locations::Rest::Client.new
         | 
| 176 | 
            +
                        #
         | 
| 177 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 178 | 
            +
                        #   request = Google::Cloud::Location::ListLocationsRequest.new
         | 
| 179 | 
            +
                        #
         | 
| 180 | 
            +
                        #   # Call the list_locations method.
         | 
| 181 | 
            +
                        #   result = client.list_locations request
         | 
| 182 | 
            +
                        #
         | 
| 183 | 
            +
                        #   # The returned object is of type Gapic::PagedEnumerable. You can iterate
         | 
| 184 | 
            +
                        #   # over elements, and API calls will be issued to fetch pages as needed.
         | 
| 185 | 
            +
                        #   result.each do |item|
         | 
| 186 | 
            +
                        #     # Each element is of type ::Google::Cloud::Location::Location.
         | 
| 187 | 
            +
                        #     p item
         | 
| 188 | 
            +
                        #   end
         | 
| 189 | 
            +
                        #
         | 
| 170 190 | 
             
                        def list_locations request, options = nil
         | 
| 171 191 | 
             
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 172 192 |  | 
| @@ -232,6 +252,22 @@ module Google | |
| 232 252 | 
             
                        # @return [::Google::Cloud::Location::Location]
         | 
| 233 253 | 
             
                        #
         | 
| 234 254 | 
             
                        # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 255 | 
            +
                        #
         | 
| 256 | 
            +
                        # @example Basic example
         | 
| 257 | 
            +
                        #   require "google/cloud/location"
         | 
| 258 | 
            +
                        #
         | 
| 259 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 260 | 
            +
                        #   client = Google::Cloud::Location::Locations::Rest::Client.new
         | 
| 261 | 
            +
                        #
         | 
| 262 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 263 | 
            +
                        #   request = Google::Cloud::Location::GetLocationRequest.new
         | 
| 264 | 
            +
                        #
         | 
| 265 | 
            +
                        #   # Call the get_location method.
         | 
| 266 | 
            +
                        #   result = client.get_location request
         | 
| 267 | 
            +
                        #
         | 
| 268 | 
            +
                        #   # The returned object is of type Google::Cloud::Location::Location.
         | 
| 269 | 
            +
                        #   p result
         | 
| 270 | 
            +
                        #
         | 
| 235 271 | 
             
                        def get_location request, options = nil
         | 
| 236 272 | 
             
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 237 273 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: google-cloud-location
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.6.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: 2023- | 
| 11 | 
            +
            date: 2023-09-12 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: gapic-common
         | 
| @@ -16,7 +16,7 @@ dependencies: | |
| 16 16 | 
             
                requirements:
         | 
| 17 17 | 
             
                - - ">="
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version: 0. | 
| 19 | 
            +
                    version: 0.20.0
         | 
| 20 20 | 
             
                - - "<"
         | 
| 21 21 | 
             
                  - !ruby/object:Gem::Version
         | 
| 22 22 | 
             
                    version: 2.a
         | 
| @@ -26,7 +26,7 @@ dependencies: | |
| 26 26 | 
             
                requirements:
         | 
| 27 27 | 
             
                - - ">="
         | 
| 28 28 | 
             
                  - !ruby/object:Gem::Version
         | 
| 29 | 
            -
                    version: 0. | 
| 29 | 
            +
                    version: 0.20.0
         | 
| 30 30 | 
             
                - - "<"
         | 
| 31 31 | 
             
                  - !ruby/object:Gem::Version
         | 
| 32 32 | 
             
                    version: 2.a
         | 
| @@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 205 205 | 
             
                - !ruby/object:Gem::Version
         | 
| 206 206 | 
             
                  version: '0'
         | 
| 207 207 | 
             
            requirements: []
         | 
| 208 | 
            -
            rubygems_version: 3.4. | 
| 208 | 
            +
            rubygems_version: 3.4.19
         | 
| 209 209 | 
             
            signing_key: 
         | 
| 210 210 | 
             
            specification_version: 4
         | 
| 211 211 | 
             
            summary: API Client library for the Locations API
         |