google-apis-artifactregistry_v1 0.18.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc8a24a50001559c86a620d0de0b0c12adcd0fe2bb9848096023caed15b743dc
4
- data.tar.gz: 02b8c4f3483f4c7cc7b81c4873e3d21b38232ad87dd562fc1a1089bacfdfa485
3
+ metadata.gz: 6de82b527e3a267ecf7f72050246e5e59759b6ccc455abd29c4ee30fce310962
4
+ data.tar.gz: 9c0d3e4e6e40f65b90fc85b083eab9397bf7af04bfdb2632d94dac727a869304
5
5
  SHA512:
6
- metadata.gz: 19c2b7ab52ec8cf4335e34a68108c9da7f87b0452ea34393916e6952d1d8f6b7f7803b901b7dfb8cd9678cdecd2f2bd930616a108af2c876eef93bfc85c28bec
7
- data.tar.gz: 6e83d3411a56865573192786cf51031fa80469936139fb41cd307eb084d02a7b9daa8a14d3630935ec88a97b2d2dd0fc6cbe0debb7d8a04d97935eb7046b3ea3
6
+ metadata.gz: 60686cfce7fd891acdb3e037660b77c2805d796f5f6966df3fb904be91a4b36399df438a34fc38cfec776fc1a965e7266e5a4c3870c59cba681fdd7387243cdd
7
+ data.tar.gz: 95ccd7366caca6e3cc2cc2d145ebc35c1bc2a1f996a4200b0188d5ec54c525dcc3ff7c9f4c25ab9157bd0963b89c96dbc0d541e6b3876161c5ef675bb3f85a12
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-artifactregistry_v1
2
2
 
3
+ ### v0.21.0 (2022-03-17)
4
+
5
+ * Regenerated from discovery document revision 20220311
6
+
7
+ ### v0.20.0 (2022-03-10)
8
+
9
+ * Regenerated from discovery document revision 20220307
10
+
11
+ ### v0.19.0 (2022-02-17)
12
+
13
+ * Regenerated from discovery document revision 20220212
14
+
3
15
  ### v0.18.0 (2022-02-08)
4
16
 
5
17
  * Regenerated from discovery document revision 20220203
@@ -359,51 +359,6 @@ module Google
359
359
  end
360
360
  end
361
361
 
362
- # Google Cloud Storage location where the artifacts currently reside.
363
- class ImportGooGetArtifactsGcsSource
364
- include Google::Apis::Core::Hashable
365
-
366
- # Cloud Storage paths URI (e.g., gs://my_bucket/my_object).
367
- # Corresponds to the JSON property `uris`
368
- # @return [Array<String>]
369
- attr_accessor :uris
370
-
371
- # Supports URI wildcards for matching multiple objects from a single URI.
372
- # Corresponds to the JSON property `useWildcards`
373
- # @return [Boolean]
374
- attr_accessor :use_wildcards
375
- alias_method :use_wildcards?, :use_wildcards
376
-
377
- def initialize(**args)
378
- update!(**args)
379
- end
380
-
381
- # Update properties of this object
382
- def update!(**args)
383
- @uris = args[:uris] if args.key?(:uris)
384
- @use_wildcards = args[:use_wildcards] if args.key?(:use_wildcards)
385
- end
386
- end
387
-
388
- # The request to import new googet artifacts.
389
- class ImportGooGetArtifactsRequest
390
- include Google::Apis::Core::Hashable
391
-
392
- # Google Cloud Storage location where the artifacts currently reside.
393
- # Corresponds to the JSON property `gcsSource`
394
- # @return [Google::Apis::ArtifactregistryV1::ImportGooGetArtifactsGcsSource]
395
- attr_accessor :gcs_source
396
-
397
- def initialize(**args)
398
- update!(**args)
399
- end
400
-
401
- # Update properties of this object
402
- def update!(**args)
403
- @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
404
- end
405
- end
406
-
407
362
  # Google Cloud Storage location where the artifacts currently reside.
408
363
  class ImportYumArtifactsGcsSource
409
364
  include Google::Apis::Core::Hashable
@@ -501,6 +456,31 @@ module Google
501
456
  end
502
457
  end
503
458
 
