google-apis-artifactregistry_v1beta2 0.52.0 → 0.54.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: 8511089df7b81eb949490362ca428c85e8af535e2b4b9c1f6f46a428dbc3441b
4
- data.tar.gz: 37f7c4675ad45e8ac0d1cfe736ad406a0fd55dbee1ef20de8f384389ec3af9f9
3
+ metadata.gz: 230b706e352b5cfb98205ebf2b996493255e206a9bd4618dc39ae99300874ef3
4
+ data.tar.gz: ea56575a33efecc8f3f6e2978f1efd9cf694e11c9d8820da08faf16e8a9978d0
5
5
  SHA512:
6
- metadata.gz: 4168d19b587423fe2292f5679ec7c1bab27d9f3132033ac18f6a0c8c1abc9506c94187ab490fd5b9e233c382e019c984ec2a1e190f63369bb156616c173859ca
7
- data.tar.gz: 7651298f7a807e857f4e90dd0e45ee580cf62ca97c5b162a0fdf5f36260d9486153f2d4b03aaec93d1f7d6d2c4c4727793f3f2e7311a6c18f4003ee0092ada70
6
+ metadata.gz: 46cbd12ba22d281ea38a48a98ea7777d5c58154c0ec7d7d4d0eaf8e02beae12c4bd20fa03bc073445739749d58c91d635e7e67573aec43fcf3d5137ec797ee08
7
+ data.tar.gz: 585b5176749585c94c39234cf35a73ac71b0695078f452367dbd87cfea539332bc5804a45ce2ea259dfc8d1f454a40404f918154a38bc18ac69cb9e8134ef7ee
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-artifactregistry_v1beta2
2
2
 
3
+ ### v0.54.0 (2024-05-19)
4
+
5
+ * Regenerated from discovery document revision 20240513
6
+ * Regenerated using generator version 0.15.0
7
+
8
+ ### v0.53.0 (2024-03-10)
9
+
10
+ * Regenerated from discovery document revision 20240305
11
+
3
12
  ### v0.52.0 (2024-02-23)
4
13
 
5
14
  * 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.
@@ -259,8 +272,8 @@ module Google
259
272
  # @return [Array<Google::Apis::ArtifactregistryV1beta2::HashProp>]
260
273
  attr_accessor :hashes
261
274
 
262
- # The name of the file, for example: "projects/p1/locations/us-central1/
263
- # repositories/repo1/files/a%2Fb%2Fc.txt". If the file ID part contains slashes,
275
+ # The name of the file, for example: `projects/p1/locations/us-central1/
276
+ # repositories/repo1/files/a%2Fb%2Fc.txt`. If the file ID part contains slashes,
264
277
  # they are escaped.
265
278
  # Corresponds to the JSON property `name`
266
279
  # @return [String]
@@ -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)
@@ -1049,11 +1068,18 @@ module Google
1049
1068
  attr_accessor :maven_config
1050
1069
 
1051
1070
  # The name of the repository, for example: `projects/p1/locations/us-central1/
1052
- # repositories/repo1`.
1071
+ # repositories/repo1`. For each location in a project, repository names must be
1072
+ # unique.
1053
1073
  # Corresponds to the JSON property `name`
1054
1074
  # @return [String]
1055
1075
  attr_accessor :name
1056
1076
 
1077
+ # Output only. If set, the repository satisfies physical zone isolation.
1078
+ # Corresponds to the JSON property `satisfiesPzi`
1079
+ # @return [Boolean]
1080
+ attr_accessor :satisfies_pzi
1081
+ alias_method :satisfies_pzi?, :satisfies_pzi
1082
+
1057
1083
  # Output only. If set, the repository satisfies physical zone separation.
1058
1084
  # Corresponds to the JSON property `satisfiesPzs`
1059
1085
  # @return [Boolean]
@@ -1085,6 +1111,7 @@ module Google
1085
1111
  @labels = args[:labels] if args.key?(:labels)
1086
1112
  @maven_config = args[:maven_config] if args.key?(:maven_config)
1087
1113
  @name = args[:name] if args.key?(:name)
1114
+ @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
1088
1115
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
1089
1116
  @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
1090
1117
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -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.54.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.14.0"
22
+ GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240122"
25
+ REVISION = "20240513"
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'
@@ -565,6 +578,7 @@ module Google
565
578
  property :maven_config, as: 'mavenConfig', class: Google::Apis::ArtifactregistryV1beta2::MavenRepositoryConfig, decorator: Google::Apis::ArtifactregistryV1beta2::MavenRepositoryConfig::Representation
566
579
 
567
580
  property :name, as: 'name'
581
+ property :satisfies_pzi, as: 'satisfiesPzi'
568
582
  property :satisfies_pzs, as: 'satisfiesPzs'
569
583
  property :size_bytes, :numeric_string => true, as: 'sizeBytes'
570
584
  property :update_time, as: 'updateTime'
@@ -405,7 +405,8 @@ module Google
405
405
  # Updates a repository.
406
406
  # @param [String] name
407
407
  # The name of the repository, for example: `projects/p1/locations/us-central1/
408
- # repositories/repo1`.
408
+ # repositories/repo1`. For each location in a project, repository names must be
409
+ # unique.
409
410
  # @param [Google::Apis::ArtifactregistryV1beta2::Repository] repository_object
