google-apis-artifactregistry_v1beta2 0.52.0 → 0.53.0

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: 8511089df7b81eb949490362ca428c85e8af535e2b4b9c1f6f46a428dbc3441b
4
- data.tar.gz: 37f7c4675ad45e8ac0d1cfe736ad406a0fd55dbee1ef20de8f384389ec3af9f9
3
+ metadata.gz: 93951674d429904f7124f213bf0b4ada29296c49cde63707cd18738692f96eb7
4
+ data.tar.gz: c736005f4c0ae9441ad8f78cdbc9bdd0a5e9616c406aa0a8f4936614210a92a9
5
5
  SHA512:
6
- metadata.gz: 4168d19b587423fe2292f5679ec7c1bab27d9f3132033ac18f6a0c8c1abc9506c94187ab490fd5b9e233c382e019c984ec2a1e190f63369bb156616c173859ca
7
- data.tar.gz: 7651298f7a807e857f4e90dd0e45ee580cf62ca97c5b162a0fdf5f36260d9486153f2d4b03aaec93d1f7d6d2c4c4727793f3f2e7311a6c18f4003ee0092ada70
6
+ metadata.gz: a497ab1ca1deba94aeccd5e237f298dad91720236b9620058293403352be5f08b9d065c11c87ffd8722af5d0e832e67066add6a66e13b17b5f25cc0b0b4eefcb
7
+ data.tar.gz: a437cf2dd09f30a11b3791948c4e0ab0ee3586db59ab56472b20893c1a24b33af68581938e6214f0fd770fdd9b3eb6e3d7f5a5602d4c07e1ed8d14b9a4f4343f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-artifactregistry_v1beta2
2
2
 
3
+ ### v0.53.0 (2024-03-10)
4
+
5
+ * Regenerated from discovery document revision 20240305
6
+
3
7
  ### v0.52.0 (2024-02-23)
4
8
 
5
9
  * Regenerated using generator version 0.14.0
@@ -175,6 +175,19 @@ module Google
175
175
  end
176
176
  end
177
177
 
178
+ # The response to download a file.
179
+ class DownloadFileResponse
180
+ include Google::Apis::Core::Hashable
181
+
182
+ def initialize(**args)
183
+ update!(**args)
184
+ end
185
+
186
+ # Update properties of this object
187
+ def update!(**args)
188
+ end
189
+ end
190
+
178
191
  # A generic empty message that you can re-use to avoid defining duplicated empty
179
192
  # messages in your APIs. A typical example is to use it as the request or the
180
193
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -856,6 +869,11 @@ module Google
856
869
  class Package
857
870
  include Google::Apis::Core::Hashable
858
871
 
872
+ # Optional. Client specified annotations.
873
+ # Corresponds to the JSON property `annotations`
874
+ # @return [Hash<String,String>]
875
+ attr_accessor :annotations
876
+
859
877
  # The time when the package was created.
860
878
  # Corresponds to the JSON property `createTime`
861
879
  # @return [String]
@@ -885,6 +903,7 @@ module Google
885
903
 
886
904
  # Update properties of this object
887
905
  def update!(**args)
906
+ @annotations = args[:annotations] if args.key?(:annotations)
888
907
  @create_time = args[:create_time] if args.key?(:create_time)
889
908
  @display_name = args[:display_name] if args.key?(:display_name)
890
909
  @name = args[:name] if args.key?(:name)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ArtifactregistryV1beta2
18
18
  # Version of the google-apis-artifactregistry_v1beta2 gem
19
- GEM_VERSION = "0.52.0"
19
+ GEM_VERSION = "0.53.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240122"
25
+ REVISION = "20240305"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class DownloadFileResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class Empty
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -314,6 +320,12 @@ module Google
314
320
  end
315
321
  end
316
322
 
323
+ class DownloadFileResponse
324
+ # @private
325
+ class Representation < Google::Apis::Core::JsonRepresentation
326
+ end
327
+ end
328
+
317
329
  class Empty
318
330
  # @private
319
331
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -529,6 +541,7 @@ module Google
529
541
  class Package
530
542
  # @private
531
543
  class Representation < Google::Apis::Core::JsonRepresentation
544
+ hash :annotations, as: 'annotations'
532
545
  property :create_time, as: 'createTime'