459
+ # The response message for Locations.ListLocations.
460
+ class ListLocationsResponse
461
+ include Google::Apis::Core::Hashable
462
+
463
+ # A list of locations that matches the specified filter in the request.
464
+ # Corresponds to the JSON property `locations`
465
+ # @return [Array<Google::Apis::ArtifactregistryV1::Location>]
466
+ attr_accessor :locations
467
+
468
+ # The standard List next-page token.
469
+ # Corresponds to the JSON property `nextPageToken`
470
+ # @return [String]
471
+ attr_accessor :next_page_token
472
+
473
+ def initialize(**args)
474
+ update!(**args)
475
+ end
476
+
477
+ # Update properties of this object
478
+ def update!(**args)
479
+ @locations = args[:locations] if args.key?(:locations)
480
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
481
+ end
482
+ end
483
+
504
484
  # The response from listing packages.
505
485
  class ListPackagesResponse
506
486
  include Google::Apis::Core::Hashable
@@ -605,6 +585,53 @@ module Google
605
585
  end
606
586
  end
607
587
 
588
+ # A resource that represents Google Cloud Platform location.
589
+ class Location
590
+ include Google::Apis::Core::Hashable
591
+
592
+ # The friendly name for this location, typically a nearby city name. For example,
593
+ # "Tokyo".
594
+ # Corresponds to the JSON property `displayName`
595
+ # @return [String]
596
+ attr_accessor :display_name
597
+
598
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
599
+ # region": "us-east1"`
600
+ # Corresponds to the JSON property `labels`
601
+ # @return [Hash<String,String>]
602
+ attr_accessor :labels
603
+
604
+ # The canonical id for this location. For example: `"us-east1"`.
605
+ # Corresponds to the JSON property `locationId`
606
+ # @return [String]
607
+ attr_accessor :location_id
608
+
609
+ # Service-specific metadata. For example the available capacity at the given
610
+ # location.
611
+ # Corresponds to the JSON property `metadata`
612
+ # @return [Hash<String,Object>]
613
+ attr_accessor :metadata
614
+
615
+ # Resource name for the location, which may vary between implementations. For
616
+ # example: `"projects/example-project/locations/us-east1"`
617
+ # Corresponds to the JSON property `name`
618
+ # @return [String]
619
+ attr_accessor :name
620
+
621
+ def initialize(**args)
622
+ update!(**args)
623
+ end
624
+
625
+ # Update properties of this object
626
+ def update!(**args)
627
+ @display_name = args[:display_name] if args.key?(:display_name)
628
+ @labels = args[:labels] if args.key?(:labels)
629
+ @location_id = args[:location_id] if args.key?(:location_id)
630
+ @metadata = args[:metadata] if args.key?(:metadata)
631
+ @name = args[:name] if args.key?(:name)
632
+ end
633
+ end
634
+
608
635
  # MavenRepositoryConfig is maven related repository details. Provides additional
609
636
  # configuration details for repositories of the maven format type.
610
637
  class MavenRepositoryConfig
@@ -1106,39 +1133,6 @@ module Google
1106
1133
  end
1107
1134
  end
1108
1135
 
1109
- # The response to upload an artifact.
1110
- class UploadGooGetArtifactMediaResponse
1111
- include Google::Apis::Core::Hashable
1112
-
1113
- # This resource represents a long-running operation that is the result of a
1114
- # network API call.
1115
- # Corresponds to the JSON property `operation`
1116
- # @return [Google::Apis::ArtifactregistryV1::Operation]
1117
- attr_accessor :operation
1118
-
1119
- def initialize(**args)
1120
- update!(**args)
1121
- end
1122
-
1123
- # Update properties of this object
1124
- def update!(**args)
1125
- @operation = args[:operation] if args.key?(:operation)
1126
- end
1127
- end
1128
-
1129
- # The request to upload an artifact.
1130
- class UploadGooGetArtifactRequest
1131
- include Google::Apis::Core::Hashable
1132
-
1133
- def initialize(**args)
1134
- update!(**args)
1135
- end
1136
-
1137
- # Update properties of this object
1138
- def update!(**args)
1139
- end
1140
- end
1141
-
1142
1136
  # The response to upload an artifact.
