google-apis-artifactregistry_v1 0.38.0 → 0.40.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: 1017c2cffc3a2909254d70c2aa90f21c50678bbc3e30763077df3fdc2c4a1c59
4
- data.tar.gz: 786b6364de0e113cfd3cf15b4d69a9c3f6f0ef39050952dca4c907b9900094c4
3
+ metadata.gz: c5b66b00c69a3cc8ce598dd841516f8fc3c566a8ceda1c7470b5974470bd3ccf
4
+ data.tar.gz: c137ea12f025fcfd27878ed50122989a22bef826cee8d0af9a87d153cdfbb4f5
5
5
  SHA512:
6
- metadata.gz: 9f60cc4c29a7f22bb5cdd5525e685b1abaaa8abd3f59fd7302efd306b2fd7a11d5660db99f10ab86142a54317c90cbaf6dcab143213b46747c00ffb081f15338
7
- data.tar.gz: '019f296e87c9b53bf340677500627238095119ef9cc43e6f90cfef2ffa3162a58b030af47688e2b519139aed1ca41afa78def6f79f72234cfdfecce499c85d49'
6
+ metadata.gz: 2fa08f5f3b19f68d678edf3d951e0d1c8565bc548b4fb2034e2b3f4f89a34fa8f61b537d260ee44f9bd888a1576f19080d16163fbf4d08a7cffb86e50ee609fa
7
+ data.tar.gz: 66a6f60cd8a2e2a747805d93ee70ea25884f239d11470ea1ed80ada34317059bae96facfb04d94fd1ded57179798b6067c84aee4e07e730f3be208b27d003c94
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-artifactregistry_v1
2
2
 
3
+ ### v0.40.0 (2023-04-16)
4
+
5
+ * Regenerated from discovery document revision 20230411
6
+
7
+ ### v0.39.0 (2023-03-19)
8
+
9
+ * Regenerated from discovery document revision 20230313
10
+
3
11
  ### v0.38.0 (2023-02-15)
4
12
 
5
13
  * Regenerated using generator version 0.12.0
@@ -268,6 +268,28 @@ module Google
268
268
  end
269
269
  end
270
270
 
271
+ # DockerRepositoryConfig is docker related repository details. Provides
272
+ # additional configuration details for repositories of the docker format type.
273
+ class DockerRepositoryConfig
274
+ include Google::Apis::Core::Hashable
275
+
276
+ # The repository which enabled this flag prevents all tags from being modified,
277
+ # moved or deleted. This does not prevent tags from being created.
278
+ # Corresponds to the JSON property `immutableTags`
279
+ # @return [Boolean]
280
+ attr_accessor :immutable_tags
281
+ alias_method :immutable_tags?, :immutable_tags
282
+
283
+ def initialize(**args)
284
+ update!(**args)
285
+ end
286
+
287
+ # Update properties of this object
288
+ def update!(**args)
289
+ @immutable_tags = args[:immutable_tags] if args.key?(:immutable_tags)
290
+ end
291
+ end
292
+
271
293
  # A generic empty message that you can re-use to avoid defining duplicated empty
272
294
  # messages in your APIs. A typical example is to use it as the request or the
273
295
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -535,6 +557,51 @@ module Google
535
557
  end
536
558
  end
537
559
 
