google-cloud-artifact_registry-v1 0.2.0 → 0.2.1
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: 852420fe6eb28908024b6026f1f381f081750872b0ae018becb11dfb2402491a
         | 
| 4 | 
            +
              data.tar.gz: ca08cc07bb0bf33c8b620a1d304e5221fd4b95ed490d7f537296ea76a8c46d76
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: e2ab1e41c196354e007058b0aa725cd1cf226d0de2c43e4f50d2ef1bac4457d063d6bbe668e3ede931f839c8762c2907d78d5d69d241ead6c3da1bd7dc084403
         | 
| 7 | 
            +
              data.tar.gz: 517eee6c82142b907531a3132faeadca2f0ac8fdd95d2692c60ce81eb306f85167392409ca11ac71736350b638a0388a44b73766ac5bc4df3c49fe5d862b19a4
         | 
| @@ -191,6 +191,27 @@ module Google | |
| 191 191 | 
             
                        #
         | 
| 192 192 | 
             
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 193 193 | 
             
                        #
         | 
| 194 | 
            +
                        # @example Basic example
         | 
| 195 | 
            +
                        #   require "google/cloud/artifact_registry/v1"
         | 
| 196 | 
            +
                        #
         | 
| 197 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 198 | 
            +
                        #   client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
         | 
| 199 | 
            +
                        #
         | 
| 200 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 201 | 
            +
                        #   request = Google::Cloud::ArtifactRegistry::V1::ListDockerImagesRequest.new
         | 
| 202 | 
            +
                        #
         | 
| 203 | 
            +
                        #   # Call the list_docker_images method.
         | 
| 204 | 
            +
                        #   result = client.list_docker_images request
         | 
| 205 | 
            +
                        #
         | 
| 206 | 
            +
                        #   # The returned object is of type Gapic::PagedEnumerable. You can
         | 
| 207 | 
            +
                        #   # iterate over all elements by calling #each, and the enumerable
         | 
| 208 | 
            +
                        #   # will lazily make API calls to fetch subsequent pages. Other
         | 
| 209 | 
            +
                        #   # methods are also available for managing paging directly.
         | 
| 210 | 
            +
                        #   result.each do |response|
         | 
| 211 | 
            +
                        #     # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::DockerImage.
         | 
| 212 | 
            +
                        #     p response
         | 
| 213 | 
            +
                        #   end
         | 
| 214 | 
            +
                        #
         | 
| 194 215 | 
             
                        def list_docker_images request, options = nil
         | 
| 195 216 | 
             
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 196 217 |  | 
| @@ -208,9 +229,11 @@ module Google | |
| 208 229 | 
             
                            gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
         | 
