google-apis-artifactregistry_v1 0.32.0 → 0.33.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: fc6d1aa4f794f696481b26be98d21d77f8d7fea24b4faa4b6b2e92f50f5d48ca
4
- data.tar.gz: c21e7a04dcefcf99cfd315d31059bfe3a1aa8c17b004c6e49e74380c9de9569a
3
+ metadata.gz: 765ac9401cecb8193b17581e38a874c4ba5b48fbd822793ab2452805793f1792
4
+ data.tar.gz: 4558923b57fd6c9e2b99ee6f4cfc77223059e309ad4e68b5c4f6080068c434bc
5
5
  SHA512:
6
- metadata.gz: 8c3b83200de53d03f5d85255fcaa29b4ee1b72f718aa374633a14556cbb3f1948a5b5a9b13b2fd976546fa318f137464e840a4f2776a43fd7382f158e70d19c1
7
- data.tar.gz: 29a47d89e209cbbfaf266c2be90ec983037756200814258d6eed15429f80fdede0aa649f13b9361885299dc7259feb10651a9cc7ef5e9124be86c85257d9760c
6
+ metadata.gz: 27d78e1cd9d88a4629e495101863908355c3b285345d1379a9d8787d21d7e785fdf8f6f9c7bc10edebf98ba20a3122bc8f49c532497646e12366c4c80d52f8d5
7
+ data.tar.gz: aa5da584f4a4637ce8a93631a0e0abe9526bdfce46d3452df46eb3615d6f4b314f0557a9a3554b7dd3e90ea38cacd461329776bd53d7131421aba66173205d07
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-artifactregistry_v1
2
2
 
3
+ ### v0.33.0 (2022-09-16)
4
+
5
+ * Regenerated from discovery document revision 20220910
6
+
3
7
  ### v0.32.0 (2022-09-01)
4
8
 
5
9
  * Regenerated from discovery document revision 20220829
@@ -621,6 +621,35 @@ module Google
621
621
  end
622
622
  end
623
623
 
624
+ # A detailed representation of a GooGet artifact.
625
+ class KfpArtifact
626
+ include Google::Apis::Core::Hashable
627
+
628
+ # Output only. Resource name of the KFP artifact. Since users don't directly
629
+ # interact with this resource, the name will be derived from the associated
630
+ # version. For example, when version = ".../versions/sha256:abcdef...", the name
631
+ # will be ".../kfpArtifacts/sha256:abcdef...".
632
+ # Corresponds to the JSON property `name`
633
+ # @return [String]
634
+ attr_accessor :name
635
+
636
+ # The version associated with the KFP artifact. Must follow the Semantic
637
+ # Versioning standard.
638
+ # Corresponds to the JSON property `version`
639
+ # @return [String]
640
+ attr_accessor :version
641
+
642
+ def initialize(**args)
643
+ update!(**args)
644
+ end
645
+
646
+ # Update properties of this object
647
+ def update!(**args)
648
+ @name = args[:name] if args.key?(:name)
649
+ @version = args[:version] if args.key?(:version)
650
+ end
651
+ end
652
+
624
653
  # The response from listing docker images.
625
654
  class ListDockerImagesResponse
626
655
  include Google::Apis::Core::Hashable
@@ -1651,6 +1680,64 @@ module Google
1651
1680
  end
1652
1681
  end
1653
1682
 
1683
+ # The response to upload an artifact.
1684
+ class UploadKfpArtifactMediaResponse
1685
+ include Google::Apis::Core::Hashable
1686
+
1687
+ # This resource represents a long-running operation that is the result of a
1688
+ # network API call.
1689
+ # Corresponds to the JSON property `operation`
1690
+ # @return [Google::Apis::ArtifactregistryV1::Operation]
1691
+ attr_accessor :operation
1692
+
1693
+ def initialize(**args)
1694
+ update!(**args)
1695
+ end
1696
+
1697
+ # Update properties of this object
1698
+ def update!(**args)
1699
+ @operation = args[:operation] if args.key?(:operation)
1700
+ end
1701
+ end
1702
+
1703
+ # The operation metadata for uploading KFP artifacts.
1704
+ class UploadKfpArtifactMetadata
1705
+ include Google::Apis::Core::Hashable
1706
+
1707
+ def initialize(**args)
1708
+ update!(**args)
1709
+ end
1710
+
1711
+ # Update properties of this object
1712
+ def update!(**args)
1713
+ end
1714
+ end
1715
+
1716
+ # The request to upload an artifact.
1717
+ class UploadKfpArtifactRequest
1718
+ include Google::Apis::Core::Hashable
1719
+
1720
+ # Description of the package version.
1721
+ # Corresponds to the JSON property `description`
1722
+ # @return [String]
1723
+ attr_accessor :description
1724
+
1725
+ # Tags to be created with the version.
1726
+ # Corresponds to the JSON property `tags`
1727
+ # @return [Array<String>]
1728
+ attr_accessor :tags
1729
+
1730
+ def initialize(**args)
1731
+ update!(**args)
1732
+ end
1733
+
1734
+ # Update properties of this object
1735
+ def update!(**args)
1736
+ @description = args[:description] if args.key?(:description)
1737
+ @tags = args[:tags] if args.key?(:tags)
1738
+ end
1739
+ end
1740
+
1654
1741
  # The response to upload an artifact.