560
+ # Google Cloud Storage location where the artifacts currently reside.
561
+ class ImportGoogetArtifactsGcsSource
562
+ include Google::Apis::Core::Hashable
563
+
564
+ # Cloud Storage paths URI (e.g., gs://my_bucket/my_object).
565
+ # Corresponds to the JSON property `uris`
566
+ # @return [Array<String>]
567
+ attr_accessor :uris
568
+
569
+ # Supports URI wildcards for matching multiple objects from a single URI.
570
+ # Corresponds to the JSON property `useWildcards`
571
+ # @return [Boolean]
572
+ attr_accessor :use_wildcards
573
+ alias_method :use_wildcards?, :use_wildcards
574
+
575
+ def initialize(**args)
576
+ update!(**args)
577
+ end
578
+
579
+ # Update properties of this object
580
+ def update!(**args)
581
+ @uris = args[:uris] if args.key?(:uris)
582
+ @use_wildcards = args[:use_wildcards] if args.key?(:use_wildcards)
583
+ end
584
+ end
585
+
586
+ # The request to import new googet artifacts.
587
+ class ImportGoogetArtifactsRequest
588
+ include Google::Apis::Core::Hashable
589
+
590
+ # Google Cloud Storage location where the artifacts currently reside.
591
+ # Corresponds to the JSON property `gcsSource`
592
+ # @return [Google::Apis::ArtifactregistryV1::ImportGoogetArtifactsGcsSource]
593
+ attr_accessor :gcs_source
594
+
595
+ def initialize(**args)
596
+ update!(**args)
597
+ end
598
+
599
+ # Update properties of this object
600
+ def update!(**args)
601
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
602
+ end
603
+ end
604
+
538
605
  # Error information explaining why a package was not imported.
539
606
  class ImportYumArtifactsErrorInfo
540
607
  include Google::Apis::Core::Hashable
@@ -648,7 +715,7 @@ module Google
648
715
  end
649
716
  end
650
717
 
651
- # A detailed representation of a GooGet artifact.
718
+ # A detailed representation of a KFP artifact.
652
719
  class KfpArtifact
653
720
  include Google::Apis::Core::Hashable
654
721
 
@@ -1515,7 +1582,7 @@ module Google
1515
1582
  class Repository
1516
1583
  include Google::Apis::Core::Hashable
1517
1584
 
1518
- # The time when the repository was created.
1585
+ # Output only. The time when the repository was created.
1519
1586
  # Corresponds to the JSON property `createTime`
1520
1587
  # @return [String]
1521
1588
  attr_accessor :create_time
@@ -1525,6 +1592,12 @@ module Google
1525
1592
  # @return [String]
1526
1593
  attr_accessor :description
1527
1594
 
1595
+ # DockerRepositoryConfig is docker related repository details. Provides
1596
+ # additional configuration details for repositories of the docker format type.
1597
+ # Corresponds to the JSON property `dockerConfig`
1598
+ # @return [Google::Apis::ArtifactregistryV1::DockerRepositoryConfig]
1599
+ attr_accessor :docker_config
1600
+
1528
1601
  # The format of packages that are stored in the repository.
1529
1602
  # Corresponds to the JSON property `format`
1530
1603
  # @return [String]
@@ -1581,7 +1654,7 @@ module Google
1581
1654
  # @return [Fixnum]
1582
1655
  attr_accessor :size_bytes
1583
1656
 
1584
- # The time when the repository was last updated.
1657
+ # Output only. The time when the repository was last updated.
1585
1658
  # Corresponds to the JSON property `updateTime`
1586
1659
  # @return [String]
1587
1660
  attr_accessor :update_time
@@ -1599,6 +1672,7 @@ module Google
1599
1672
  def update!(**args)
1600
1673
  @create_time = args[:create_time] if args.key?(:create_time)
1601
1674
  @description = args[:description] if args.key?(:description)
1675
+ @docker_config = args[:docker_config] if args.key?(:docker_config)
1602
1676
  @format = args[:format] if args.key?(:format)
1603
1677
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
1604
1678
  @labels = args[:labels] if args.key?(:labels)
@@ -1834,6 +1908,39 @@ module Google
1834
1908
  end
1835
1909
  end
1836
1910
 
1911
+ # The response to upload an artifact.
1912
+ class UploadGoogetArtifactMediaResponse
1913
+ include Google::Apis::Core::Hashable
1914
+
1915
+ # This resource represents a long-running operation that is the result of a
1916
+ # network API call.
1917
+ # Corresponds to the JSON property `operation`
1918
+ # @return [Google::Apis::ArtifactregistryV1::Operation]
1919
+ attr_accessor :operation
1920
+
1921
+ def initialize(**args)
1922
+ update!(**args)
1923
+ end
1924
+
1925
+ # Update properties of this object
1926
+ def update!(**args)
1927
+ @operation = args[:operation] if args.key?(:operation)
1928
+ end
1929
+ end
1930
+
1931
+ # The request to upload an artifact.
1932
+ class UploadGoogetArtifactRequest
1933
+ include Google::Apis::Core::Hashable
1934
+
1935
+ def initialize(**args)
1936
+ update!(**args)
1937
+ end
1938
+
1939
+ # Update properties of this object
1940
+ def update!(**args)
1941
+ end
1942
+ end
1943
+
1837
1944
  # The response to upload an artifact.
