Skip to content

Commit 4008372

Browse files
Google APIscopybara-github
authored andcommitted
feat: promote v1beta2 features to v1
PiperOrigin-RevId: 436510287
1 parent 42efaa7 commit 4008372

12 files changed

Lines changed: 1180 additions & 21 deletions

google/devtools/artifactregistry/v1/BUILD.bazel

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,29 @@ load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
2121
proto_library(
2222
name = "artifactregistry_proto",
2323
srcs = [
24+
"apt_artifact.proto",
2425
"artifact.proto",
26+
"file.proto",
27+
"package.proto",
2528
"repository.proto",
2629
"service.proto",
30+
"settings.proto",
31+
"tag.proto",
32+
"version.proto",
33+
"yum_artifact.proto",
2734
],
2835
deps = [
2936
"//google/api:annotations_proto",
3037
"//google/api:client_proto",
3138
"//google/api:field_behavior_proto",
3239
"//google/api:resource_proto",
40+
"//google/iam/v1:iam_policy_proto",
3341
"//google/iam/v1:policy_proto",
42+
"//google/longrunning:operations_proto",
43+
"//google/rpc:status_proto",
44+
"@com_google_protobuf//:empty_proto",
45+
"@com_google_protobuf//:field_mask_proto",
46+
"@com_google_protobuf//:struct_proto",
3447
"@com_google_protobuf//:timestamp_proto",
3548
],
3649
)
@@ -121,6 +134,8 @@ go_proto_library(
121134
deps = [
122135
"//google/api:annotations_go_proto",
123136
"//google/iam/v1:iam_go_proto",
137+
"//google/longrunning:longrunning_go_proto",
138+
"//google/rpc:status_go_proto",
124139
],
125140
)
126141

@@ -129,11 +144,15 @@ go_gapic_library(
129144
srcs = [":artifactregistry_proto_with_info"],
130145
grpc_service_config = "artifactregistry_grpc_service_config.json",
131146
importpath = "cloud.google.com/go/devtools/artifactregistry/apiv1;artifactregistry",
132-
service_yaml = "artifactregistry_v1.yaml",
133147
metadata = True,
148+
service_yaml = "artifactregistry_v1.yaml",
134149
deps = [
135150
":artifactregistry_go_proto",
136151
"//google/iam/v1:iam_go_proto",
152+
"//google/longrunning:longrunning_go_proto",
153+
"@com_google_cloud_go//longrunning:go_default_library",
154+
"@com_google_cloud_go//longrunning/autogen:go_default_library",
155+
"@io_bazel_rules_go//proto/wkt:struct_go_proto",
137156
],
138157
)
139158

@@ -149,8 +168,8 @@ go_gapic_assembly_pkg(
149168
name = "gapi-cloud-devtools-artifactregistry-v1-go",
150169
deps = [
151170
":artifactregistry_go_gapic",
152-
":artifactregistry_go_gapic_srcjar-test.srcjar",
153171
":artifactregistry_go_gapic_srcjar-metadata.srcjar",
172+
":artifactregistry_go_gapic_srcjar-test.srcjar",
154173
":artifactregistry_go_proto",
155174
],
156175
)
@@ -169,8 +188,8 @@ py_gapic_library(
169188
srcs = [":artifactregistry_proto"],
170189
grpc_service_config = "artifactregistry_grpc_service_config.json",
171190
opt_args = [
172-
"python-gapic-namespace=google.cloud",
173191
"python-gapic-name=artifactregistry",
192+
"python-gapic-namespace=google.cloud",
174193
"warehouse-package-name=google-cloud-artifact-registry",
175194
],
176195
)
@@ -259,8 +278,8 @@ nodejs_gapic_assembly_pkg(
259278
##############################################################################
260279
load(
261280
"@com_google_googleapis_imports//:imports.bzl",
262-
"ruby_gapic_assembly_pkg",
263281
"ruby_cloud_gapic_library",
282+
"ruby_gapic_assembly_pkg",
264283
"ruby_grpc_library",
265284
"ruby_proto_library",
266285
)
@@ -280,11 +299,11 @@ ruby_cloud_gapic_library(
280299
name = "artifactregistry_ruby_gapic",
281300
srcs = [":artifactregistry_proto_with_info"],
282301
extra_protoc_parameters = [
283-
"ruby-cloud-gem-name=google-cloud-artifact_registry-v1",
284-
"ruby-cloud-env-prefix=ARTIFACT_REGISTRY",
285-
"ruby-cloud-product-url=https://cloud.google.com/artifact-registry/",
286302
"ruby-cloud-api-id=artifactregistry.googleapis.com",
287303
"ruby-cloud-api-shortname=artifactregistry",
304+
"ruby-cloud-env-prefix=ARTIFACT_REGISTRY",
305+
"ruby-cloud-gem-name=google-cloud-artifact_registry-v1",
306+
"ruby-cloud-product-url=https://cloud.google.com/artifact-registry/",
288307
],
289308
grpc_service_config = "artifactregistry_grpc_service_config.json",
290309
ruby_cloud_description = "Artifact Registry stores and manages build artifacts in a scalable and integrated service built on Google infrastructure.",
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+
}

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+
}

