google-apis-artifactregistry_v1 0.1.0 → 0.6.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: 7c57ff9b1b8fa81097f5ccb5f262757d9dfbb81fa080dfe3f51920fad9050060
4
- data.tar.gz: b5ff06594fa0f63ba0b7264747f0dfebc3e58f20665a0f732ed2af5c5adb4bac
3
+ metadata.gz: 41bd557c2195cd7433ca8232c2b6ba04f418e4bdb3f4c7e5706ac854f7e04b11
4
+ data.tar.gz: 2839a2509773097217e3608257d082f0b9643305ffb26b0d96304eb6fd96a363
5
5
  SHA512:
6
- metadata.gz: 3b235ad3fa011d8367b607cbd2d494b67fd2b76c7c8973ebf575f9cd043e741697f35aaf7b50d67a19d154ae1cf11894d7d132402d883c2f500bb5697dbf971e
7
- data.tar.gz: 0d3df5caa1b7b9a2fdb58d4ae39579d62ee8bdfdee167de90625363246c7bb401812c750408818819d43ad2bce5b297a67a34709cf1c568feb9ad8c983c0ecc8
6
+ metadata.gz: a231248dd7b426d94634d8e321af87e0b840c9108c6094e1b700d5a79dc54373a4beec9f83d385f167825a22ea8926db7fe4321b2bc9f86fadf93d7f6ef9f408
7
+ data.tar.gz: 1a717e134dd3034906e37203408a53f303707f1ed93a7a98d63afbef73a32336af4588ff91a5314ecaae0aecfd12678f82e2023148157d9e82c4054813339003
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-artifactregistry_v1
2
2
 
3
+ ### v0.6.0 (2021-05-25)
4
+
5
+ * Regenerated from discovery document revision 20210517
6
+
7
+ ### v0.5.0 (2021-05-19)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.4.0 (2021-05-15)
12
+
13
+ * Regenerated from discovery document revision 20210509
14
+
15
+ ### v0.3.0 (2021-03-30)
16
+
17
+ * Regenerated from discovery document revision 20210324
18
+ * Regenerated using generator version 0.2.0
19
+
20
+ ### v0.2.0 (2021-03-06)
21
+
22
+ * Regenerated from discovery document revision 20210302
23
+ * Regenerated using generator version 0.1.2
24
+
3
25
  ### v0.1.0 (2021-01-07)
4
26
 
5
27
  * Regenerated using generator version 0.1.1
@@ -30,7 +30,7 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V1'
32
32
 
33
- # View and manage your data across Google Cloud Platform services
33
+ # See, edit, configure, and delete your Google Cloud Platform data
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
35
 
36
36
  # View your data across Google Cloud Platform services
@@ -35,25 +35,38 @@ 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
+ # 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
52
65
 
53
66
  # Required. registry_location, project_id, repository_name and image id forms a
54
- # unique image name:`projects//locations//repository//dockerimages/`. For
67
+ # unique image name:`projects//locations//repository//dockerImages/`. For
55
68
  # example, "projects/test-project/locations/us-west4/repositories/test-repo/
56
- # dockerimages/ nginx@sha256:
69
+ # dockerImages/ nginx@sha256:
57
70
  # e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", where "us-
58
71
  # west4" is the registry_location, "test-project" is the project_id, "test-repo"
59
72
  # is the repository_name and "nginx@sha256:
@@ -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)
@@ -112,6 +126,32 @@ module Google
112
126
  end
113
127
  end
114
128
 
129
+ # The response from listing docker images.
130
+ class ListDockerImagesResponse
131
+ include Google::Apis::Core::Hashable
132
+
133
+ # The docker images returned.
134
+ # Corresponds to the JSON property `dockerImages`
135
+ # @return [Array<Google::Apis::ArtifactregistryV1::DockerImage>]
136
+ attr_accessor :docker_images
137
+
138
+ # The token to retrieve the next page of artifacts, or empty if there are no
139
+ # more artifacts to return.
140
+ # Corresponds to the JSON property `nextPageToken`
141
+ # @return [String]
142
+ attr_accessor :next_page_token
143
+
144
+ def initialize(**args)
145
+ update!(**args)
146
+ end
147
+
148
+ # Update properties of this object
149
+ def update!(**args)
150
+ @docker_images = args[:docker_images] if args.key?(:docker_images)
151
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
152
+ end
153
+ end
154
+
115
155
  # The response message for Operations.ListOperations.
116
156
  class ListOperationsResponse