1838
1945
  class UploadKfpArtifactMediaResponse
1839
1946
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ArtifactregistryV1
18
18
  # Version of the google-apis-artifactregistry_v1 gem
19
- GEM_VERSION = "0.38.0"
19
+ GEM_VERSION = "0.40.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230208"
25
+ REVISION = "20230411"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class DockerRepositoryConfig
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class Empty
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -106,6 +112,18 @@ module Google
106
112
  include Google::Apis::Core::JsonObjectSupport
107
113
  end
108
114
 
115
+ class ImportGoogetArtifactsGcsSource
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ImportGoogetArtifactsRequest
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
109
127
  class ImportYumArtifactsErrorInfo
110
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
129
 
@@ -346,6 +364,18 @@ module Google
346
364
  include Google::Apis::Core::JsonObjectSupport
347
365
  end
348
366
 
367
+ class UploadGoogetArtifactMediaResponse
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
373
+ class UploadGoogetArtifactRequest
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
349
379
  class UploadKfpArtifactMediaResponse
350
380
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
381
 
@@ -468,6 +498,13 @@ module Google
468
498
  end
469
499
  end
470
500
 
501
+ class DockerRepositoryConfig
502
+ # @private
503
+ class Representation < Google::Apis::Core::JsonRepresentation
504
+ property :immutable_tags, as: 'immutableTags'
505
+ end
506
+ end
507
+
471
508
  class Empty
472
509
  # @private
473
510
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -548,6 +585,22 @@ module Google
548
585
  end
549
586
  end
550
587
 
588
+ class ImportGoogetArtifactsGcsSource
589
+ # @private
590
+ class Representation < Google::Apis::Core::JsonRepresentation
591
+ collection :uris, as: 'uris'
592
+ property :use_wildcards, as: 'useWildcards'
593
+ end
594
+ end
595
+
596
+ class ImportGoogetArtifactsRequest
597
+ # @private
598
+ class Representation < Google::Apis::Core::JsonRepresentation
599
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::ArtifactregistryV1::ImportGoogetArtifactsGcsSource, decorator: Google::Apis::ArtifactregistryV1::ImportGoogetArtifactsGcsSource::Representation
600
+
601
+ end
602
+ end
603
+
551
604
  class ImportYumArtifactsErrorInfo
552
605
  # @private
553
606
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -831,6 +884,8 @@ module Google
831
884
  class Representation < Google::Apis::Core::JsonRepresentation
832
885
  property :create_time, as: 'createTime'
833
886
  property :description, as: 'description'
887
+ property :docker_config, as: 'dockerConfig', class: Google::Apis::ArtifactregistryV1::DockerRepositoryConfig, decorator: Google::Apis::ArtifactregistryV1::DockerRepositoryConfig::Representation
888
+
834
889
  property :format, as: 'format'
835
890
  property :kms_key_name, as: 'kmsKeyName'
836
891
  hash :labels, as: 'labels'
@@ -915,6 +970,20 @@ module Google
915
970
  end
916
971
  end
917
972
 
973
+ class UploadGoogetArtifactMediaResponse
974
+ # @private
975
+ class Representation < Google::Apis::Core::JsonRepresentation
976
+ property :operation, as: 'operation', class: Google::Apis::ArtifactregistryV1::Operation, decorator: Google::Apis::ArtifactregistryV1::Operation::Representation
977
+
978
+ end
979
+ end
980
+
981
+ class UploadGoogetArtifactRequest
982
+ # @private
983
+ class Representation < Google::Apis::Core::JsonRepresentation
984
+ end
985
+ end
986
+
918
987
  class UploadKfpArtifactMediaResponse
919
988
  # @private
920
989
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -806,6 +806,88 @@ module Google
806
806
  execute_or_queue_command(command, &block)
