google-apis-artifactregistry_v1 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a99155967783a87221734fef2587373c8b4f0489c221f0e9a9be9937614ce8c0
4
- data.tar.gz: 40b2f9fb39c6cf2d0e2aac5e41fbb2e83c8a0525d446dce19862b34158d9bd86
3
+ metadata.gz: e7bb80d6320d4577500d838daaf0b87a818167fc9cbb33c2a53e6fec1e591fda
4
+ data.tar.gz: 5d5014f0d245d256c28c2791d258af1a6e53dbd934bd0e92b2e90db305ffa864
5
5
  SHA512:
6
- metadata.gz: 6bfe3e5691b3314d206377b01687b204ce43a292baefa8db9385b2fb9b2b924127fa3d01d6c638519e1a2d7f5b014e5299c90cf51175c465350809a31626d0c7
7
- data.tar.gz: 19acdbf761c605dbb193b4e30d311b8b8d4cf107417fb2d0d247074772b59d222e2bb9289acf7b5ba262a556cacaffe737493e20166cad1bb574ca9d62bb5898
6
+ metadata.gz: 311b23ca9f72405d09fd95b1cbae9b7841f02cd91f0cb1528a56a2fe8cb1927db73d019cf0ef6f3f893ca5d533c502b47389564a2bcf484d3208fb3a2a3db309
7
+ data.tar.gz: 455ad7d3ba8b83a0924735bfa6e5e059cf774139042bc737d54a289a9c8141286da2be28ce05d7d4ff4bdcbe6deff32c5d3ae098eb636ce0743bf630d7b71987
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-artifactregistry_v1
2
2
 
3
+ ### v0.4.0 (2021-05-15)
4
+
5
+ * Regenerated from discovery document revision 20210509
6
+
3
7
  ### v0.3.0 (2021-03-30)
4
8
 
5
9
  * Regenerated from discovery document revision 20210324
@@ -35,17 +35,32 @@ 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
- # Calculated size of the image.
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
+ # (http://google3/cloud/containers/artifacts/metadata/v1beta2/builder/data.go?l=
50
+ # 158-159&rcl=364878183).
51
+ # Corresponds to the JSON property `buildTime`
52
+ # @return [String]
53
+ attr_accessor :build_time
54
+
55
+ # Calculated size of the image. This field is returned as the 'metadata.
56
+ # imageSizeBytes' field in the Version resource.
43
57
  # Corresponds to the JSON property `imageSizeBytes`
44
58
  # @return [Fixnum]
45
59
  attr_accessor :image_size_bytes
46
60
 
47
61
  # Media type of this image, e.g. "application/vnd.docker.distribution.manifest.
48
- # v2+json".
62
+ # v2+json". This field is returned as the 'metadata.mediaType' field in the
63
+ # Version resource.
49
64
  # Corresponds to the JSON property `mediaType`
50
65
  # @return [String]
51
66
  attr_accessor :media_type
@@ -86,6 +101,7 @@ module Google
86
101
 
87
102
  # Update properties of this object
88
103
  def update!(**args)
104
+ @build_time = args[:build_time] if args.key?(:build_time)
89
105
  @image_size_bytes = args[:image_size_bytes] if args.key?(:image_size_bytes)
90
106
  @media_type = args[:media_type] if args.key?(:media_type)
91
107
  @name = args[:name] if args.key?(:name)
@@ -163,6 +179,32 @@ module Google
163
179
  end
164
180
  end
165
181
 
182
+ # The response from listing repositories.
183
+ class ListRepositoriesResponse
184
+ include Google::Apis::Core::Hashable
185
+
186
+ # The token to retrieve the next page of repositories, or empty if there are no
187
+ # more repositories to return.
188
+ # Corresponds to the JSON property `nextPageToken`
189
+ # @return [String]
190
+ attr_accessor :next_page_token
191
+
192
+ # The repositories returned.
193
+ # Corresponds to the JSON property `repositories`
194
+ # @return [Array<Google::Apis::ArtifactregistryV1::Repository>]
195
+ attr_accessor :repositories
196
+
197
+ def initialize(**args)
198
+ update!(**args)
199
+ end
200
+
201
+ # Update properties of this object
202
+ def update!(**args)
203
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
204
+ @repositories = args[:repositories] if args.key?(:repositories)
205
+ end
206
+ end
207
+
166
208
  # This resource represents a long-running operation that is the result of a
167
209
  # network API call.
168
210
  class Operation
@@ -225,6 +267,68 @@ module Google
225
267
  end
226
268
  end
227
269
 
270
+ # A Repository for storing artifacts with a specific format.
271
+ class Repository
272
+ include Google::Apis::Core::Hashable
273
+
274
+ # The time when the repository was created.
275
+ # Corresponds to the JSON property `createTime`
276
+ # @return [String]
277
+ attr_accessor :create_time
278
+
279
+ # The user-provided description of the repository.
280
+ # Corresponds to the JSON property `description`
281
+ # @return [String]
282
+ attr_accessor :description
283
+
284
+ # The format of packages that are stored in the repository.
285
+ # Corresponds to the JSON property `format`
286
+ # @return [String]
287
+ attr_accessor :format
288
+
289
+ # The Cloud KMS resource name of the customer managed encryption key that’s used
290
+ # to encrypt the contents of the Repository. Has the form: `projects/my-project/
291
+ # locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. This value may not be
292
+ # changed after the Repository has been created.
293
+ # Corresponds to the JSON property `kmsKeyName`
294
+ # @return [String]
295
+ attr_accessor :kms_key_name
296
+
297
+ # Labels with user-defined metadata. This field may contain up to 64 entries.
298
+ # Label keys and values may be no longer than 63 characters. Label keys must
299
+ # begin with a lowercase letter and may only contain lowercase letters, numeric
300
+ # characters, underscores, and dashes.
301
+ # Corresponds to the JSON property `labels`
302
+ # @return [Hash<String,String>]
303
+ attr_accessor :labels
304
+
305
+ # The name of the repository, for example: "projects/p1/locations/us-central1/
306
+ # repositories/repo1".
307
+ # Corresponds to the JSON property `name`
308
+ # @return [String]
309
+ attr_accessor :name
310
+
311
+ # The time when the repository was last updated.
312
+ # Corresponds to the JSON property `updateTime`
313
+ # @return [String]
314
+ attr_accessor :update_time
315
+
316
+ def initialize(**args)
317
+ update!(**args)
318
+ end
319
+
320
+ # Update properties of this object
321
+ def update!(**args)
322
+ @create_time = args[:create_time] if args.key?(:create_time)
323
+ @description = args[:description] if args.key?(:description)
324
+ @format = args[:format] if args.key?(:format)
325
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
326
+ @labels = args[:labels] if args.key?(:labels)
327
+ @name = args[:name] if args.key?(:name)
328
+ @update_time = args[:update_time] if args.key?(:update_time)
329
+ end
330
+ end
331
+
228
332
  # The `Status` type defines a logical error model that is suitable for different
229
333
  # programming environments, including REST APIs and RPC APIs. It is used by [
230
334
  # 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.3.0"
19
+ GEM_VERSION = "0.4.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210324"
25
+ REVISION = "20210509"
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,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.3.0
4
+ version: 0.4.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-04-05 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  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.3.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.4.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-artifactregistry_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Artifact Registry API V1