google-cloud-artifact_registry-v1 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b33ea2bf6f8db37b9a66c06903393ecb687d1150f77f80795197b5f0237ed41
4
- data.tar.gz: 3c55368cd6baed8b45035f47119dc7ec334c9850788e7037dafe97d24e820dea
3
+ metadata.gz: 852420fe6eb28908024b6026f1f381f081750872b0ae018becb11dfb2402491a
4
+ data.tar.gz: ca08cc07bb0bf33c8b620a1d304e5221fd4b95ed490d7f537296ea76a8c46d76
5
5
  SHA512:
6
- metadata.gz: 1735a53274d91cd07e01a033792951b3feabd74af64d5f0818e1313fd2b42349714f56f2846ef697dd55a9ac320eee524b51956d44af29bddbc265e31f84eeb1
7
- data.tar.gz: 6d0e0514d90eb904843c5e91f8d5300d24c74c147e82401eb83420d4aa71ce2d56dc6ce71ca53d4ad5d0cb884669106bc4b0bb6f75e79f16f4de0712f0af77fc
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
- "parent" => request.parent
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
- "parent" => request.parent
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
- "name" => request.name
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
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ArtifactRegistry
23
23
  module V1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.2.1"
25
25
  end
26
26
  end
27
27
  end
@@ -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
- # - imageSizeBytes
28
- # - mediaType
29
- # - buildTime
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.0
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-10-18 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common