1143
1137
  class UploadYumArtifactMediaResponse
1144
1138
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ArtifactregistryV1
18
18
  # Version of the google-apis-artifactregistry_v1 gem
19
- GEM_VERSION = "0.18.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220203"
25
+ REVISION = "20220311"
26
26
  end
27
27
  end
28
28
  end
@@ -70,61 +70,61 @@ module Google
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
- class ImportGooGetArtifactsGcsSource
73
+ class ImportYumArtifactsGcsSource
74
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
75
 
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
- class ImportGooGetArtifactsRequest
79
+ class ImportYumArtifactsRequest
80
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
81
 
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
- class ImportYumArtifactsGcsSource
85
+ class ListDockerImagesResponse
86
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
87
 
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
- class ImportYumArtifactsRequest
91
+ class ListFilesResponse
92
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
93
 
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
- class ListDockerImagesResponse
97
+ class ListLocationsResponse
98
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
99
 
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
- class ListFilesResponse
103
+ class ListPackagesResponse
104
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
105
 
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
- class ListPackagesResponse
109
+ class ListRepositoriesResponse
110
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
111
 
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
- class ListRepositoriesResponse
115
+ class ListTagsResponse
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
- class ListTagsResponse
121
+ class ListVersionsResponse
122
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
123
 
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
- class ListVersionsResponse
127
+ class Location
128
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
129
 
130
130
  include Google::Apis::Core::JsonObjectSupport
@@ -208,18 +208,6 @@ module Google
208
208
  include Google::Apis::Core::JsonObjectSupport
209
209
  end
210
210
 
211
- class UploadGooGetArtifactMediaResponse
212
- class Representation < Google::Apis::Core::JsonRepresentation; end
213
-
214
- include Google::Apis::Core::JsonObjectSupport
215
- end
216
-
217
- class UploadGooGetArtifactRequest
218
- class Representation < Google::Apis::Core::JsonRepresentation; end
219
-
220
- include Google::Apis::Core::JsonObjectSupport
221
- end
222
-
223
211
  class UploadYumArtifactMediaResponse
224
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
213
 
@@ -314,22 +302,6 @@ module Google
314
302
  end
315
303
  end
316
304
 
317
- class ImportGooGetArtifactsGcsSource
318
- # @private
319
- class Representation < Google::Apis::Core::JsonRepresentation
320
- collection :uris, as: 'uris'
321
- property :use_wildcards, as: 'useWildcards'
322
- end
323
- end
324
-
325
- class ImportGooGetArtifactsRequest
326
- # @private
327
- class Representation < Google::Apis::Core::JsonRepresentation
328
- property :gcs_source, as: 'gcsSource', class: Google::Apis::ArtifactregistryV1::ImportGooGetArtifactsGcsSource, decorator: Google::Apis::ArtifactregistryV1::ImportGooGetArtifactsGcsSource::Representation
329
-
330
- end
331
- end
332
-
333
305
  class ImportYumArtifactsGcsSource
334
306
  # @private
335
307
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -364,6 +336,15 @@ module Google
364
336
  end
365
337
  end
366
338
 
339
+ class ListLocationsResponse
340
+ # @private
341
+ class Representation < Google::Apis::Core::JsonRepresentation
342
+ collection :locations, as: 'locations', class: Google::Apis::ArtifactregistryV1::Location, decorator: Google::Apis::ArtifactregistryV1::Location::Representation
343
+
344
+ property :next_page_token, as: 'nextPageToken'
345
+ end
346
+ end
347
+
367
348
  class ListPackagesResponse
368
349
  # @private
369
350
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -400,6 +381,17 @@ module Google
400
381
  end
401
382
  end
402
383
 
384
+ class Location
385
+ # @private
386
+ class Representation < Google::Apis::Core::JsonRepresentation
387
+ property :display_name, as: 'displayName'
388
+ hash :labels, as: 'labels'
389
+ property :location_id, as: 'locationId'
390
+ hash :metadata, as: 'metadata'
391
+ property :name, as: 'name'
392
+ end
393
+ end
394
+
403
395
  class MavenRepositoryConfig
404
396
  # @private
