// Copyright 2025 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.cloud.secretmanager.v1beta2; import "google/api/annotations.proto"; option go_package = "cloud.google.com/go/secretmanager/apiv1beta2/secretmanagerpb;secretmanagerpb"; // A Secret is a secret value. message Secret { string name = 1; } // Request for the `ListSecrets` method. message ListSecretsRequest { string parent = 1; } // Response for the `ListSecrets` method. message ListSecretsResponse { repeated Secret Secrets = 1; } // Service for managing secrets. service Secrets { // Lists Secrets in a given project and location. rpc ListSecrets(ListSecretsRequest) returns (ListSecretsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/Secrets" }; } }