Skip to content

Commit

Permalink
fix: make repository and repository_id in CreateRepository required
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 567370871
  • Loading branch information
Google APIs authored and Copybara-Service committed Sep 21, 2023
1 parent a32df25 commit 50f45da
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions google/devtools/artifactregistry/v1/repository.proto
Expand Up @@ -125,7 +125,8 @@ message Repository {

// The request to list repositories.
message ListRepositoriesRequest {
// Required. The name of the parent resource whose repositories will be listed.
// Required. The name of the parent resource whose repositories will be
// listed.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand Down Expand Up @@ -163,7 +164,8 @@ message GetRepositoryRequest {

// The request to create a new repository.
message CreateRepositoryRequest {
// Required. The name of the parent resource where the repository will be created.
// Required. The name of the parent resource where the repository will be
// created.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand All @@ -172,10 +174,10 @@ message CreateRepositoryRequest {
];

// The repository id to use for this repository.
string repository_id = 2;
string repository_id = 2 [(google.api.field_behavior) = REQUIRED];

// The repository to be created.
Repository repository = 3;
Repository repository = 3 [(google.api.field_behavior) = REQUIRED];
}

// The request to update a repository.
Expand Down

0 comments on commit 50f45da

Please sign in to comment.