117
157
  include Google::Apis::Core::Hashable
@@ -137,6 +177,32 @@ module Google
137
177
  end
138
178
  end
139
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
+
140
206
  # This resource represents a long-running operation that is the result of a
141
207
  # network API call.
142
208
  class Operation
@@ -199,6 +265,68 @@ module Google
199
265
  end
200
266
  end
201
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
+
202
330
  # The `Status` type defines a logical error model that is suitable for different
203
331
  # programming environments, including REST APIs and RPC APIs. It is used by [
204
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.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201215"
25
+ REVISION = "20210517"
26
26
  end
27
27
  end
28
28
  end
@@ -40,18 +40,36 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class ListDockerImagesResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
43
49
  class ListOperationsResponse
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
46
52
  include Google::Apis::Core::JsonObjectSupport
47
53
  end
48
54
 
55
+ class ListRepositoriesResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
49
61
  class Operation
50
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
63
 
52
64
  include Google::Apis::Core::JsonObjectSupport
53
65
  end
54
66
 
67
+ class Repository
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
55
73
  class Status
56
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
75
 
@@ -67,6 +85,7 @@ module Google
67
85
  class DockerImage
68
86
  # @private
69
87
  class Representation < Google::Apis::Core::JsonRepresentation
88
+ property :build_time, as: 'buildTime'
70
89
  property :image_size_bytes, :numeric_string => true, as: 'imageSizeBytes'
71
90
  property :media_type, as: 'mediaType'
72
91
  property :name, as: 'name'
@@ -82,6 +101,15 @@ module Google
82
101
  end
83
102
  end
84
103
 
104
+ class ListDockerImagesResponse
105
+ # @private
106
+ class Representation < Google::Apis::Core::JsonRepresentation
107
+ collection :docker_images, as: 'dockerImages', class: Google::Apis::ArtifactregistryV1::DockerImage, decorator: Google::Apis::ArtifactregistryV1::DockerImage::Representation
108
+
109
+ property :next_page_token, as: 'nextPageToken'
110
+ end
111
+ end
112
+
85
113
  class ListOperationsResponse
86
114
  # @private
87
115
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -91,6 +119,15 @@ module Google
91
119
  end
92
120
  end
93
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
+
94
131
  class Operation
95
132
  # @private
96
133
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -103,6 +140,19 @@ module Google
103
140
  end
104
141
  end
105
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
+
106
156
  class Status
107
157
  # @private
108
158
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -199,6 +199,108 @@ module Google
199
199
  command.query['quotaUser'] = quota_user unless quota_user.nil?
200
200
  execute_or_queue_command(command, &block)
201
201
  end
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
+
269
+ # Lists docker images.
270
+ # @param [String] parent
271
+ # Required. The name of the parent resource whose docker images will be listed.
272
+ # @param [Fixnum] page_size
273
+ # The maximum number of artifacts to return.
274
+ # @param [String] page_token
275
+ # The next_page_token value returned from a previous list request, if any.
276
+ # @param [String] fields
277
+ # Selector specifying which fields to include in a partial response.
278
+ # @param [String] quota_user
279
+ # Available to use for quota purposes for server-side applications. Can be any
280
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
281
+ # @param [Google::Apis::RequestOptions] options
282
+ # Request-specific options
283
+ #
284
+ # @yield [result, err] Result & error if block supplied
285
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::ListDockerImagesResponse] parsed result object
286
+ # @yieldparam err [StandardError] error object if request failed
287
+ #
288
+ # @return [Google::Apis::ArtifactregistryV1::ListDockerImagesResponse]
289
+ #
290
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
291
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
292
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
293
+ def list_project_location_repository_docker_images(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
294
+ command = make_simple_command(:get, 'v1/{+parent}/dockerImages', options)
295
+ command.response_representation = Google::Apis::ArtifactregistryV1::ListDockerImagesResponse::Representation
296
+ command.response_class = Google::Apis::ArtifactregistryV1::ListDockerImagesResponse
297
+ command.params['parent'] = parent unless parent.nil?
298
+ command.query['pageSize'] = page_size unless page_size.nil?
299
+ command.query['pageToken'] = page_token unless page_token.nil?
300
+ command.query['fields'] = fields unless fields.nil?
301
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
302
+ execute_or_queue_command(command, &block)
303
+ end
202
304
 
203
305
  protected
204
306
 
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.1.0
4
+ version: 0.6.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-01-08 00:00:00.000000000 Z
11
+ date: 2021-05-31 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.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.6.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: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
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