533
546
  property :display_name, as: 'displayName'
534
547
  property :name, as: 'name'
@@ -52,6 +52,43 @@ module Google
52
52
  @batch_path = 'batch'
53
53
  end
54
54
 
55
+ # Download a file.
56
+ # @param [String] name
57
+ # Required. The name of the file to download.
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
60
+ # @param [String] quota_user
61
+ # Available to use for quota purposes for server-side applications. Can be any
62
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
63
+ # @param [IO, String] download_dest
64
+ # IO stream or filename to receive content download
65
+ # @param [Google::Apis::RequestOptions] options
66
+ # Request-specific options
67
+ #
68
+ # @yield [result, err] Result & error if block supplied
69
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta2::DownloadFileResponse] parsed result object
70
+ # @yieldparam err [StandardError] error object if request failed
71
+ #
72
+ # @return [Google::Apis::ArtifactregistryV1beta2::DownloadFileResponse]
73
+ #
74
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
77
+ def download_medium(name, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block)
78
+ if download_dest.nil?
79
+ command = make_simple_command(:get, 'v1beta2/{+name}:download', options)
80
+ else
81
+ command = make_download_command(:get, 'v1beta2/{+name}:download', options)
82
+ command.download_dest = download_dest
83
+ end
84
+ command.response_representation = Google::Apis::ArtifactregistryV1beta2::DownloadFileResponse::Representation
85
+ command.response_class = Google::Apis::ArtifactregistryV1beta2::DownloadFileResponse
86
+ command.params['name'] = name unless name.nil?
87
+ command.query['fields'] = fields unless fields.nil?
88
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
89
+ execute_or_queue_command(command, &block)
90
+ end
91
+
55
92
  # Retrieves the Settings for the Project.
56
93
  # @param [String] name
57
94
  # Required. The name of the projectSettings resource.
@@ -765,6 +802,46 @@ module Google
765
802
  execute_or_queue_command(command, &block)
766
803
  end
767
804
 
805
+ # Updates a package.
806
+ # @param [String] name
807
+ # The name of the package, for example: `projects/p1/locations/us-central1/
808
+ # repositories/repo1/packages/pkg1`. If the package ID part contains slashes,
809
+ # the slashes are escaped.
810
+ # @param [Google::Apis::ArtifactregistryV1beta2::Package] package_object
811
+ # @param [String] update_mask
812
+ # The update mask applies to the resource. For the `FieldMask` definition, see
813
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
814
+ # fieldmask
815
+ # @param [String] fields
816
+ # Selector specifying which fields to include in a partial response.
817
+ # @param [String] quota_user
818
+ # Available to use for quota purposes for server-side applications. Can be any
819
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
820
+ # @param [Google::Apis::RequestOptions] options
821
+ # Request-specific options
822
+ #
823
+ # @yield [result, err] Result & error if block supplied
824
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta2::Package] parsed result object
825
+ # @yieldparam err [StandardError] error object if request failed
826
+ #
827
+ # @return [Google::Apis::ArtifactregistryV1beta2::Package]
828
+ #
829
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
830
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
831
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
832
+ def patch_project_location_repository_package(name, package_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
833
+ command = make_simple_command(:patch, 'v1beta2/{+name}', options)
834
+ command.request_representation = Google::Apis::ArtifactregistryV1beta2::Package::Representation
835
+ command.request_object = package_object
836
+ command.response_representation = Google::Apis::ArtifactregistryV1beta2::Package::Representation
837
+ command.response_class = Google::Apis::ArtifactregistryV1beta2::Package
838
+ command.params['name'] = name unless name.nil?
839
+ command.query['updateMask'] = update_mask unless update_mask.nil?
840
+ command.query['fields'] = fields unless fields.nil?
841
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
842
+ execute_or_queue_command(command, &block)
843
+ end
844
+
768
845
  # Creates a tag.
769
846
  # @param [String] parent
770
847
  # The name of the parent resource where the tag will be created.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-artifactregistry_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.52.0
4
+ version: 0.53.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: 2024-02-25 00:00:00.000000000 Z
11
+ date: 2024-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-artifactregistry_v1beta2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1beta2/v0.52.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1beta2/v0.53.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-artifactregistry_v1beta2
63
63
  post_install_message:
64
64
  rdoc_options: []