This repository has been archived by the owner on Jul 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
7788daa
commit a217d2e
Showing
44 changed files
with
34,437 additions
and
5,350 deletions.
There are no files selected for viewing
116 changes: 116 additions & 0 deletions
116
protos/google/devtools/artifactregistry/v1/apt_artifact.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
// 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. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.devtools.artifactregistry.v1; | ||
|
||
import "google/api/field_behavior.proto"; | ||
import "google/api/resource.proto"; | ||
import "google/rpc/status.proto"; | ||
|
||
option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1"; | ||
option go_package = "google.golang.org/genproto/googleapis/devtools/artifactregistry/v1;artifactregistry"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "AptArtifactProto"; | ||
option java_package = "com.google.devtools.artifactregistry.v1"; | ||
option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1"; | ||
option ruby_package = "Google::Cloud::ArtifactRegistry::V1"; | ||
|
||
// 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 | ||
message AptArtifact { | ||
option (google.api.resource) = { | ||
type: "artifactregistry.googleapis.com/AptArtifact" | ||
pattern: "projects/{project}/locations/{location}/repositories/{repository}/aptArtifacts/{apt_artifact}" | ||
}; | ||
|
||
// Package type is either binary or source. | ||
enum PackageType { | ||
// Package type is not specified. | ||
PACKAGE_TYPE_UNSPECIFIED = 0; | ||
|
||
// Binary package. | ||
BINARY = 1; | ||
|
||
// Source package. | ||
SOURCE = 2; | ||
} | ||
|
||
// Output only. The Artifact Registry resource name of the artifact. | ||
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
|
||
// Output only. The Apt package name of the artifact. | ||
string package_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
|
||
// Output only. An artifact is a binary or source package. | ||
PackageType package_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
|
||
// Output only. Operating system architecture of the artifact. | ||
string architecture = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
|
||
// Output only. Repository component of the artifact. | ||
string component = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
|
||
// Output only. Contents of the artifact's control metadata file. | ||
bytes control_file = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
} | ||
|
||
// Google Cloud Storage location where the artifacts currently reside. | ||
message ImportAptArtifactsGcsSource { | ||
// Cloud Storage paths URI (e.g., gs://my_bucket//my_object). | ||
repeated string uris = 1; | ||
|
||
// Supports URI wildcards for matching multiple objects from a single URI. | ||
bool use_wildcards = 2; | ||
} | ||
|
||
// The request to import new apt artifacts. | ||
message ImportAptArtifactsRequest { | ||
// The source location of the package binaries. | ||
oneof source { | ||
// Google Cloud Storage location where input content is located. | ||
ImportAptArtifactsGcsSource gcs_source = 2; | ||
} | ||
|
||
// The name of the parent resource where the artifacts will be imported. | ||
string parent = 1; | ||
} | ||
|
||
// Error information explaining why a package was not imported. | ||
message ImportAptArtifactsErrorInfo { | ||
// The source that was not imported. | ||
oneof source { | ||
// Google Cloud Storage location requested. | ||
ImportAptArtifactsGcsSource gcs_source = 1; | ||
} | ||
|
||
// The detailed error status. | ||
google.rpc.Status error = 2; | ||
} | ||
|
||
// The response message from importing APT artifacts. | ||
message ImportAptArtifactsResponse { | ||
// The Apt artifacts imported. | ||
repeated AptArtifact apt_artifacts = 1; | ||
|
||
// Detailed error info for packages that were not imported. | ||
repeated ImportAptArtifactsErrorInfo errors = 2; | ||
} | ||
|
||
// The operation metadata for importing artifacts. | ||
message ImportAptArtifactsMetadata { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
// 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. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.devtools.artifactregistry.v1; | ||
|
||
import "google/api/resource.proto"; | ||
import "google/protobuf/timestamp.proto"; | ||
|
||
option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1"; | ||
option go_package = "google.golang.org/genproto/googleapis/devtools/artifactregistry/v1;artifactregistry"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "FileProto"; | ||
option java_package = "com.google.devtools.artifactregistry.v1"; | ||
option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1"; | ||
option ruby_package = "Google::Cloud::ArtifactRegistry::V1"; | ||
|
||
// A hash of file content. | ||
message Hash { | ||
// The algorithm used to compute the hash. | ||
enum HashType { | ||
// Unspecified. | ||
HASH_TYPE_UNSPECIFIED = 0; | ||
|
||
// SHA256 hash. | ||
SHA256 = 1; | ||
|
||
// MD5 hash. | ||
MD5 = 2; | ||
} | ||
|
||
// The algorithm used to compute the hash value. | ||
HashType type = 1; | ||
|
||
// The hash value. | ||
bytes value = 2; | ||
} | ||
|
||
// Files store content that is potentially associated with Packages or Versions. | ||
message File { | ||
option (google.api.resource) = { | ||
type: "artifactregistry.googleapis.com/File" | ||
pattern: "projects/{project}/locations/{location}/repositories/{repository}/files/{file}" | ||
}; | ||
|
||
// The name of the file, for example: | ||
// "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt". | ||
// If the file ID part contains slashes, they are escaped. | ||
string name = 1; | ||
|
||
// The size of the File in bytes. | ||
int64 size_bytes = 3; | ||
|
||
// The hashes of the file content. | ||
repeated Hash hashes = 4; | ||
|
||
// The time when the File was created. | ||
google.protobuf.Timestamp create_time = 5; | ||
|
||
// The time when the File was last updated. | ||
google.protobuf.Timestamp update_time = 6; | ||
|
||
// The name of the Package or Version that owns this file, if any. | ||
string owner = 7; | ||
} | ||
|
||
// The request to list files. | ||
message ListFilesRequest { | ||
// The name of the repository whose files will be listed. For example: | ||
// "projects/p1/locations/us-central1/repositories/repo1 | ||
string parent = 1; | ||
|
||
// An expression for filtering the results of the request. Filter rules are | ||
// case insensitive. The fields eligible for filtering are: | ||
// | ||
// * `name` | ||
// * `owner` | ||
// | ||
// An example of using a filter: | ||
// | ||
// * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` --> Files with an | ||
// ID starting with "a/b/". | ||
// * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` --> | ||
// Files owned by the version `1.0` in package `pkg1`. | ||
string filter = 4; | ||
|
||
// The maximum number of files to return. | ||
int32 page_size = 2; | ||
|
||
// The next_page_token value returned from a previous list request, if any. | ||
string page_token = 3; | ||
|
||
// The field to order the results by. | ||
string order_by = 5; | ||
} | ||
|
||
// The response from listing files. | ||
message ListFilesResponse { | ||
// The files returned. | ||
repeated File files = 1; | ||
|
||
// The token to retrieve the next page of files, or empty if there are no | ||
// more files to return. | ||
string next_page_token = 2; | ||
} | ||
|
||
// The request to retrieve a file. | ||
message GetFileRequest { | ||
// The name of the file to retrieve. | ||
string name = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
// 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. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.devtools.artifactregistry.v1; | ||
|
||
import "google/api/field_behavior.proto"; | ||
import "google/api/resource.proto"; | ||
import "google/protobuf/timestamp.proto"; | ||
|
||
option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1"; | ||
option go_package = "google.golang.org/genproto/googleapis/devtools/artifactregistry/v1;artifactregistry"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "PackageProto"; | ||
option java_package = "com.google.devtools.artifactregistry.v1"; | ||
option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1"; | ||
option ruby_package = "Google::Cloud::ArtifactRegistry::V1"; | ||
|
||
// Packages are named collections of versions. | ||
message Package { | ||
|
||
// The name of the package, for example: | ||
// "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1". | ||
// If the package ID part contains slashes, the slashes are escaped. | ||
string name = 1; | ||
|
||
// The display name of the package. | ||
string display_name = 2; | ||
|
||
// The time when the package was created. | ||
google.protobuf.Timestamp create_time = 5; | ||
|
||
// The time when the package was last updated. This includes publishing a new | ||
// version of the package. | ||
google.protobuf.Timestamp update_time = 6; | ||
} | ||
|
||
// The request to list packages. | ||
message ListPackagesRequest { | ||
// Required. The name of the parent resource whose packages will be listed. | ||
string parent = 1 [ | ||
(google.api.field_behavior) = REQUIRED | ||
]; | ||
|
||
// The maximum number of packages to return. Maximum page size is 1,000. | ||
int32 page_size = 2; | ||
|
||
// The next_page_token value returned from a previous list request, if any. | ||
string page_token = 3; | ||
} | ||
|
||
// The response from listing packages. | ||
message ListPackagesResponse { | ||
// The packages returned. | ||
repeated Package packages = 1; | ||
|
||
// The token to retrieve the next page of packages, or empty if there are no | ||
// more packages to return. | ||
string next_page_token = 2; | ||
} | ||
|
||
// The request to retrieve a package. | ||
message GetPackageRequest { | ||
// Required. The name of the package to retrieve. | ||
string name = 1 [ | ||
(google.api.field_behavior) = REQUIRED | ||
]; | ||
} | ||
|
||
// The request to delete a package. | ||
message DeletePackageRequest { | ||
// Required. The name of the package to delete. | ||
string name = 1 [ | ||
(google.api.field_behavior) = REQUIRED | ||
]; | ||
} |
Oops, something went wrong.