google-api-client 0.39.4 → 0.39.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +65 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +3 -1
  5. data/generated/google/apis/apigee_v1.rb +1 -1
  6. data/generated/google/apis/apigee_v1/classes.rb +7 -0
  7. data/generated/google/apis/apigee_v1/representations.rb +1 -0
  8. data/generated/google/apis/apigee_v1/service.rb +9 -1
  9. data/generated/google/apis/artifactregistry_v1beta1.rb +38 -0
  10. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +1010 -0
  11. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +380 -0
  12. data/generated/google/apis/artifactregistry_v1beta1/service.rb +957 -0
  13. data/generated/google/apis/bigquery_v2.rb +1 -1
  14. data/generated/google/apis/bigquery_v2/classes.rb +12 -1
  15. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  16. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  17. data/generated/google/apis/bigqueryreservation_v1/service.rb +8 -8
  18. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  19. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +18 -14
  20. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +93 -68
  21. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  22. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +21 -0
  23. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +6 -0
  24. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  25. data/generated/google/apis/binaryauthorization_v1/classes.rb +4 -1
  26. data/generated/google/apis/calendar_v3.rb +1 -1
  27. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  28. data/generated/google/apis/cloudasset_v1.rb +1 -1
  29. data/generated/google/apis/cloudasset_v1/classes.rb +371 -27
  30. data/generated/google/apis/cloudasset_v1/representations.rb +97 -0
  31. data/generated/google/apis/cloudasset_v1/service.rb +186 -8
  32. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  33. data/generated/google/apis/cloudasset_v1beta1/classes.rb +23 -10
  34. data/generated/google/apis/cloudasset_v1beta1/service.rb +12 -3
  35. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  36. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +42 -10
  37. data/generated/google/apis/cloudasset_v1p1beta1/representations.rb +2 -0
  38. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +1 -0
  41. data/generated/google/apis/cloudbuild_v1/service.rb +121 -0
  42. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +142 -0
  44. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +60 -0
  45. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +121 -0
  46. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  47. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +142 -0
  48. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +60 -0
  49. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +121 -0
  50. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  51. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +6 -0
  52. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +1 -0
  53. data/generated/google/apis/container_v1beta1.rb +1 -1
  54. data/generated/google/apis/container_v1beta1/classes.rb +35 -0
  55. data/generated/google/apis/container_v1beta1/representations.rb +17 -0
  56. data/generated/google/apis/content_v2_1.rb +1 -1
  57. data/generated/google/apis/content_v2_1/classes.rb +6 -0
  58. data/generated/google/apis/content_v2_1/representations.rb +1 -0
  59. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  60. data/generated/google/apis/dataproc_v1beta2/classes.rb +26 -12
  61. data/generated/google/apis/dataproc_v1beta2/service.rb +35 -21
  62. data/generated/google/apis/datastore_v1.rb +1 -1
  63. data/generated/google/apis/datastore_v1/classes.rb +1 -1
  64. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  65. data/generated/google/apis/datastore_v1beta3/classes.rb +1 -1
  66. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  67. data/generated/google/apis/deploymentmanager_alpha/classes.rb +362 -176
  68. data/generated/google/apis/deploymentmanager_alpha/representations.rb +22 -4
  69. data/generated/google/apis/deploymentmanager_alpha/service.rb +198 -311
  70. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  71. data/generated/google/apis/deploymentmanager_v2/classes.rb +295 -146
  72. data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -1
  73. data/generated/google/apis/deploymentmanager_v2/service.rb +101 -99
  74. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  75. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +350 -170
  76. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +18 -1
  77. data/generated/google/apis/deploymentmanager_v2beta/service.rb +154 -152
  78. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  79. data/generated/google/apis/dfareporting_v3_3/classes.rb +2 -2
  80. data/generated/google/apis/dfareporting_v3_3/service.rb +2 -2
  81. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  82. data/generated/google/apis/dfareporting_v3_4/classes.rb +2 -2
  83. data/generated/google/apis/dfareporting_v3_4/service.rb +2 -2
  84. data/generated/google/apis/dialogflow_v2.rb +1 -1
  85. data/generated/google/apis/dialogflow_v2/classes.rb +3 -0
  86. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  87. data/generated/google/apis/dialogflow_v2beta1/classes.rb +3 -0
  88. data/generated/google/apis/dialogflow_v2beta1/service.rb +2 -2
  89. data/generated/google/apis/dialogflow_v3alpha1.rb +38 -0
  90. data/generated/google/apis/dialogflow_v3alpha1/classes.rb +5022 -0
  91. data/generated/google/apis/dialogflow_v3alpha1/representations.rb +2057 -0
  92. data/generated/google/apis/dialogflow_v3alpha1/service.rb +296 -0
  93. data/generated/google/apis/displayvideo_v1.rb +1 -1
  94. data/generated/google/apis/displayvideo_v1/service.rb +7 -2
  95. data/generated/google/apis/dlp_v2.rb +1 -1
  96. data/generated/google/apis/dlp_v2/classes.rb +9 -21
  97. data/generated/google/apis/dlp_v2/service.rb +79 -142
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v1/classes.rb +160 -261
  100. data/generated/google/apis/dns_v1/representations.rb +17 -0
  101. data/generated/google/apis/dns_v1/service.rb +21 -141
  102. data/generated/google/apis/dns_v1beta2.rb +1 -1
  103. data/generated/google/apis/dns_v1beta2/classes.rb +189 -273
  104. data/generated/google/apis/dns_v1beta2/representations.rb +32 -0
  105. data/generated/google/apis/dns_v1beta2/service.rb +21 -141
  106. data/generated/google/apis/dns_v2beta1.rb +1 -1
  107. data/generated/google/apis/dns_v2beta1/classes.rb +160 -261
  108. data/generated/google/apis/dns_v2beta1/representations.rb +17 -0
  109. data/generated/google/apis/dns_v2beta1/service.rb +21 -141
  110. data/generated/google/apis/file_v1.rb +1 -1
  111. data/generated/google/apis/file_v1/classes.rb +31 -0
  112. data/generated/google/apis/file_v1/representations.rb +15 -0
  113. data/generated/google/apis/file_v1beta1.rb +1 -1
  114. data/generated/google/apis/file_v1beta1/classes.rb +31 -0
  115. data/generated/google/apis/file_v1beta1/representations.rb +15 -0
  116. data/generated/google/apis/{pagespeedonline_v1.rb → firebaseml_v1.rb} +11 -9
  117. data/generated/google/apis/firebaseml_v1/classes.rb +213 -0
  118. data/generated/google/apis/firebaseml_v1/representations.rb +112 -0
  119. data/generated/google/apis/firebaseml_v1/service.rb +181 -0
  120. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  121. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -1
  122. data/generated/google/apis/games_management_v1management.rb +1 -1
  123. data/generated/google/apis/games_management_v1management/service.rb +1 -1
  124. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  125. data/generated/google/apis/iamcredentials_v1/classes.rb +26 -2
  126. data/generated/google/apis/networkmanagement_v1.rb +35 -0
  127. data/generated/google/apis/networkmanagement_v1/classes.rb +1868 -0
  128. data/generated/google/apis/networkmanagement_v1/representations.rb +661 -0
  129. data/generated/google/apis/networkmanagement_v1/service.rb +667 -0
  130. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  131. data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
  132. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
  133. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  134. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
  135. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
  136. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  137. data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
  138. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
  139. data/generated/google/apis/securitycenter_v1.rb +1 -1
  140. data/generated/google/apis/securitycenter_v1/classes.rb +27 -12
  141. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  142. data/generated/google/apis/securitycenter_v1beta1/classes.rb +27 -12
  143. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  144. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +27 -12
  145. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  146. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +0 -31
  147. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -1
  148. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  149. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +0 -31
  150. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +0 -1
  151. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  152. data/generated/google/apis/servicemanagement_v1/classes.rb +0 -31
  153. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
  154. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  155. data/generated/google/apis/servicenetworking_v1/classes.rb +379 -31
  156. data/generated/google/apis/servicenetworking_v1/representations.rb +209 -1
  157. data/generated/google/apis/servicenetworking_v1/service.rb +187 -0
  158. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  159. data/generated/google/apis/servicenetworking_v1beta/classes.rb +188 -31
  160. data/generated/google/apis/servicenetworking_v1beta/representations.rb +130 -1
  161. data/generated/google/apis/serviceusage_v1.rb +1 -1
  162. data/generated/google/apis/serviceusage_v1/classes.rb +0 -31
  163. data/generated/google/apis/serviceusage_v1/representations.rb +0 -1
  164. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  165. data/generated/google/apis/serviceusage_v1beta1/classes.rb +0 -31
  166. data/generated/google/apis/serviceusage_v1beta1/representations.rb +0 -1
  167. data/generated/google/apis/tasks_v1.rb +3 -3
  168. data/generated/google/apis/tasks_v1/classes.rb +26 -25
  169. data/generated/google/apis/tasks_v1/representations.rb +4 -8
  170. data/generated/google/apis/tasks_v1/service.rb +79 -128
  171. data/generated/google/apis/translate_v3.rb +1 -1
  172. data/generated/google/apis/verifiedaccess_v1.rb +3 -3
  173. data/generated/google/apis/verifiedaccess_v1/service.rb +2 -2
  174. data/generated/google/apis/websecurityscanner_v1.rb +2 -2
  175. data/generated/google/apis/websecurityscanner_v1/classes.rb +7 -5
  176. data/generated/google/apis/websecurityscanner_v1/service.rb +1 -1
  177. data/generated/google/apis/websecurityscanner_v1alpha.rb +2 -2
  178. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +5 -4
  179. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
  180. data/generated/google/apis/websecurityscanner_v1beta.rb +2 -2
  181. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +9 -7
  182. data/generated/google/apis/websecurityscanner_v1beta/service.rb +1 -1
  183. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  184. data/generated/google/apis/youtube_v3.rb +5 -5
  185. data/generated/google/apis/youtube_v3/classes.rb +1260 -1244
  186. data/generated/google/apis/youtube_v3/representations.rb +64 -192
  187. data/generated/google/apis/youtube_v3/service.rb +1833 -2125
  188. data/lib/google/apis/version.rb +1 -1
  189. metadata +19 -7
  190. data/generated/google/apis/pagespeedonline_v1/classes.rb +0 -542
  191. data/generated/google/apis/pagespeedonline_v1/representations.rb +0 -258
  192. data/generated/google/apis/pagespeedonline_v1/service.rb +0 -116