807
807
  end
808
808
 
809
+ # Imports GooGet artifacts. The returned Operation will complete once the
810
+ # resources are imported. Package, Version, and File resources are created based
811
+ # on the imported artifacts. Imported artifacts that conflict with existing
812
+ # resources are ignored.
813
+ # @param [String] parent
814
+ # The name of the parent resource where the artifacts will be imported.
815
+ # @param [Google::Apis::ArtifactregistryV1::ImportGoogetArtifactsRequest] import_googet_artifacts_request_object
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::ArtifactregistryV1::Operation] parsed result object
826
+ # @yieldparam err [StandardError] error object if request failed
827
+ #
828
+ # @return [Google::Apis::ArtifactregistryV1::Operation]
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 import_googet_artifacts(parent, import_googet_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
834
+ command = make_simple_command(:post, 'v1/{+parent}/googetArtifacts:import', options)
835
+ command.request_representation = Google::Apis::ArtifactregistryV1::ImportGoogetArtifactsRequest::Representation
836
+ command.request_object = import_googet_artifacts_request_object
837
+ command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
838
+ command.response_class = Google::Apis::ArtifactregistryV1::Operation
839
+ command.params['parent'] = parent unless parent.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
+
845
+ # Directly uploads a GooGet artifact. The returned Operation will complete once
846
+ # the resources are uploaded. Package, Version, and File resources are created
847
+ # based on the imported artifact. Imported artifacts that conflict with existing
848
+ # resources are ignored.
849
+ # @param [String] parent
850
+ # The name of the parent resource where the artifacts will be uploaded.
851
+ # @param [Google::Apis::ArtifactregistryV1::UploadGoogetArtifactRequest] upload_googet_artifact_request_object
852
+ # @param [String] fields
853
+ # Selector specifying which fields to include in a partial response.
854
+ # @param [String] quota_user
855
+ # Available to use for quota purposes for server-side applications. Can be any
856
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
857
+ # @param [IO, String] upload_source
858
+ # IO stream or filename containing content to upload
859
+ # @param [String] content_type
860
+ # Content type of the uploaded content.
861
+ # @param [Google::Apis::RequestOptions] options
862
+ # Request-specific options
863
+ #
864
+ # @yield [result, err] Result & error if block supplied
865
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::UploadGoogetArtifactMediaResponse] parsed result object
866
+ # @yieldparam err [StandardError] error object if request failed
867
+ #
868
+ # @return [Google::Apis::ArtifactregistryV1::UploadGoogetArtifactMediaResponse]
869
+ #
870
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
871
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
872
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
873
+ def upload_googet_artifact_goo_get_artifact(parent, upload_googet_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
874
+ if upload_source.nil?
875
+ command = make_simple_command(:post, 'v1/{+parent}/googetArtifacts:create', options)
876
+ else
877
+ command = make_upload_command(:post, 'v1/{+parent}/googetArtifacts:create', options)
878
+ command.upload_source = upload_source
879
+ command.upload_content_type = content_type
880
+ end
881
+ command.request_representation = Google::Apis::ArtifactregistryV1::UploadGoogetArtifactRequest::Representation
882
+ command.request_object = upload_googet_artifact_request_object
883
+ command.response_representation = Google::Apis::ArtifactregistryV1::UploadGoogetArtifactMediaResponse::Representation
884
+ command.response_class = Google::Apis::ArtifactregistryV1::UploadGoogetArtifactMediaResponse
885
+ command.params['parent'] = parent unless parent.nil?
886
+ command.query['fields'] = fields unless fields.nil?
887
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
888
+ execute_or_queue_command(command, &block)
889
+ end
890
+
809
891
  # Directly uploads a KFP artifact. The returned Operation will complete once the
810
892
  # resource is uploaded. Package, Version, and File resources will be created
811
893
  # based on the uploaded artifact. Uploaded artifacts that conflict with existing
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-artifactregistry_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.40.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-02-19 00:00:00.000000000 Z
11
+ date: 2023-04-23 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.38.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.40.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-artifactregistry_v1
63
63
  post_install_message:
64
64
  rdoc_options: []