-
Notifications
You must be signed in to change notification settings - Fork 185
/
alias.go
391 lines (328 loc) · 19.1 KB
/
alias.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by aliasgen. DO NOT EDIT.
// Package artifactregistry aliases all exported identifiers in package
// "cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb".
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb.
// Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md
// for more details.
package artifactregistry
import (
src "cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb"
grpc "google.golang.org/grpc"
)
// Deprecated: Please use consts in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
const (
AptArtifact_BINARY = src.AptArtifact_BINARY
AptArtifact_PACKAGE_TYPE_UNSPECIFIED = src.AptArtifact_PACKAGE_TYPE_UNSPECIFIED
AptArtifact_SOURCE = src.AptArtifact_SOURCE
Hash_HASH_TYPE_UNSPECIFIED = src.Hash_HASH_TYPE_UNSPECIFIED
Hash_MD5 = src.Hash_MD5
Hash_SHA256 = src.Hash_SHA256
ProjectSettings_REDIRECTION_FROM_GCR_IO_DISABLED = src.ProjectSettings_REDIRECTION_FROM_GCR_IO_DISABLED
ProjectSettings_REDIRECTION_FROM_GCR_IO_ENABLED = src.ProjectSettings_REDIRECTION_FROM_GCR_IO_ENABLED
ProjectSettings_REDIRECTION_FROM_GCR_IO_FINALIZED = src.ProjectSettings_REDIRECTION_FROM_GCR_IO_FINALIZED
ProjectSettings_REDIRECTION_STATE_UNSPECIFIED = src.ProjectSettings_REDIRECTION_STATE_UNSPECIFIED
Repository_APT = src.Repository_APT
Repository_DOCKER = src.Repository_DOCKER
Repository_FORMAT_UNSPECIFIED = src.Repository_FORMAT_UNSPECIFIED
Repository_MAVEN = src.Repository_MAVEN
Repository_MavenRepositoryConfig_RELEASE = src.Repository_MavenRepositoryConfig_RELEASE
Repository_MavenRepositoryConfig_SNAPSHOT = src.Repository_MavenRepositoryConfig_SNAPSHOT
Repository_MavenRepositoryConfig_VERSION_POLICY_UNSPECIFIED = src.Repository_MavenRepositoryConfig_VERSION_POLICY_UNSPECIFIED
Repository_NPM = src.Repository_NPM
Repository_PYTHON = src.Repository_PYTHON
Repository_YUM = src.Repository_YUM
VersionView_BASIC = src.VersionView_BASIC
VersionView_FULL = src.VersionView_FULL
VersionView_VERSION_VIEW_UNSPECIFIED = src.VersionView_VERSION_VIEW_UNSPECIFIED
YumArtifact_BINARY = src.YumArtifact_BINARY
YumArtifact_PACKAGE_TYPE_UNSPECIFIED = src.YumArtifact_PACKAGE_TYPE_UNSPECIFIED
YumArtifact_SOURCE = src.YumArtifact_SOURCE
)
// Deprecated: Please use vars in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
var (
AptArtifact_PackageType_name = src.AptArtifact_PackageType_name
AptArtifact_PackageType_value = src.AptArtifact_PackageType_value
File_google_devtools_artifactregistry_v1beta2_apt_artifact_proto = src.File_google_devtools_artifactregistry_v1beta2_apt_artifact_proto
File_google_devtools_artifactregistry_v1beta2_file_proto = src.File_google_devtools_artifactregistry_v1beta2_file_proto
File_google_devtools_artifactregistry_v1beta2_package_proto = src.File_google_devtools_artifactregistry_v1beta2_package_proto
File_google_devtools_artifactregistry_v1beta2_repository_proto = src.File_google_devtools_artifactregistry_v1beta2_repository_proto
File_google_devtools_artifactregistry_v1beta2_service_proto = src.File_google_devtools_artifactregistry_v1beta2_service_proto
File_google_devtools_artifactregistry_v1beta2_settings_proto = src.File_google_devtools_artifactregistry_v1beta2_settings_proto
File_google_devtools_artifactregistry_v1beta2_tag_proto = src.File_google_devtools_artifactregistry_v1beta2_tag_proto
File_google_devtools_artifactregistry_v1beta2_version_proto = src.File_google_devtools_artifactregistry_v1beta2_version_proto
File_google_devtools_artifactregistry_v1beta2_yum_artifact_proto = src.File_google_devtools_artifactregistry_v1beta2_yum_artifact_proto
Hash_HashType_name = src.Hash_HashType_name
Hash_HashType_value = src.Hash_HashType_value
ProjectSettings_RedirectionState_name = src.ProjectSettings_RedirectionState_name
ProjectSettings_RedirectionState_value = src.ProjectSettings_RedirectionState_value
Repository_Format_name = src.Repository_Format_name
Repository_Format_value = src.Repository_Format_value
Repository_MavenRepositoryConfig_VersionPolicy_name = src.Repository_MavenRepositoryConfig_VersionPolicy_name
Repository_MavenRepositoryConfig_VersionPolicy_value = src.Repository_MavenRepositoryConfig_VersionPolicy_value
VersionView_name = src.VersionView_name
VersionView_value = src.VersionView_value
YumArtifact_PackageType_name = src.YumArtifact_PackageType_name
YumArtifact_PackageType_value = src.YumArtifact_PackageType_value
)
// A detailed representation of an Apt artifact. Information in the record is
// derived from the archive's control file. See
// https://www.debian.org/doc/debian-policy/ch-controlfields.html
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type AptArtifact = src.AptArtifact
// Package type is either binary or source.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type AptArtifact_PackageType = src.AptArtifact_PackageType
// ArtifactRegistryClient is the client API for ArtifactRegistry service. For
// semantics around ctx use and closing/ending streaming RPCs, please refer to
// https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ArtifactRegistryClient = src.ArtifactRegistryClient
// ArtifactRegistryServer is the server API for ArtifactRegistry service.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ArtifactRegistryServer = src.ArtifactRegistryServer
// The request to create a new repository.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type CreateRepositoryRequest = src.CreateRepositoryRequest
// The request to create a new tag.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type CreateTagRequest = src.CreateTagRequest
// The request to delete a package.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type DeletePackageRequest = src.DeletePackageRequest
// The request to delete a repository.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type DeleteRepositoryRequest = src.DeleteRepositoryRequest
// The request to delete a tag.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type DeleteTagRequest = src.DeleteTagRequest
// The request to delete a version.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type DeleteVersionRequest = src.DeleteVersionRequest
// Files store content that is potentially associated with Packages or
// Versions.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type File = src.File
// The request to retrieve a file.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type GetFileRequest = src.GetFileRequest
// The request to retrieve a package.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type GetPackageRequest = src.GetPackageRequest
// Gets the redirection status for a project.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type GetProjectSettingsRequest = src.GetProjectSettingsRequest
// The request to retrieve a repository.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type GetRepositoryRequest = src.GetRepositoryRequest
// The request to retrieve a tag.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type GetTagRequest = src.GetTagRequest
// The request to retrieve a version.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type GetVersionRequest = src.GetVersionRequest
// A hash of file content.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type Hash = src.Hash
// The algorithm used to compute the hash.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type Hash_HashType = src.Hash_HashType
// Error information explaining why a package was not imported.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ImportAptArtifactsErrorInfo = src.ImportAptArtifactsErrorInfo
type ImportAptArtifactsErrorInfo_GcsSource = src.ImportAptArtifactsErrorInfo_GcsSource
// Google Cloud Storage location where the artifacts currently reside.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ImportAptArtifactsGcsSource = src.ImportAptArtifactsGcsSource
// The operation metadata for importing artifacts.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ImportAptArtifactsMetadata = src.ImportAptArtifactsMetadata
// The request to import new apt artifacts.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ImportAptArtifactsRequest = src.ImportAptArtifactsRequest
type ImportAptArtifactsRequest_GcsSource = src.ImportAptArtifactsRequest_GcsSource
// The response message from importing APT artifacts.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ImportAptArtifactsResponse = src.ImportAptArtifactsResponse
// Error information explaining why a package was not imported.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ImportYumArtifactsErrorInfo = src.ImportYumArtifactsErrorInfo
type ImportYumArtifactsErrorInfo_GcsSource = src.ImportYumArtifactsErrorInfo_GcsSource
// Google Cloud Storage location where the artifacts currently reside.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ImportYumArtifactsGcsSource = src.ImportYumArtifactsGcsSource
// The operation metadata for importing artifacts.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ImportYumArtifactsMetadata = src.ImportYumArtifactsMetadata
// The request to import new yum artifacts.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ImportYumArtifactsRequest = src.ImportYumArtifactsRequest
type ImportYumArtifactsRequest_GcsSource = src.ImportYumArtifactsRequest_GcsSource
// The response message from importing YUM artifacts.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ImportYumArtifactsResponse = src.ImportYumArtifactsResponse
// The request to list files.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ListFilesRequest = src.ListFilesRequest
// The response from listing files.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ListFilesResponse = src.ListFilesResponse
// The request to list packages.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ListPackagesRequest = src.ListPackagesRequest
// The response from listing packages.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ListPackagesResponse = src.ListPackagesResponse
// The request to list repositories.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ListRepositoriesRequest = src.ListRepositoriesRequest
// The response from listing repositories.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ListRepositoriesResponse = src.ListRepositoriesResponse
// The request to list tags.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ListTagsRequest = src.ListTagsRequest
// The response from listing tags.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ListTagsResponse = src.ListTagsResponse
// The request to list versions.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ListVersionsRequest = src.ListVersionsRequest
// The response from listing versions.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ListVersionsResponse = src.ListVersionsResponse
// Metadata type for longrunning-operations, currently empty.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type OperationMetadata = src.OperationMetadata
// Packages are named collections of versions.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type Package = src.Package
// The Artifact Registry settings that apply to a Project.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ProjectSettings = src.ProjectSettings
// The possible redirection states for legacy repositories.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type ProjectSettings_RedirectionState = src.ProjectSettings_RedirectionState
// A Repository for storing artifacts with a specific format.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type Repository = src.Repository
// A package format.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type Repository_Format = src.Repository_Format
type Repository_MavenConfig = src.Repository_MavenConfig
// MavenRepositoryConfig is maven related repository details. Provides
// additional configuration details for repositories of the maven format type.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type Repository_MavenRepositoryConfig = src.Repository_MavenRepositoryConfig
// VersionPolicy is the version policy for the repository.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type Repository_MavenRepositoryConfig_VersionPolicy = src.Repository_MavenRepositoryConfig_VersionPolicy
// Tags point to a version and represent an alternative name that can be used
// to access the version.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type Tag = src.Tag
// UnimplementedArtifactRegistryServer can be embedded to have forward
// compatible implementations.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type UnimplementedArtifactRegistryServer = src.UnimplementedArtifactRegistryServer
// Sets the settings of the project.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type UpdateProjectSettingsRequest = src.UpdateProjectSettingsRequest
// The request to update a repository.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type UpdateRepositoryRequest = src.UpdateRepositoryRequest
// The request to create or update a tag.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type UpdateTagRequest = src.UpdateTagRequest
// The body of a version resource. A version resource represents a collection
// of components, such as files and other data. This may correspond to a
// version in many package management schemes.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type Version = src.Version
// The view, which determines what version information is returned in a
// response.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type VersionView = src.VersionView
// A detailed representation of a Yum artifact.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type YumArtifact = src.YumArtifact
// Package type is either binary or source.
//
// Deprecated: Please use types in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
type YumArtifact_PackageType = src.YumArtifact_PackageType
// Deprecated: Please use funcs in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
func NewArtifactRegistryClient(cc grpc.ClientConnInterface) ArtifactRegistryClient {
return src.NewArtifactRegistryClient(cc)
}
// Deprecated: Please use funcs in: cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb
func RegisterArtifactRegistryServer(s *grpc.Server, srv ArtifactRegistryServer) {
src.RegisterArtifactRegistryServer(s, srv)
}