405
397
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -516,20 +508,6 @@ module Google
516
508
  end
517
509
  end
518
510
 
519
- class UploadGooGetArtifactMediaResponse
520
- # @private
521
- class Representation < Google::Apis::Core::JsonRepresentation
522
- property :operation, as: 'operation', class: Google::Apis::ArtifactregistryV1::Operation, decorator: Google::Apis::ArtifactregistryV1::Operation::Representation
523
-
524
- end
525
- end
526
-
527
- class UploadGooGetArtifactRequest
528
- # @private
529
- class Representation < Google::Apis::Core::JsonRepresentation
530
- end
531
- end
532
-
533
511
  class UploadYumArtifactMediaResponse
534
512
  # @private
535
513
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -50,10 +50,9 @@ module Google
50
50
  @batch_path = 'batch'
51
51
  end
52
52
 
53
- # Gets the latest state of a long-running operation. Clients can use this method
54
- # to poll the operation result at intervals as recommended by the API service.
53
+ # Retrieves the Settings for the Project.
55
54
  # @param [String] name
56
- # The name of the operation resource.
55
+ # Required. The name of the projectSettings resource.
57
56
  # @param [String] fields
58
57
  # Selector specifying which fields to include in a partial response.
59
58
  # @param [String] quota_user
@@ -63,27 +62,31 @@ module Google
63
62
  # Request-specific options
64
63
  #
65
64
  # @yield [result, err] Result & error if block supplied
66
- # @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object
65
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::ProjectSettings] parsed result object
67
66
  # @yieldparam err [StandardError] error object if request failed
68
67
  #
69
- # @return [Google::Apis::ArtifactregistryV1::Operation]
68
+ # @return [Google::Apis::ArtifactregistryV1::ProjectSettings]
70
69
  #
71
70
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
71
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
72
  # @raise [Google::Apis::AuthorizationError] Authorization is required
74
- def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
73
+ def get_project_project_settings(name, fields: nil, quota_user: nil, options: nil, &block)
75
74
  command = make_simple_command(:get, 'v1/{+name}', options)
76
- command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
77
- command.response_class = Google::Apis::ArtifactregistryV1::Operation
75
+ command.response_representation = Google::Apis::ArtifactregistryV1::ProjectSettings::Representation
76
+ command.response_class = Google::Apis::ArtifactregistryV1::ProjectSettings
78
77
  command.params['name'] = name unless name.nil?
79
78
  command.query['fields'] = fields unless fields.nil?
80
79
  command.query['quotaUser'] = quota_user unless quota_user.nil?
81
80
  execute_or_queue_command(command, &block)
82
81
  end
83
82
 
84
- # Retrieves the Settings for the Project.
83
+ # Updates the Settings for the Project.
85
84
  # @param [String] name
86
- # Required. The name of the projectSettings resource.
85
+ # The name of the project's settings. Always of the form: projects/`project-id`/
86
+ # projectSettings In update request: never set In response: always set
87
+ # @param [Google::Apis::ArtifactregistryV1::ProjectSettings] project_settings_object
88
+ # @param [String] update_mask
89
+ # Field mask to support partial updates.
87
90
  # @param [String] fields
88
91
  # Selector specifying which fields to include in a partial response.
89
92
  # @param [String] quota_user
@@ -101,23 +104,22 @@ module Google
101
104
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
102
105
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
103
106
  # @raise [Google::Apis::AuthorizationError] Authorization is required