1655
1742
  class UploadYumArtifactMediaResponse
1656
1743
  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.32.0"
19
+ GEM_VERSION = "0.33.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220829"
25
+ REVISION = "20220910"
26
26
  end
27
27
  end
28
28
  end
@@ -130,6 +130,12 @@ module Google
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
+ class KfpArtifact
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
133
139
  class ListDockerImagesResponse
134
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
141
 
@@ -310,6 +316,24 @@ module Google
310
316
  include Google::Apis::Core::JsonObjectSupport
311
317
  end
312
318
 
319
+ class UploadKfpArtifactMediaResponse
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
325
+ class UploadKfpArtifactMetadata
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
331
+ class UploadKfpArtifactRequest
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
313
337
  class UploadYumArtifactMediaResponse
314
338
  class Representation < Google::Apis::Core::JsonRepresentation; end
315
339
 
@@ -510,6 +534,14 @@ module Google
510
534
  end
511
535
  end
512
536
 
537
+ class KfpArtifact
538
+ # @private
539
+ class Representation < Google::Apis::Core::JsonRepresentation
540
+ property :name, as: 'name'
541
+ property :version, as: 'version'
542
+ end
543
+ end
544
+
513
545
  class ListDockerImagesResponse
514
546
  # @private
515
547
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -785,6 +817,28 @@ module Google
785
817
  end
786
818
  end
787
819
 
820
+ class UploadKfpArtifactMediaResponse
821
+ # @private
822
+ class Representation < Google::Apis::Core::JsonRepresentation
823
+ property :operation, as: 'operation', class: Google::Apis::ArtifactregistryV1::Operation, decorator: Google::Apis::ArtifactregistryV1::Operation::Representation
824
+
825
+ end
826
+ end
827
+
828
+ class UploadKfpArtifactMetadata
829
+ # @private
830
+ class Representation < Google::Apis::Core::JsonRepresentation
831
+ end
832
+ end
833
+
834
+ class UploadKfpArtifactRequest
835
+ # @private
836
+ class Representation < Google::Apis::Core::JsonRepresentation
837
+ property :description, as: 'description'
838
+ collection :tags, as: 'tags'
839
+ end
840
+ end
841
+
788
842
  class UploadYumArtifactMediaResponse
789
843
  # @private
790
844
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -738,6 +738,52 @@ module Google
738
738
  execute_or_queue_command(command, &block)
739
739
  end
740
740
 
741
+ # Directly uploads a KFP artifact. The returned Operation will complete once the
742
+ # resource is uploaded. Package, Version, and File resources will be created
743
+ # based on the uploaded artifact. Uploaded artifacts that conflict with existing
744
+ # resources will be overwritten.
745
+ # @param [String] parent
746
+ # The resource name of the repository where the KFP artifact will be uploaded.
747
+ # @param [Google::Apis::ArtifactregistryV1::UploadKfpArtifactRequest] upload_kfp_artifact_request_object
748
+ # @param [String] fields
749
+ # Selector specifying which fields to include in a partial response.
750
+ # @param [String] quota_user
751
+ # Available to use for quota purposes for server-side applications. Can be any
752
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
753
+ # @param [IO, String] upload_source
754
+ # IO stream or filename containing content to upload
755
+ # @param [String] content_type
756
+ # Content type of the uploaded content.
757
+ # @param [Google::Apis::RequestOptions] options
758
+ # Request-specific options
759
+ #
760
+ # @yield [result, err] Result & error if block supplied
761
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::UploadKfpArtifactMediaResponse] parsed result object
762
+ # @yieldparam err [StandardError] error object if request failed
763
+ #
764
+ # @return [Google::Apis::ArtifactregistryV1::UploadKfpArtifactMediaResponse]
765
+ #
766
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
767
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
768
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
769
+ def upload_kfp_artifact(parent, upload_kfp_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
770
+ if upload_source.nil?
771
+ command = make_simple_command(:post, 'v1/{+parent}/kfpArtifacts:create', options)
772
+ else
773
+ command = make_upload_command(:post, 'v1/{+parent}/kfpArtifacts:create', options)
774
+ command.upload_source = upload_source
775
+ command.upload_content_type = content_type
776
+ end
777
+ command.request_representation = Google::Apis::ArtifactregistryV1::UploadKfpArtifactRequest::Representation
778
+ command.request_object = upload_kfp_artifact_request_object
779
+ command.response_representation = Google::Apis::ArtifactregistryV1::UploadKfpArtifactMediaResponse::Representation
780
+ command.response_class = Google::Apis::ArtifactregistryV1::UploadKfpArtifactMediaResponse
781
+ command.params['parent'] = parent unless parent.nil?
782
+ command.query['fields'] = fields unless fields.nil?
783
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
784
+ execute_or_queue_command(command, &block)
785
+ end
786
+
741
787
  # Gets a maven artifact.
742
788
  # @param [String] name
743
789
  # Required. The name of the maven artifact.
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.32.0
4
+ version: 0.33.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: 2022-09-05 00:00:00.000000000 Z
11
+ date: 2022-09-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.7'
19
+ version: 0.7.2
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.7'
29
+ version: 0.7.2
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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.32.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.33.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: []