google-apis-artifactregistry_v1 0.20.0 → 0.21.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: 23d549c8cd0629de7692790bb3438b35d293f1f1b2cb99206744eba152474277
4
- data.tar.gz: 76acae6ed74992c00babb3b16de94de75de86643a53cafe8bb3b6ae493c1e849
3
+ metadata.gz: 6de82b527e3a267ecf7f72050246e5e59759b6ccc455abd29c4ee30fce310962
4
+ data.tar.gz: 9c0d3e4e6e40f65b90fc85b083eab9397bf7af04bfdb2632d94dac727a869304
5
5
  SHA512:
6
- metadata.gz: c8d9744f39b674dcbdd37c639bc384f4ccba10a175c9df9cf8a67061cb011b084f717ce6546501db31a371a47e6297e1c53147c451765331d97fbddac3f40783
7
- data.tar.gz: 5bee37aa87a439d0dd88731dd810914de32f557af1ed2d3b1b4a922bfdfb2c12e62efb3da31488d8484ac1c6763bd50daefd052ed57266f9268e83260ce24aa3
6
+ metadata.gz: 60686cfce7fd891acdb3e037660b77c2805d796f5f6966df3fb904be91a4b36399df438a34fc38cfec776fc1a965e7266e5a4c3870c59cba681fdd7387243cdd
7
+ data.tar.gz: 95ccd7366caca6e3cc2cc2d145ebc35c1bc2a1f996a4200b0188d5ec54c525dcc3ff7c9f4c25ab9157bd0963b89c96dbc0d541e6b3876161c5ef675bb3f85a12
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.20.0 (2022-03-10)
4
8
 
5
9
  * Regenerated from discovery document revision 20220307
@@ -456,6 +456,31 @@ module Google
456
456
  end
457
457
  end
458
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
+
459
484
  # The response from listing packages.
460
485
  class ListPackagesResponse
461
486
  include Google::Apis::Core::Hashable
@@ -560,6 +585,53 @@ module Google
560
585
  end
561
586
  end
562
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
+
563
635
  # MavenRepositoryConfig is maven related repository details. Provides additional
564
636
  # configuration details for repositories of the maven format type.
565
637
  class MavenRepositoryConfig
@@ -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.20.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 = "20220307"
25
+ REVISION = "20220311"
26
26
  end
27
27
  end
28
28
  end
@@ -94,6 +94,12 @@ module Google
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
+ class ListLocationsResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
97
103
  class ListPackagesResponse
98
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
105
 
@@ -118,6 +124,12 @@ module Google
118
124
  include Google::Apis::Core::JsonObjectSupport
119
125
  end
120
126
 
127
+ class Location
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
121
133
  class MavenRepositoryConfig
122
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
135
 
@@ -324,6 +336,15 @@ module Google
324
336
  end
325
337
  end
326
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
+
327
348
  class ListPackagesResponse
328
349
  # @private
329
350
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -360,6 +381,17 @@ module Google
360
381
  end
361
382
  end
362
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
+
363
395
  class MavenRepositoryConfig
364
396
  # @private
365
397
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -117,6 +117,79 @@ module Google
117
117
  execute_or_queue_command(command, &block)
118
118
  end
119
119
 
120
+ # Gets information about a location.
121
+ # @param [String] name
122
+ # Resource name for the location.
123
+ # @param [String] fields
124
+ # Selector specifying which fields to include in a partial response.
125
+ # @param [String] quota_user
126
+ # Available to use for quota purposes for server-side applications. Can be any
127
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
128
+ # @param [Google::Apis::RequestOptions] options
129
+ # Request-specific options
130
+ #
131
+ # @yield [result, err] Result & error if block supplied
132
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::Location] parsed result object
133
+ # @yieldparam err [StandardError] error object if request failed
134
+ #
135
+ # @return [Google::Apis::ArtifactregistryV1::Location]
136
+ #
137
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
138
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
139
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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
+
120
193
  # Gets the latest state of a long-running operation. Clients can use this method
121
194
  # to poll the operation result at intervals as recommended by the API service.
122
195
  # @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.20.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-03-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.20.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: []