104
- def get_project_project_settings(name, fields: nil, quota_user: nil, options: nil, &block)
105
- command = make_simple_command(:get, 'v1/{+name}', options)
107
+ def update_project_project_settings(name, project_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
108
+ command = make_simple_command(:patch, 'v1/{+name}', options)
109
+ command.request_representation = Google::Apis::ArtifactregistryV1::ProjectSettings::Representation
110
+ command.request_object = project_settings_object
106
111
  command.response_representation = Google::Apis::ArtifactregistryV1::ProjectSettings::Representation
107
112
  command.response_class = Google::Apis::ArtifactregistryV1::ProjectSettings
108
113
  command.params['name'] = name unless name.nil?
114
+ command.query['updateMask'] = update_mask unless update_mask.nil?
109
115
  command.query['fields'] = fields unless fields.nil?
110
116
  command.query['quotaUser'] = quota_user unless quota_user.nil?
111
117
  execute_or_queue_command(command, &block)
112
118
  end
113
119
 
114
- # Updates the Settings for the Project.
120
+ # Gets information about a location.
115
121
  # @param [String] name
116
- # The name of the project's settings. Always of the form: projects/`project-id`/
117
- # projectSettings In update request: never set In response: always set
118
- # @param [Google::Apis::ArtifactregistryV1::ProjectSettings] project_settings_object
119
- # @param [String] update_mask
120
- # Field mask to support partial updates.
122
+ # Resource name for the location.
121
123
  # @param [String] fields
122
124
  # Selector specifying which fields to include in a partial response.
123
125
  # @param [String] quota_user
@@ -127,22 +129,93 @@ module Google
127
129
  # Request-specific options
128
130
  #
129
131
  # @yield [result, err] Result & error if block supplied
130
- # @yieldparam result [Google::Apis::ArtifactregistryV1::ProjectSettings] parsed result object
132
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::Location] parsed result object
131
133
  # @yieldparam err [StandardError] error object if request failed
132
134
  #
133
- # @return [Google::Apis::ArtifactregistryV1::ProjectSettings]
135
+ # @return [Google::Apis::ArtifactregistryV1::Location]
134
136
  #
135
137
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
136
138
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
137
139
  # @raise [Google::Apis::AuthorizationError] Authorization is required
138
- def update_project_project_settings(name, project_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
139
- command = make_simple_command(:patch, 'v1/{+name}', options)
140
- command.request_representation = Google::Apis::ArtifactregistryV1::ProjectSettings::Representation
141
- command.request_object = project_settings_object
142
- command.response_representation = Google::Apis::ArtifactregistryV1::ProjectSettings::Representation
143
- command.response_class = Google::Apis::ArtifactregistryV1::ProjectSettings
140
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
141
+ command = make_simple_command(:get, 'v1/{+name}', options)
142
+ command.response_representation = Google::Apis::ArtifactregistryV1::Location::Representation
143
+ command.response_class = Google::Apis::ArtifactregistryV1::Location
144
+ command.params['name'] = name unless name.nil?
145
+ command.query['fields'] = fields unless fields.nil?
146
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
147
+ execute_or_queue_command(command, &block)
148
+ end
149
+
150
+ # Lists information about the supported locations for this service.
151
+ # @param [String] name
152
+ # The resource that owns the locations collection, if applicable.
153
+ # @param [String] filter
154
+ # A filter to narrow down results to a preferred subset. The filtering language
155
+ # accepts strings like "displayName=tokyo", and is documented in more detail in [
156
+ # AIP-160](https://google.aip.dev/160).
157
+ # @param [Fixnum] page_size
158
+ # The maximum number of results to return. If not set, the service selects a
159
+ # default.
160
+ # @param [String] page_token
161
+ # A page token received from the `next_page_token` field in the response. Send
162
+ # that page token to receive the subsequent page.
163
+ # @param [String] fields
164
+ # Selector specifying which fields to include in a partial response.
165
+ # @param [String] quota_user
166
+ # Available to use for quota purposes for server-side applications. Can be any
167
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
168
+ # @param [Google::Apis::RequestOptions] options
169
+ # Request-specific options
170
+ #
171
+ # @yield [result, err] Result & error if block supplied
172
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::ListLocationsResponse] parsed result object
173
+ # @yieldparam err [StandardError] error object if request failed
174
+ #
175
+ # @return [Google::Apis::ArtifactregistryV1::ListLocationsResponse]
176
+ #
177
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
178
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
179
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
180
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
181
+ command = make_simple_command(:get, 'v1/{+name}/locations', options)
182
+ command.response_representation = Google::Apis::ArtifactregistryV1::ListLocationsResponse::Representation
183
+ command.response_class = Google::Apis::ArtifactregistryV1::ListLocationsResponse
184
+ command.params['name'] = name unless name.nil?
185
+ command.query['filter'] = filter unless filter.nil?
186
+ command.query['pageSize'] = page_size unless page_size.nil?
187
+ command.query['pageToken'] = page_token unless page_token.nil?
188
+ command.query['fields'] = fields unless fields.nil?
189
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
190
+ execute_or_queue_command(command, &block)
191
+ end
192
+
193
+ # Gets the latest state of a long-running operation. Clients can use this method
194
+ # to poll the operation result at intervals as recommended by the API service.
195
+ # @param [String] name
196
+ # The name of the operation resource.
197
+ # @param [String] fields
198
+ # Selector specifying which fields to include in a partial response.
199
+ # @param [String] quota_user
200
+ # Available to use for quota purposes for server-side applications. Can be any
201
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
202
+ # @param [Google::Apis::RequestOptions] options
203
+ # Request-specific options
204
+ #
205
+ # @yield [result, err] Result & error if block supplied
206
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object
207
+ # @yieldparam err [StandardError] error object if request failed
208
+ #
209
+ # @return [Google::Apis::ArtifactregistryV1::Operation]
210
+ #
211
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
212
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
213
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
214
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
215
+ command = make_simple_command(:get, 'v1/{+name}', options)
216
+ command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
217
+ command.response_class = Google::Apis::ArtifactregistryV1::Operation
144
218
  command.params['name'] = name unless name.nil?
