UNPKG

@google-cloud/secret-manager

Version:
931 lines (757 loc) 772 kB
// Copyright 2026 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. import type {protobuf as $protobuf} from "google-gax"; import Long = require("long"); /** Namespace google. */ export namespace google { /** Namespace cloud. */ namespace cloud { /** Namespace secretmanager. */ namespace secretmanager { /** Namespace v1. */ namespace v1 { /** Properties of a Secret. */ interface ISecret { /** Secret name */ name?: (string|null); /** Secret replication */ replication?: (google.cloud.secretmanager.v1.IReplication|null); /** Secret createTime */ createTime?: (google.protobuf.ITimestamp|null); /** Secret labels */ labels?: ({ [k: string]: string }|null); /** Secret topics */ topics?: (google.cloud.secretmanager.v1.ITopic[]|null); /** Secret expireTime */ expireTime?: (google.protobuf.ITimestamp|null); /** Secret ttl */ ttl?: (google.protobuf.IDuration|null); /** Secret etag */ etag?: (string|null); /** Secret rotation */ rotation?: (google.cloud.secretmanager.v1.IRotation|null); /** Secret versionAliases */ versionAliases?: ({ [k: string]: (number|Long|string) }|null); /** Secret annotations */ annotations?: ({ [k: string]: string }|null); /** Secret versionDestroyTtl */ versionDestroyTtl?: (google.protobuf.IDuration|null); /** Secret customerManagedEncryption */ customerManagedEncryption?: (google.cloud.secretmanager.v1.ICustomerManagedEncryption|null); /** Secret tags */ tags?: ({ [k: string]: string }|null); } /** Represents a Secret. */ class Secret implements ISecret { /** * Constructs a new Secret. * @param [properties] Properties to set */ constructor(properties?: google.cloud.secretmanager.v1.ISecret); /** Secret name. */ public name: string; /** Secret replication. */ public replication?: (google.cloud.secretmanager.v1.IReplication|null); /** Secret createTime. */ public createTime?: (google.protobuf.ITimestamp|null); /** Secret labels. */ public labels: { [k: string]: string }; /** Secret topics. */ public topics: google.cloud.secretmanager.v1.ITopic[]; /** Secret expireTime. */ public expireTime?: (google.protobuf.ITimestamp|null); /** Secret ttl. */ public ttl?: (google.protobuf.IDuration|null); /** Secret etag. */ public etag: string; /** Secret rotation. */ public rotation?: (google.cloud.secretmanager.v1.IRotation|null); /** Secret versionAliases. */ public versionAliases: { [k: string]: (number|Long|string) }; /** Secret annotations. */ public annotations: { [k: string]: string }; /** Secret versionDestroyTtl. */ public versionDestroyTtl?: (google.protobuf.IDuration|null); /** Secret customerManagedEncryption. */ public customerManagedEncryption?: (google.cloud.secretmanager.v1.ICustomerManagedEncryption|null); /** Secret tags. */ public tags: { [k: string]: string }; /** Secret expiration. */ public expiration?: ("expireTime"|"ttl"); /** * Creates a new Secret instance using the specified properties. * @param [properties] Properties to set * @returns Secret instance */ public static create(properties?: google.cloud.secretmanager.v1.ISecret): google.cloud.secretmanager.v1.Secret; /** * Encodes the specified Secret message. Does not implicitly {@link google.cloud.secretmanager.v1.Secret.verify|verify} messages. * @param message Secret message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.secretmanager.v1.ISecret, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Secret message, length delimited. Does not implicitly {@link google.cloud.secretmanager.v1.Secret.verify|verify} messages. * @param message Secret message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.secretmanager.v1.ISecret, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Secret message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Secret * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.secretmanager.v1.Secret; /** * Decodes a Secret message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Secret * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.secretmanager.v1.Secret; /** * Verifies a Secret message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Secret message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Secret */ public static fromObject(object: { [k: string]: any }): google.cloud.secretmanager.v1.Secret; /** * Creates a plain object from a Secret message. Also converts values to other types if specified. * @param message Secret * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.secretmanager.v1.Secret, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Secret to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for Secret * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SecretVersion. */ interface ISecretVersion { /** SecretVersion name */ name?: (string|null); /** SecretVersion createTime */ createTime?: (google.protobuf.ITimestamp|null); /** SecretVersion destroyTime */ destroyTime?: (google.protobuf.ITimestamp|null); /** SecretVersion state */ state?: (google.cloud.secretmanager.v1.SecretVersion.State|keyof typeof google.cloud.secretmanager.v1.SecretVersion.State|null); /** SecretVersion replicationStatus */ replicationStatus?: (google.cloud.secretmanager.v1.IReplicationStatus|null); /** SecretVersion etag */ etag?: (string|null); /** SecretVersion clientSpecifiedPayloadChecksum */ clientSpecifiedPayloadChecksum?: (boolean|null); /** SecretVersion scheduledDestroyTime */ scheduledDestroyTime?: (google.protobuf.ITimestamp|null); /** SecretVersion customerManagedEncryption */ customerManagedEncryption?: (google.cloud.secretmanager.v1.ICustomerManagedEncryptionStatus|null); } /** Represents a SecretVersion. */ class SecretVersion implements ISecretVersion { /** * Constructs a new SecretVersion. * @param [properties] Properties to set */ constructor(properties?: google.cloud.secretmanager.v1.ISecretVersion); /** SecretVersion name. */ public name: string; /** SecretVersion createTime. */ public createTime?: (google.protobuf.ITimestamp|null); /** SecretVersion destroyTime. */ public destroyTime?: (google.protobuf.ITimestamp|null); /** SecretVersion state. */ public state: (google.cloud.secretmanager.v1.SecretVersion.State|keyof typeof google.cloud.secretmanager.v1.SecretVersion.State); /** SecretVersion replicationStatus. */ public replicationStatus?: (google.cloud.secretmanager.v1.IReplicationStatus|null); /** SecretVersion etag. */ public etag: string; /** SecretVersion clientSpecifiedPayloadChecksum. */ public clientSpecifiedPayloadChecksum: boolean; /** SecretVersion scheduledDestroyTime. */ public scheduledDestroyTime?: (google.protobuf.ITimestamp|null); /** SecretVersion customerManagedEncryption. */ public customerManagedEncryption?: (google.cloud.secretmanager.v1.ICustomerManagedEncryptionStatus|null); /** * Creates a new SecretVersion instance using the specified properties. * @param [properties] Properties to set * @returns SecretVersion instance */ public static create(properties?: google.cloud.secretmanager.v1.ISecretVersion): google.cloud.secretmanager.v1.SecretVersion; /** * Encodes the specified SecretVersion message. Does not implicitly {@link google.cloud.secretmanager.v1.SecretVersion.verify|verify} messages. * @param message SecretVersion message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.secretmanager.v1.ISecretVersion, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified SecretVersion message, length delimited. Does not implicitly {@link google.cloud.secretmanager.v1.SecretVersion.verify|verify} messages. * @param message SecretVersion message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.secretmanager.v1.ISecretVersion, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SecretVersion message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns SecretVersion * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.secretmanager.v1.SecretVersion; /** * Decodes a SecretVersion message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns SecretVersion * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.secretmanager.v1.SecretVersion; /** * Verifies a SecretVersion message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a SecretVersion message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns SecretVersion */ public static fromObject(object: { [k: string]: any }): google.cloud.secretmanager.v1.SecretVersion; /** * Creates a plain object from a SecretVersion message. Also converts values to other types if specified. * @param message SecretVersion * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.secretmanager.v1.SecretVersion, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SecretVersion to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for SecretVersion * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace SecretVersion { /** State enum. */ enum State { STATE_UNSPECIFIED = 0, ENABLED = 1, DISABLED = 2, DESTROYED = 3 } } /** Properties of a Replication. */ interface IReplication { /** Replication automatic */ automatic?: (google.cloud.secretmanager.v1.Replication.IAutomatic|null); /** Replication userManaged */ userManaged?: (google.cloud.secretmanager.v1.Replication.IUserManaged|null); } /** Represents a Replication. */ class Replication implements IReplication { /** * Constructs a new Replication. * @param [properties] Properties to set */ constructor(properties?: google.cloud.secretmanager.v1.IReplication); /** Replication automatic. */ public automatic?: (google.cloud.secretmanager.v1.Replication.IAutomatic|null); /** Replication userManaged. */ public userManaged?: (google.cloud.secretmanager.v1.Replication.IUserManaged|null); /** Replication replication. */ public replication?: ("automatic"|"userManaged"); /** * Creates a new Replication instance using the specified properties. * @param [properties] Properties to set * @returns Replication instance */ public static create(properties?: google.cloud.secretmanager.v1.IReplication): google.cloud.secretmanager.v1.Replication; /** * Encodes the specified Replication message. Does not implicitly {@link google.cloud.secretmanager.v1.Replication.verify|verify} messages. * @param message Replication message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.secretmanager.v1.IReplication, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Replication message, length delimited. Does not implicitly {@link google.cloud.secretmanager.v1.Replication.verify|verify} messages. * @param message Replication message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.secretmanager.v1.IReplication, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Replication message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Replication * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.secretmanager.v1.Replication; /** * Decodes a Replication message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Replication * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.secretmanager.v1.Replication; /** * Verifies a Replication message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Replication message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Replication */ public static fromObject(object: { [k: string]: any }): google.cloud.secretmanager.v1.Replication; /** * Creates a plain object from a Replication message. Also converts values to other types if specified. * @param message Replication * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.secretmanager.v1.Replication, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Replication to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for Replication * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace Replication { /** Properties of an Automatic. */ interface IAutomatic { /** Automatic customerManagedEncryption */ customerManagedEncryption?: (google.cloud.secretmanager.v1.ICustomerManagedEncryption|null); } /** Represents an Automatic. */ class Automatic implements IAutomatic { /** * Constructs a new Automatic. * @param [properties] Properties to set */ constructor(properties?: google.cloud.secretmanager.v1.Replication.IAutomatic); /** Automatic customerManagedEncryption. */ public customerManagedEncryption?: (google.cloud.secretmanager.v1.ICustomerManagedEncryption|null); /** * Creates a new Automatic instance using the specified properties. * @param [properties] Properties to set * @returns Automatic instance */ public static create(properties?: google.cloud.secretmanager.v1.Replication.IAutomatic): google.cloud.secretmanager.v1.Replication.Automatic; /** * Encodes the specified Automatic message. Does not implicitly {@link google.cloud.secretmanager.v1.Replication.Automatic.verify|verify} messages. * @param message Automatic message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.secretmanager.v1.Replication.IAutomatic, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Automatic message, length delimited. Does not implicitly {@link google.cloud.secretmanager.v1.Replication.Automatic.verify|verify} messages. * @param message Automatic message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.secretmanager.v1.Replication.IAutomatic, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Automatic message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Automatic * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.secretmanager.v1.Replication.Automatic; /** * Decodes an Automatic message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Automatic * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.secretmanager.v1.Replication.Automatic; /** * Verifies an Automatic message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an Automatic message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Automatic */ public static fromObject(object: { [k: string]: any }): google.cloud.secretmanager.v1.Replication.Automatic; /** * Creates a plain object from an Automatic message. Also converts values to other types if specified. * @param message Automatic * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.secretmanager.v1.Replication.Automatic, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Automatic to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for Automatic * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a UserManaged. */ interface IUserManaged { /** UserManaged replicas */ replicas?: (google.cloud.secretmanager.v1.Replication.UserManaged.IReplica[]|null); } /** Represents a UserManaged. */ class UserManaged implements IUserManaged { /** * Constructs a new UserManaged. * @param [properties] Properties to set */ constructor(properties?: google.cloud.secretmanager.v1.Replication.IUserManaged); /** UserManaged replicas. */ public replicas: google.cloud.secretmanager.v1.Replication.UserManaged.IReplica[]; /** * Creates a new UserManaged instance using the specified properties. * @param [properties] Properties to set * @returns UserManaged instance */ public static create(properties?: google.cloud.secretmanager.v1.Replication.IUserManaged): google.cloud.secretmanager.v1.Replication.UserManaged; /** * Encodes the specified UserManaged message. Does not implicitly {@link google.cloud.secretmanager.v1.Replication.UserManaged.verify|verify} messages. * @param message UserManaged message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.secretmanager.v1.Replication.IUserManaged, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified UserManaged message, length delimited. Does not implicitly {@link google.cloud.secretmanager.v1.Replication.UserManaged.verify|verify} messages. * @param message UserManaged message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.secretmanager.v1.Replication.IUserManaged, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a UserManaged message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns UserManaged * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.secretmanager.v1.Replication.UserManaged; /** * Decodes a UserManaged message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns UserManaged * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.secretmanager.v1.Replication.UserManaged; /** * Verifies a UserManaged message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a UserManaged message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns UserManaged */ public static fromObject(object: { [k: string]: any }): google.cloud.secretmanager.v1.Replication.UserManaged; /** * Creates a plain object from a UserManaged message. Also converts values to other types if specified. * @param message UserManaged * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.secretmanager.v1.Replication.UserManaged, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this UserManaged to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for UserManaged * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace UserManaged { /** Properties of a Replica. */ interface IReplica { /** Replica location */ location?: (string|null); /** Replica customerManagedEncryption */ customerManagedEncryption?: (google.cloud.secretmanager.v1.ICustomerManagedEncryption|null); } /** Represents a Replica. */ class Replica implements IReplica { /** * Constructs a new Replica. * @param [properties] Properties to set */ constructor(properties?: google.cloud.secretmanager.v1.Replication.UserManaged.IReplica); /** Replica location. */ public location: string; /** Replica customerManagedEncryption. */ public customerManagedEncryption?: (google.cloud.secretmanager.v1.ICustomerManagedEncryption|null); /** * Creates a new Replica instance using the specified properties. * @param [properties] Properties to set * @returns Replica instance */ public static create(properties?: google.cloud.secretmanager.v1.Replication.UserManaged.IReplica): google.cloud.secretmanager.v1.Replication.UserManaged.Replica; /** * Encodes the specified Replica message. Does not implicitly {@link google.cloud.secretmanager.v1.Replication.UserManaged.Replica.verify|verify} messages. * @param message Replica message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.secretmanager.v1.Replication.UserManaged.IReplica, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Replica message, length delimited. Does not implicitly {@link google.cloud.secretmanager.v1.Replication.UserManaged.Replica.verify|verify} messages. * @param message Replica message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.secretmanager.v1.Replication.UserManaged.IReplica, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Replica message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Replica * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.secretmanager.v1.Replication.UserManaged.Replica; /** * Decodes a Replica message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Replica * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.secretmanager.v1.Replication.UserManaged.Replica; /** * Verifies a Replica message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Replica message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Replica */ public static fromObject(object: { [k: string]: any }): google.cloud.secretmanager.v1.Replication.UserManaged.Replica; /** * Creates a plain object from a Replica message. Also converts values to other types if specified. * @param message Replica * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.secretmanager.v1.Replication.UserManaged.Replica, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Replica to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for Replica * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } } } /** Properties of a CustomerManagedEncryption. */ interface ICustomerManagedEncryption { /** CustomerManagedEncryption kmsKeyName */ kmsKeyName?: (string|null); } /** Represents a CustomerManagedEncryption. */ class CustomerManagedEncryption implements ICustomerManagedEncryption { /** * Constructs a new CustomerManagedEncryption. * @param [properties] Properties to set */ constructor(properties?: google.cloud.secretmanager.v1.ICustomerManagedEncryption); /** CustomerManagedEncryption kmsKeyName. */ public kmsKeyName: string; /** * Creates a new CustomerManagedEncryption instance using the specified properties. * @param [properties] Properties to set * @returns CustomerManagedEncryption instance */ public static create(properties?: google.cloud.secretmanager.v1.ICustomerManagedEncryption): google.cloud.secretmanager.v1.CustomerManagedEncryption; /** * Encodes the specified CustomerManagedEncryption message. Does not implicitly {@link google.cloud.secretmanager.v1.CustomerManagedEncryption.verify|verify} messages. * @param message CustomerManagedEncryption message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.secretmanager.v1.ICustomerManagedEncryption, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CustomerManagedEncryption message, length delimited. Does not implicitly {@link google.cloud.secretmanager.v1.CustomerManagedEncryption.verify|verify} messages. * @param message CustomerManagedEncryption message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.secretmanager.v1.ICustomerManagedEncryption, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CustomerManagedEncryption message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns CustomerManagedEncryption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.secretmanager.v1.CustomerManagedEncryption; /** * Decodes a CustomerManagedEncryption message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns CustomerManagedEncryption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.secretmanager.v1.CustomerManagedEncryption; /** * Verifies a CustomerManagedEncryption message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a CustomerManagedEncryption message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns CustomerManagedEncryption */ public static fromObject(object: { [k: string]: any }): google.cloud.secretmanager.v1.CustomerManagedEncryption; /** * Creates a plain object from a CustomerManagedEncryption message. Also converts values to other types if specified. * @param message CustomerManagedEncryption * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.secretmanager.v1.CustomerManagedEncryption, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CustomerManagedEncryption to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for CustomerManagedEncryption * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ReplicationStatus. */ interface IReplicationStatus { /** ReplicationStatus automatic */ automatic?: (google.cloud.secretmanager.v1.ReplicationStatus.IAutomaticStatus|null); /** ReplicationStatus userManaged */ userManaged?: (google.cloud.secretmanager.v1.ReplicationStatus.IUserManagedStatus|null); } /** Represents a ReplicationStatus. */ class ReplicationStatus implements IReplicationStatus { /** * Constructs a new ReplicationStatus. * @param [properties] Properties to set */ constructor(properties?: google.cloud.secretmanager.v1.IReplicationStatus); /** ReplicationStatus automatic. */ public automatic?: (google.cloud.secretmanager.v1.ReplicationStatus.IAutomaticStatus|null); /** ReplicationStatus userManaged. */ public userManaged?: (google.cloud.secretmanager.v1.ReplicationStatus.IUserManagedStatus|null); /** ReplicationStatus replicationStatus. */ public replicationStatus?: ("automatic"|"userManaged"); /** * Creates a new ReplicationStatus instance using the specified properties. * @param [properties] Properties to set * @returns ReplicationStatus instance */ public static create(properties?: google.cloud.secretmanager.v1.IReplicationStatus): google.cloud.secretmanager.v1.ReplicationStatus; /** * Encodes the specified ReplicationStatus message. Does not implicitly {@link google.cloud.secretmanager.v1.ReplicationStatus.verify|verify} messages. * @param message ReplicationStatus message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.secretmanager.v1.IReplicationStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ReplicationStatus message, length delimited. Does not implicitly {@link google.cloud.secretmanager.v1.ReplicationStatus.verify|verify} messages. * @param message ReplicationStatus message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.secretmanager.v1.IReplicationStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ReplicationStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ReplicationStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.secretmanager.v1.ReplicationStatus; /** * Decodes a ReplicationStatus message from the specified reader or buffer