google-apis-artifactregistry_v1 0.3.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/google/apis/artifactregistry_v1/classes.rb +105 -3
- data/lib/google/apis/artifactregistry_v1/gem_version.rb +3 -3
- data/lib/google/apis/artifactregistry_v1/representations.rb +35 -0
- data/lib/google/apis/artifactregistry_v1/service.rb +66 -0
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cec319cb1a32367adceb6a8fb7d718c970c432cc07dc4e6dbdc684ca6b5a2296
|
4
|
+
data.tar.gz: 0b223e2e988e5e462fa6e50b8f5d37d1451fece493618ee5fa3d07260419190b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1765d7ba0cec8a8b970fe136b4d0ff9d1dddf2968591e6a65fda264e03012c5bbf304e02645efb03df538c32e708ee1ac428120de02f360c6c695545d37b446e
|
7
|
+
data.tar.gz: cd6aeb399184760e4a48354bdabe6ed9df325ac2edfe09084365df28b68eec26bab9f969350072ff0cb71fa19a300464d6724a2c8430e27450125570d0ff3b81
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Release history for google-apis-artifactregistry_v1
|
2
2
|
|
3
|
+
### v0.8.0 (2021-06-29)
|
4
|
+
|
5
|
+
* Regenerated using generator version 0.4.0
|
6
|
+
|
7
|
+
### v0.7.0 (2021-06-24)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210524
|
10
|
+
* Regenerated using generator version 0.3.0
|
11
|
+
|
12
|
+
### v0.6.0 (2021-05-25)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210517
|
15
|
+
|
16
|
+
### v0.5.0 (2021-05-19)
|
17
|
+
|
18
|
+
* Unspecified changes
|
19
|
+
|
20
|
+
### v0.4.0 (2021-05-15)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210509
|
23
|
+
|
3
24
|
### v0.3.0 (2021-03-30)
|
4
25
|
|
5
26
|
* Regenerated from discovery document revision 20210324
|
@@ -35,17 +35,30 @@ module Google
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
# DockerImage represents a docker artifact.
|
38
|
+
# DockerImage represents a docker artifact. The following fields are returned as
|
39
|
+
# untyped metadata in the Version resource, using camelcase keys (i.e. metadata.
|
40
|
+
# imageSizeBytes): - imageSizeBytes - mediaType - buildTime
|
39
41
|
class DockerImage
|
40
42
|
include Google::Apis::Core::Hashable
|
41
43
|
|
42
|
-
#
|
44
|
+
# The time this image was built. This field is returned as the 'metadata.
|
45
|
+
# buildTime' field in the Version resource. The build time is returned to the
|
46
|
+
# client as an RFC 3339 string, which can be easily used with the JavaScript
|
47
|
+
# Date constructor and keeps the Version timestamps returned via OnePlatform
|
48
|
+
# consistent, as JSON marshals google.protobuf.Timestamp into an RFC 3339 string.
|
49
|
+
# Corresponds to the JSON property `buildTime`
|
50
|
+
# @return [String]
|
51
|
+
attr_accessor :build_time
|
52
|
+
|
53
|
+
# Calculated size of the image. This field is returned as the 'metadata.
|
54
|
+
# imageSizeBytes' field in the Version resource.
|
43
55
|
# Corresponds to the JSON property `imageSizeBytes`
|
44
56
|
# @return [Fixnum]
|
45
57
|
attr_accessor :image_size_bytes
|
46
58
|
|
47
59
|
# Media type of this image, e.g. "application/vnd.docker.distribution.manifest.
|
48
|
-
# v2+json".
|
60
|
+
# v2+json". This field is returned as the 'metadata.mediaType' field in the
|
61
|
+
# Version resource.
|
49
62
|
# Corresponds to the JSON property `mediaType`
|
50
63
|
# @return [String]
|
51
64
|
attr_accessor :media_type
|
@@ -86,6 +99,7 @@ module Google
|
|
86
99
|
|
87
100
|
# Update properties of this object
|
88
101
|
def update!(**args)
|
102
|
+
@build_time = args[:build_time] if args.key?(:build_time)
|
89
103
|
@image_size_bytes = args[:image_size_bytes] if args.key?(:image_size_bytes)
|
90
104
|
@media_type = args[:media_type] if args.key?(:media_type)
|
91
105
|
@name = args[:name] if args.key?(:name)
|
@@ -163,6 +177,32 @@ module Google
|
|
163
177
|
end
|
164
178
|
end
|
165
179
|
|
180
|
+
# The response from listing repositories.
|
181
|
+
class ListRepositoriesResponse
|
182
|
+
include Google::Apis::Core::Hashable
|
183
|
+
|
184
|
+
# The token to retrieve the next page of repositories, or empty if there are no
|
185
|
+
# more repositories to return.
|
186
|
+
# Corresponds to the JSON property `nextPageToken`
|
187
|
+
# @return [String]
|
188
|
+
attr_accessor :next_page_token
|
189
|
+
|
190
|
+
# The repositories returned.
|
191
|
+
# Corresponds to the JSON property `repositories`
|
192
|
+
# @return [Array<Google::Apis::ArtifactregistryV1::Repository>]
|
193
|
+
attr_accessor :repositories
|
194
|
+
|
195
|
+
def initialize(**args)
|
196
|
+
update!(**args)
|
197
|
+
end
|
198
|
+
|
199
|
+
# Update properties of this object
|
200
|
+
def update!(**args)
|
201
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
202
|
+
@repositories = args[:repositories] if args.key?(:repositories)
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
166
206
|
# This resource represents a long-running operation that is the result of a
|
167
207
|
# network API call.
|
168
208
|
class Operation
|
@@ -225,6 +265,68 @@ module Google
|
|
225
265
|
end
|
226
266
|
end
|
227
267
|
|
268
|
+
# A Repository for storing artifacts with a specific format.
|
269
|
+
class Repository
|
270
|
+
include Google::Apis::Core::Hashable
|
271
|
+
|
272
|
+
# The time when the repository was created.
|
273
|
+
# Corresponds to the JSON property `createTime`
|
274
|
+
# @return [String]
|
275
|
+
attr_accessor :create_time
|
276
|
+
|
277
|
+
# The user-provided description of the repository.
|
278
|
+
# Corresponds to the JSON property `description`
|
279
|
+
# @return [String]
|
280
|
+
attr_accessor :description
|
281
|
+
|
282
|
+
# The format of packages that are stored in the repository.
|
283
|
+
# Corresponds to the JSON property `format`
|
284
|
+
# @return [String]
|
285
|
+
attr_accessor :format
|
286
|
+
|
287
|
+
# The Cloud KMS resource name of the customer managed encryption key that’s used
|
288
|
+
# to encrypt the contents of the Repository. Has the form: `projects/my-project/
|
289
|
+
# locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. This value may not be
|
290
|
+
# changed after the Repository has been created.
|
291
|
+
# Corresponds to the JSON property `kmsKeyName`
|
292
|
+
# @return [String]
|
293
|
+
attr_accessor :kms_key_name
|
294
|
+
|
295
|
+
# Labels with user-defined metadata. This field may contain up to 64 entries.
|
296
|
+
# Label keys and values may be no longer than 63 characters. Label keys must
|
297
|
+
# begin with a lowercase letter and may only contain lowercase letters, numeric
|
298
|
+
# characters, underscores, and dashes.
|
299
|
+
# Corresponds to the JSON property `labels`
|
300
|
+
# @return [Hash<String,String>]
|
301
|
+
attr_accessor :labels
|
302
|
+
|
303
|
+
# The name of the repository, for example: "projects/p1/locations/us-central1/
|
304
|
+
# repositories/repo1".
|
305
|
+
# Corresponds to the JSON property `name`
|
306
|
+
# @return [String]
|
307
|
+
attr_accessor :name
|
308
|
+
|
309
|
+
# The time when the repository was last updated.
|
310
|
+
# Corresponds to the JSON property `updateTime`
|
311
|
+
# @return [String]
|
312
|
+
attr_accessor :update_time
|
313
|
+
|
314
|
+
def initialize(**args)
|
315
|
+
update!(**args)
|
316
|
+
end
|
317
|
+
|
318
|
+
# Update properties of this object
|
319
|
+
def update!(**args)
|
320
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
321
|
+
@description = args[:description] if args.key?(:description)
|
322
|
+
@format = args[:format] if args.key?(:format)
|
323
|
+
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
324
|
+
@labels = args[:labels] if args.key?(:labels)
|
325
|
+
@name = args[:name] if args.key?(:name)
|
326
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
228
330
|
# The `Status` type defines a logical error model that is suitable for different
|
229
331
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
230
332
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
@@ -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.8.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210524"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -52,12 +52,24 @@ module Google
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
+
class ListRepositoriesResponse
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
55
61
|
class Operation
|
56
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
63
|
|
58
64
|
include Google::Apis::Core::JsonObjectSupport
|
59
65
|
end
|
60
66
|
|
67
|
+
class Repository
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
61
73
|
class Status
|
62
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
75
|
|
@@ -73,6 +85,7 @@ module Google
|
|
73
85
|
class DockerImage
|
74
86
|
# @private
|
75
87
|
class Representation < Google::Apis::Core::JsonRepresentation
|
88
|
+
property :build_time, as: 'buildTime'
|
76
89
|
property :image_size_bytes, :numeric_string => true, as: 'imageSizeBytes'
|
77
90
|
property :media_type, as: 'mediaType'
|
78
91
|
property :name, as: 'name'
|
@@ -106,6 +119,15 @@ module Google
|
|
106
119
|
end
|
107
120
|
end
|
108
121
|
|
122
|
+
class ListRepositoriesResponse
|
123
|
+
# @private
|
124
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
125
|
+
property :next_page_token, as: 'nextPageToken'
|
126
|
+
collection :repositories, as: 'repositories', class: Google::Apis::ArtifactregistryV1::Repository, decorator: Google::Apis::ArtifactregistryV1::Repository::Representation
|
127
|
+
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
109
131
|
class Operation
|
110
132
|
# @private
|
111
133
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -118,6 +140,19 @@ module Google
|
|
118
140
|
end
|
119
141
|
end
|
120
142
|
|
143
|
+
class Repository
|
144
|
+
# @private
|
145
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
146
|
+
property :create_time, as: 'createTime'
|
147
|
+
property :description, as: 'description'
|
148
|
+
property :format, as: 'format'
|
149
|
+
property :kms_key_name, as: 'kmsKeyName'
|
150
|
+
hash :labels, as: 'labels'
|
151
|
+
property :name, as: 'name'
|
152
|
+
property :update_time, as: 'updateTime'
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
121
156
|
class Status
|
122
157
|
# @private
|
123
158
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -200,6 +200,72 @@ module Google
|
|
200
200
|
execute_or_queue_command(command, &block)
|
201
201
|
end
|
202
202
|
|
203
|
+
# Gets a repository.
|
204
|
+
# @param [String] name
|
205
|
+
# Required. The name of the repository to retrieve.
|
206
|
+
# @param [String] fields
|
207
|
+
# Selector specifying which fields to include in a partial response.
|
208
|
+
# @param [String] quota_user
|
209
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
210
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
211
|
+
# @param [Google::Apis::RequestOptions] options
|
212
|
+
# Request-specific options
|
213
|
+
#
|
214
|
+
# @yield [result, err] Result & error if block supplied
|
215
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Repository] parsed result object
|
216
|
+
# @yieldparam err [StandardError] error object if request failed
|
217
|
+
#
|
218
|
+
# @return [Google::Apis::ArtifactregistryV1::Repository]
|
219
|
+
#
|
220
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
221
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
222
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
223
|
+
def get_project_location_repository(name, fields: nil, quota_user: nil, options: nil, &block)
|
224
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
225
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Repository::Representation
|
226
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Repository
|
227
|
+
command.params['name'] = name unless name.nil?
|
228
|
+
command.query['fields'] = fields unless fields.nil?
|
229
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
230
|
+
execute_or_queue_command(command, &block)
|
231
|
+
end
|
232
|
+
|
233
|
+
# Lists repositories.
|
234
|
+
# @param [String] parent
|
235
|
+
# Required. The name of the parent resource whose repositories will be listed.
|
236
|
+
# @param [Fixnum] page_size
|
237
|
+
# The maximum number of repositories to return.
|
238
|
+
# @param [String] page_token
|
239
|
+
# The next_page_token value returned from a previous list request, if any.
|
240
|
+
# @param [String] fields
|
241
|
+
# Selector specifying which fields to include in a partial response.
|
242
|
+
# @param [String] quota_user
|
243
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
244
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
245
|
+
# @param [Google::Apis::RequestOptions] options
|
246
|
+
# Request-specific options
|
247
|
+
#
|
248
|
+
# @yield [result, err] Result & error if block supplied
|
249
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::ListRepositoriesResponse] parsed result object
|
250
|
+
# @yieldparam err [StandardError] error object if request failed
|
251
|
+
#
|
252
|
+
# @return [Google::Apis::ArtifactregistryV1::ListRepositoriesResponse]
|
253
|
+
#
|
254
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
255
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
256
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
257
|
+
def list_project_location_repositories(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
258
|
+
command = make_simple_command(:get, 'v1/{+parent}/repositories', options)
|
259
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::ListRepositoriesResponse::Representation
|
260
|
+
command.response_class = Google::Apis::ArtifactregistryV1::ListRepositoriesResponse
|
261
|
+
command.params['parent'] = parent unless parent.nil?
|
262
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
263
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
264
|
+
command.query['fields'] = fields unless fields.nil?
|
265
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
266
|
+
execute_or_queue_command(command, &block)
|
267
|
+
end
|
268
|
+
|
203
269
|
# Lists docker images.
|
204
270
|
# @param [String] parent
|
205
271
|
# Required. The name of the parent resource whose docker images will be listed.
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.8.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: 2021-
|
11
|
+
date: 2021-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Artifact Registry API V1. Simple REST
|
28
34
|
clients are Ruby client libraries that provide access to Google services via their
|
29
35
|
HTTP REST API endpoints. These libraries are generated and updated automatically
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-artifactregistry_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.8.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-artifactregistry_v1
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
75
|
- !ruby/object:Gem::Version
|
70
76
|
version: '0'
|
71
77
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
78
|
+
rubygems_version: 3.2.17
|
73
79
|
signing_key:
|
74
80
|
specification_version: 4
|
75
81
|
summary: Simple REST client for Artifact Registry API V1
|