google/devtools/artifactregistry/v1/artifactregistry_v1.yaml

Lines changed: 55 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ apis:
77
- name: google.devtools.artifactregistry.v1.ArtifactRegistry
88

99
types:
10-
- name: google.devtools.artifactregistry.v1.DockerImage
10+
- name: google.devtools.artifactregistry.v1.ImportAptArtifactsMetadata
11+
- name: google.devtools.artifactregistry.v1.ImportAptArtifactsResponse
12+
- name: google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata
13+
- name: google.devtools.artifactregistry.v1.ImportYumArtifactsResponse
14+
- name: google.devtools.artifactregistry.v1.OperationMetadata
1115

1216
documentation:
1317
summary: |-
@@ -34,8 +38,12 @@ documentation:
3438

3539
http:
3640
rules:
41+
- selector: google.cloud.location.Locations.GetLocation
42+
get: '/v1/{name=projects/*/locations/*}'
43+
- selector: google.cloud.location.Locations.ListLocations
44+
get: '/v1/{name=projects/*}/locations'
3745
- selector: google.longrunning.Operations.GetOperation
38-
get: '/v1/{name=operations/*}'
46+
get: '/v1/{name=projects/*/locations/*/operations/*}'
3947

4048
authentication:
4149
rules:
@@ -54,16 +62,56 @@ authentication:
5462
canonical_scopes: |-
5563
https://www.googleapis.com/auth/cloud-platform,
5664
https://www.googleapis.com/auth/cloud-platform.read-only
57-
- selector: 'google.longrunning.Operations.*'
65+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.CreateRepository
5866
oauth:
5967
canonical_scopes: |-
60-
https://www.googleapis.com/auth/cloud-platform,
61-
https://www.googleapis.com/auth/cloud-platform.read-only
62-
- selector: google.longrunning.Operations.CancelOperation
68+
https://www.googleapis.com/auth/cloud-platform
69+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.CreateTag
6370
oauth:
6471
canonical_scopes: |-
6572
https://www.googleapis.com/auth/cloud-platform
66-
- selector: google.longrunning.Operations.DeleteOperation
73+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.DeletePackage
6774
oauth:
6875
canonical_scopes: |-
6976
https://www.googleapis.com/auth/cloud-platform
77+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteRepository
78+
oauth:
79+
canonical_scopes: |-
80+
https://www.googleapis.com/auth/cloud-platform
81+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteTag
82+
oauth:
83+
canonical_scopes: |-
84+
https://www.googleapis.com/auth/cloud-platform
85+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteVersion
86+
oauth:
87+
canonical_scopes: |-
88+
https://www.googleapis.com/auth/cloud-platform
89+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.ImportAptArtifacts
90+
oauth:
91+
canonical_scopes: |-
92+
https://www.googleapis.com/auth/cloud-platform
93+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.ImportYumArtifacts
94+
oauth:
95+
canonical_scopes: |-
96+
https://www.googleapis.com/auth/cloud-platform
97+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.SetIamPolicy
98+
oauth:
99+
canonical_scopes: |-
100+
https://www.googleapis.com/auth/cloud-platform
101+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateProjectSettings
102+
oauth:
103+
canonical_scopes: |-
104+
https://www.googleapis.com/auth/cloud-platform
105+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateRepository
106+
oauth:
107+
canonical_scopes: |-
108+
https://www.googleapis.com/auth/cloud-platform
109+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateTag
110+
oauth:
111+
canonical_scopes: |-
112+
https://www.googleapis.com/auth/cloud-platform
113+
- selector: google.longrunning.Operations.GetOperation
114+
oauth:
115+
canonical_scopes: |-
116+
https://www.googleapis.com/auth/cloud-platform,
117+
https://www.googleapis.com/auth/cloud-platform.read-only

0 commit comments

Comments
 (0)