@@ -0,0 +1,380 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module ArtifactregistryV1beta1
24
+
25
+ class Binding
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Empty
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Expr
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class File
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class HashProp
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class ListFilesResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ListLocationsResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ListOperationsResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ListPackagesResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ListRepositoriesResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ListTagsResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListVersionsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class Location
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class Operation
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class Package
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Policy
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class Repository
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class SetIamPolicyRequest
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class Status
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Tag
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class TestIamPermissionsRequest
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class TestIamPermissionsResponse
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class Version
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class Binding
164
+ # @private
165
+ class Representation < Google::Apis::Core::JsonRepresentation
166
+ property :condition, as: 'condition', class: Google::Apis::ArtifactregistryV1beta1::Expr, decorator: Google::Apis::ArtifactregistryV1beta1::Expr::Representation
167
+
168
+ collection :members, as: 'members'
169
+ property :role, as: 'role'
170
+ end
171
+ end
172
+
173
+ class Empty
174
+ # @private
175
+ class Representation < Google::Apis::Core::JsonRepresentation
176
+ end
177
+ end
178
+
179
+ class Expr
180
+ # @private
181
+ class Representation < Google::Apis::Core::JsonRepresentation
182
+ property :description, as: 'description'
183
+ property :expression, as: 'expression'
184
+ property :location, as: 'location'
185
+ property :title, as: 'title'
186
+ end
187
+ end
188
+
189
+ class File
190
+ # @private
191
+ class Representation < Google::Apis::Core::JsonRepresentation
192
+ property :create_time, as: 'createTime'
193
+ collection :hashes, as: 'hashes', class: Google::Apis::ArtifactregistryV1beta1::HashProp, decorator: Google::Apis::ArtifactregistryV1beta1::HashProp::Representation
194
+
195
+ property :name, as: 'name'
196
+ property :owner, as: 'owner'
197
+ property :size_bytes, :numeric_string => true, as: 'sizeBytes'
198
+ property :update_time, as: 'updateTime'
199
+ end
200
+ end
201
+
202
+ class HashProp
203
+ # @private
204
+ class Representation < Google::Apis::Core::JsonRepresentation
205
+ property :type, as: 'type'
206
+ property :value, :base64 => true, as: 'value'
207
+ end
208
+ end
209
+
210
+ class ListFilesResponse
211
+ # @private
212
+ class Representation < Google::Apis::Core::JsonRepresentation
213
+ collection :files, as: 'files', class: Google::Apis::ArtifactregistryV1beta1::File, decorator: Google::Apis::ArtifactregistryV1beta1::File::Representation
214
+
215
+ property :next_page_token, as: 'nextPageToken'
216
+ end
217
+ end
218
+
219
+ class ListLocationsResponse
220
+ # @private
221
+ class Representation < Google::Apis::Core::JsonRepresentation
222
+ collection :locations, as: 'locations', class: Google::Apis::ArtifactregistryV1beta1::Location, decorator: Google::Apis::ArtifactregistryV1beta1::Location::Representation
223
+
224
+ property :next_page_token, as: 'nextPageToken'
225
+ end
226
+ end
227
+
228
+ class ListOperationsResponse
229
+ # @private
230
+ class Representation < Google::Apis::Core::JsonRepresentation
231
+ property :next_page_token, as: 'nextPageToken'
232
+ collection :operations, as: 'operations', class: Google::Apis::ArtifactregistryV1beta1::Operation, decorator: Google::Apis::ArtifactregistryV1beta1::Operation::Representation
233
+
234
+ end
235
+ end
236
+
237
+ class ListPackagesResponse
238
+ # @private
239
+ class Representation < Google::Apis::Core::JsonRepresentation
240
+ property :next_page_token, as: 'nextPageToken'
241
+ collection :packages, as: 'packages', class: Google::Apis::ArtifactregistryV1beta1::Package, decorator: Google::Apis::ArtifactregistryV1beta1::Package::Representation
242
+
243
+ end
244
+ end
245
+
246
+ class ListRepositoriesResponse
247
+ # @private
248
+ class Representation < Google::Apis::Core::JsonRepresentation
249
+ property :next_page_token, as: 'nextPageToken'
250
+ collection :repositories, as: 'repositories', class: Google::Apis::ArtifactregistryV1beta1::Repository, decorator: Google::Apis::ArtifactregistryV1beta1::Repository::Representation
251
+
252
+ end
253
+ end
254
+
255
+ class ListTagsResponse
256
+ # @private
257
+ class Representation < Google::Apis::Core::JsonRepresentation
258
+ property :next_page_token, as: 'nextPageToken'
259
+ collection :tags, as: 'tags', class: Google::Apis::ArtifactregistryV1beta1::Tag, decorator: Google::Apis::ArtifactregistryV1beta1::Tag::Representation
260
+
261
+ end
262
+ end
263
+
264
+ class ListVersionsResponse
265
+ # @private
266
+ class Representation < Google::Apis::Core::JsonRepresentation
267
+ property :next_page_token, as: 'nextPageToken'
268
+ collection :versions, as: 'versions', class: Google::Apis::ArtifactregistryV1beta1::Version, decorator: Google::Apis::ArtifactregistryV1beta1::Version::Representation
269
+
270
+ end
271
+ end
272
+
273
+ class Location
274
+ # @private
275
+ class Representation < Google::Apis::Core::JsonRepresentation
276
+ property :display_name, as: 'displayName'
277
+ hash :labels, as: 'labels'
278
+ property :location_id, as: 'locationId'
279
+ hash :metadata, as: 'metadata'
280
+ property :name, as: 'name'
281
+ end
282
+ end
283
+
284
+ class Operation
285
+ # @private
286
+ class Representation < Google::Apis::Core::JsonRepresentation
287
+ property :done, as: 'done'
288
+ property :error, as: 'error', class: Google::Apis::ArtifactregistryV1beta1::Status, decorator: Google::Apis::ArtifactregistryV1beta1::Status::Representation
289
+
290
+ hash :metadata, as: 'metadata'
291
+ property :name, as: 'name'
292
+ hash :response, as: 'response'
293
+ end
294
+ end
295
+
296
+ class Package
297
+ # @private
298
+ class Representation < Google::Apis::Core::JsonRepresentation
299
+ property :create_time, as: 'createTime'
300
+ property :display_name, as: 'displayName'
301
+ property :name, as: 'name'
302
+ property :update_time, as: 'updateTime'
303
+ end
304
+ end
305
+
306
+ class Policy
307
+ # @private
308
+ class Representation < Google::Apis::Core::JsonRepresentation
309
+ collection :bindings, as: 'bindings', class: Google::Apis::ArtifactregistryV1beta1::Binding, decorator: Google::Apis::ArtifactregistryV1beta1::Binding::Representation
310
+
311
+ property :etag, :base64 => true, as: 'etag'
312
+ property :version, as: 'version'
313
+ end
314
+ end
315
+
316
+ class Repository
317
+ # @private
318
+ class Representation < Google::Apis::Core::JsonRepresentation
319
+ property :create_time, as: 'createTime'
320
+ property :description, as: 'description'
321
+ property :format, as: 'format'
322
+ hash :labels, as: 'labels'
323
+ property :name, as: 'name'
324
+ property :update_time, as: 'updateTime'
325
+ end
326
+ end
327
+
328
+ class SetIamPolicyRequest
329
+ # @private
330
+ class Representation < Google::Apis::Core::JsonRepresentation
331
+ property :policy, as: 'policy', class: Google::Apis::ArtifactregistryV1beta1::Policy, decorator: Google::Apis::ArtifactregistryV1beta1::Policy::Representation
332
+
333
+ end
334
+ end
335
+
336
+ class Status
337
+ # @private
338
+ class Representation < Google::Apis::Core::JsonRepresentation
339
+ property :code, as: 'code'
340
+ collection :details, as: 'details'
341
+ property :message, as: 'message'
342
+ end
343
+ end
344
+
345
+ class Tag
346
+ # @private
347
+ class Representation < Google::Apis::Core::JsonRepresentation
348
+ property :name, as: 'name'
349
+ property :version, as: 'version'
350
+ end
351
+ end
352
+
353
+ class TestIamPermissionsRequest
354
+ # @private
355
+ class Representation < Google::Apis::Core::JsonRepresentation
356
+ collection :permissions, as: 'permissions'
357
+ end
358
+ end
359
+
360
+ class TestIamPermissionsResponse
361
+ # @private
362
+ class Representation < Google::Apis::Core::JsonRepresentation
363
+ collection :permissions, as: 'permissions'
364
+ end
365
+ end
366
+
367
+ class Version
368
+ # @private
369
+ class Representation < Google::Apis::Core::JsonRepresentation
370
+ property :create_time, as: 'createTime'
371
+ property :description, as: 'description'
372
+ property :name, as: 'name'
373
+ collection :related_tags, as: 'relatedTags', class: Google::Apis::ArtifactregistryV1beta1::Tag, decorator: Google::Apis::ArtifactregistryV1beta1::Tag::Representation
374
+
375
+ property :update_time, as: 'updateTime'
376
+ end
377
+ end
378
+ end
379
+ end
380
+ end
@@ -0,0 +1,957 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module ArtifactregistryV1beta1
23
+ # Artifact Registry API
24
+ #
25
+ # Store and manage build artifacts in a scalable and integrated service built on
26
+ # Google infrastructure.
27
+ #
28
+ # @example
29
+ # require 'google/apis/artifactregistry_v1beta1'
30
+ #
31
+ # Artifactregistry = Google::Apis::ArtifactregistryV1beta1 # Alias the module
32
+ # service = Artifactregistry::ArtifactRegistryService.new
33
+ #
34
+ # @see https://cloud.google.com/artifacts/docs/
35
+ class ArtifactRegistryService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://artifactregistry.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Gets information about a location.
52
+ # @param [String] name
53
+ # Resource name for the location.
54
+ # @param [String] fields
55
+ # Selector specifying which fields to include in a partial response.
56
+ # @param [String] quota_user
57
+ # Available to use for quota purposes for server-side applications. Can be any
58
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59
+ # @param [Google::Apis::RequestOptions] options
60
+ # Request-specific options
61
+ #
62
+ # @yield [result, err] Result & error if block supplied
63
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Location] parsed result object
64
+ # @yieldparam err [StandardError] error object if request failed
65
+ #
66
+ # @return [Google::Apis::ArtifactregistryV1beta1::Location]
67
+ #
68
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
71
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
72
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
73
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Location::Representation
74
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Location
75
+ command.params['name'] = name unless name.nil?
76
+ command.query['fields'] = fields unless fields.nil?
77
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
78
+ execute_or_queue_command(command, &block)
79
+ end
80
+
81
+ # Lists information about the supported locations for this service.
82
+ # @param [String] name
83
+ # The resource that owns the locations collection, if applicable.
84
+ # @param [String] filter
85
+ # The standard list filter.
86
+ # @param [Fixnum] page_size
87
+ # The standard list page size.
88
+ # @param [String] page_token
89
+ # The standard list page token.
90
+ # @param [String] fields
91
+ # Selector specifying which fields to include in a partial response.
92
+ # @param [String] quota_user
93
+ # Available to use for quota purposes for server-side applications. Can be any
94
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
95
+ # @param [Google::Apis::RequestOptions] options
96
+ # Request-specific options
97
+ #
98
+ # @yield [result, err] Result & error if block supplied
99
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListLocationsResponse] parsed result object
100
+ # @yieldparam err [StandardError] error object if request failed
101
+ #
102
+ # @return [Google::Apis::ArtifactregistryV1beta1::ListLocationsResponse]
103
+ #
104
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
105
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
106
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
107
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
108
+ command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
109
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListLocationsResponse::Representation
110
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::ListLocationsResponse
111
+ command.params['name'] = name unless name.nil?
112
+ command.query['filter'] = filter unless filter.nil?
113
+ command.query['pageSize'] = page_size unless page_size.nil?
114
+ command.query['pageToken'] = page_token unless page_token.nil?
115
+ command.query['fields'] = fields unless fields.nil?
116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
117
+ execute_or_queue_command(command, &block)
118
+ end
119
+
120
+ # Gets the latest state of a long-running operation. Clients can use this
121
+ # method to poll the operation result at intervals as recommended by the API
122
+ # service.
123
+ # @param [String] name
124
+ # The name of the operation resource.
125
+ # @param [String] fields
126
+ # Selector specifying which fields to include in a partial response.
127
+ # @param [String] quota_user
128
+ # Available to use for quota purposes for server-side applications. Can be any
129
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
130
+ # @param [Google::Apis::RequestOptions] options
131
+ # Request-specific options
132
+ #
133
+ # @yield [result, err] Result & error if block supplied
134
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Operation] parsed result object
135
+ # @yieldparam err [StandardError] error object if request failed
136
+ #
137
+ # @return [Google::Apis::ArtifactregistryV1beta1::Operation]
138
+ #
139
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
140
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
141
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
142
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
143
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
144
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
145
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
146
+ command.params['name'] = name unless name.nil?
147
+ command.query['fields'] = fields unless fields.nil?
148
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
149
+ execute_or_queue_command(command, &block)
150
+ end
151
+
152
+ # Lists operations that match the specified filter in the request. If the
153
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
154
+ # NOTE: the `name` binding allows API services to override the binding
155
+ # to use different resource name schemes, such as `users/*/operations`. To
156
+ # override the binding, API services can add a binding such as
157
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
158
+ # For backwards compatibility, the default name includes the operations
159
+ # collection id, however overriding users must ensure the name binding
160
+ # is the parent resource, without the operations collection id.
161
+ # @param [String] name
162
+ # The name of the operation's parent resource.
163
+ # @param [String] filter
164
+ # The standard list filter.
165
+ # @param [Fixnum] page_size
166
+ # The standard list page size.
167
+ # @param [String] page_token
168
+ # The standard list page token.
169
+ # @param [String] fields
170
+ # Selector specifying which fields to include in a partial response.
171
+ # @param [String] quota_user
172
+ # Available to use for quota purposes for server-side applications. Can be any
173
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
174
+ # @param [Google::Apis::RequestOptions] options
175
+ # Request-specific options
176
+ #
177
+ # @yield [result, err] Result & error if block supplied
178
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListOperationsResponse] parsed result object
179
+ # @yieldparam err [StandardError] error object if request failed
180
+ #
181
+ # @return [Google::Apis::ArtifactregistryV1beta1::ListOperationsResponse]
182
+ #
183
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
184
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
185
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
186
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
187
+ command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
188
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListOperationsResponse::Representation
189
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::ListOperationsResponse
190
+ command.params['name'] = name unless name.nil?
191
+ command.query['filter'] = filter unless filter.nil?
192
+ command.query['pageSize'] = page_size unless page_size.nil?
193
+ command.query['pageToken'] = page_token unless page_token.nil?
194
+ command.query['fields'] = fields unless fields.nil?
195
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
196
+ execute_or_queue_command(command, &block)
197
+ end
198
+
199
+ # Creates a repository. The returned Operation will finish once the
200
+ # repository has been created. Its response will be the created Repository.
201
+ # @param [String] parent
202
+ # The name of the parent resource where the repository will be created.
203
+ # @param [Google::Apis::ArtifactregistryV1beta1::Repository] repository_object
204
+ # @param [String] repository_id
205
+ # The repository id to use for this repository.
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::ArtifactregistryV1beta1::Operation] parsed result object
216
+ # @yieldparam err [StandardError] error object if request failed
217
+ #
218
+ # @return [Google::Apis::ArtifactregistryV1beta1::Operation]
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 create_project_location_repository(parent, repository_object = nil, repository_id: nil, fields: nil, quota_user: nil, options: nil, &block)
224
+ command = make_simple_command(:post, 'v1beta1/{+parent}/repositories', options)
225
+ command.request_representation = Google::Apis::ArtifactregistryV1beta1::Repository::Representation
226
+ command.request_object = repository_object
227
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
228
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
229
+ command.params['parent'] = parent unless parent.nil?
230
+ command.query['repositoryId'] = repository_id unless repository_id.nil?
231
+ command.query['fields'] = fields unless fields.nil?
232
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
233
+ execute_or_queue_command(command, &block)
234
+ end
235
+
236
+ # Deletes a repository and all of its contents. The returned Operation will
237
+ # finish once the repository has been deleted. It will not have any Operation
238
+ # metadata and will return a google.protobuf.Empty response.
239
+ # @param [String] name
240
+ # The name of the repository to delete.
241
+ # @param [String] fields
242
+ # Selector specifying which fields to include in a partial response.
243
+ # @param [String] quota_user
244
+ # Available to use for quota purposes for server-side applications. Can be any
245
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
246
+ # @param [Google::Apis::RequestOptions] options
247
+ # Request-specific options
248
+ #
249
+ # @yield [result, err] Result & error if block supplied
250
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Operation] parsed result object
251
+ # @yieldparam err [StandardError] error object if request failed
252
+ #
253
+ # @return [Google::Apis::ArtifactregistryV1beta1::Operation]
254
+ #
255
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
256
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
257
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
258
+ def delete_project_location_repository(name, fields: nil, quota_user: nil, options: nil, &block)
259
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
260
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
261
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
262
+ command.params['name'] = name unless name.nil?
263
+ command.query['fields'] = fields unless fields.nil?
264
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
265
+ execute_or_queue_command(command, &block)
266
+ end
267
+
268
+ # Gets a repository.
269
+ # @param [String] name
270
+ # The name of the repository to retrieve.
271
+ # @param [String] fields
272
+ # Selector specifying which fields to include in a partial response.
273
+ # @param [String] quota_user
274
+ # Available to use for quota purposes for server-side applications. Can be any
275
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
276
+ # @param [Google::Apis::RequestOptions] options
277
+ # Request-specific options
278
+ #
279
+ # @yield [result, err] Result & error if block supplied
280
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Repository] parsed result object
281
+ # @yieldparam err [StandardError] error object if request failed
282
+ #
283
+ # @return [Google::Apis::ArtifactregistryV1beta1::Repository]
284
+ #
285
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
286
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
287
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
288
+ def get_project_location_repository(name, fields: nil, quota_user: nil, options: nil, &block)
289
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
290
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Repository::Representation
291
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Repository
292
+ command.params['name'] = name unless name.nil?
293
+ command.query['fields'] = fields unless fields.nil?
294
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
295
+ execute_or_queue_command(command, &block)
296
+ end
297
+
298
+ # Gets the IAM policy for a given resource.
299
+ # @param [String] resource
300
+ # REQUIRED: The resource for which the policy is being requested.
301
+ # See the operation documentation for the appropriate value for this field.
302
+ # @param [Fixnum] options_requested_policy_version
303
+ # Optional. The policy format version to be returned.
304
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
305
+ # rejected.
306
+ # Requests for policies with any conditional bindings must specify version 3.
307
+ # Policies without any conditional bindings may specify any valid value or
308
+ # leave the field unset.
309
+ # To learn which resources support conditions in their IAM policies, see the
310
+ # [IAM
311
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
312
+ # @param [String] fields
313
+ # Selector specifying which fields to include in a partial response.
314
+ # @param [String] quota_user
315
+ # Available to use for quota purposes for server-side applications. Can be any
316
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
317
+ # @param [Google::Apis::RequestOptions] options
318
+ # Request-specific options
319
+ #
320
+ # @yield [result, err] Result & error if block supplied
321
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Policy] parsed result object
322
+ # @yieldparam err [StandardError] error object if request failed
323
+ #
324
+ # @return [Google::Apis::ArtifactregistryV1beta1::Policy]
325
+ #
326
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
327
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
328
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
329
+ def get_project_location_repository_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
330
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
331
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Policy::Representation
332
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Policy
333
+ command.params['resource'] = resource unless resource.nil?
334
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
335
+ command.query['fields'] = fields unless fields.nil?
336
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
337
+ execute_or_queue_command(command, &block)
338
+ end
339
+
340
+ # Lists repositories.
341
+ # @param [String] parent
342
+ # The name of the parent resource whose repositories will be listed.
343
+ # @param [Fixnum] page_size
344
+ # The maximum number of repositories to return.
345
+ # @param [String] page_token
346
+ # The next_page_token value returned from a previous list request, if any.
347
+ # @param [String] fields
348
+ # Selector specifying which fields to include in a partial response.
349
+ # @param [String] quota_user
350
+ # Available to use for quota purposes for server-side applications. Can be any
351
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
352
+ # @param [Google::Apis::RequestOptions] options
353
+ # Request-specific options
354
+ #
355
+ # @yield [result, err] Result & error if block supplied
356
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListRepositoriesResponse] parsed result object
357
+ # @yieldparam err [StandardError] error object if request failed
358
+ #
359
+ # @return [Google::Apis::ArtifactregistryV1beta1::ListRepositoriesResponse]
360
+ #
361
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
362
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
363
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
364
+ def list_project_location_repositories(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
365
+ command = make_simple_command(:get, 'v1beta1/{+parent}/repositories', options)
366
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListRepositoriesResponse::Representation
367
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::ListRepositoriesResponse
368
+ command.params['parent'] = parent unless parent.nil?
369
+ command.query['pageSize'] = page_size unless page_size.nil?
370
+ command.query['pageToken'] = page_token unless page_token.nil?
371
+ command.query['fields'] = fields unless fields.nil?
372
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
373
+ execute_or_queue_command(command, &block)
374
+ end
375
+
376
+ # Updates a repository.
377
+ # @param [String] name
378
+ # The name of the repository, for example:
379
+ # "projects/p1/locations/us-central1/repositories/repo1".
380
+ # @param [Google::Apis::ArtifactregistryV1beta1::Repository] repository_object
381
+ # @param [String] update_mask
382
+ # The update mask applies to the resource. For the `FieldMask` definition,
383
+ # see
384
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
385
+ # fieldmask
386
+ # @param [String] fields
387
+ # Selector specifying which fields to include in a partial response.
388
+ # @param [String] quota_user
389
+ # Available to use for quota purposes for server-side applications. Can be any
390
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
391
+ # @param [Google::Apis::RequestOptions] options
392
+ # Request-specific options
393
+ #
394
+ # @yield [result, err] Result & error if block supplied
395
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Repository] parsed result object
396
+ # @yieldparam err [StandardError] error object if request failed
397
+ #
398
+ # @return [Google::Apis::ArtifactregistryV1beta1::Repository]
399
+ #
400
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
401
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
402
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
403
+ def patch_project_location_repository(name, repository_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
404
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
405
+ command.request_representation = Google::Apis::ArtifactregistryV1beta1::Repository::Representation
406
+ command.request_object = repository_object
407
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Repository::Representation
408
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Repository
409
+ command.params['name'] = name unless name.nil?
410
+ command.query['updateMask'] = update_mask unless update_mask.nil?
411
+ command.query['fields'] = fields unless fields.nil?
412
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
413
+ execute_or_queue_command(command, &block)
414
+ end
415
+
416
+ # Updates the IAM policy for a given resource.
417
+ # @param [String] resource
418
+ # REQUIRED: The resource for which the policy is being specified.
419
+ # See the operation documentation for the appropriate value for this field.
420
+ # @param [Google::Apis::ArtifactregistryV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
421
+ # @param [String] fields
422
+ # Selector specifying which fields to include in a partial response.
423
+ # @param [String] quota_user
424
+ # Available to use for quota purposes for server-side applications. Can be any
425
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
426
+ # @param [Google::Apis::RequestOptions] options
427
+ # Request-specific options
428
+ #
429
+ # @yield [result, err] Result & error if block supplied
430
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Policy] parsed result object
431
+ # @yieldparam err [StandardError] error object if request failed
432
+ #
433
+ # @return [Google::Apis::ArtifactregistryV1beta1::Policy]
434
+ #
435
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
436
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
437
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
438
+ def set_repository_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
439
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
440
+ command.request_representation = Google::Apis::ArtifactregistryV1beta1::SetIamPolicyRequest::Representation
441
+ command.request_object = set_iam_policy_request_object
442
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Policy::Representation
443
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Policy
444
+ command.params['resource'] = resource unless resource.nil?
445
+ command.query['fields'] = fields unless fields.nil?
446
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
447
+ execute_or_queue_command(command, &block)
448
+ end
449
+
450
+ # Tests if the caller has a list of permissions on a resource.
451
+ # @param [String] resource
452
+ # REQUIRED: The resource for which the policy detail is being requested.
453
+ # See the operation documentation for the appropriate value for this field.
454
+ # @param [Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
455
+ # @param [String] fields
456
+ # Selector specifying which fields to include in a partial response.
457
+ # @param [String] quota_user
458
+ # Available to use for quota purposes for server-side applications. Can be any
459
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
460
+ # @param [Google::Apis::RequestOptions] options
461
+ # Request-specific options
462
+ #
463
+ # @yield [result, err] Result & error if block supplied
464
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsResponse] parsed result object
465
+ # @yieldparam err [StandardError] error object if request failed
466
+ #
467
+ # @return [Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsResponse]
468
+ #
469
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
470
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
471
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
472
+ def test_repository_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
473
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
474
+ command.request_representation = Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsRequest::Representation
475
+ command.request_object = test_iam_permissions_request_object
476
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsResponse::Representation
477
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsResponse
478
+ command.params['resource'] = resource unless resource.nil?
479
+ command.query['fields'] = fields unless fields.nil?
480
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
481
+ execute_or_queue_command(command, &block)
482
+ end
483
+
484
+ # Gets a file.
485
+ # @param [String] name
486
+ # The name of the file to retrieve.
487
+ # @param [String] fields
488
+ # Selector specifying which fields to include in a partial response.
489
+ # @param [String] quota_user
490
+ # Available to use for quota purposes for server-side applications. Can be any
491
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
492
+ # @param [Google::Apis::RequestOptions] options
493
+ # Request-specific options
494
+ #
495
+ # @yield [result, err] Result & error if block supplied
496
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::File] parsed result object
497
+ # @yieldparam err [StandardError] error object if request failed
498
+ #
499
+ # @return [Google::Apis::ArtifactregistryV1beta1::File]
500
+ #
501
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
502
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
503
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
504
+ def get_project_location_repository_file(name, fields: nil, quota_user: nil, options: nil, &block)
505
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
506
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::File::Representation
507
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::File
508
+ command.params['name'] = name unless name.nil?
509
+ command.query['fields'] = fields unless fields.nil?
510
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
511
+ execute_or_queue_command(command, &block)
512
+ end
513
+
514
+ # Lists files.
515
+ # @param [String] parent
516
+ # The name of the parent resource whose files will be listed.
517
+ # @param [String] filter
518
+ # An expression for filtering the results of the request. Filter rules are
519
+ # case insensitive. The fields eligible for filtering are:
520
+ # * `name`
521
+ # * `owner`
522
+ # An example of using a filter:
523
+ # * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` -
524
+ # -> Files with an
525
+ # ID starting with "a/b/".
526
+ # * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/
527
+ # versions/1.0"` -->
528
+ # Files owned by the version `1.0` in package `pkg1`.
529
+ # @param [Fixnum] page_size
530
+ # The maximum number of files to return.
531
+ # @param [String] page_token
532
+ # The next_page_token value returned from a previous list request, if any.
533
+ # @param [String] fields
534
+ # Selector specifying which fields to include in a partial response.
535
+ # @param [String] quota_user
536
+ # Available to use for quota purposes for server-side applications. Can be any
537
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
538
+ # @param [Google::Apis::RequestOptions] options
539
+ # Request-specific options
540
+ #
541
+ # @yield [result, err] Result & error if block supplied
542
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListFilesResponse] parsed result object
543
+ # @yieldparam err [StandardError] error object if request failed
544
+ #
545
+ # @return [Google::Apis::ArtifactregistryV1beta1::ListFilesResponse]
546
+ #
547
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
548
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
549
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
550
+ def list_project_location_repository_files(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
551
+ command = make_simple_command(:get, 'v1beta1/{+parent}/files', options)
552
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListFilesResponse::Representation
553
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::ListFilesResponse
554
+ command.params['parent'] = parent unless parent.nil?
555
+ command.query['filter'] = filter unless filter.nil?
556
+ command.query['pageSize'] = page_size unless page_size.nil?
557
+ command.query['pageToken'] = page_token unless page_token.nil?
558
+ command.query['fields'] = fields unless fields.nil?
559
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
560
+ execute_or_queue_command(command, &block)
561
+ end
562
+
563
+ # Deletes a package and all of its versions and tags. The returned operation
564
+ # will complete once the package has been deleted.
565
+ # @param [String] name
566
+ # The name of the package to delete.
567
+ # @param [String] fields
568
+ # Selector specifying which fields to include in a partial response.
569
+ # @param [String] quota_user
570
+ # Available to use for quota purposes for server-side applications. Can be any
571
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
572
+ # @param [Google::Apis::RequestOptions] options
573
+ # Request-specific options
574
+ #
575
+ # @yield [result, err] Result & error if block supplied
576
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Operation] parsed result object
577
+ # @yieldparam err [StandardError] error object if request failed
578
+ #
579
+ # @return [Google::Apis::ArtifactregistryV1beta1::Operation]
580
+ #
581
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
582
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
583
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
584
+ def delete_project_location_repository_package(name, fields: nil, quota_user: nil, options: nil, &block)
585
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
586
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
587
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
588
+ command.params['name'] = name unless name.nil?
589
+ command.query['fields'] = fields unless fields.nil?
590
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
591
+ execute_or_queue_command(command, &block)
592
+ end
593
+
594
+ # Gets a package.
595
+ # @param [String] name
596
+ # The name of the package to retrieve.
597
+ # @param [String] fields
598
+ # Selector specifying which fields to include in a partial response.
599
+ # @param [String] quota_user
600
+ # Available to use for quota purposes for server-side applications. Can be any
601
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
602
+ # @param [Google::Apis::RequestOptions] options
603
+ # Request-specific options
604
+ #
605
+ # @yield [result, err] Result & error if block supplied
606
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Package] parsed result object
607
+ # @yieldparam err [StandardError] error object if request failed
608
+ #
609
+ # @return [Google::Apis::ArtifactregistryV1beta1::Package]
610
+ #
611
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
612
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
613
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
614
+ def get_project_location_repository_package(name, fields: nil, quota_user: nil, options: nil, &block)
615
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
616
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Package::Representation
617
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Package
618
+ command.params['name'] = name unless name.nil?
619
+ command.query['fields'] = fields unless fields.nil?
620
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
621
+ execute_or_queue_command(command, &block)
622
+ end
623
+
624
+ # Lists packages.
625
+ # @param [String] parent
626
+ # The name of the parent resource whose packages will be listed.
627
+ # @param [Fixnum] page_size
628
+ # The maximum number of packages to return.
629
+ # @param [String] page_token
630
+ # The next_page_token value returned from a previous list request, if any.
631
+ # @param [String] fields
632
+ # Selector specifying which fields to include in a partial response.
633
+ # @param [String] quota_user
634
+ # Available to use for quota purposes for server-side applications. Can be any
635
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
636
+ # @param [Google::Apis::RequestOptions] options
637
+ # Request-specific options
638
+ #
639
+ # @yield [result, err] Result & error if block supplied
640
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListPackagesResponse] parsed result object
641
+ # @yieldparam err [StandardError] error object if request failed
642
+ #
643
+ # @return [Google::Apis::ArtifactregistryV1beta1::ListPackagesResponse]
644
+ #
645
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
646
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
647
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
648
+ def list_project_location_repository_packages(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
649
+ command = make_simple_command(:get, 'v1beta1/{+parent}/packages', options)
650
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListPackagesResponse::Representation
651
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::ListPackagesResponse
652
+ command.params['parent'] = parent unless parent.nil?
653
+ command.query['pageSize'] = page_size unless page_size.nil?
654
+ command.query['pageToken'] = page_token unless page_token.nil?
655
+ command.query['fields'] = fields unless fields.nil?
656
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
657
+ execute_or_queue_command(command, &block)
658
+ end
659
+
660
+ # Creates a tag.
661
+ # @param [String] parent
662
+ # The name of the parent resource where the tag will be created.
663
+ # @param [Google::Apis::ArtifactregistryV1beta1::Tag] tag_object
664
+ # @param [String] tag_id
665
+ # The tag id to use for this repository.
666
+ # @param [String] fields
667
+ # Selector specifying which fields to include in a partial response.
668
+ # @param [String] quota_user
669
+ # Available to use for quota purposes for server-side applications. Can be any
670
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
671
+ # @param [Google::Apis::RequestOptions] options
672
+ # Request-specific options
673
+ #
674
+ # @yield [result, err] Result & error if block supplied
675
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Tag] parsed result object
676
+ # @yieldparam err [StandardError] error object if request failed
677
+ #
678
+ # @return [Google::Apis::ArtifactregistryV1beta1::Tag]
679
+ #
680
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
681
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
682
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
683
+ def create_project_location_repository_package_tag(parent, tag_object = nil, tag_id: nil, fields: nil, quota_user: nil, options: nil, &block)
684
+ command = make_simple_command(:post, 'v1beta1/{+parent}/tags', options)
685
+ command.request_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
686
+ command.request_object = tag_object
687
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
688
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Tag
689
+ command.params['parent'] = parent unless parent.nil?
690
+ command.query['tagId'] = tag_id unless tag_id.nil?
691
+ command.query['fields'] = fields unless fields.nil?
692
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
693
+ execute_or_queue_command(command, &block)
694
+ end
695
+
696
+ # Deletes a tag.
697
+ # @param [String] name
698
+ # The name of the tag to delete.
699
+ # @param [String] fields
700
+ # Selector specifying which fields to include in a partial response.
701
+ # @param [String] quota_user
702
+ # Available to use for quota purposes for server-side applications. Can be any
703
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
704
+ # @param [Google::Apis::RequestOptions] options
705
+ # Request-specific options
706
+ #
707
+ # @yield [result, err] Result & error if block supplied
708
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Empty] parsed result object
709
+ # @yieldparam err [StandardError] error object if request failed
710
+ #
711
+ # @return [Google::Apis::ArtifactregistryV1beta1::Empty]
712
+ #
713
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
714
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
715
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
716
+ def delete_project_location_repository_package_tag(name, fields: nil, quota_user: nil, options: nil, &block)
717
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
718
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Empty::Representation
719
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Empty
720
+ command.params['name'] = name unless name.nil?
721
+ command.query['fields'] = fields unless fields.nil?
722
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
723
+ execute_or_queue_command(command, &block)
724
+ end
725
+
726
+ # Gets a tag.
727
+ # @param [String] name
728
+ # The name of the tag to retrieve.
729
+ # @param [String] fields
730
+ # Selector specifying which fields to include in a partial response.
731
+ # @param [String] quota_user
732
+ # Available to use for quota purposes for server-side applications. Can be any
733
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
734
+ # @param [Google::Apis::RequestOptions] options
735
+ # Request-specific options
736
+ #
737
+ # @yield [result, err] Result & error if block supplied
738
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Tag] parsed result object
739
+ # @yieldparam err [StandardError] error object if request failed
740
+ #
741
+ # @return [Google::Apis::ArtifactregistryV1beta1::Tag]
742
+ #
743
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
744
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
745
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
746
+ def get_project_location_repository_package_tag(name, fields: nil, quota_user: nil, options: nil, &block)
747
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
748
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
749
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Tag
750
+ command.params['name'] = name unless name.nil?
751
+ command.query['fields'] = fields unless fields.nil?
752
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
753
+ execute_or_queue_command(command, &block)
754
+ end
755
+
756
+ # Lists tags.
757
+ # @param [String] parent
758
+ # The name of the parent resource whose tags will be listed.
759
+ # @param [String] filter
760
+ # An expression for filtering the results of the request. Filter rules are
761
+ # case insensitive. The fields eligible for filtering are:
762
+ # * `version`
763
+ # An example of using a filter:
764
+ # * `version="projects/p1/locations/us-central1/repositories/repo1/packages/
765
+ # pkg1/versions/1.0"`
766
+ # --> Tags that are applied to the version `1.0` in package `pkg1`.
767
+ # @param [Fixnum] page_size
768
+ # The maximum number of tags to return.
769
+ # @param [String] page_token
770
+ # The next_page_token value returned from a previous list request, if any.
771
+ # @param [String] fields
772
+ # Selector specifying which fields to include in a partial response.
773
+ # @param [String] quota_user
774
+ # Available to use for quota purposes for server-side applications. Can be any
775
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
776
+ # @param [Google::Apis::RequestOptions] options
777
+ # Request-specific options
778
+ #
779
+ # @yield [result, err] Result & error if block supplied
780
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListTagsResponse] parsed result object
781
+ # @yieldparam err [StandardError] error object if request failed
782
+ #
783
+ # @return [Google::Apis::ArtifactregistryV1beta1::ListTagsResponse]
784
+ #
785
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
786
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
787
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
788
+ def list_project_location_repository_package_tags(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
789
+ command = make_simple_command(:get, 'v1beta1/{+parent}/tags', options)
790
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListTagsResponse::Representation
791
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::ListTagsResponse
792
+ command.params['parent'] = parent unless parent.nil?
793
+ command.query['filter'] = filter unless filter.nil?
794
+ command.query['pageSize'] = page_size unless page_size.nil?
795
+ command.query['pageToken'] = page_token unless page_token.nil?
796
+ command.query['fields'] = fields unless fields.nil?
797
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
798
+ execute_or_queue_command(command, &block)
799
+ end
800
+
801
+ # Updates a tag.
802
+ # @param [String] name
803
+ # The name of the tag, for example:
804
+ # "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1".
805
+ # @param [Google::Apis::ArtifactregistryV1beta1::Tag] tag_object
806
+ # @param [String] update_mask
807
+ # The update mask applies to the resource. For the `FieldMask` definition,
808
+ # see
809
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
810
+ # fieldmask
811
+ # @param [String] fields
812
+ # Selector specifying which fields to include in a partial response.
813
+ # @param [String] quota_user
814
+ # Available to use for quota purposes for server-side applications. Can be any
815
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
816
+ # @param [Google::Apis::RequestOptions] options
817
+ # Request-specific options
818
+ #
819
+ # @yield [result, err] Result & error if block supplied
820
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Tag] parsed result object
821
+ # @yieldparam err [StandardError] error object if request failed
822
+ #
823
+ # @return [Google::Apis::ArtifactregistryV1beta1::Tag]
824
+ #
825
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
826
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
827
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
828
+ def patch_project_location_repository_package_tag(name, tag_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
829
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
830
+ command.request_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
831
+ command.request_object = tag_object
832
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
833
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Tag
834
+ command.params['name'] = name unless name.nil?
835
+ command.query['updateMask'] = update_mask unless update_mask.nil?
836
+ command.query['fields'] = fields unless fields.nil?
837
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
838
+ execute_or_queue_command(command, &block)
839
+ end
840
+
841
+ # Deletes a version and all of its content. The returned operation will
842
+ # complete once the version has been deleted.
843
+ # @param [String] name
844
+ # The name of the version to delete.
845
+ # @param [Boolean] force
846
+ # By default, a version that is tagged may not be deleted. If force=true, the
847
+ # version and any tags pointing to the version are deleted.
848
+ # @param [String] fields
849
+ # Selector specifying which fields to include in a partial response.
850
+ # @param [String] quota_user
851
+ # Available to use for quota purposes for server-side applications. Can be any
852
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
853
+ # @param [Google::Apis::RequestOptions] options
854
+ # Request-specific options
855
+ #
856
+ # @yield [result, err] Result & error if block supplied
857
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Operation] parsed result object
858
+ # @yieldparam err [StandardError] error object if request failed
859
+ #
860
+ # @return [Google::Apis::ArtifactregistryV1beta1::Operation]
861
+ #
862
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
863
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
864
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
865
+ def delete_project_location_repository_package_version(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
866
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
867
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
868
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
869
+ command.params['name'] = name unless name.nil?
870
+ command.query['force'] = force unless force.nil?
871
+ command.query['fields'] = fields unless fields.nil?
872
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
873
+ execute_or_queue_command(command, &block)
874
+ end
875
+
876
+ # Gets a version
877
+ # @param [String] name
878
+ # The name of the version to retrieve.
879
+ # @param [String] view
880
+ # The view that should be returned in the response.
881
+ # @param [String] fields
882
+ # Selector specifying which fields to include in a partial response.
883
+ # @param [String] quota_user
884
+ # Available to use for quota purposes for server-side applications. Can be any
885
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
886
+ # @param [Google::Apis::RequestOptions] options
887
+ # Request-specific options
888
+ #
889
+ # @yield [result, err] Result & error if block supplied
890
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Version] parsed result object
891
+ # @yieldparam err [StandardError] error object if request failed
892
+ #
893
+ # @return [Google::Apis::ArtifactregistryV1beta1::Version]
894
+ #
895
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
896
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
897
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
898
+ def get_project_location_repository_package_version(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
899
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
900
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Version::Representation
901
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Version
902
+ command.params['name'] = name unless name.nil?
903
+ command.query['view'] = view unless view.nil?
904
+ command.query['fields'] = fields unless fields.nil?
905
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
906
+ execute_or_queue_command(command, &block)
907
+ end
908
+
909
+ # Lists versions.
910
+ # @param [String] parent
911
+ # The name of the parent resource whose versions will be listed.
912
+ # @param [Fixnum] page_size
913
+ # The maximum number of versions to return.
914
+ # @param [String] page_token
915
+ # The next_page_token value returned from a previous list request, if any.
916
+ # @param [String] view
917
+ # The view that should be returned in the response.
918
+ # @param [String] fields
919
+ # Selector specifying which fields to include in a partial response.
920
+ # @param [String] quota_user
921
+ # Available to use for quota purposes for server-side applications. Can be any
922
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
923
+ # @param [Google::Apis::RequestOptions] options
924
+ # Request-specific options
925
+ #
926
+ # @yield [result, err] Result & error if block supplied
927
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListVersionsResponse] parsed result object
928
+ # @yieldparam err [StandardError] error object if request failed
929
+ #
930
+ # @return [Google::Apis::ArtifactregistryV1beta1::ListVersionsResponse]
931
+ #
932
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
933
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
934
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
935
+ def list_project_location_repository_package_versions(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
936
+ command = make_simple_command(:get, 'v1beta1/{+parent}/versions', options)
937
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListVersionsResponse::Representation
938
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::ListVersionsResponse
939
+ command.params['parent'] = parent unless parent.nil?
940
+ command.query['pageSize'] = page_size unless page_size.nil?
941
+ command.query['pageToken'] = page_token unless page_token.nil?
942
+ command.query['view'] = view unless view.nil?
943
+ command.query['fields'] = fields unless fields.nil?
944
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
945
+ execute_or_queue_command(command, &block)
946
+ end
947
+
948
+ protected
949
+
950
+ def apply_command_defaults(command)
951
+ command.query['key'] = key unless key.nil?
952
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
953
+ end
954
+ end
955
+ end
956
+ end
957
+ end