145
- command.query['updateMask'] = update_mask unless update_mask.nil?
146
219
  command.query['fields'] = fields unless fields.nil?
147
220
  command.query['quotaUser'] = quota_user unless quota_user.nil?
148
221
  execute_or_queue_command(command, &block)
@@ -613,7 +686,8 @@ module Google
613
686
 
614
687
  # Lists files.
615
688
  # @param [String] parent
616
- # The name of the parent resource whose files will be listed.
689
+ # The name of the repository whose files will be listed. For example: "projects/
690
+ # p1/locations/us-central1/repositories/repo1
617
691
  # @param [String] filter
618
692
  # An expression for filtering the results of the request. Filter rules are case
619
693
  # insensitive. The fields eligible for filtering are: * `name` * `owner` An
@@ -621,6 +695,8 @@ module Google
621
695
  # repositories/repo1/files/a/b/*"` --> Files with an ID starting with "a/b/". * `
622
696
  # owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/
623
697
  # versions/1.0"` --> Files owned by the version `1.0` in package `pkg1`.
698
+ # @param [String] order_by
699
+ # The field to order the results by.
624
700
  # @param [Fixnum] page_size
625
701
  # The maximum number of files to return.
626
702
  # @param [String] page_token
@@ -642,12 +718,13 @@ module Google
642
718
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
643
719
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
644
720
  # @raise [Google::Apis::AuthorizationError] Authorization is required