| 209 230 | 
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 210 231 |  | 
| 211 | 
            -
                          header_params = {
         | 
| 212 | 
            -
             | 
| 213 | 
            -
             | 
| 232 | 
            +
                          header_params = {}
         | 
| 233 | 
            +
                          if request.parent
         | 
| 234 | 
            +
                            header_params["parent"] = request.parent
         | 
| 235 | 
            +
                          end
         | 
| 236 | 
            +
             | 
| 214 237 | 
             
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 215 238 | 
             
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 216 239 |  | 
| @@ -264,6 +287,27 @@ module Google | |
| 264 287 | 
             
                        #
         | 
| 265 288 | 
             
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 266 289 | 
             
                        #
         | 
| 290 | 
            +
                        # @example Basic example
         | 
| 291 | 
            +
                        #   require "google/cloud/artifact_registry/v1"
         | 
| 292 | 
            +
                        #
         | 
| 293 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 294 | 
            +
                        #   client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
         | 
| 295 | 
            +
                        #
         | 
| 296 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 297 | 
            +
                        #   request = Google::Cloud::ArtifactRegistry::V1::ListRepositoriesRequest.new
         | 
| 298 | 
            +
                        #
         | 
| 299 | 
            +
                        #   # Call the list_repositories method.
         | 
| 300 | 
            +
                        #   result = client.list_repositories request
         | 
| 301 | 
            +
                        #
         | 
| 302 | 
            +
                        #   # The returned object is of type Gapic::PagedEnumerable. You can
         | 
| 303 | 
            +
                        #   # iterate over all elements by calling #each, and the enumerable
         | 
| 304 | 
            +
                        #   # will lazily make API calls to fetch subsequent pages. Other
         | 
| 305 | 
            +
                        #   # methods are also available for managing paging directly.
         | 
| 306 | 
            +
                        #   result.each do |response|
         | 
| 307 | 
            +
                        #     # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Repository.
         | 
| 308 | 
            +
                        #     p response
         | 
| 309 | 
            +
                        #   end
         | 
| 310 | 
            +
                        #
         | 
| 267 311 | 
             
                        def list_repositories request, options = nil
         | 
| 268 312 | 
             
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 269 313 |  | 
| @@ -281,9 +325,11 @@ module Google | |
| 281 325 | 
             
                            gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
         | 
| 282 326 | 
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 283 327 |  | 
| 284 | 
            -
                          header_params = {
         | 
| 285 | 
            -
             | 
| 286 | 
            -
             | 
| 328 | 
            +
                          header_params = {}
         | 
| 329 | 
            +
                          if request.parent
         | 
| 330 | 
            +
                            header_params["parent"] = request.parent
         | 
| 331 | 
            +
                          end
         | 
| 332 | 
            +
             | 
| 287 333 | 
             
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 288 334 | 
             
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 289 335 |  | 
| @@ -333,6 +379,21 @@ module Google | |
| 333 379 | 
             
                        #
         | 
| 334 380 | 
             
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         | 
| 335 381 | 
             
                        #
         | 
| 382 | 
            +
                        # @example Basic example
         | 
| 383 | 
            +
                        #   require "google/cloud/artifact_registry/v1"
         | 
| 384 | 
            +
                        #
         | 
| 385 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 386 | 
            +
                        #   client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
         | 
| 387 | 
            +
                        #
         | 
| 388 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 389 | 
            +
                        #   request = Google::Cloud::ArtifactRegistry::V1::GetRepositoryRequest.new
         | 
| 390 | 
            +
                        #
         | 
| 391 | 
            +
                        #   # Call the get_repository method.
         | 
| 392 | 
            +
                        #   result = client.get_repository request
         | 
| 393 | 
            +
                        #
         | 
| 394 | 
            +
                        #   # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Repository.
         | 
| 395 | 
            +
                        #   p result
         | 
| 396 | 
            +
                        #
         | 
| 336 397 | 
             
                        def get_repository request, options = nil
         | 
| 337 398 | 
             
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 338 399 |  | 
| @@ -350,9 +411,11 @@ module Google | |
| 350 411 | 
             
                            gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
         | 
| 351 412 | 
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         | 
| 352 413 |  | 
| 353 | 
            -
                          header_params = {
         | 
| 354 | 
            -
             | 
| 355 | 
            -
             | 
| 414 | 
            +
                          header_params = {}
         | 
| 415 | 
            +
                          if request.name
         | 
| 416 | 
            +
                            header_params["name"] = request.name
         | 
| 417 | 
            +
                          end
         | 
| 418 | 
            +
             | 
| 356 419 | 
             
                          request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
         | 
| 357 420 | 
             
                          metadata[:"x-goog-request-params"] ||= request_params_header
         | 
| 358 421 |  | 
| @@ -24,9 +24,9 @@ module Google | |
| 24 24 | 
             
                    # DockerImage represents a docker artifact.
         | 
| 25 25 | 
             
                    # The following fields are returned as untyped metadata in the Version
         | 
| 26 26 | 
             
                    # resource, using camelcase keys (i.e. metadata.imageSizeBytes):
         | 
| 27 | 
            -
                    # | 
| 28 | 
            -
                    # | 
| 29 | 
            -
                    # | 
| 27 | 
            +
                    # * imageSizeBytes
         | 
| 28 | 
            +
                    # * mediaType
         | 
| 29 | 
            +
                    # * buildTime
         | 
| 30 30 | 
             
                    # @!attribute [rw] name
         | 
| 31 31 | 
             
                    #   @return [::String]
         | 
| 32 32 | 
             
                    #     Required. registry_location, project_id, repository_name and image id forms a unique
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: google-cloud-artifact_registry-v1
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.2. | 
| 4 | 
            +
              version: 0.2.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Google LLC
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2021- | 
| 11 | 
            +
            date: 2021-11-08 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: gapic-common
         |