Documentation

Index

Constants

This section is empty.

Variables

View Source
var SecretVersion_State_name = map[int32]string{
	0: "STATE_UNSPECIFIED",
	1: "ENABLED",
	2: "DISABLED",
	3: "DESTROYED",
}
View Source
var SecretVersion_State_value = map[string]int32{
	"STATE_UNSPECIFIED": 0,
	"ENABLED":           1,
	"DISABLED":          2,
	"DESTROYED":         3,
}

Functions

func RegisterSecretManagerServiceServer

func RegisterSecretManagerServiceServer(s *grpc.Server, srv SecretManagerServiceServer)

Types

type AccessSecretVersionRequest

type AccessSecretVersionRequest struct {
	// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format
	// `projects/*/secrets/*/versions/*`.
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for [SecretManagerService.AccessSecretVersion][google.cloud.secrets.v1beta1.SecretManagerService.AccessSecretVersion].

func (*AccessSecretVersionRequest) Descriptor

func (*AccessSecretVersionRequest) Descriptor() ([]byte, []int)

func (*AccessSecretVersionRequest) GetName

func (m *AccessSecretVersionRequest) GetName() string

func (*AccessSecretVersionRequest) ProtoMessage

func (*AccessSecretVersionRequest) ProtoMessage()

func (*AccessSecretVersionRequest) Reset

func (m *AccessSecretVersionRequest) Reset()

func (*AccessSecretVersionRequest) String

func (m *AccessSecretVersionRequest) String() string

func (*AccessSecretVersionRequest) XXX_DiscardUnknown

func (m *AccessSecretVersionRequest) XXX_DiscardUnknown()

func (*AccessSecretVersionRequest) XXX_Marshal

func (m *AccessSecretVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccessSecretVersionRequest) XXX_Merge

func (m *AccessSecretVersionRequest) XXX_Merge(src proto.Message)

func (*AccessSecretVersionRequest) XXX_Size

func (m *AccessSecretVersionRequest) XXX_Size() int

func (*AccessSecretVersionRequest) XXX_Unmarshal

func (m *AccessSecretVersionRequest) XXX_Unmarshal(b []byte) error

type AccessSecretVersionResponse

type AccessSecretVersionResponse struct {
	// The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format
	// `projects/*/secrets/*/versions/*`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Secret payload
	Payload              *SecretPayload `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

Response message for [SecretManagerService.AccessSecretVersion][google.cloud.secrets.v1beta1.SecretManagerService.AccessSecretVersion].

func (*AccessSecretVersionResponse) Descriptor

func (*AccessSecretVersionResponse) Descriptor() ([]byte, []int)

func (*AccessSecretVersionResponse) GetName

func (m *AccessSecretVersionResponse) GetName() string

func (*AccessSecretVersionResponse) GetPayload

func (m *AccessSecretVersionResponse) GetPayload() *SecretPayload

func (*AccessSecretVersionResponse) ProtoMessage

func (*AccessSecretVersionResponse) ProtoMessage()

func (*AccessSecretVersionResponse) Reset

func (m *AccessSecretVersionResponse) Reset()

func (*AccessSecretVersionResponse) String

func (m *AccessSecretVersionResponse) String() string

func (*AccessSecretVersionResponse) XXX_DiscardUnknown

func (m *AccessSecretVersionResponse) XXX_DiscardUnknown()

func (*AccessSecretVersionResponse) XXX_Marshal

func (m *AccessSecretVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccessSecretVersionResponse) XXX_Merge

func (m *AccessSecretVersionResponse) XXX_Merge(src proto.Message)

func (*AccessSecretVersionResponse) XXX_Size

func (m *AccessSecretVersionResponse) XXX_Size() int

func (*AccessSecretVersionResponse) XXX_Unmarshal

func (m *AccessSecretVersionResponse) XXX_Unmarshal(b []byte) error

type AddSecretVersionRequest

type AddSecretVersionRequest struct {
	// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] to associate with the
	// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format `projects/*/secrets/*`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The secret payload of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
	Payload              *SecretPayload `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

Request message for [SecretManagerService.AddSecretVersion][google.cloud.secrets.v1beta1.SecretManagerService.AddSecretVersion].

func (*AddSecretVersionRequest) Descriptor

func (*AddSecretVersionRequest) Descriptor() ([]byte, []int)

func (*AddSecretVersionRequest) GetParent

func (m *AddSecretVersionRequest) GetParent() string

func (*AddSecretVersionRequest) GetPayload

func (m *AddSecretVersionRequest) GetPayload() *SecretPayload

func (*AddSecretVersionRequest) ProtoMessage

func (*AddSecretVersionRequest) ProtoMessage()

func (*AddSecretVersionRequest) Reset

func (m *AddSecretVersionRequest) Reset()

func (*AddSecretVersionRequest) String

func (m *AddSecretVersionRequest) String() string

func (*AddSecretVersionRequest) XXX_DiscardUnknown

func (m *AddSecretVersionRequest) XXX_DiscardUnknown()

func (*AddSecretVersionRequest) XXX_Marshal

func (m *AddSecretVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddSecretVersionRequest) XXX_Merge

func (m *AddSecretVersionRequest) XXX_Merge(src proto.Message)

func (*AddSecretVersionRequest) XXX_Size

func (m *AddSecretVersionRequest) XXX_Size() int

func (*AddSecretVersionRequest) XXX_Unmarshal

func (m *AddSecretVersionRequest) XXX_Unmarshal(b []byte) error

type CreateSecretRequest

type CreateSecretRequest struct {
	// Required. The resource name of the project to associate with the
	// [Secret][google.cloud.secrets.v1beta1.Secret], in the format `projects/*`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. This must be unique within the project.
	SecretId string `protobuf:"bytes,2,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// A [Secret][google.cloud.secrets.v1beta1.Secret] with initial field values.
	Secret               *Secret  `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for [SecretManagerService.CreateSecret][google.cloud.secrets.v1beta1.SecretManagerService.CreateSecret].

func (*CreateSecretRequest) Descriptor

func (*CreateSecretRequest) Descriptor() ([]byte, []int)

func (*CreateSecretRequest) GetParent

func (m *CreateSecretRequest) GetParent() string

func (*CreateSecretRequest) GetSecret

func (m *CreateSecretRequest) GetSecret() *Secret

func (*CreateSecretRequest) GetSecretId

func (m *CreateSecretRequest) GetSecretId() string

func (*CreateSecretRequest) ProtoMessage

func (*CreateSecretRequest) ProtoMessage()

func (*CreateSecretRequest) Reset

func (m *CreateSecretRequest) Reset()

func (*CreateSecretRequest) String

func (m *CreateSecretRequest) String() string

func (*CreateSecretRequest) XXX_DiscardUnknown

func (m *CreateSecretRequest) XXX_DiscardUnknown()

func (*CreateSecretRequest) XXX_Marshal

func (m *CreateSecretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateSecretRequest) XXX_Merge

func (m *CreateSecretRequest) XXX_Merge(src proto.Message)

func (*CreateSecretRequest) XXX_Size

func (m *CreateSecretRequest) XXX_Size() int

func (*CreateSecretRequest) XXX_Unmarshal

func (m *CreateSecretRequest) XXX_Unmarshal(b []byte) error

type DeleteSecretRequest

type DeleteSecretRequest struct {
	// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] to delete in the format
	// `projects/*/secrets/*`.
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for [SecretManagerService.DeleteSecret][google.cloud.secrets.v1beta1.SecretManagerService.DeleteSecret].

func (*DeleteSecretRequest) Descriptor

func (*DeleteSecretRequest) Descriptor() ([]byte, []int)

func (*DeleteSecretRequest) GetName

func (m *DeleteSecretRequest) GetName() string

func (*DeleteSecretRequest) ProtoMessage

func (*DeleteSecretRequest) ProtoMessage()

func (*DeleteSecretRequest) Reset

func (m *DeleteSecretRequest) Reset()

func (*DeleteSecretRequest) String

func (m *DeleteSecretRequest) String() string

func (*DeleteSecretRequest) XXX_DiscardUnknown

func (m *DeleteSecretRequest) XXX_DiscardUnknown()

func (*DeleteSecretRequest) XXX_Marshal

func (m *DeleteSecretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteSecretRequest) XXX_Merge

func (m *DeleteSecretRequest) XXX_Merge(src proto.Message)

func (*DeleteSecretRequest) XXX_Size

func (m *DeleteSecretRequest) XXX_Size() int

func (*DeleteSecretRequest) XXX_Unmarshal

func (m *DeleteSecretRequest) XXX_Unmarshal(b []byte) error

type DestroySecretVersionRequest

type DestroySecretVersionRequest struct {
	// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to destroy in the format
	// `projects/*/secrets/*/versions/*`.
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for [SecretManagerService.DestroySecretVersion][google.cloud.secrets.v1beta1.SecretManagerService.DestroySecretVersion].

func (*DestroySecretVersionRequest) Descriptor

func (*DestroySecretVersionRequest) Descriptor() ([]byte, []int)

func (*DestroySecretVersionRequest) GetName

func (m *DestroySecretVersionRequest) GetName() string

func (*DestroySecretVersionRequest) ProtoMessage

func (*DestroySecretVersionRequest) ProtoMessage()

func (*DestroySecretVersionRequest) Reset

func (m *DestroySecretVersionRequest) Reset()

func (*DestroySecretVersionRequest) String

func (m *DestroySecretVersionRequest) String() string

func (*DestroySecretVersionRequest) XXX_DiscardUnknown

func (m *DestroySecretVersionRequest) XXX_DiscardUnknown()

func (*DestroySecretVersionRequest) XXX_Marshal

func (m *DestroySecretVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DestroySecretVersionRequest) XXX_Merge

func (m *DestroySecretVersionRequest) XXX_Merge(src proto.Message)

func (*DestroySecretVersionRequest) XXX_Size

func (m *DestroySecretVersionRequest) XXX_Size() int

func (*DestroySecretVersionRequest) XXX_Unmarshal

func (m *DestroySecretVersionRequest) XXX_Unmarshal(b []byte) error

type DisableSecretVersionRequest

type DisableSecretVersionRequest struct {
	// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to disable in the format
	// `projects/*/secrets/*/versions/*`.
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for [SecretManagerService.DisableSecretVersion][google.cloud.secrets.v1beta1.SecretManagerService.DisableSecretVersion].

func (*DisableSecretVersionRequest) Descriptor

func (*DisableSecretVersionRequest) Descriptor() ([]byte, []int)

func (*DisableSecretVersionRequest) GetName

func (m *DisableSecretVersionRequest) GetName() string

func (*DisableSecretVersionRequest) ProtoMessage

func (*DisableSecretVersionRequest) ProtoMessage()

func (*DisableSecretVersionRequest) Reset

func (m *DisableSecretVersionRequest) Reset()

func (*DisableSecretVersionRequest) String

func (m *DisableSecretVersionRequest) String() string

func (*DisableSecretVersionRequest) XXX_DiscardUnknown

func (m *DisableSecretVersionRequest) XXX_DiscardUnknown()

func (*DisableSecretVersionRequest) XXX_Marshal

func (m *DisableSecretVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DisableSecretVersionRequest) XXX_Merge

func (m *DisableSecretVersionRequest) XXX_Merge(src proto.Message)

func (*DisableSecretVersionRequest) XXX_Size

func (m *DisableSecretVersionRequest) XXX_Size() int

func (*DisableSecretVersionRequest) XXX_Unmarshal

func (m *DisableSecretVersionRequest) XXX_Unmarshal(b []byte) error

type EnableSecretVersionRequest

type EnableSecretVersionRequest struct {
	// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to enable in the format
	// `projects/*/secrets/*/versions/*`.
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for [SecretManagerService.EnableSecretVersion][google.cloud.secrets.v1beta1.SecretManagerService.EnableSecretVersion].

func (*EnableSecretVersionRequest) Descriptor

func (*EnableSecretVersionRequest) Descriptor() ([]byte, []int)

func (*EnableSecretVersionRequest) GetName

func (m *EnableSecretVersionRequest) GetName() string

func (*EnableSecretVersionRequest) ProtoMessage

func (*EnableSecretVersionRequest) ProtoMessage()

func (*EnableSecretVersionRequest) Reset

func (m *EnableSecretVersionRequest) Reset()

func (*EnableSecretVersionRequest) String

func (m *EnableSecretVersionRequest) String() string

func (*EnableSecretVersionRequest) XXX_DiscardUnknown

func (m *EnableSecretVersionRequest) XXX_DiscardUnknown()

func (*EnableSecretVersionRequest) XXX_Marshal

func (m *EnableSecretVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnableSecretVersionRequest) XXX_Merge

func (m *EnableSecretVersionRequest) XXX_Merge(src proto.Message)

func (*EnableSecretVersionRequest) XXX_Size

func (m *EnableSecretVersionRequest) XXX_Size() int

func (*EnableSecretVersionRequest) XXX_Unmarshal

func (m *EnableSecretVersionRequest) XXX_Unmarshal(b []byte) error

type GetSecretRequest

type GetSecretRequest struct {
	// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret], in the format `projects/*/secrets/*`.
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for [SecretManagerService.GetSecret][google.cloud.secrets.v1beta1.SecretManagerService.GetSecret].

func (*GetSecretRequest) Descriptor

func (*GetSecretRequest) Descriptor() ([]byte, []int)

func (*GetSecretRequest) GetName

func (m *GetSecretRequest) GetName() string

func (*GetSecretRequest) ProtoMessage

func (*GetSecretRequest) ProtoMessage()

func (*GetSecretRequest) Reset

func (m *GetSecretRequest) Reset()

func (*GetSecretRequest) String

func (m *GetSecretRequest) String() string

func (*GetSecretRequest) XXX_DiscardUnknown

func (m *GetSecretRequest) XXX_DiscardUnknown()

func (*GetSecretRequest) XXX_Marshal

func (m *GetSecretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetSecretRequest) XXX_Merge

func (m *GetSecretRequest) XXX_Merge(src proto.Message)

func (*GetSecretRequest) XXX_Size

func (m *GetSecretRequest) XXX_Size() int

func (*GetSecretRequest) XXX_Unmarshal

func (m *GetSecretRequest) XXX_Unmarshal(b []byte) error

type GetSecretVersionRequest

type GetSecretVersionRequest struct {
	// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format
	// `projects/*/secrets/*/versions/*`.
	// `projects/*/secrets/*/versions/latest` is an alias to the `latest`
	// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for [SecretManagerService.GetSecretVersion][google.cloud.secrets.v1beta1.SecretManagerService.GetSecretVersion].

func (*GetSecretVersionRequest) Descriptor

func (*GetSecretVersionRequest) Descriptor() ([]byte, []int)

func (*GetSecretVersionRequest) GetName

func (m *GetSecretVersionRequest) GetName() string

func (*GetSecretVersionRequest) ProtoMessage

func (*GetSecretVersionRequest) ProtoMessage()

func (*GetSecretVersionRequest) Reset

func (m *GetSecretVersionRequest) Reset()

func (*GetSecretVersionRequest) String

func (m *GetSecretVersionRequest) String() string

func (*GetSecretVersionRequest) XXX_DiscardUnknown

func (m *GetSecretVersionRequest) XXX_DiscardUnknown()

func (*GetSecretVersionRequest) XXX_Marshal

func (m *GetSecretVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetSecretVersionRequest) XXX_Merge

func (m *GetSecretVersionRequest) XXX_Merge(src proto.Message)

func (*GetSecretVersionRequest) XXX_Size

func (m *GetSecretVersionRequest) XXX_Size() int

func (*GetSecretVersionRequest) XXX_Unmarshal

func (m *GetSecretVersionRequest) XXX_Unmarshal(b []byte) error

type ListSecretVersionsRequest

type ListSecretVersionsRequest struct {
	// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] associated with the
	// [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion] to list, in the format
	// `projects/*/secrets/*`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of results to be returned in a single page. If
	// set to 0, the server decides the number of results to return. If the
	// number is greater than 25000, it is capped at 25000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. Pagination token, returned earlier via
	// ListSecretVersionsResponse.next_page_token][].
	PageToken            string   `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for [SecretManagerService.ListSecretVersions][google.cloud.secrets.v1beta1.SecretManagerService.ListSecretVersions].

func (*ListSecretVersionsRequest) Descriptor

func (*ListSecretVersionsRequest) Descriptor() ([]byte, []int)

func (*ListSecretVersionsRequest) GetPageSize

func (m *ListSecretVersionsRequest) GetPageSize() int32

func (*ListSecretVersionsRequest) GetPageToken

func (m *ListSecretVersionsRequest) GetPageToken() string

func (*ListSecretVersionsRequest) GetParent

func (m *ListSecretVersionsRequest) GetParent() string

func (*ListSecretVersionsRequest) ProtoMessage

func (*ListSecretVersionsRequest) ProtoMessage()

func (*ListSecretVersionsRequest) Reset

func (m *ListSecretVersionsRequest) Reset()

func (*ListSecretVersionsRequest) String

func (m *ListSecretVersionsRequest) String() string

func (*ListSecretVersionsRequest) XXX_DiscardUnknown

func (m *ListSecretVersionsRequest) XXX_DiscardUnknown()

func (*ListSecretVersionsRequest) XXX_Marshal

func (m *ListSecretVersionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListSecretVersionsRequest) XXX_Merge

func (m *ListSecretVersionsRequest) XXX_Merge(src proto.Message)

func (*ListSecretVersionsRequest) XXX_Size

func (m *ListSecretVersionsRequest) XXX_Size() int

func (*ListSecretVersionsRequest) XXX_Unmarshal

func (m *ListSecretVersionsRequest) XXX_Unmarshal(b []byte) error

type ListSecretVersionsResponse

type ListSecretVersionsResponse struct {
	// The list of [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion] sorted in reverse by
	// create_time (newest first).
	Versions []*SecretVersion `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
	// A token to retrieve the next page of results. Pass this value in
	// [ListSecretVersionsRequest.page_token][google.cloud.secrets.v1beta1.ListSecretVersionsRequest.page_token] to retrieve the next page.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// The total number of [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion].
	TotalSize            int32    `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response message for [SecretManagerService.ListSecretVersions][google.cloud.secrets.v1beta1.SecretManagerService.ListSecretVersions].

func (*ListSecretVersionsResponse) Descriptor

func (*ListSecretVersionsResponse) Descriptor() ([]byte, []int)

func (*ListSecretVersionsResponse) GetNextPageToken

func (m *ListSecretVersionsResponse) GetNextPageToken() string

func (*ListSecretVersionsResponse) GetTotalSize

func (m *ListSecretVersionsResponse) GetTotalSize() int32

func (*ListSecretVersionsResponse) GetVersions

func (m *ListSecretVersionsResponse) GetVersions() []*SecretVersion

func (*ListSecretVersionsResponse) ProtoMessage

func (*ListSecretVersionsResponse) ProtoMessage()

func (*ListSecretVersionsResponse) Reset

func (m *ListSecretVersionsResponse) Reset()

func (*ListSecretVersionsResponse) String

func (m *ListSecretVersionsResponse) String() string

func (*ListSecretVersionsResponse) XXX_DiscardUnknown

func (m *ListSecretVersionsResponse) XXX_DiscardUnknown()

func (*ListSecretVersionsResponse) XXX_Marshal

func (m *ListSecretVersionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListSecretVersionsResponse) XXX_Merge

func (m *ListSecretVersionsResponse) XXX_Merge(src proto.Message)

func (*ListSecretVersionsResponse) XXX_Size

func (m *ListSecretVersionsResponse) XXX_Size() int

func (*ListSecretVersionsResponse) XXX_Unmarshal

func (m *ListSecretVersionsResponse) XXX_Unmarshal(b []byte) error

type ListSecretsRequest

type ListSecretsRequest struct {
	// Required. The resource name of the project associated with the
	// [Secrets][google.cloud.secrets.v1beta1.Secret], in the format `projects/*`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of results to be returned in a single page. If
	// set to 0, the server decides the number of results to return. If the
	// number is greater than 25000, it is capped at 25000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. Pagination token, returned earlier via
	// [ListSecretsResponse.next_page_token][google.cloud.secrets.v1beta1.ListSecretsResponse.next_page_token].
	PageToken            string   `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for [SecretManagerService.ListSecrets][google.cloud.secrets.v1beta1.SecretManagerService.ListSecrets].

func (*ListSecretsRequest) Descriptor

func (*ListSecretsRequest) Descriptor() ([]byte, []int)

func (*ListSecretsRequest) GetPageSize

func (m *ListSecretsRequest) GetPageSize() int32

func (*ListSecretsRequest) GetPageToken

func (m *ListSecretsRequest) GetPageToken() string

func (*ListSecretsRequest) GetParent

func (m *ListSecretsRequest) GetParent() string

func (*ListSecretsRequest) ProtoMessage

func (*ListSecretsRequest) ProtoMessage()

func (*ListSecretsRequest) Reset

func (m *ListSecretsRequest) Reset()

func (*ListSecretsRequest) String

func (m *ListSecretsRequest) String() string

func (*ListSecretsRequest) XXX_DiscardUnknown

func (m *ListSecretsRequest) XXX_DiscardUnknown()

func (*ListSecretsRequest) XXX_Marshal

func (m *ListSecretsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListSecretsRequest) XXX_Merge

func (m *ListSecretsRequest) XXX_Merge(src proto.Message)

func (*ListSecretsRequest) XXX_Size

func (m *ListSecretsRequest) XXX_Size() int

func (*ListSecretsRequest) XXX_Unmarshal

func (m *ListSecretsRequest) XXX_Unmarshal(b []byte) error

type ListSecretsResponse

type ListSecretsResponse struct {
	// The list of [Secrets][google.cloud.secrets.v1beta1.Secret] sorted in reverse by create_time (newest
	// first).
	Secrets []*Secret `protobuf:"bytes,1,rep,name=secrets,proto3" json:"secrets,omitempty"`
	// A token to retrieve the next page of results. Pass this value in
	// [ListSecretsRequest.page_token][google.cloud.secrets.v1beta1.ListSecretsRequest.page_token] to retrieve the next page.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// The total number of [Secrets][google.cloud.secrets.v1beta1.Secret].
	TotalSize            int32    `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response message for [SecretManagerService.ListSecrets][google.cloud.secrets.v1beta1.SecretManagerService.ListSecrets].

func (*ListSecretsResponse) Descriptor

func (*ListSecretsResponse) Descriptor() ([]byte, []int)

func (*ListSecretsResponse) GetNextPageToken

func (m *ListSecretsResponse) GetNextPageToken() string

func (*ListSecretsResponse) GetSecrets

func (m *ListSecretsResponse) GetSecrets() []*Secret

func (*ListSecretsResponse) GetTotalSize

func (m *ListSecretsResponse) GetTotalSize() int32

func (*ListSecretsResponse) ProtoMessage

func (*ListSecretsResponse) ProtoMessage()

func (*ListSecretsResponse) Reset

func (m *ListSecretsResponse) Reset()

func (*ListSecretsResponse) String

func (m *ListSecretsResponse) String() string

func (*ListSecretsResponse) XXX_DiscardUnknown

func (m *ListSecretsResponse) XXX_DiscardUnknown()

func (*ListSecretsResponse) XXX_Marshal

func (m *ListSecretsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListSecretsResponse) XXX_Merge

func (m *ListSecretsResponse) XXX_Merge(src proto.Message)

func (*ListSecretsResponse) XXX_Size

func (m *ListSecretsResponse) XXX_Size() int

func (*ListSecretsResponse) XXX_Unmarshal

func (m *ListSecretsResponse) XXX_Unmarshal(b []byte) error

type Replication

type Replication struct {
	// The replication policy for this secret.
	//
	// Types that are valid to be assigned to Replication:
	//	*Replication_Automatic_
	//	*Replication_UserManaged_
	Replication          isReplication_Replication `protobuf_oneof:"replication"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

A policy that defines the replication configuration of data.

func (*Replication) Descriptor

func (*Replication) Descriptor() ([]byte, []int)

func (*Replication) GetAutomatic

func (m *Replication) GetAutomatic() *Replication_Automatic

func (*Replication) GetReplication

func (m *Replication) GetReplication() isReplication_Replication

func (*Replication) GetUserManaged

func (m *Replication) GetUserManaged() *Replication_UserManaged

func (*Replication) ProtoMessage

func (*Replication) ProtoMessage()

func (*Replication) Reset

func (m *Replication) Reset()

func (*Replication) String

func (m *Replication) String() string

func (*Replication) XXX_DiscardUnknown

func (m *Replication) XXX_DiscardUnknown()

func (*Replication) XXX_Marshal

func (m *Replication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Replication) XXX_Merge

func (m *Replication) XXX_Merge(src proto.Message)

func (*Replication) XXX_OneofWrappers

func (*Replication) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Replication) XXX_Size

func (m *Replication) XXX_Size() int

func (*Replication) XXX_Unmarshal

func (m *Replication) XXX_Unmarshal(b []byte) error

type Replication_Automatic

type Replication_Automatic struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A replication policy that replicates the [Secret][google.cloud.secrets.v1beta1.Secret] payload without any restrictions.

func (*Replication_Automatic) Descriptor

func (*Replication_Automatic) Descriptor() ([]byte, []int)

func (*Replication_Automatic) ProtoMessage

func (*Replication_Automatic) ProtoMessage()

func (*Replication_Automatic) Reset

func (m *Replication_Automatic) Reset()

func (*Replication_Automatic) String

func (m *Replication_Automatic) String() string

func (*Replication_Automatic) XXX_DiscardUnknown

func (m *Replication_Automatic) XXX_DiscardUnknown()

func (*Replication_Automatic) XXX_Marshal

func (m *Replication_Automatic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Replication_Automatic) XXX_Merge

func (m *Replication_Automatic) XXX_Merge(src proto.Message)

func (*Replication_Automatic) XXX_Size

func (m *Replication_Automatic) XXX_Size() int

func (*Replication_Automatic) XXX_Unmarshal

func (m *Replication_Automatic) XXX_Unmarshal(b []byte) error

type Replication_Automatic_

type Replication_Automatic_ struct {
	Automatic *Replication_Automatic `protobuf:"bytes,1,opt,name=automatic,proto3,oneof"`
}

type Replication_UserManaged

type Replication_UserManaged struct {
	// Required. The list of Replicas for this [Secret][google.cloud.secrets.v1beta1.Secret].
	//
	// Cannot be empty.
	Replicas             []*Replication_UserManaged_Replica `protobuf:"bytes,1,rep,name=replicas,proto3" json:"replicas,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                           `json:"-"`
	XXX_unrecognized     []byte                             `json:"-"`
	XXX_sizecache        int32                              `json:"-"`
}

A replication policy that replicates the [Secret][google.cloud.secrets.v1beta1.Secret] payload into the locations specified in [Secret.replication.user_managed.replicas][]

func (*Replication_UserManaged) Descriptor

func (*Replication_UserManaged) Descriptor() ([]byte, []int)

func (*Replication_UserManaged) GetReplicas

func (*Replication_UserManaged) ProtoMessage

func (*Replication_UserManaged) ProtoMessage()

func (*Replication_UserManaged) Reset

func (m *Replication_UserManaged) Reset()

func (*Replication_UserManaged) String

func (m *Replication_UserManaged) String() string

func (*Replication_UserManaged) XXX_DiscardUnknown

func (m *Replication_UserManaged) XXX_DiscardUnknown()

func (*Replication_UserManaged) XXX_Marshal

func (m *Replication_UserManaged) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Replication_UserManaged) XXX_Merge

func (m *Replication_UserManaged) XXX_Merge(src proto.Message)

func (*Replication_UserManaged) XXX_Size

func (m *Replication_UserManaged) XXX_Size() int

func (*Replication_UserManaged) XXX_Unmarshal

func (m *Replication_UserManaged) XXX_Unmarshal(b []byte) error

type Replication_UserManaged_

type Replication_UserManaged_ struct {
	UserManaged *Replication_UserManaged `protobuf:"bytes,2,opt,name=user_managed,json=userManaged,proto3,oneof"`
}

type Replication_UserManaged_Replica

type Replication_UserManaged_Replica struct {
	// The canonical IDs of the location to replicate data.
	// For example: `"us-east1"`.
	Location             string   `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Represents a Replica for this [Secret][google.cloud.secrets.v1beta1.Secret].

func (*Replication_UserManaged_Replica) Descriptor

func (*Replication_UserManaged_Replica) Descriptor() ([]byte, []int)

func (*Replication_UserManaged_Replica) GetLocation

func (m *Replication_UserManaged_Replica) GetLocation() string

func (*Replication_UserManaged_Replica) ProtoMessage

func (*Replication_UserManaged_Replica) ProtoMessage()

func (*Replication_UserManaged_Replica) Reset

func (*Replication_UserManaged_Replica) String

func (*Replication_UserManaged_Replica) XXX_DiscardUnknown

func (m *Replication_UserManaged_Replica) XXX_DiscardUnknown()

func (*Replication_UserManaged_Replica) XXX_Marshal

func (m *Replication_UserManaged_Replica) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Replication_UserManaged_Replica) XXX_Merge

func (m *Replication_UserManaged_Replica) XXX_Merge(src proto.Message)

func (*Replication_UserManaged_Replica) XXX_Size

func (m *Replication_UserManaged_Replica) XXX_Size() int

func (*Replication_UserManaged_Replica) XXX_Unmarshal

func (m *Replication_UserManaged_Replica) XXX_Unmarshal(b []byte) error

type Secret

type Secret struct {
	// Output only. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] in the format `projects/*/secrets/*`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secrets.v1beta1.Secret].
	//
	// The replication policy cannot be changed after the Secret has been created.
	Replication *Replication `protobuf:"bytes,2,opt,name=replication,proto3" json:"replication,omitempty"`
	// Output only. The time at which the [Secret][google.cloud.secrets.v1beta1.Secret] was created.
	CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The labels assigned to this Secret.
	//
	// Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
	// of maximum 128 bytes, and must conform to the following PCRE regular
	// expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`
	//
	// Label values must be between 0 and 63 characters long, have a UTF-8
	// encoding of maximum 128 bytes, and must conform to the following PCRE
	// regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`
	//
	// No more than 64 labels can be assigned to a given resource.
	Labels               map[string]string `` /* 153-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

A [Secret][google.cloud.secrets.v1beta1.Secret] is a logical secret whose value and versions can be accessed.

A [Secret][google.cloud.secrets.v1beta1.Secret] is made up of zero or more [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion] that represent the secret data.

func (*Secret) Descriptor

func (*Secret) Descriptor() ([]byte, []int)

func (*Secret) GetCreateTime

func (m *Secret) GetCreateTime() *timestamp.Timestamp

func (*Secret) GetLabels

func (m *Secret) GetLabels() map[string]string

func (*Secret) GetName

func (m *Secret) GetName() string

func (*Secret) GetReplication

func (m *Secret) GetReplication() *Replication

func (*Secret) ProtoMessage

func (*Secret) ProtoMessage()

func (*Secret) Reset

func (m *Secret) Reset()

func (*Secret) String

func (m *Secret) String() string

func (*Secret) XXX_DiscardUnknown

func (m *Secret) XXX_DiscardUnknown()

func (*Secret) XXX_Marshal

func (m *Secret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Secret) XXX_Merge

func (m *Secret) XXX_Merge(src proto.Message)

func (*Secret) XXX_Size

func (m *Secret) XXX_Size() int

func (*Secret) XXX_Unmarshal

func (m *Secret) XXX_Unmarshal(b []byte) error

type SecretManagerServiceClient

type SecretManagerServiceClient interface {
	// Lists [Secrets][google.cloud.secrets.v1beta1.Secret].
	ListSecrets(ctx context.Context, in *ListSecretsRequest, opts ...grpc.CallOption) (*ListSecretsResponse, error)
	// Creates a new [Secret][google.cloud.secrets.v1beta1.Secret] containing no [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion].
	CreateSecret(ctx context.Context, in *CreateSecretRequest, opts ...grpc.CallOption) (*Secret, error)
	// Creates a new [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] containing secret data and attaches
	// it to an existing [Secret][google.cloud.secrets.v1beta1.Secret].
	AddSecretVersion(ctx context.Context, in *AddSecretVersionRequest, opts ...grpc.CallOption) (*SecretVersion, error)
	// Gets metadata for a given [Secret][google.cloud.secrets.v1beta1.Secret].
	GetSecret(ctx context.Context, in *GetSecretRequest, opts ...grpc.CallOption) (*Secret, error)
	// Updates metadata of an existing [Secret][google.cloud.secrets.v1beta1.Secret].
	UpdateSecret(ctx context.Context, in *UpdateSecretRequest, opts ...grpc.CallOption) (*Secret, error)
	// Deletes a [Secret][google.cloud.secrets.v1beta1.Secret].
	DeleteSecret(ctx context.Context, in *DeleteSecretRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Lists [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion]. This call does not return secret
	// data.
	ListSecretVersions(ctx context.Context, in *ListSecretVersionsRequest, opts ...grpc.CallOption) (*ListSecretVersionsResponse, error)
	// Gets metadata for a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
	//
	// `projects/*/secrets/*/versions/latest` is an alias to the `latest`
	// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
	GetSecretVersion(ctx context.Context, in *GetSecretVersionRequest, opts ...grpc.CallOption) (*SecretVersion, error)
	// Accesses a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. This call returns the secret data.
	//
	// `projects/*/secrets/*/versions/latest` is an alias to the `latest`
	// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
	AccessSecretVersion(ctx context.Context, in *AccessSecretVersionRequest, opts ...grpc.CallOption) (*AccessSecretVersionResponse, error)
	// Disables a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
	//
	// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to
	// [DISABLED][google.cloud.secrets.v1beta1.SecretVersion.State.DISABLED].
	DisableSecretVersion(ctx context.Context, in *DisableSecretVersionRequest, opts ...grpc.CallOption) (*SecretVersion, error)
	// Enables a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
	//
	// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to
	// [ENABLED][google.cloud.secrets.v1beta1.SecretVersion.State.ENABLED].
	EnableSecretVersion(ctx context.Context, in *EnableSecretVersionRequest, opts ...grpc.CallOption) (*SecretVersion, error)
	// Destroys a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
	//
	// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to
	// [DESTROYED][google.cloud.secrets.v1beta1.SecretVersion.State.DESTROYED] and irrevocably destroys the
	// secret data.
	DestroySecretVersion(ctx context.Context, in *DestroySecretVersionRequest, opts ...grpc.CallOption) (*SecretVersion, error)
	// Sets the access control policy on the specified secret. Replaces any
	// existing policy.
	//
	// Permissions on [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion] are enforced according
	// to the policy set on the associated [Secret][google.cloud.secrets.v1beta1.Secret].
	SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
	// Gets the access control policy for a secret.
	// Returns empty policy if the secret exists and does not have a policy set.
	GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
	// Returns permissions that a caller has for the specified secret.
	// If the secret does not exist, this call returns an empty set of
	// permissions, not a NOT_FOUND error.
	//
	// Note: This operation is designed to be used for building permission-aware
	// UIs and command-line tools, not for authorization checking. This operation
	// may "fail open" without warning.
	TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error)
}

SecretManagerServiceClient is the client API for SecretManagerService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSecretManagerServiceClient

func NewSecretManagerServiceClient(cc *grpc.ClientConn) SecretManagerServiceClient

type SecretManagerServiceServer

type SecretManagerServiceServer interface {
	// Lists [Secrets][google.cloud.secrets.v1beta1.Secret].
	ListSecrets(context.Context, *ListSecretsRequest) (*ListSecretsResponse, error)
	// Creates a new [Secret][google.cloud.secrets.v1beta1.Secret] containing no [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion].
	CreateSecret(context.Context, *CreateSecretRequest) (*Secret, error)
	// Creates a new [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] containing secret data and attaches
	// it to an existing [Secret][google.cloud.secrets.v1beta1.Secret].
	AddSecretVersion(context.Context, *AddSecretVersionRequest) (*SecretVersion, error)
	// Gets metadata for a given [Secret][google.cloud.secrets.v1beta1.Secret].
	GetSecret(context.Context, *GetSecretRequest) (*Secret, error)
	// Updates metadata of an existing [Secret][google.cloud.secrets.v1beta1.Secret].
	UpdateSecret(context.Context, *UpdateSecretRequest) (*Secret, error)
	// Deletes a [Secret][google.cloud.secrets.v1beta1.Secret].
	DeleteSecret(context.Context, *DeleteSecretRequest) (*empty.Empty, error)
	// Lists [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion]. This call does not return secret
	// data.
	ListSecretVersions(context.Context, *ListSecretVersionsRequest) (*ListSecretVersionsResponse, error)
	// Gets metadata for a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
	//
	// `projects/*/secrets/*/versions/latest` is an alias to the `latest`
	// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
	GetSecretVersion(context.Context, *GetSecretVersionRequest) (*SecretVersion, error)
	// Accesses a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. This call returns the secret data.
	//
	// `projects/*/secrets/*/versions/latest` is an alias to the `latest`
	// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
	AccessSecretVersion(context.Context, *AccessSecretVersionRequest) (*AccessSecretVersionResponse, error)
	// Disables a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
	//
	// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to
	// [DISABLED][google.cloud.secrets.v1beta1.SecretVersion.State.DISABLED].
	DisableSecretVersion(context.Context, *DisableSecretVersionRequest) (*SecretVersion, error)
	// Enables a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
	//
	// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to
	// [ENABLED][google.cloud.secrets.v1beta1.SecretVersion.State.ENABLED].
	EnableSecretVersion(context.Context, *EnableSecretVersionRequest) (*SecretVersion, error)
	// Destroys a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
	//
	// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to
	// [DESTROYED][google.cloud.secrets.v1beta1.SecretVersion.State.DESTROYED] and irrevocably destroys the
	// secret data.
	DestroySecretVersion(context.Context, *DestroySecretVersionRequest) (*SecretVersion, error)
	// Sets the access control policy on the specified secret. Replaces any
	// existing policy.
	//
	// Permissions on [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion] are enforced according
	// to the policy set on the associated [Secret][google.cloud.secrets.v1beta1.Secret].
	SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
	// Gets the access control policy for a secret.
	// Returns empty policy if the secret exists and does not have a policy set.
	GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
	// Returns permissions that a caller has for the specified secret.
	// If the secret does not exist, this call returns an empty set of
	// permissions, not a NOT_FOUND error.
	//
	// Note: This operation is designed to be used for building permission-aware
	// UIs and command-line tools, not for authorization checking. This operation
	// may "fail open" without warning.
	TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
}

SecretManagerServiceServer is the server API for SecretManagerService service.

type SecretPayload

type SecretPayload struct {
	// The secret data. Must be no larger than 64KiB.
	Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A secret payload resource in the Secret Manager API. This contains the sensitive secret data that is associated with a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].

func (*SecretPayload) Descriptor

func (*SecretPayload) Descriptor() ([]byte, []int)

func (*SecretPayload) GetData

func (m *SecretPayload) GetData() []byte

func (*SecretPayload) ProtoMessage

func (*SecretPayload) ProtoMessage()

func (*SecretPayload) Reset

func (m *SecretPayload) Reset()

func (*SecretPayload) String

func (m *SecretPayload) String() string

func (*SecretPayload) XXX_DiscardUnknown

func (m *SecretPayload) XXX_DiscardUnknown()

func (*SecretPayload) XXX_Marshal

func (m *SecretPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SecretPayload) XXX_Merge

func (m *SecretPayload) XXX_Merge(src proto.Message)

func (*SecretPayload) XXX_Size

func (m *SecretPayload) XXX_Size() int

func (*SecretPayload) XXX_Unmarshal

func (m *SecretPayload) XXX_Unmarshal(b []byte) error

type SecretVersion

type SecretVersion struct {
	// Output only. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the
	// format `projects/*/secrets/*/versions/*`.
	//
	// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] IDs in a [Secret][google.cloud.secrets.v1beta1.Secret] start at 1 and
	// are incremented for each subsequent version of the secret.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. The time at which the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] was created.
	CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The time this [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] was destroyed.
	// Only present if [state][google.cloud.secrets.v1beta1.SecretVersion.state] is
	// [DESTROYED][google.cloud.secrets.v1beta1.SecretVersion.State.DESTROYED].
	DestroyTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=destroy_time,json=destroyTime,proto3" json:"destroy_time,omitempty"`
	// Output only. The current state of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
	State                SecretVersion_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.secrets.v1beta1.SecretVersion_State" json:"state,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

A secret version resource in the Secret Manager API.

func (*SecretVersion) Descriptor

func (*SecretVersion) Descriptor() ([]byte, []int)

func (*SecretVersion) GetCreateTime

func (m *SecretVersion) GetCreateTime() *timestamp.Timestamp

func (*SecretVersion) GetDestroyTime

func (m *SecretVersion) GetDestroyTime() *timestamp.Timestamp

func (*SecretVersion) GetName

func (m *SecretVersion) GetName() string

func (*SecretVersion) GetState

func (m *SecretVersion) GetState() SecretVersion_State

func (*SecretVersion) ProtoMessage

func (*SecretVersion) ProtoMessage()

func (*SecretVersion) Reset

func (m *SecretVersion) Reset()

func (*SecretVersion) String

func (m *SecretVersion) String() string

func (*SecretVersion) XXX_DiscardUnknown

func (m *SecretVersion) XXX_DiscardUnknown()

func (*SecretVersion) XXX_Marshal

func (m *SecretVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SecretVersion) XXX_Merge

func (m *SecretVersion) XXX_Merge(src proto.Message)

func (*SecretVersion) XXX_Size

func (m *SecretVersion) XXX_Size() int

func (*SecretVersion) XXX_Unmarshal

func (m *SecretVersion) XXX_Unmarshal(b []byte) error

type SecretVersion_State

type SecretVersion_State int32

The state of a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion], indicating if it can be accessed.

const (
	// Not specified. This value is unused and invalid.
	SecretVersion_STATE_UNSPECIFIED SecretVersion_State = 0
	// The [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] may be accessed.
	SecretVersion_ENABLED SecretVersion_State = 1
	// The [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] may not be accessed, but the secret data
	// is still available and can be placed back into the [ENABLED][google.cloud.secrets.v1beta1.SecretVersion.State.ENABLED]
	// state.
	SecretVersion_DISABLED SecretVersion_State = 2
	// The [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] is destroyed and the secret data is no longer
	// stored. A version may not leave this state once entered.
	SecretVersion_DESTROYED SecretVersion_State = 3
)

func (SecretVersion_State) EnumDescriptor

func (SecretVersion_State) EnumDescriptor() ([]byte, []int)

func (SecretVersion_State) String

func (x SecretVersion_State) String() string

type UnimplementedSecretManagerServiceServer

type UnimplementedSecretManagerServiceServer struct {
}

UnimplementedSecretManagerServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedSecretManagerServiceServer) AccessSecretVersion

func (*UnimplementedSecretManagerServiceServer) AddSecretVersion

func (*UnimplementedSecretManagerServiceServer) CreateSecret

func (*UnimplementedSecretManagerServiceServer) DeleteSecret

func (*UnimplementedSecretManagerServiceServer) DestroySecretVersion

func (*UnimplementedSecretManagerServiceServer) DisableSecretVersion

func (*UnimplementedSecretManagerServiceServer) EnableSecretVersion

func (*UnimplementedSecretManagerServiceServer) GetIamPolicy

func (*UnimplementedSecretManagerServiceServer) GetSecret

func (*UnimplementedSecretManagerServiceServer) GetSecretVersion

func (*UnimplementedSecretManagerServiceServer) ListSecretVersions

func (*UnimplementedSecretManagerServiceServer) ListSecrets

func (*UnimplementedSecretManagerServiceServer) SetIamPolicy

func (*UnimplementedSecretManagerServiceServer) TestIamPermissions

func (*UnimplementedSecretManagerServiceServer) UpdateSecret

type UpdateSecretRequest

type UpdateSecretRequest struct {
	// Required. [Secret][google.cloud.secrets.v1beta1.Secret] with updated field values.
	Secret *Secret `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
	// Required. Specifies the fields to be updated.
	UpdateMask           *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Request message for [SecretManagerService.UpdateSecret][google.cloud.secrets.v1beta1.SecretManagerService.UpdateSecret].

func (*UpdateSecretRequest) Descriptor

func (*UpdateSecretRequest) Descriptor() ([]byte, []int)

func (*UpdateSecretRequest) GetSecret

func (m *UpdateSecretRequest) GetSecret() *Secret

func (*UpdateSecretRequest) GetUpdateMask

func (m *UpdateSecretRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateSecretRequest) ProtoMessage

func (*UpdateSecretRequest) ProtoMessage()

func (*UpdateSecretRequest) Reset

func (m *UpdateSecretRequest) Reset()

func (*UpdateSecretRequest) String

func (m *UpdateSecretRequest) String() string

func (*UpdateSecretRequest) XXX_DiscardUnknown

func (m *UpdateSecretRequest) XXX_DiscardUnknown()

func (*UpdateSecretRequest) XXX_Marshal

func (m *UpdateSecretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateSecretRequest) XXX_Merge

func (m *UpdateSecretRequest) XXX_Merge(src proto.Message)

func (*UpdateSecretRequest) XXX_Size

func (m *UpdateSecretRequest) XXX_Size() int

func (*UpdateSecretRequest) XXX_Unmarshal

func (m *UpdateSecretRequest) XXX_Unmarshal(b []byte) error