645
- def list_project_location_repository_files(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
721
+ def list_project_location_repository_files(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
646
722
  command = make_simple_command(:get, 'v1/{+parent}/files', options)
647
723
  command.response_representation = Google::Apis::ArtifactregistryV1::ListFilesResponse::Representation
648
724
  command.response_class = Google::Apis::ArtifactregistryV1::ListFilesResponse
649
725
  command.params['parent'] = parent unless parent.nil?
650
726
  command.query['filter'] = filter unless filter.nil?
727
+ command.query['orderBy'] = order_by unless order_by.nil?
651
728
  command.query['pageSize'] = page_size unless page_size.nil?
652
729
  command.query['pageToken'] = page_token unless page_token.nil?
653
730
  command.query['fields'] = fields unless fields.nil?
@@ -655,88 +732,6 @@ module Google
655
732
  execute_or_queue_command(command, &block)
656
733
  end
657
734
 
658
- # Imports GooGet artifacts. The returned Operation will complete once the
659
- # resources are imported. Package, Version, and File resources are created based
660
- # on the imported artifacts. Imported artifacts that conflict with existing
661
- # resources are ignored.
662
- # @param [String] parent
663
- # The name of the parent resource where the artifacts will be imported.
664
- # @param [Google::Apis::ArtifactregistryV1::ImportGooGetArtifactsRequest] import_goo_get_artifacts_request_object
665
- # @param [String] fields
666
- # Selector specifying which fields to include in a partial response.
667
- # @param [String] quota_user
668
- # Available to use for quota purposes for server-side applications. Can be any
669
- # arbitrary string assigned to a user, but should not exceed 40 characters.
670
- # @param [Google::Apis::RequestOptions] options
671
- # Request-specific options
672
- #
673
- # @yield [result, err] Result & error if block supplied
674
- # @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object
675
- # @yieldparam err [StandardError] error object if request failed
676
- #
677
- # @return [Google::Apis::ArtifactregistryV1::Operation]
678
- #
679
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
680
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
681
- # @raise [Google::Apis::AuthorizationError] Authorization is required
682
- def import_goo_get_artifacts(parent, import_goo_get_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
683
- command = make_simple_command(:post, 'v1/{+parent}/gooGetArtifacts:import', options)
684
- command.request_representation = Google::Apis::ArtifactregistryV1::ImportGooGetArtifactsRequest::Representation
685
- command.request_object = import_goo_get_artifacts_request_object
686
- command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
687
- command.response_class = Google::Apis::ArtifactregistryV1::Operation
688
- command.params['parent'] = parent unless parent.nil?
689
- command.query['fields'] = fields unless fields.nil?
690
- command.query['quotaUser'] = quota_user unless quota_user.nil?
691
- execute_or_queue_command(command, &block)
692
- end
693
-
694
- # Directly uploads a GooGet artifact. The returned Operation will complete once
695
- # the resources are uploaded. Package, Version, and File resources are created
696
- # based on the imported artifact. Imported artifacts that conflict with existing
697
- # resources are ignored.
698
- # @param [String] parent
699
- # The name of the parent resource where the artifacts will be uploaded.
700
- # @param [Google::Apis::ArtifactregistryV1::UploadGooGetArtifactRequest] upload_goo_get_artifact_request_object
701
- # @param [String] fields
702
- # Selector specifying which fields to include in a partial response.
703
- # @param [String] quota_user
704
- # Available to use for quota purposes for server-side applications. Can be any
705
- # arbitrary string assigned to a user, but should not exceed 40 characters.
706
- # @param [IO, String] upload_source
707
- # IO stream or filename containing content to upload
708
- # @param [String] content_type
709
- # Content type of the uploaded content.
710
- # @param [Google::Apis::RequestOptions] options
711
- # Request-specific options
712
- #
713
- # @yield [result, err] Result & error if block supplied
714
- # @yieldparam result [Google::Apis::ArtifactregistryV1::UploadGooGetArtifactMediaResponse] parsed result object
715
- # @yieldparam err [StandardError] error object if request failed
716
- #
717
- # @return [Google::Apis::ArtifactregistryV1::UploadGooGetArtifactMediaResponse]
718
- #
719
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
720
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
721
- # @raise [Google::Apis::AuthorizationError] Authorization is required
722
- def upload_googet_artifact_goo_get_artifact(parent, upload_goo_get_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
723
- if upload_source.nil?
724
- command = make_simple_command(:post, 'v1/{+parent}/googetArtifacts:create', options)
725
- else
726
- command = make_upload_command(:post, 'v1/{+parent}/googetArtifacts:create', options)
727
- command.upload_source = upload_source
728
- command.upload_content_type = content_type
729
- end
730
- command.request_representation = Google::Apis::ArtifactregistryV1::UploadGooGetArtifactRequest::Representation
731
- command.request_object = upload_goo_get_artifact_request_object
732
- command.response_representation = Google::Apis::ArtifactregistryV1::UploadGooGetArtifactMediaResponse::Representation
733
- command.response_class = Google::Apis::ArtifactregistryV1::UploadGooGetArtifactMediaResponse
734
- command.params['parent'] = parent unless parent.nil?
735
- command.query['fields'] = fields unless fields.nil?
736
- command.query['quotaUser'] = quota_user unless quota_user.nil?
737
- execute_or_queue_command(command, &block)
738
- end
739
-
740
735
  # Deletes a package and all of its versions and tags. The returned operation
741
736
  # will complete once the package has been deleted.
742
737
  # @param [String] name
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.18.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-14 00:00:00.000000000 Z
11
+ date: 2022-03-21 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.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.21.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: []