410
411
  # @param [String] update_mask
411
412
  # The update mask applies to the resource. For the `FieldMask` definition, see
@@ -593,6 +594,43 @@ module Google
593
594
  execute_or_queue_command(command, &block)
594
595
  end
595
596
 
597
+ # Download a file.
598
+ # @param [String] name
599
+ # Required. The name of the file to download.
600
+ # @param [String] fields
601
+ # Selector specifying which fields to include in a partial response.
602
+ # @param [String] quota_user
603
+ # Available to use for quota purposes for server-side applications. Can be any
604
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
605
+ # @param [IO, String] download_dest
606
+ # IO stream or filename to receive content download
607
+ # @param [Google::Apis::RequestOptions] options
608
+ # Request-specific options
609
+ #
610
+ # @yield [result, err] Result & error if block supplied
611
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta2::DownloadFileResponse] parsed result object
612
+ # @yieldparam err [StandardError] error object if request failed
613
+ #
614
+ # @return [Google::Apis::ArtifactregistryV1beta2::DownloadFileResponse]
615
+ #
616
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
617
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
618
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
619
+ def download_project_location_repository_file(name, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block)
620
+ if download_dest.nil?
621
+ command = make_simple_command(:get, 'v1beta2/{+name}:download', options)
622
+ else
623
+ command = make_download_command(:get, 'v1beta2/{+name}:download', options)
624
+ command.download_dest = download_dest
625
+ end
626
+ command.response_representation = Google::Apis::ArtifactregistryV1beta2::DownloadFileResponse::Representation
627
+ command.response_class = Google::Apis::ArtifactregistryV1beta2::DownloadFileResponse
628
+ command.params['name'] = name unless name.nil?
629
+ command.query['fields'] = fields unless fields.nil?
630
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
631
+ execute_or_queue_command(command, &block)
632
+ end
633
+
596
634
  # Gets a file.
597
635
  # @param [String] name
598
636
  # Required. The name of the file to retrieve.
@@ -635,7 +673,7 @@ module Google
635
673
  # owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/
636
674
  # versions/1.0"` --> Files owned by the version `1.0` in package `pkg1`.
637
675
  # @param [Fixnum] page_size
638
- # The maximum number of files to return.
676
+ # The maximum number of files to return. Maximum page size is 1,000.
639
677
  # @param [String] page_token
640
678
  # The next_page_token value returned from a previous list request, if any.
641
679
  # @param [String] fields
@@ -765,6 +803,46 @@ module Google
765
803
  execute_or_queue_command(command, &block)
766
804
  end
767
805
 
806
+ # Updates a package.
807
+ # @param [String] name
808
+ # The name of the package, for example: `projects/p1/locations/us-central1/
809
+ # repositories/repo1/packages/pkg1`. If the package ID part contains slashes,
810
+ # the slashes are escaped.
811
+ # @param [Google::Apis::ArtifactregistryV1beta2::Package] package_object
812
+ # @param [String] update_mask
813
+ # The update mask applies to the resource. For the `FieldMask` definition, see
814
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
815
+ # fieldmask
816
+ # @param [String] fields
817
+ # Selector specifying which fields to include in a partial response.
818
+ # @param [String] quota_user
819
+ # Available to use for quota purposes for server-side applications. Can be any
820
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
821
+ # @param [Google::Apis::RequestOptions] options
822
+ # Request-specific options
823
+ #
824
+ # @yield [result, err] Result & error if block supplied
825
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta2::Package] parsed result object
826
+ # @yieldparam err [StandardError] error object if request failed
827
+ #
828
+ # @return [Google::Apis::ArtifactregistryV1beta2::Package]
829
+ #
830
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
831
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
832
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
833
+ def patch_project_location_repository_package(name, package_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
834
+ command = make_simple_command(:patch, 'v1beta2/{+name}', options)
835
+ command.request_representation = Google::Apis::ArtifactregistryV1beta2::Package::Representation
836
+ command.request_object = package_object
837
+ command.response_representation = Google::Apis::ArtifactregistryV1beta2::Package::Representation
838
+ command.response_class = Google::Apis::ArtifactregistryV1beta2::Package
839
+ command.params['name'] = name unless name.nil?
840
+ command.query['updateMask'] = update_mask unless update_mask.nil?
841
+ command.query['fields'] = fields unless fields.nil?
842
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
843
+ execute_or_queue_command(command, &block)
844
+ end
845
+
768
846
  # Creates a tag.
769
847
  # @param [String] parent
770
848
  # The name of the parent resource where the tag will be created.
@@ -872,7 +950,7 @@ module Google
872
950
  # repo1/packages/pkg1/versions/1.0"` --> Tags that are applied to the version `1.
873
951
  # 0` in package `pkg1`.
874
952
  # @param [Fixnum] page_size
875
- # The maximum number of tags to return. Maximum page size is 10,000.
953
+ # The maximum number of tags to return. Maximum page size is 1,000.
876
954
  # @param [String] page_token
877
955
  # The next_page_token value returned from a previous list request, if any.
878
956
  # @param [String] fields
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.54.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-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0
19
+ version: 0.15.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.14.0
29
+ version: 0.15.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.54.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: []