google-apis-artifactregistry_v1 0.66.0 → 0.68.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/artifactregistry_v1/classes.rb +245 -16
- data/lib/google/apis/artifactregistry_v1/gem_version.rb +2 -2
- data/lib/google/apis/artifactregistry_v1/representations.rb +98 -12
- data/lib/google/apis/artifactregistry_v1/service.rb +436 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acc1268565300a319a8c776839d28b136b08b4c7a0d01599b8a8637e94cb6343
|
4
|
+
data.tar.gz: 36ddee183dc40fd1d7ccbf0ef583c7d9d9ff87dcb4bf83b0ba6292993d110687
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df5a254a317b05833f91c1b2d6b150e65a9d4d19423935a4b9bbbcfa83dd745c08d795162c7fc2145d95b5c431c5a30c9d72af1fff9f038d0cb850dbeb9b6d7b
|
7
|
+
data.tar.gz: b015c6c17ec4999bf227b125007e118ff4ea995f812c842f4f481caf4674ecf97bddcf8997c0b5c4eeb5504b79db903d4069ca91f133506e87403687d3b25156
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-artifactregistry_v1
|
2
2
|
|
3
|
+
### v0.68.0 (2024-10-06)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241001
|
6
|
+
|
7
|
+
### v0.67.0 (2024-09-29)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240923
|
10
|
+
|
3
11
|
### v0.66.0 (2024-09-08)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20240903
|
@@ -100,6 +100,84 @@ module Google
|
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
103
|
+
# An Attachment refers to additional metadata that can be attached to artifacts
|
104
|
+
# in Artifact Registry. An attachment consists of one or more files.
|
105
|
+
class Attachment
|
106
|
+
include Google::Apis::Core::Hashable
|
107
|
+
|
108
|
+
# Optional. User annotations. These attributes can only be set and used by the
|
109
|
+
# user, and not by Artifact Registry. See https://google.aip.dev/128#annotations
|
110
|
+
# for more details such as format and size limitations.
|
111
|
+
# Corresponds to the JSON property `annotations`
|
112
|
+
# @return [Hash<String,String>]
|
113
|
+
attr_accessor :annotations
|
114
|
+
|
115
|
+
# The namespace this attachment belongs to. E.g. If an Attachment is created by
|
116
|
+
# artifact analysis, namespace is set to `artifactanalysis.googleapis.com`.
|
117
|
+
# Corresponds to the JSON property `attachmentNamespace`
|
118
|
+
# @return [String]
|
119
|
+
attr_accessor :attachment_namespace
|
120
|
+
|
121
|
+
# Output only. The time when the attachment was created.
|
122
|
+
# Corresponds to the JSON property `createTime`
|
123
|
+
# @return [String]
|
124
|
+
attr_accessor :create_time
|
125
|
+
|
126
|
+
# Required. The files that belong to this attachment. If the file ID part
|
127
|
+
# contains slashes, they are escaped. E.g. `projects/p1/locations/us-central1/
|
128
|
+
# repositories/repo1/files/sha:`.
|
129
|
+
# Corresponds to the JSON property `files`
|
130
|
+
# @return [Array<String>]
|
131
|
+
attr_accessor :files
|
132
|
+
|
133
|
+
# The name of the attachment. E.g. "projects/p1/locations/us/repositories/repo/
|
134
|
+
# attachments/sbom".
|
135
|
+
# Corresponds to the JSON property `name`
|
136
|
+
# @return [String]
|
137
|
+
attr_accessor :name
|
138
|
+
|
139
|
+
# Output only. The name of the OCI version that this attachment created. Only
|
140
|
+
# populated for Docker attachments. E.g. `projects/p1/locations/us-central1/
|
141
|
+
# repositories/repo1/packages/p1/versions/v1`.
|
142
|
+
# Corresponds to the JSON property `ociVersionName`
|
143
|
+
# @return [String]
|
144
|
+
attr_accessor :oci_version_name
|
145
|
+
|
146
|
+
# Required. The target the attachment is for, can be a Version, Package or
|
147
|
+
# Repository. E.g. "projects/p1/locations/us-central1/repositories/repo1/
|
148
|
+
# packages/p1/versions/v1".
|
149
|
+
# Corresponds to the JSON property `target`
|
150
|
+
# @return [String]
|
151
|
+
attr_accessor :target
|
152
|
+
|
153
|
+
# Type of Attachment. E.g. `application/vnd.spdx+json`
|
154
|
+
# Corresponds to the JSON property `type`
|
155
|
+
# @return [String]
|
156
|
+
attr_accessor :type
|
157
|
+
|
158
|
+
# Output only. The time when the attachment was last updated.
|
159
|
+
# Corresponds to the JSON property `updateTime`
|
160
|
+
# @return [String]
|
161
|
+
attr_accessor :update_time
|
162
|
+
|
163
|
+
def initialize(**args)
|
164
|
+
update!(**args)
|
165
|
+
end
|
166
|
+
|
167
|
+
# Update properties of this object
|
168
|
+
def update!(**args)
|
169
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
170
|
+
@attachment_namespace = args[:attachment_namespace] if args.key?(:attachment_namespace)
|
171
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
172
|
+
@files = args[:files] if args.key?(:files)
|
173
|
+
@name = args[:name] if args.key?(:name)
|
174
|
+
@oci_version_name = args[:oci_version_name] if args.key?(:oci_version_name)
|
175
|
+
@target = args[:target] if args.key?(:target)
|
176
|
+
@type = args[:type] if args.key?(:type)
|
177
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
103
181
|
# The metadata of an LRO from deleting multiple versions.
|
104
182
|
class BatchDeleteVersionsMetadata
|
105
183
|
include Google::Apis::Core::Hashable
|
@@ -368,7 +446,7 @@ module Google
|
|
368
446
|
class CommonRemoteRepository
|
369
447
|
include Google::Apis::Core::Hashable
|
370
448
|
|
371
|
-
# Required. A common public repository base for
|
449
|
+
# Required. A common public repository base for remote repository.
|
372
450
|
# Corresponds to the JSON property `uri`
|
373
451
|
# @return [String]
|
374
452
|
attr_accessor :uri
|
@@ -706,6 +784,11 @@ module Google
|
|
706
784
|
class GoogleDevtoolsArtifactregistryV1File
|
707
785
|
include Google::Apis::Core::Hashable
|
708
786
|
|
787
|
+
# Optional. Client specified annotations.
|
788
|
+
# Corresponds to the JSON property `annotations`
|
789
|
+
# @return [Hash<String,String>]
|
790
|
+
attr_accessor :annotations
|
791
|
+
|
709
792
|
# Output only. The time when the File was created.
|
710
793
|
# Corresponds to the JSON property `createTime`
|
711
794
|
# @return [String]
|
@@ -750,6 +833,7 @@ module Google
|
|
750
833
|
|
751
834
|
# Update properties of this object
|
752
835
|
def update!(**args)
|
836
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
753
837
|
@create_time = args[:create_time] if args.key?(:create_time)
|
754
838
|
@fetch_time = args[:fetch_time] if args.key?(:fetch_time)
|
755
839
|
@hashes = args[:hashes] if args.key?(:hashes)
|
@@ -932,6 +1016,66 @@ module Google
|
|
932
1016
|
end
|
933
1017
|
end
|
934
1018
|
|
1019
|
+
# A Rule applies to repository or package level. It defines the deny or allow
|
1020
|
+
# action of the operation when the conditions in the rule are met.
|
1021
|
+
class GoogleDevtoolsArtifactregistryV1Rule
|
1022
|
+
include Google::Apis::Core::Hashable
|
1023
|
+
|
1024
|
+
# The action this rule makes.
|
1025
|
+
# Corresponds to the JSON property `action`
|
1026
|
+
# @return [String]
|
1027
|
+
attr_accessor :action
|
1028
|
+
|
1029
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
1030
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
1031
|
+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
1032
|
+
# "Summary size limit" description: "Determines if a summary is less than 100
|
1033
|
+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
1034
|
+
# Requestor is owner" description: "Determines if requestor is the document
|
1035
|
+
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
1036
|
+
# Logic): title: "Public documents" description: "Determine whether the document
|
1037
|
+
# should be publicly visible" expression: "document.type != 'private' &&
|
1038
|
+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
1039
|
+
# string" description: "Create a notification string with a timestamp."
|
1040
|
+
# expression: "'New message received at ' + string(document.create_time)" The
|
1041
|
+
# exact variables and functions that may be referenced within an expression are
|
1042
|
+
# determined by the service that evaluates it. See the service documentation for
|
1043
|
+
# additional information.
|
1044
|
+
# Corresponds to the JSON property `condition`
|
1045
|
+
# @return [Google::Apis::ArtifactregistryV1::Expr]
|
1046
|
+
attr_accessor :condition
|
1047
|
+
|
1048
|
+
# The name of the rule, for example: "projects/p1/locations/us-central1/
|
1049
|
+
# repositories/repo1/rules/rule1".
|
1050
|
+
# Corresponds to the JSON property `name`
|
1051
|
+
# @return [String]
|
1052
|
+
attr_accessor :name
|
1053
|
+
|
1054
|
+
#
|
1055
|
+
# Corresponds to the JSON property `operation`
|
1056
|
+
# @return [String]
|
1057
|
+
attr_accessor :operation
|
1058
|
+
|
1059
|
+
# The package ID the rule applies to. If empty, this rule applies to all the
|
1060
|
+
# packages inside the repository.
|
1061
|
+
# Corresponds to the JSON property `packageId`
|
1062
|
+
# @return [String]
|
1063
|
+
attr_accessor :package_id
|
1064
|
+
|
1065
|
+
def initialize(**args)
|
1066
|
+
update!(**args)
|
1067
|
+
end
|
1068
|
+
|
1069
|
+
# Update properties of this object
|
1070
|
+
def update!(**args)
|
1071
|
+
@action = args[:action] if args.key?(:action)
|
1072
|
+
@condition = args[:condition] if args.key?(:condition)
|
1073
|
+
@name = args[:name] if args.key?(:name)
|
1074
|
+
@operation = args[:operation] if args.key?(:operation)
|
1075
|
+
@package_id = args[:package_id] if args.key?(:package_id)
|
1076
|
+
end
|
1077
|
+
end
|
1078
|
+
|
935
1079
|
# A hash of file content.
|
936
1080
|
class HashProp
|
937
1081
|
include Google::Apis::Core::Hashable
|
@@ -1326,6 +1470,32 @@ module Google
|
|
1326
1470
|
end
|
1327
1471
|
end
|
1328
1472
|
|
1473
|
+
# The response from listing attachments.
|
1474
|
+
class ListAttachmentsResponse
|
1475
|
+
include Google::Apis::Core::Hashable
|
1476
|
+
|
1477
|
+
# The Attachments returned.
|
1478
|
+
# Corresponds to the JSON property `attachments`
|
1479
|
+
# @return [Array<Google::Apis::ArtifactregistryV1::Attachment>]
|
1480
|
+
attr_accessor :attachments
|
1481
|
+
|
1482
|
+
# The token to retrieve the next page of attachments, or empty if there are no
|
1483
|
+
# more attachments to return.
|
1484
|
+
# Corresponds to the JSON property `nextPageToken`
|
1485
|
+
# @return [String]
|
1486
|
+
attr_accessor :next_page_token
|
1487
|
+
|
1488
|
+
def initialize(**args)
|
1489
|
+
update!(**args)
|
1490
|
+
end
|
1491
|
+
|
1492
|
+
# Update properties of this object
|
1493
|
+
def update!(**args)
|
1494
|
+
@attachments = args[:attachments] if args.key?(:attachments)
|
1495
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1496
|
+
end
|
1497
|
+
end
|
1498
|
+
|
1329
1499
|
# The response from listing docker images.
|
1330
1500
|
class ListDockerImagesResponse
|
1331
1501
|
include Google::Apis::Core::Hashable
|
@@ -1533,6 +1703,32 @@ module Google
|
|
1533
1703
|
end
|
1534
1704
|
end
|
1535
1705
|
|
1706
|
+
# The response from listing rules.
|
1707
|
+
class ListRulesResponse
|
1708
|
+
include Google::Apis::Core::Hashable
|
1709
|
+
|
1710
|
+
# The token to retrieve the next page of rules, or empty if there are no more
|
1711
|
+
# rules to return.
|
1712
|
+
# Corresponds to the JSON property `nextPageToken`
|
1713
|
+
# @return [String]
|
1714
|
+
attr_accessor :next_page_token
|
1715
|
+
|
1716
|
+
# The rules returned.
|
1717
|
+
# Corresponds to the JSON property `rules`
|
1718
|
+
# @return [Array<Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule>]
|
1719
|
+
attr_accessor :rules
|
1720
|
+
|
1721
|
+
def initialize(**args)
|
1722
|
+
update!(**args)
|
1723
|
+
end
|
1724
|
+
|
1725
|
+
# Update properties of this object
|
1726
|
+
def update!(**args)
|
1727
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1728
|
+
@rules = args[:rules] if args.key?(:rules)
|
1729
|
+
end
|
1730
|
+
end
|
1731
|
+
|
1536
1732
|
# The response from listing tags.
|
1537
1733
|
class ListTagsResponse
|
1538
1734
|
include Google::Apis::Core::Hashable
|
@@ -2067,19 +2263,6 @@ module Google
|
|
2067
2263
|
end
|
2068
2264
|
end
|
2069
2265
|
|
2070
|
-
# The metadata for promote artifact long running operation.
|
2071
|
-
class PromoteArtifactMetadata
|
2072
|
-
include Google::Apis::Core::Hashable
|
2073
|
-
|
2074
|
-
def initialize(**args)
|
2075
|
-
update!(**args)
|
2076
|
-
end
|
2077
|
-
|
2078
|
-
# Update properties of this object
|
2079
|
-
def update!(**args)
|
2080
|
-
end
|
2081
|
-
end
|
2082
|
-
|
2083
2266
|
# PythonPackage represents a python artifact.
|
2084
2267
|
class PythonPackage
|
2085
2268
|
include Google::Apis::Core::Hashable
|
@@ -2599,6 +2782,46 @@ module Google
|
|
2599
2782
|
end
|
2600
2783
|
end
|
2601
2784
|
|
2785
|
+
# The response to upload a generic artifact.
|
2786
|
+
class UploadFileMediaResponse
|
2787
|
+
include Google::Apis::Core::Hashable
|
2788
|
+
|
2789
|
+
# This resource represents a long-running operation that is the result of a
|
2790
|
+
# network API call.
|
2791
|
+
# Corresponds to the JSON property `operation`
|
2792
|
+
# @return [Google::Apis::ArtifactregistryV1::Operation]
|
2793
|
+
attr_accessor :operation
|
2794
|
+
|
2795
|
+
def initialize(**args)
|
2796
|
+
update!(**args)
|
2797
|
+
end
|
2798
|
+
|
2799
|
+
# Update properties of this object
|
2800
|
+
def update!(**args)
|
2801
|
+
@operation = args[:operation] if args.key?(:operation)
|
2802
|
+
end
|
2803
|
+
end
|
2804
|
+
|
2805
|
+
# The request to upload a file.
|
2806
|
+
class UploadFileRequest
|
2807
|
+
include Google::Apis::Core::Hashable
|
2808
|
+
|
2809
|
+
# Optional. The ID of the file. If left empty will default to sha256 digest of
|
2810
|
+
# the content uploaded.
|
2811
|
+
# Corresponds to the JSON property `fileId`
|
2812
|
+
# @return [String]
|
2813
|
+
attr_accessor :file_id
|
2814
|
+
|
2815
|
+
def initialize(**args)
|
2816
|
+
update!(**args)
|
2817
|
+
end
|
2818
|
+
|
2819
|
+
# Update properties of this object
|
2820
|
+
def update!(**args)
|
2821
|
+
@file_id = args[:file_id] if args.key?(:file_id)
|
2822
|
+
end
|
2823
|
+
end
|
2824
|
+
|
2602
2825
|
# The response to upload a generic artifact.
|
2603
2826
|
class UploadGenericArtifactMediaResponse
|
2604
2827
|
include Google::Apis::Core::Hashable
|
@@ -3023,6 +3246,11 @@ module Google
|
|
3023
3246
|
class Version
|
3024
3247
|
include Google::Apis::Core::Hashable
|
3025
3248
|
|
3249
|
+
# Optional. Client specified annotations.
|
3250
|
+
# Corresponds to the JSON property `annotations`
|
3251
|
+
# @return [Hash<String,String>]
|
3252
|
+
attr_accessor :annotations
|
3253
|
+
|
3026
3254
|
# The time when the version was created.
|
3027
3255
|
# Corresponds to the JSON property `createTime`
|
3028
3256
|
# @return [String]
|
@@ -3040,8 +3268,8 @@ module Google
|
|
3040
3268
|
# @return [Hash<String,Object>]
|
3041
3269
|
attr_accessor :metadata
|
3042
3270
|
|
3043
|
-
# The name of the version, for example:
|
3044
|
-
# repositories/repo1/packages/pkg1/versions/art1
|
3271
|
+
# The name of the version, for example: `projects/p1/locations/us-central1/
|
3272
|
+
# repositories/repo1/packages/pkg1/versions/art1`. If the package or version ID
|
3045
3273
|
# parts contain slashes, the slashes are escaped.
|
3046
3274
|
# Corresponds to the JSON property `name`
|
3047
3275
|
# @return [String]
|
@@ -3064,6 +3292,7 @@ module Google
|
|
3064
3292
|
|
3065
3293
|
# Update properties of this object
|
3066
3294
|
def update!(**args)
|
3295
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
3067
3296
|
@create_time = args[:create_time] if args.key?(:create_time)
|
3068
3297
|
@description = args[:description] if args.key?(:description)
|
3069
3298
|
@metadata = args[:metadata] if args.key?(:metadata)
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.68.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241001"
|
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 Attachment
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
37
43
|
class BatchDeleteVersionsMetadata
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
45
|
|
@@ -184,6 +190,12 @@ module Google
|
|
184
190
|
include Google::Apis::Core::JsonObjectSupport
|
185
191
|
end
|
186
192
|
|
193
|
+
class GoogleDevtoolsArtifactregistryV1Rule
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
187
199
|
class HashProp
|
188
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
201
|
|
@@ -286,6 +298,12 @@ module Google
|
|
286
298
|
include Google::Apis::Core::JsonObjectSupport
|
287
299
|
end
|
288
300
|
|
301
|
+
class ListAttachmentsResponse
|
302
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
303
|
+
|
304
|
+
include Google::Apis::Core::JsonObjectSupport
|
305
|
+
end
|
306
|
+
|
289
307
|
class ListDockerImagesResponse
|
290
308
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
309
|
|
@@ -334,6 +352,12 @@ module Google
|
|
334
352
|
include Google::Apis::Core::JsonObjectSupport
|
335
353
|
end
|
336
354
|
|
355
|
+
class ListRulesResponse
|
356
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
|
+
|
358
|
+
include Google::Apis::Core::JsonObjectSupport
|
359
|
+
end
|
360
|
+
|
337
361
|
class ListTagsResponse
|
338
362
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
363
|
|
@@ -412,12 +436,6 @@ module Google
|
|
412
436
|
include Google::Apis::Core::JsonObjectSupport
|
413
437
|
end
|
414
438
|
|
415
|
-
class PromoteArtifactMetadata
|
416
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
417
|
-
|
418
|
-
include Google::Apis::Core::JsonObjectSupport
|
419
|
-
end
|
420
|
-
|
421
439
|
class PythonPackage
|
422
440
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
441
|
|
@@ -496,6 +514,18 @@ module Google
|
|
496
514
|
include Google::Apis::Core::JsonObjectSupport
|
497
515
|
end
|
498
516
|
|
517
|
+
class UploadFileMediaResponse
|
518
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
519
|
+
|
520
|
+
include Google::Apis::Core::JsonObjectSupport
|
521
|
+
end
|
522
|
+
|
523
|
+
class UploadFileRequest
|
524
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
525
|
+
|
526
|
+
include Google::Apis::Core::JsonObjectSupport
|
527
|
+
end
|
528
|
+
|
499
529
|
class UploadGenericArtifactMediaResponse
|
500
530
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
501
531
|
|
@@ -668,6 +698,21 @@ module Google
|
|
668
698
|
end
|
669
699
|
end
|
670
700
|
|
701
|
+
class Attachment
|
702
|
+
# @private
|
703
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
704
|
+
hash :annotations, as: 'annotations'
|
705
|
+
property :attachment_namespace, as: 'attachmentNamespace'
|
706
|
+
property :create_time, as: 'createTime'
|
707
|
+
collection :files, as: 'files'
|
708
|
+
property :name, as: 'name'
|
709
|
+
property :oci_version_name, as: 'ociVersionName'
|
710
|
+
property :target, as: 'target'
|
711
|
+
property :type, as: 'type'
|
712
|
+
property :update_time, as: 'updateTime'
|
713
|
+
end
|
714
|
+
end
|
715
|
+
|
671
716
|
class BatchDeleteVersionsMetadata
|
672
717
|
# @private
|
673
718
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -816,6 +861,7 @@ module Google
|
|
816
861
|
class GoogleDevtoolsArtifactregistryV1File
|
817
862
|
# @private
|
818
863
|
class Representation < Google::Apis::Core::JsonRepresentation
|
864
|
+
hash :annotations, as: 'annotations'
|
819
865
|
property :create_time, as: 'createTime'
|
820
866
|
property :fetch_time, as: 'fetchTime'
|
821
867
|
collection :hashes, as: 'hashes', class: Google::Apis::ArtifactregistryV1::HashProp, decorator: Google::Apis::ArtifactregistryV1::HashProp::Representation
|
@@ -885,6 +931,18 @@ module Google
|
|
885
931
|
end
|
886
932
|
end
|
887
933
|
|
934
|
+
class GoogleDevtoolsArtifactregistryV1Rule
|
935
|
+
# @private
|
936
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
937
|
+
property :action, as: 'action'
|
938
|
+
property :condition, as: 'condition', class: Google::Apis::ArtifactregistryV1::Expr, decorator: Google::Apis::ArtifactregistryV1::Expr::Representation
|
939
|
+
|
940
|
+
property :name, as: 'name'
|
941
|
+
property :operation, as: 'operation'
|
942
|
+
property :package_id, as: 'packageId'
|
943
|
+
end
|
944
|
+
end
|
945
|
+
|
888
946
|
class HashProp
|
889
947
|
# @private
|
890
948
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1027,6 +1085,15 @@ module Google
|
|
1027
1085
|
end
|
1028
1086
|
end
|
1029
1087
|
|
1088
|
+
class ListAttachmentsResponse
|
1089
|
+
# @private
|
1090
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1091
|
+
collection :attachments, as: 'attachments', class: Google::Apis::ArtifactregistryV1::Attachment, decorator: Google::Apis::ArtifactregistryV1::Attachment::Representation
|
1092
|
+
|
1093
|
+
property :next_page_token, as: 'nextPageToken'
|
1094
|
+
end
|
1095
|
+
end
|
1096
|
+
|
1030
1097
|
class ListDockerImagesResponse
|
1031
1098
|
# @private
|
1032
1099
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1099,6 +1166,15 @@ module Google
|
|
1099
1166
|
end
|
1100
1167
|
end
|
1101
1168
|
|
1169
|
+
class ListRulesResponse
|
1170
|
+
# @private
|
1171
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1172
|
+
property :next_page_token, as: 'nextPageToken'
|
1173
|
+
collection :rules, as: 'rules', class: Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule, decorator: Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule::Representation
|
1174
|
+
|
1175
|
+
end
|
1176
|
+
end
|
1177
|
+
|
1102
1178
|
class ListTagsResponse
|
1103
1179
|
# @private
|
1104
1180
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1227,12 +1303,6 @@ module Google
|
|
1227
1303
|
end
|
1228
1304
|
end
|
1229
1305
|
|
1230
|
-
class PromoteArtifactMetadata
|
1231
|
-
# @private
|
1232
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1233
|
-
end
|
1234
|
-
end
|
1235
|
-
|
1236
1306
|
class PythonPackage
|
1237
1307
|
# @private
|
1238
1308
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1374,6 +1444,21 @@ module Google
|
|
1374
1444
|
end
|
1375
1445
|
end
|
1376
1446
|
|
1447
|
+
class UploadFileMediaResponse
|
1448
|
+
# @private
|
1449
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1450
|
+
property :operation, as: 'operation', class: Google::Apis::ArtifactregistryV1::Operation, decorator: Google::Apis::ArtifactregistryV1::Operation::Representation
|
1451
|
+
|
1452
|
+
end
|
1453
|
+
end
|
1454
|
+
|
1455
|
+
class UploadFileRequest
|
1456
|
+
# @private
|
1457
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1458
|
+
property :file_id, as: 'fileId'
|
1459
|
+
end
|
1460
|
+
end
|
1461
|
+
|
1377
1462
|
class UploadGenericArtifactMediaResponse
|
1378
1463
|
# @private
|
1379
1464
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1531,6 +1616,7 @@ module Google
|
|
1531
1616
|
class Version
|
1532
1617
|
# @private
|
1533
1618
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1619
|
+
hash :annotations, as: 'annotations'
|
1534
1620
|
property :create_time, as: 'createTime'
|
1535
1621
|
property :description, as: 'description'
|
1536
1622
|
hash :metadata, as: 'metadata'
|
@@ -677,6 +677,146 @@ module Google
|
|
677
677
|
execute_or_queue_command(command, &block)
|
678
678
|
end
|
679
679
|
|
680
|
+
# Creates an attachment. The returned Operation will finish once the attachment
|
681
|
+
# has been created. Its response will be the created attachment.
|
682
|
+
# @param [String] parent
|
683
|
+
# Required. The name of the parent resource where the attachment will be created.
|
684
|
+
# @param [Google::Apis::ArtifactregistryV1::Attachment] attachment_object
|
685
|
+
# @param [String] attachment_id
|
686
|
+
# Required. The attachment id to use for this attachment.
|
687
|
+
# @param [String] fields
|
688
|
+
# Selector specifying which fields to include in a partial response.
|
689
|
+
# @param [String] quota_user
|
690
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
691
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
692
|
+
# @param [Google::Apis::RequestOptions] options
|
693
|
+
# Request-specific options
|
694
|
+
#
|
695
|
+
# @yield [result, err] Result & error if block supplied
|
696
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object
|
697
|
+
# @yieldparam err [StandardError] error object if request failed
|
698
|
+
#
|
699
|
+
# @return [Google::Apis::ArtifactregistryV1::Operation]
|
700
|
+
#
|
701
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
702
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
703
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
704
|
+
def create_project_location_repository_attachment(parent, attachment_object = nil, attachment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
705
|
+
command = make_simple_command(:post, 'v1/{+parent}/attachments', options)
|
706
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::Attachment::Representation
|
707
|
+
command.request_object = attachment_object
|
708
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
|
709
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Operation
|
710
|
+
command.params['parent'] = parent unless parent.nil?
|
711
|
+
command.query['attachmentId'] = attachment_id unless attachment_id.nil?
|
712
|
+
command.query['fields'] = fields unless fields.nil?
|
713
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
714
|
+
execute_or_queue_command(command, &block)
|
715
|
+
end
|
716
|
+
|
717
|
+
# Deletes an attachment. The returned Operation will finish once the attachments
|
718
|
+
# has been deleted. It will not have any Operation metadata and will return a `
|
719
|
+
# google.protobuf.Empty` response.
|
720
|
+
# @param [String] name
|
721
|
+
# Required. The name of the attachment to delete.
|
722
|
+
# @param [String] fields
|
723
|
+
# Selector specifying which fields to include in a partial response.
|
724
|
+
# @param [String] quota_user
|
725
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
726
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
727
|
+
# @param [Google::Apis::RequestOptions] options
|
728
|
+
# Request-specific options
|
729
|
+
#
|
730
|
+
# @yield [result, err] Result & error if block supplied
|
731
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object
|
732
|
+
# @yieldparam err [StandardError] error object if request failed
|
733
|
+
#
|
734
|
+
# @return [Google::Apis::ArtifactregistryV1::Operation]
|
735
|
+
#
|
736
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
737
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
738
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
739
|
+
def delete_project_location_repository_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
|
740
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
741
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
|
742
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Operation
|
743
|
+
command.params['name'] = name unless name.nil?
|
744
|
+
command.query['fields'] = fields unless fields.nil?
|
745
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
746
|
+
execute_or_queue_command(command, &block)
|
747
|
+
end
|
748
|
+
|
749
|
+
# Gets an attachment.
|
750
|
+
# @param [String] name
|
751
|
+
# Required. The name of the attachment to retrieve.
|
752
|
+
# @param [String] fields
|
753
|
+
# Selector specifying which fields to include in a partial response.
|
754
|
+
# @param [String] quota_user
|
755
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
756
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
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::Attachment] parsed result object
|
762
|
+
# @yieldparam err [StandardError] error object if request failed
|
763
|
+
#
|
764
|
+
# @return [Google::Apis::ArtifactregistryV1::Attachment]
|
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 get_project_location_repository_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
|
770
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
771
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Attachment::Representation
|
772
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Attachment
|
773
|
+
command.params['name'] = name unless name.nil?
|
774
|
+
command.query['fields'] = fields unless fields.nil?
|
775
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
776
|
+
execute_or_queue_command(command, &block)
|
777
|
+
end
|
778
|
+
|
779
|
+
# Lists attachments.
|
780
|
+
# @param [String] parent
|
781
|
+
# Required. The name of the parent resource whose attachments will be listed.
|
782
|
+
# @param [String] filter
|
783
|
+
# Optional. An expression for filtering the results of the request. Filter rules
|
784
|
+
# are case insensitive. The fields eligible for filtering are: * `target` * `
|
785
|
+
# type` * `attachment_namespace`
|
786
|
+
# @param [Fixnum] page_size
|
787
|
+
# The maximum number of attachments to return. Maximum page size is 1,000.
|
788
|
+
# @param [String] page_token
|
789
|
+
# The next_page_token value returned from a previous list request, if any.
|
790
|
+
# @param [String] fields
|
791
|
+
# Selector specifying which fields to include in a partial response.
|
792
|
+
# @param [String] quota_user
|
793
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
794
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
795
|
+
# @param [Google::Apis::RequestOptions] options
|
796
|
+
# Request-specific options
|
797
|
+
#
|
798
|
+
# @yield [result, err] Result & error if block supplied
|
799
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::ListAttachmentsResponse] parsed result object
|
800
|
+
# @yieldparam err [StandardError] error object if request failed
|
801
|
+
#
|
802
|
+
# @return [Google::Apis::ArtifactregistryV1::ListAttachmentsResponse]
|
803
|
+
#
|
804
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
805
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
806
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
807
|
+
def list_project_location_repository_attachments(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
808
|
+
command = make_simple_command(:get, 'v1/{+parent}/attachments', options)
|
809
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::ListAttachmentsResponse::Representation
|
810
|
+
command.response_class = Google::Apis::ArtifactregistryV1::ListAttachmentsResponse
|
811
|
+
command.params['parent'] = parent unless parent.nil?
|
812
|
+
command.query['filter'] = filter unless filter.nil?
|
813
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
814
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
815
|
+
command.query['fields'] = fields unless fields.nil?
|
816
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
817
|
+
execute_or_queue_command(command, &block)
|
818
|
+
end
|
819
|
+
|
680
820
|
# Gets a docker image.
|
681
821
|
# @param [String] name
|
682
822
|
# Required. The name of the docker images.
|
@@ -914,6 +1054,90 @@ module Google
|
|
914
1054
|
execute_or_queue_command(command, &block)
|
915
1055
|
end
|
916
1056
|
|
1057
|
+
# Updates a file.
|
1058
|
+
# @param [String] name
|
1059
|
+
# The name of the file, for example: `projects/p1/locations/us-central1/
|
1060
|
+
# repositories/repo1/files/a%2Fb%2Fc.txt`. If the file ID part contains slashes,
|
1061
|
+
# they are escaped.
|
1062
|
+
# @param [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File] google_devtools_artifactregistry_v1_file_object
|
1063
|
+
# @param [String] update_mask
|
1064
|
+
# Required. The update mask applies to the resource. For the `FieldMask`
|
1065
|
+
# definition, see https://developers.google.com/protocol-buffers/docs/reference/
|
1066
|
+
# google.protobuf#fieldmask
|
1067
|
+
# @param [String] fields
|
1068
|
+
# Selector specifying which fields to include in a partial response.
|
1069
|
+
# @param [String] quota_user
|
1070
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1071
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1072
|
+
# @param [Google::Apis::RequestOptions] options
|
1073
|
+
# Request-specific options
|
1074
|
+
#
|
1075
|
+
# @yield [result, err] Result & error if block supplied
|
1076
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File] parsed result object
|
1077
|
+
# @yieldparam err [StandardError] error object if request failed
|
1078
|
+
#
|
1079
|
+
# @return [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File]
|
1080
|
+
#
|
1081
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1082
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1083
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1084
|
+
def patch_project_location_repository_file(name, google_devtools_artifactregistry_v1_file_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1085
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1086
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File::Representation
|
1087
|
+
command.request_object = google_devtools_artifactregistry_v1_file_object
|
1088
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File::Representation
|
1089
|
+
command.response_class = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File
|
1090
|
+
command.params['name'] = name unless name.nil?
|
1091
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1092
|
+
command.query['fields'] = fields unless fields.nil?
|
1093
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1094
|
+
execute_or_queue_command(command, &block)
|
1095
|
+
end
|
1096
|
+
|
1097
|
+
# Directly uploads a file to a repository. The returned Operation will complete
|
1098
|
+
# once the resources are uploaded.
|
1099
|
+
# @param [String] parent
|
1100
|
+
# Required. The resource name of the repository where the file will be uploaded.
|
1101
|
+
# @param [Google::Apis::ArtifactregistryV1::UploadFileRequest] upload_file_request_object
|
1102
|
+
# @param [String] fields
|
1103
|
+
# Selector specifying which fields to include in a partial response.
|
1104
|
+
# @param [String] quota_user
|
1105
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1106
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1107
|
+
# @param [IO, String] upload_source
|
1108
|
+
# IO stream or filename containing content to upload
|
1109
|
+
# @param [String] content_type
|
1110
|
+
# Content type of the uploaded content.
|
1111
|
+
# @param [Google::Apis::RequestOptions] options
|
1112
|
+
# Request-specific options
|
1113
|
+
#
|
1114
|
+
# @yield [result, err] Result & error if block supplied
|
1115
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::UploadFileMediaResponse] parsed result object
|
1116
|
+
# @yieldparam err [StandardError] error object if request failed
|
1117
|
+
#
|
1118
|
+
# @return [Google::Apis::ArtifactregistryV1::UploadFileMediaResponse]
|
1119
|
+
#
|
1120
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1121
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1122
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1123
|
+
def upload_file(parent, upload_file_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
1124
|
+
if upload_source.nil?
|
1125
|
+
command = make_simple_command(:post, 'v1/{+parent}/files:upload', options)
|
1126
|
+
else
|
1127
|
+
command = make_upload_command(:post, 'v1/{+parent}/files:upload', options)
|
1128
|
+
command.upload_source = upload_source
|
1129
|
+
command.upload_content_type = content_type
|
1130
|
+
end
|
1131
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::UploadFileRequest::Representation
|
1132
|
+
command.request_object = upload_file_request_object
|
1133
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::UploadFileMediaResponse::Representation
|
1134
|
+
command.response_class = Google::Apis::ArtifactregistryV1::UploadFileMediaResponse
|
1135
|
+
command.params['parent'] = parent unless parent.nil?
|
1136
|
+
command.query['fields'] = fields unless fields.nil?
|
1137
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1138
|
+
execute_or_queue_command(command, &block)
|
1139
|
+
end
|
1140
|
+
|
917
1141
|
# Directly uploads a Generic artifact. The returned operation will complete once
|
918
1142
|
# the resources are uploaded. Package, version, and file resources are created
|
919
1143
|
# based on the uploaded artifact. Uploaded artifacts that conflict with existing
|
@@ -1795,6 +2019,46 @@ module Google
|
|
1795
2019
|
execute_or_queue_command(command, &block)
|
1796
2020
|
end
|
1797
2021
|
|
2022
|
+
# Updates a version.
|
2023
|
+
# @param [String] name
|
2024
|
+
# The name of the version, for example: `projects/p1/locations/us-central1/
|
2025
|
+
# repositories/repo1/packages/pkg1/versions/art1`. If the package or version ID
|
2026
|
+
# parts contain slashes, the slashes are escaped.
|
2027
|
+
# @param [Google::Apis::ArtifactregistryV1::Version] version_object
|
2028
|
+
# @param [String] update_mask
|
2029
|
+
# The update mask applies to the resource. For the `FieldMask` definition, see
|
2030
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
2031
|
+
# fieldmask
|
2032
|
+
# @param [String] fields
|
2033
|
+
# Selector specifying which fields to include in a partial response.
|
2034
|
+
# @param [String] quota_user
|
2035
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2036
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2037
|
+
# @param [Google::Apis::RequestOptions] options
|
2038
|
+
# Request-specific options
|
2039
|
+
#
|
2040
|
+
# @yield [result, err] Result & error if block supplied
|
2041
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Version] parsed result object
|
2042
|
+
# @yieldparam err [StandardError] error object if request failed
|
2043
|
+
#
|
2044
|
+
# @return [Google::Apis::ArtifactregistryV1::Version]
|
2045
|
+
#
|
2046
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2047
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2048
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2049
|
+
def patch_project_location_repository_package_version(name, version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2050
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
2051
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::Version::Representation
|
2052
|
+
command.request_object = version_object
|
2053
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Version::Representation
|
2054
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Version
|
2055
|
+
command.params['name'] = name unless name.nil?
|
2056
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2057
|
+
command.query['fields'] = fields unless fields.nil?
|
2058
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2059
|
+
execute_or_queue_command(command, &block)
|
2060
|
+
end
|
2061
|
+
|
1798
2062
|
# Gets a python package.
|
1799
2063
|
# @param [String] name
|
1800
2064
|
# Required. The name of the python package.
|
@@ -1861,6 +2125,178 @@ module Google
|
|
1861
2125
|
execute_or_queue_command(command, &block)
|
1862
2126
|
end
|
1863
2127
|
|
2128
|
+
# Creates a rule.
|
2129
|
+
# @param [String] parent
|
2130
|
+
# Required. The name of the parent resource where the rule will be created.
|
2131
|
+
# @param [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule] google_devtools_artifactregistry_v1_rule_object
|
2132
|
+
# @param [String] rule_id
|
2133
|
+
# The rule id to use for this repository.
|
2134
|
+
# @param [String] fields
|
2135
|
+
# Selector specifying which fields to include in a partial response.
|
2136
|
+
# @param [String] quota_user
|
2137
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2138
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2139
|
+
# @param [Google::Apis::RequestOptions] options
|
2140
|
+
# Request-specific options
|
2141
|
+
#
|
2142
|
+
# @yield [result, err] Result & error if block supplied
|
2143
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule] parsed result object
|
2144
|
+
# @yieldparam err [StandardError] error object if request failed
|
2145
|
+
#
|
2146
|
+
# @return [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule]
|
2147
|
+
#
|
2148
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2149
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2150
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2151
|
+
def create_project_location_repository_rule(parent, google_devtools_artifactregistry_v1_rule_object = nil, rule_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2152
|
+
command = make_simple_command(:post, 'v1/{+parent}/rules', options)
|
2153
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule::Representation
|
2154
|
+
command.request_object = google_devtools_artifactregistry_v1_rule_object
|
2155
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule::Representation
|
2156
|
+
command.response_class = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule
|
2157
|
+
command.params['parent'] = parent unless parent.nil?
|
2158
|
+
command.query['ruleId'] = rule_id unless rule_id.nil?
|
2159
|
+
command.query['fields'] = fields unless fields.nil?
|
2160
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2161
|
+
execute_or_queue_command(command, &block)
|
2162
|
+
end
|
2163
|
+
|
2164
|
+
# Deletes a rule.
|
2165
|
+
# @param [String] name
|
2166
|
+
# Required. The name of the rule to delete.
|
2167
|
+
# @param [String] fields
|
2168
|
+
# Selector specifying which fields to include in a partial response.
|
2169
|
+
# @param [String] quota_user
|
2170
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2171
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2172
|
+
# @param [Google::Apis::RequestOptions] options
|
2173
|
+
# Request-specific options
|
2174
|
+
#
|
2175
|
+
# @yield [result, err] Result & error if block supplied
|
2176
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Empty] parsed result object
|
2177
|
+
# @yieldparam err [StandardError] error object if request failed
|
2178
|
+
#
|
2179
|
+
# @return [Google::Apis::ArtifactregistryV1::Empty]
|
2180
|
+
#
|
2181
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2182
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2183
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2184
|
+
def delete_project_location_repository_rule(name, fields: nil, quota_user: nil, options: nil, &block)
|
2185
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
2186
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Empty::Representation
|
2187
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Empty
|
2188
|
+
command.params['name'] = name unless name.nil?
|
2189
|
+
command.query['fields'] = fields unless fields.nil?
|
2190
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2191
|
+
execute_or_queue_command(command, &block)
|
2192
|
+
end
|
2193
|
+
|
2194
|
+
# Gets a rule.
|
2195
|
+
# @param [String] name
|
2196
|
+
# Required. The name of the rule to retrieve.
|
2197
|
+
# @param [String] fields
|
2198
|
+
# Selector specifying which fields to include in a partial response.
|
2199
|
+
# @param [String] quota_user
|
2200
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2201
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2202
|
+
# @param [Google::Apis::RequestOptions] options
|
2203
|
+
# Request-specific options
|
2204
|
+
#
|
2205
|
+
# @yield [result, err] Result & error if block supplied
|
2206
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule] parsed result object
|
2207
|
+
# @yieldparam err [StandardError] error object if request failed
|
2208
|
+
#
|
2209
|
+
# @return [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule]
|
2210
|
+
#
|
2211
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2212
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2213
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2214
|
+
def get_project_location_repository_rule(name, fields: nil, quota_user: nil, options: nil, &block)
|
2215
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
2216
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule::Representation
|
2217
|
+
command.response_class = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule
|
2218
|
+
command.params['name'] = name unless name.nil?
|
2219
|
+
command.query['fields'] = fields unless fields.nil?
|
2220
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2221
|
+
execute_or_queue_command(command, &block)
|
2222
|
+
end
|
2223
|
+
|
2224
|
+
# Lists rules.
|
2225
|
+
# @param [String] parent
|
2226
|
+
# Required. The name of the parent repository whose rules will be listed. For
|
2227
|
+
# example: `projects/p1/locations/us-central1/repositories/repo1`.
|
2228
|
+
# @param [Fixnum] page_size
|
2229
|
+
# The maximum number of rules to return. Maximum page size is 1,000.
|
2230
|
+
# @param [String] page_token
|
2231
|
+
# The next_page_token value returned from a previous list request, if any.
|
2232
|
+
# @param [String] fields
|
2233
|
+
# Selector specifying which fields to include in a partial response.
|
2234
|
+
# @param [String] quota_user
|
2235
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2236
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2237
|
+
# @param [Google::Apis::RequestOptions] options
|
2238
|
+
# Request-specific options
|
2239
|
+
#
|
2240
|
+
# @yield [result, err] Result & error if block supplied
|
2241
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::ListRulesResponse] parsed result object
|
2242
|
+
# @yieldparam err [StandardError] error object if request failed
|
2243
|
+
#
|
2244
|
+
# @return [Google::Apis::ArtifactregistryV1::ListRulesResponse]
|
2245
|
+
#
|
2246
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2247
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2248
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2249
|
+
def list_project_location_repository_rules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2250
|
+
command = make_simple_command(:get, 'v1/{+parent}/rules', options)
|
2251
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::ListRulesResponse::Representation
|
2252
|
+
command.response_class = Google::Apis::ArtifactregistryV1::ListRulesResponse
|
2253
|
+
command.params['parent'] = parent unless parent.nil?
|
2254
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2255
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2256
|
+
command.query['fields'] = fields unless fields.nil?
|
2257
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2258
|
+
execute_or_queue_command(command, &block)
|
2259
|
+
end
|
2260
|
+
|
2261
|
+
# Updates a rule.
|
2262
|
+
# @param [String] name
|
2263
|
+
# The name of the rule, for example: "projects/p1/locations/us-central1/
|
2264
|
+
# repositories/repo1/rules/rule1".
|
2265
|
+
# @param [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule] google_devtools_artifactregistry_v1_rule_object
|
2266
|
+
# @param [String] update_mask
|
2267
|
+
# The update mask applies to the resource. For the `FieldMask` definition, see
|
2268
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
2269
|
+
# fieldmask
|
2270
|
+
# @param [String] fields
|
2271
|
+
# Selector specifying which fields to include in a partial response.
|
2272
|
+
# @param [String] quota_user
|
2273
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2274
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2275
|
+
# @param [Google::Apis::RequestOptions] options
|
2276
|
+
# Request-specific options
|
2277
|
+
#
|
2278
|
+
# @yield [result, err] Result & error if block supplied
|
2279
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule] parsed result object
|
2280
|
+
# @yieldparam err [StandardError] error object if request failed
|
2281
|
+
#
|
2282
|
+
# @return [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule]
|
2283
|
+
#
|
2284
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2285
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2286
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2287
|
+
def patch_project_location_repository_rule(name, google_devtools_artifactregistry_v1_rule_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2288
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
2289
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule::Representation
|
2290
|
+
command.request_object = google_devtools_artifactregistry_v1_rule_object
|
2291
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule::Representation
|
2292
|
+
command.response_class = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule
|
2293
|
+
command.params['name'] = name unless name.nil?
|
2294
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2295
|
+
command.query['fields'] = fields unless fields.nil?
|
2296
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2297
|
+
execute_or_queue_command(command, &block)
|
2298
|
+
end
|
2299
|
+
|
1864
2300
|
# Imports Yum (RPM) artifacts. The returned Operation will complete once the
|
1865
2301
|
# resources are imported. Package, Version, and File resources are created based
|
1866
2302
|
# on the imported artifacts. Imported 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.
|
4
|
+
version: 0.68.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-
|
11
|
+
date: 2024-10-06 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.68.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: []
|