Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit a217d2e

Browse files
feat: promote v1beta2 features to v1 (#132)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 436510287 Source-Link: googleapis/googleapis@4008372 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b821044bc8b2226418af9b294cf19529ad428b37 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjgyMTA0NGJjOGIyMjI2NDE4YWY5YjI5NGNmMTk1MjlhZDQyOGIzNyJ9
1 parent 7788daa commit a217d2e

44 files changed

Lines changed: 34437 additions & 5350 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
// Copyright 2022 Google LLC
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+
syntax = "proto3";
16+
17+
package google.devtools.artifactregistry.v1;
18+
19+
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
21+
import "google/rpc/status.proto";
22+
23+
option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1";
24+
option go_package = "google.golang.org/genproto/googleapis/devtools/artifactregistry/v1;artifactregistry";
25+
option java_multiple_files = true;
26+
option java_outer_classname = "AptArtifactProto";
27+
option java_package = "com.google.devtools.artifactregistry.v1";
28+
option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1";
29+
option ruby_package = "Google::Cloud::ArtifactRegistry::V1";
30+
31+
// A detailed representation of an Apt artifact. Information in the record
32+
// is derived from the archive's control file.
33+
// See https://www.debian.org/doc/debian-policy/ch-controlfields.html
34+
message AptArtifact {
35+
option (google.api.resource) = {
36+
type: "artifactregistry.googleapis.com/AptArtifact"
37+
pattern: "projects/{project}/locations/{location}/repositories/{repository}/aptArtifacts/{apt_artifact}"
38+
};
39+
40+
// Package type is either binary or source.
41+
enum PackageType {
42+
// Package type is not specified.
43+
PACKAGE_TYPE_UNSPECIFIED = 0;
44+
45+
// Binary package.
46+
BINARY = 1;
47+
48+
// Source package.
49+
SOURCE = 2;
50+
}
51+
52+
// Output only. The Artifact Registry resource name of the artifact.
53+
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
54+
55+
// Output only. The Apt package name of the artifact.
56+
string package_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
57+
58+
// Output only. An artifact is a binary or source package.
59+
PackageType package_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
60+
61+
// Output only. Operating system architecture of the artifact.
62+
string architecture = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
63+
64+
// Output only. Repository component of the artifact.
65+
string component = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
66+
67+
// Output only. Contents of the artifact's control metadata file.
68+
bytes control_file = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
69+
}
70+
71+
// Google Cloud Storage location where the artifacts currently reside.
72+
message ImportAptArtifactsGcsSource {
73+
// Cloud Storage paths URI (e.g., gs://my_bucket//my_object).
74+
repeated string uris = 1;
75+
76+
// Supports URI wildcards for matching multiple objects from a single URI.
77+
bool use_wildcards = 2;
78+
}
79+
80+
// The request to import new apt artifacts.
81+
message ImportAptArtifactsRequest {
82+
// The source location of the package binaries.
83+
oneof source {
84+
// Google Cloud Storage location where input content is located.
85+
ImportAptArtifactsGcsSource gcs_source = 2;
86+
}
87+
88+
// The name of the parent resource where the artifacts will be imported.
89+
string parent = 1;
90+
}
91+
92+
// Error information explaining why a package was not imported.
93+
message ImportAptArtifactsErrorInfo {
94+
// The source that was not imported.
95+
oneof source {
96+
// Google Cloud Storage location requested.
97+
ImportAptArtifactsGcsSource gcs_source = 1;
98+
}
99+
100+
// The detailed error status.
101+
google.rpc.Status error = 2;
102+
}
103+
104+
// The response message from importing APT artifacts.
105+
message ImportAptArtifactsResponse {
106+
// The Apt artifacts imported.
107+
repeated AptArtifact apt_artifacts = 1;
108+
109+
// Detailed error info for packages that were not imported.
110+
repeated ImportAptArtifactsErrorInfo errors = 2;
111+
}
112+
113+
// The operation metadata for importing artifacts.
114+
message ImportAptArtifactsMetadata {
115+
116+
}

protos/google/devtools/artifactregistry/v1/artifact.proto

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -19,7 +19,6 @@ package google.devtools.artifactregistry.v1;
1919
import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/protobuf/timestamp.proto";
22-
import "google/api/annotations.proto";
2322

2423
option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1";
2524
option go_package = "google.golang.org/genproto/googleapis/devtools/artifactregistry/v1;artifactregistry";
@@ -104,3 +103,14 @@ message ListDockerImagesResponse {
104103
// more artifacts to return.
105104
string next_page_token = 2;
106105
}
106+
107+
// The request to get docker images.
108+
message GetDockerImageRequest {
109+
// Required. The name of the docker images.
110+
string name = 1 [
111+
(google.api.field_behavior) = REQUIRED,
112+
(google.api.resource_reference) = {
113+
type: "artifactregistry.googleapis.com/DockerImage"
114+
}
115+
];
116+
}
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
// Copyright 2022 Google LLC
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+
syntax = "proto3";
16+
17+
package google.devtools.artifactregistry.v1;
18+
19+
import "google/api/resource.proto";
20+
import "google/protobuf/timestamp.proto";
21+
22+
option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1";
23+
option go_package = "google.golang.org/genproto/googleapis/devtools/artifactregistry/v1;artifactregistry";
24+
option java_multiple_files = true;
25+
option java_outer_classname = "FileProto";
26+
option java_package = "com.google.devtools.artifactregistry.v1";
27+
option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1";
28+
option ruby_package = "Google::Cloud::ArtifactRegistry::V1";
29+
30+
// A hash of file content.
31+
message Hash {
32+
// The algorithm used to compute the hash.
33+
enum HashType {
34+
// Unspecified.
35+
HASH_TYPE_UNSPECIFIED = 0;
36+
37+
// SHA256 hash.
38+
SHA256 = 1;
39+
40+
// MD5 hash.
41+
MD5 = 2;
42+
}
43+
44+
// The algorithm used to compute the hash value.
45+
HashType type = 1;
46+
47+
// The hash value.
48+
bytes value = 2;
49+
}
50+
51+
// Files store content that is potentially associated with Packages or Versions.
52+
message File {
53+
option (google.api.resource) = {
54+
type: "artifactregistry.googleapis.com/File"
55+
pattern: "projects/{project}/locations/{location}/repositories/{repository}/files/{file}"
56+
};
57+
58+
// The name of the file, for example:
59+
// "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
60+
// If the file ID part contains slashes, they are escaped.
61+
string name = 1;
62+
63+
// The size of the File in bytes.
64+
int64 size_bytes = 3;
65+
66+
// The hashes of the file content.
67+
repeated Hash hashes = 4;
68+
69+
// The time when the File was created.
70+
google.protobuf.Timestamp create_time = 5;
71+
72+
// The time when the File was last updated.
73+
google.protobuf.Timestamp update_time = 6;
74+
75+
// The name of the Package or Version that owns this file, if any.
76+
string owner = 7;
77+
}
78+
79+
// The request to list files.
80+
message ListFilesRequest {
81+
// The name of the repository whose files will be listed. For example:
82+
// "projects/p1/locations/us-central1/repositories/repo1
83+
string parent = 1;
84+
85+
// An expression for filtering the results of the request. Filter rules are
86+
// case insensitive. The fields eligible for filtering are:
87+
//
88+
// * `name`
89+
// * `owner`
90+
//
91+
// An example of using a filter:
92+
//
93+
// * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` --> Files with an
94+
// ID starting with "a/b/".
95+
// * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` -->
96+
// Files owned by the version `1.0` in package `pkg1`.
97+
string filter = 4;
98+
99+
// The maximum number of files to return.
100+
int32 page_size = 2;
101+
102+
// The next_page_token value returned from a previous list request, if any.
103+
string page_token = 3;
104+
105+
// The field to order the results by.
106+
string order_by = 5;
107+
}
108+
109+
// The response from listing files.
110+
message ListFilesResponse {
111+
// The files returned.
112+
repeated File files = 1;
113+
114+
// The token to retrieve the next page of files, or empty if there are no
115+
// more files to return.
116+
string next_page_token = 2;
117+
}
118+
119+
// The request to retrieve a file.
120+
message GetFileRequest {
121+
// The name of the file to retrieve.
122+
string name = 1;
123+
}
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
// Copyright 2022 Google LLC
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+
syntax = "proto3";
16+
17+
package google.devtools.artifactregistry.v1;
18+
19+
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
21+
import "google/protobuf/timestamp.proto";
22+
23+
option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1";
24+
option go_package = "google.golang.org/genproto/googleapis/devtools/artifactregistry/v1;artifactregistry";
25+
option java_multiple_files = true;
26+
option java_outer_classname = "PackageProto";
27+
option java_package = "com.google.devtools.artifactregistry.v1";
28+
option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1";
29+
option ruby_package = "Google::Cloud::ArtifactRegistry::V1";
30+
31+
// Packages are named collections of versions.
32+
message Package {
33+
34+
// The name of the package, for example:
35+
// "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1".
36+
// If the package ID part contains slashes, the slashes are escaped.
37+
string name = 1;
38+
39+
// The display name of the package.
40+
string display_name = 2;
41+
42+
// The time when the package was created.
43+
google.protobuf.Timestamp create_time = 5;
44+
45+
// The time when the package was last updated. This includes publishing a new
46+
// version of the package.
47+
google.protobuf.Timestamp update_time = 6;
48+
}
49+
50+
// The request to list packages.
51+
message ListPackagesRequest {
52+
// Required. The name of the parent resource whose packages will be listed.
53+
string parent = 1 [
54+
(google.api.field_behavior) = REQUIRED
55+
];
56+
57+
// The maximum number of packages to return. Maximum page size is 1,000.
58+
int32 page_size = 2;
59+
60+
// The next_page_token value returned from a previous list request, if any.
61+
string page_token = 3;
62+
}
63+
64+
// The response from listing packages.
65+
message ListPackagesResponse {
66+
// The packages returned.
67+
repeated Package packages = 1;
68+
69+
// The token to retrieve the next page of packages, or empty if there are no
70+
// more packages to return.
71+
string next_page_token = 2;
72+
}
73+
74+
// The request to retrieve a package.
75+
message GetPackageRequest {
76+
// Required. The name of the package to retrieve.
77+
string name = 1 [
78+
(google.api.field_behavior) = REQUIRED
79+
];
80+
}
81+
82+
// The request to delete a package.
83+
message DeletePackageRequest {
84+
// Required. The name of the package to delete.
85+
string name = 1 [
86+
(google.api.field_behavior) = REQUIRED
87+
];
88+
}

0 commit comments

Comments
 (0)