Constants
ParameterManager_ListParameters_FullMethodName, ParameterManager_GetParameter_FullMethodName, ParameterManager_CreateParameter_FullMethodName, ParameterManager_UpdateParameter_FullMethodName, ParameterManager_DeleteParameter_FullMethodName, ParameterManager_ListParameterVersions_FullMethodName, ParameterManager_GetParameterVersion_FullMethodName, ParameterManager_RenderParameterVersion_FullMethodName, ParameterManager_CreateParameterVersion_FullMethodName, ParameterManager_UpdateParameterVersion_FullMethodName, ParameterManager_DeleteParameterVersion_FullMethodName
const (
ParameterManager_ListParameters_FullMethodName = "/google.cloud.parametermanager.v1.ParameterManager/ListParameters"
ParameterManager_GetParameter_FullMethodName = "/google.cloud.parametermanager.v1.ParameterManager/GetParameter"
ParameterManager_CreateParameter_FullMethodName = "/google.cloud.parametermanager.v1.ParameterManager/CreateParameter"
ParameterManager_UpdateParameter_FullMethodName = "/google.cloud.parametermanager.v1.ParameterManager/UpdateParameter"
ParameterManager_DeleteParameter_FullMethodName = "/google.cloud.parametermanager.v1.ParameterManager/DeleteParameter"
ParameterManager_ListParameterVersions_FullMethodName = "/google.cloud.parametermanager.v1.ParameterManager/ListParameterVersions"
ParameterManager_GetParameterVersion_FullMethodName = "/google.cloud.parametermanager.v1.ParameterManager/GetParameterVersion"
ParameterManager_RenderParameterVersion_FullMethodName = "/google.cloud.parametermanager.v1.ParameterManager/RenderParameterVersion"
ParameterManager_CreateParameterVersion_FullMethodName = "/google.cloud.parametermanager.v1.ParameterManager/CreateParameterVersion"
ParameterManager_UpdateParameterVersion_FullMethodName = "/google.cloud.parametermanager.v1.ParameterManager/UpdateParameterVersion"
ParameterManager_DeleteParameterVersion_FullMethodName = "/google.cloud.parametermanager.v1.ParameterManager/DeleteParameterVersion"
)Variables
ParameterFormat_name, ParameterFormat_value
var (
ParameterFormat_name = map[int32]string{
0: "PARAMETER_FORMAT_UNSPECIFIED",
1: "UNFORMATTED",
2: "YAML",
3: "JSON",
}
ParameterFormat_value = map[string]int32{
"PARAMETER_FORMAT_UNSPECIFIED": 0,
"UNFORMATTED": 1,
"YAML": 2,
"JSON": 3,
}
)Enum value maps for ParameterFormat.
View_name, View_value
var (
View_name = map[int32]string{
0: "VIEW_UNSPECIFIED",
1: "BASIC",
2: "FULL",
}
View_value = map[string]int32{
"VIEW_UNSPECIFIED": 0,
"BASIC": 1,
"FULL": 2,
}
)Enum value maps for View.
File_google_cloud_parametermanager_v1_service_proto
var File_google_cloud_parametermanager_v1_service_proto protoreflect.FileDescriptorParameterManager_ServiceDesc
var ParameterManager_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.parametermanager.v1.ParameterManager",
HandlerType: (*ParameterManagerServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListParameters",
Handler: _ParameterManager_ListParameters_Handler,
},
{
MethodName: "GetParameter",
Handler: _ParameterManager_GetParameter_Handler,
},
{
MethodName: "CreateParameter",
Handler: _ParameterManager_CreateParameter_Handler,
},
{
MethodName: "UpdateParameter",
Handler: _ParameterManager_UpdateParameter_Handler,
},
{
MethodName: "DeleteParameter",
Handler: _ParameterManager_DeleteParameter_Handler,
},
{
MethodName: "ListParameterVersions",
Handler: _ParameterManager_ListParameterVersions_Handler,
},
{
MethodName: "GetParameterVersion",
Handler: _ParameterManager_GetParameterVersion_Handler,
},
{
MethodName: "RenderParameterVersion",
Handler: _ParameterManager_RenderParameterVersion_Handler,
},
{
MethodName: "CreateParameterVersion",
Handler: _ParameterManager_CreateParameterVersion_Handler,
},
{
MethodName: "UpdateParameterVersion",
Handler: _ParameterManager_UpdateParameterVersion_Handler,
},
{
MethodName: "DeleteParameterVersion",
Handler: _ParameterManager_DeleteParameterVersion_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/parametermanager/v1/service.proto",
}ParameterManager_ServiceDesc is the grpc.ServiceDesc for ParameterManager service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions
func RegisterParameterManagerServer
func RegisterParameterManagerServer(s grpc.ServiceRegistrar, srv ParameterManagerServer)CreateParameterRequest
type CreateParameterRequest struct {
// Required. Value for parent in the format
// `projects/*/locations/*`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Id of the Parameter resource
ParameterId string `protobuf:"bytes,2,opt,name=parameter_id,json=parameterId,proto3" json:"parameter_id,omitempty"`
// Required. The Parameter resource being created
Parameter *Parameter `protobuf:"bytes,3,opt,name=parameter,proto3" json:"parameter,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}Message for creating a Parameter
func (*CreateParameterRequest) Descriptor
func (*CreateParameterRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateParameterRequest.ProtoReflect.Descriptor instead.
func (*CreateParameterRequest) GetParameter
func (x *CreateParameterRequest) GetParameter() *Parameterfunc (*CreateParameterRequest) GetParameterId
func (x *CreateParameterRequest) GetParameterId() stringfunc (*CreateParameterRequest) GetParent
func (x *CreateParameterRequest) GetParent() stringfunc (*CreateParameterRequest) GetRequestId
func (x *CreateParameterRequest) GetRequestId() stringfunc (*CreateParameterRequest) ProtoMessage
func (*CreateParameterRequest) ProtoMessage()func (*CreateParameterRequest) ProtoReflect
func (x *CreateParameterRequest) ProtoReflect() protoreflect.Messagefunc (*CreateParameterRequest) Reset
func (x *CreateParameterRequest) Reset()func (*CreateParameterRequest) String
func (x *CreateParameterRequest) String() stringCreateParameterVersionRequest
type CreateParameterVersionRequest struct {
// Required. Value for parent in the format
// `projects/*/locations/*/parameters/*`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Id of the ParameterVersion resource
ParameterVersionId string `protobuf:"bytes,2,opt,name=parameter_version_id,json=parameterVersionId,proto3" json:"parameter_version_id,omitempty"`
// Required. The ParameterVersion resource being created
ParameterVersion *ParameterVersion `protobuf:"bytes,3,opt,name=parameter_version,json=parameterVersion,proto3" json:"parameter_version,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}Message for creating a ParameterVersion
func (*CreateParameterVersionRequest) Descriptor
func (*CreateParameterVersionRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateParameterVersionRequest.ProtoReflect.Descriptor instead.
func (*CreateParameterVersionRequest) GetParameterVersion
func (x *CreateParameterVersionRequest) GetParameterVersion() *ParameterVersionfunc (*CreateParameterVersionRequest) GetParameterVersionId
func (x *CreateParameterVersionRequest) GetParameterVersionId() stringfunc (*CreateParameterVersionRequest) GetParent
func (x *CreateParameterVersionRequest) GetParent() stringfunc (*CreateParameterVersionRequest) GetRequestId
func (x *CreateParameterVersionRequest) GetRequestId() stringfunc (*CreateParameterVersionRequest) ProtoMessage
func (*CreateParameterVersionRequest) ProtoMessage()func (*CreateParameterVersionRequest) ProtoReflect
func (x *CreateParameterVersionRequest) ProtoReflect() protoreflect.Messagefunc (*CreateParameterVersionRequest) Reset
func (x *CreateParameterVersionRequest) Reset()func (*CreateParameterVersionRequest) String
func (x *CreateParameterVersionRequest) String() stringDeleteParameterRequest
type DeleteParameterRequest struct {
// Required. Name of the resource in the format
// `projects/*/locations/*/parameters/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes after the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}Message for deleting a Parameter
func (*DeleteParameterRequest) Descriptor
func (*DeleteParameterRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteParameterRequest.ProtoReflect.Descriptor instead.
func (*DeleteParameterRequest) GetName
func (x *DeleteParameterRequest) GetName() stringfunc (*DeleteParameterRequest) GetRequestId
func (x *DeleteParameterRequest) GetRequestId() stringfunc (*DeleteParameterRequest) ProtoMessage
func (*DeleteParameterRequest) ProtoMessage()func (*DeleteParameterRequest) ProtoReflect
func (x *DeleteParameterRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteParameterRequest) Reset
func (x *DeleteParameterRequest) Reset()func (*DeleteParameterRequest) String
func (x *DeleteParameterRequest) String() stringDeleteParameterVersionRequest
type DeleteParameterVersionRequest struct {
// Required. Name of the resource in the format
// `projects/*/locations/*/parameters/*/versions/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes after the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}Message for deleting a ParameterVersion
func (*DeleteParameterVersionRequest) Descriptor
func (*DeleteParameterVersionRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteParameterVersionRequest.ProtoReflect.Descriptor instead.
func (*DeleteParameterVersionRequest) GetName
func (x *DeleteParameterVersionRequest) GetName() stringfunc (*DeleteParameterVersionRequest) GetRequestId
func (x *DeleteParameterVersionRequest) GetRequestId() stringfunc (*DeleteParameterVersionRequest) ProtoMessage
func (*DeleteParameterVersionRequest) ProtoMessage()func (*DeleteParameterVersionRequest) ProtoReflect
func (x *DeleteParameterVersionRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteParameterVersionRequest) Reset
func (x *DeleteParameterVersionRequest) Reset()func (*DeleteParameterVersionRequest) String
func (x *DeleteParameterVersionRequest) String() stringGetParameterRequest
type GetParameterRequest struct {
// Required. Name of the resource in the format
// `projects/*/locations/*/parameters/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Message for getting a Parameter
func (*GetParameterRequest) Descriptor
func (*GetParameterRequest) Descriptor() ([]byte, []int)Deprecated: Use GetParameterRequest.ProtoReflect.Descriptor instead.
func (*GetParameterRequest) GetName
func (x *GetParameterRequest) GetName() stringfunc (*GetParameterRequest) ProtoMessage
func (*GetParameterRequest) ProtoMessage()func (*GetParameterRequest) ProtoReflect
func (x *GetParameterRequest) ProtoReflect() protoreflect.Messagefunc (*GetParameterRequest) Reset
func (x *GetParameterRequest) Reset()func (*GetParameterRequest) String
func (x *GetParameterRequest) String() stringGetParameterVersionRequest
type GetParameterVersionRequest struct {
// Required. Name of the resource in the format
// `projects/*/locations/*/parameters/*/versions/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. View of the ParameterVersion.
// In the default FULL view, all metadata & payload associated with the
// ParameterVersion will be returned.
View View `protobuf:"varint,6,opt,name=view,proto3,enum=google.cloud.parametermanager.v1.View" json:"view,omitempty"`
// contains filtered or unexported fields
}Message for getting a ParameterVersion
func (*GetParameterVersionRequest) Descriptor
func (*GetParameterVersionRequest) Descriptor() ([]byte, []int)Deprecated: Use GetParameterVersionRequest.ProtoReflect.Descriptor instead.
func (*GetParameterVersionRequest) GetName
func (x *GetParameterVersionRequest) GetName() stringfunc (*GetParameterVersionRequest) GetView
func (x *GetParameterVersionRequest) GetView() Viewfunc (*GetParameterVersionRequest) ProtoMessage
func (*GetParameterVersionRequest) ProtoMessage()func (*GetParameterVersionRequest) ProtoReflect
func (x *GetParameterVersionRequest) ProtoReflect() protoreflect.Messagefunc (*GetParameterVersionRequest) Reset
func (x *GetParameterVersionRequest) Reset()func (*GetParameterVersionRequest) String
func (x *GetParameterVersionRequest) String() stringListParameterVersionsRequest
type ListParameterVersionsRequest struct {
// Required. Parent value for ListParameterVersionsRequest in the format
// `projects/*/locations/*/parameters/*`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Requested page size. Server may return fewer items than
// requested. If unspecified, server will pick an appropriate default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results the server should return.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Filtering results
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Hint for how to order the results
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}Message for requesting list of ParameterVersions
func (*ListParameterVersionsRequest) Descriptor
func (*ListParameterVersionsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListParameterVersionsRequest.ProtoReflect.Descriptor instead.
func (*ListParameterVersionsRequest) GetFilter
func (x *ListParameterVersionsRequest) GetFilter() stringfunc (*ListParameterVersionsRequest) GetOrderBy
func (x *ListParameterVersionsRequest) GetOrderBy() stringfunc (*ListParameterVersionsRequest) GetPageSize
func (x *ListParameterVersionsRequest) GetPageSize() int32func (*ListParameterVersionsRequest) GetPageToken
func (x *ListParameterVersionsRequest) GetPageToken() stringfunc (*ListParameterVersionsRequest) GetParent
func (x *ListParameterVersionsRequest) GetParent() stringfunc (*ListParameterVersionsRequest) ProtoMessage
func (*ListParameterVersionsRequest) ProtoMessage()func (*ListParameterVersionsRequest) ProtoReflect
func (x *ListParameterVersionsRequest) ProtoReflect() protoreflect.Messagefunc (*ListParameterVersionsRequest) Reset
func (x *ListParameterVersionsRequest) Reset()func (*ListParameterVersionsRequest) String
func (x *ListParameterVersionsRequest) String() stringListParameterVersionsResponse
type ListParameterVersionsResponse struct {
// The list of ParameterVersions
ParameterVersions []*ParameterVersion `protobuf:"bytes,1,rep,name=parameter_versions,json=parameterVersions,proto3" json:"parameter_versions,omitempty"`
// A token identifying a page of results the server should return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Unordered list. Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Message for response to listing ParameterVersions
func (*ListParameterVersionsResponse) Descriptor
func (*ListParameterVersionsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListParameterVersionsResponse.ProtoReflect.Descriptor instead.
func (*ListParameterVersionsResponse) GetNextPageToken
func (x *ListParameterVersionsResponse) GetNextPageToken() stringfunc (*ListParameterVersionsResponse) GetParameterVersions
func (x *ListParameterVersionsResponse) GetParameterVersions() []*ParameterVersionfunc (*ListParameterVersionsResponse) GetUnreachable
func (x *ListParameterVersionsResponse) GetUnreachable() []stringfunc (*ListParameterVersionsResponse) ProtoMessage
func (*ListParameterVersionsResponse) ProtoMessage()func (*ListParameterVersionsResponse) ProtoReflect
func (x *ListParameterVersionsResponse) ProtoReflect() protoreflect.Messagefunc (*ListParameterVersionsResponse) Reset
func (x *ListParameterVersionsResponse) Reset()func (*ListParameterVersionsResponse) String
func (x *ListParameterVersionsResponse) String() stringListParametersRequest
type ListParametersRequest struct {
// Required. Parent value for ListParametersRequest in the format
// `projects/*/locations/*`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Requested page size. Server may return fewer items than
// requested. If unspecified, server will pick an appropriate default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results the server should return.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Filtering results
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Hint for how to order the results
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}Message for requesting list of Parameters
func (*ListParametersRequest) Descriptor
func (*ListParametersRequest) Descriptor() ([]byte, []int)Deprecated: Use ListParametersRequest.ProtoReflect.Descriptor instead.
func (*ListParametersRequest) GetFilter
func (x *ListParametersRequest) GetFilter() stringfunc (*ListParametersRequest) GetOrderBy
func (x *ListParametersRequest) GetOrderBy() stringfunc (*ListParametersRequest) GetPageSize
func (x *ListParametersRequest) GetPageSize() int32func (*ListParametersRequest) GetPageToken
func (x *ListParametersRequest) GetPageToken() stringfunc (*ListParametersRequest) GetParent
func (x *ListParametersRequest) GetParent() stringfunc (*ListParametersRequest) ProtoMessage
func (*ListParametersRequest) ProtoMessage()func (*ListParametersRequest) ProtoReflect
func (x *ListParametersRequest) ProtoReflect() protoreflect.Messagefunc (*ListParametersRequest) Reset
func (x *ListParametersRequest) Reset()func (*ListParametersRequest) String
func (x *ListParametersRequest) String() stringListParametersResponse
type ListParametersResponse struct {
// The list of Parameters
Parameters []*Parameter `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty"`
// A token identifying a page of results the server should return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Unordered list. Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Message for response to listing Parameters
func (*ListParametersResponse) Descriptor
func (*ListParametersResponse) Descriptor() ([]byte, []int)Deprecated: Use ListParametersResponse.ProtoReflect.Descriptor instead.
func (*ListParametersResponse) GetNextPageToken
func (x *ListParametersResponse) GetNextPageToken() stringfunc (*ListParametersResponse) GetParameters
func (x *ListParametersResponse) GetParameters() []*Parameterfunc (*ListParametersResponse) GetUnreachable
func (x *ListParametersResponse) GetUnreachable() []stringfunc (*ListParametersResponse) ProtoMessage
func (*ListParametersResponse) ProtoMessage()func (*ListParametersResponse) ProtoReflect
func (x *ListParametersResponse) ProtoReflect() protoreflect.Messagefunc (*ListParametersResponse) Reset
func (x *ListParametersResponse) Reset()func (*ListParametersResponse) String
func (x *ListParametersResponse) String() stringParameter
type Parameter struct {
// Identifier. [Output only] The resource name of the Parameter in the format
// `projects/*/locations/*/parameters/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. [Output only] Create time stamp
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. [Output only] Update time stamp
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. Labels as key value pairs
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. Specifies the format of a Parameter.
Format ParameterFormat `protobuf:"varint,5,opt,name=format,proto3,enum=google.cloud.parametermanager.v1.ParameterFormat" json:"format,omitempty"`
// Output only. [Output-only] policy member strings of a Google Cloud
// resource.
PolicyMember *iampb.ResourcePolicyMember `protobuf:"bytes,6,opt,name=policy_member,json=policyMember,proto3" json:"policy_member,omitempty"`
// Optional. Customer managed encryption key (CMEK) to use for encrypting the
// Parameter Versions. If not set, the default Google-managed encryption key
// will be used. Cloud KMS CryptoKeys must reside in the same location as the
// Parameter. The expected format is
// `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
KmsKey *string `protobuf:"bytes,7,opt,name=kms_key,json=kmsKey,proto3,oneof" json:"kms_key,omitempty"`
// contains filtered or unexported fields
}Message describing Parameter resource
func (*Parameter) Descriptor
Deprecated: Use Parameter.ProtoReflect.Descriptor instead.
func (*Parameter) GetCreateTime
func (x *Parameter) GetCreateTime() *timestamppb.Timestampfunc (*Parameter) GetFormat
func (x *Parameter) GetFormat() ParameterFormatfunc (*Parameter) GetKmsKey
func (*Parameter) GetLabels
func (*Parameter) GetName
func (*Parameter) GetPolicyMember
func (x *Parameter) GetPolicyMember() *iampb.ResourcePolicyMemberfunc (*Parameter) GetUpdateTime
func (x *Parameter) GetUpdateTime() *timestamppb.Timestampfunc (*Parameter) ProtoMessage
func (*Parameter) ProtoMessage()func (*Parameter) ProtoReflect
func (x *Parameter) ProtoReflect() protoreflect.Messagefunc (*Parameter) Reset
func (x *Parameter) Reset()func (*Parameter) String
ParameterFormat
type ParameterFormat int32Option to specify the format of a Parameter resource (UNFORMATTED / YAML / JSON). This option is user specified at the time of creation of the resource and is immutable.
ParameterFormat_PARAMETER_FORMAT_UNSPECIFIED, ParameterFormat_UNFORMATTED, ParameterFormat_YAML, ParameterFormat_JSON
const (
// The default / unset value.
// The API will default to the UNFORMATTED format.
ParameterFormat_PARAMETER_FORMAT_UNSPECIFIED ParameterFormat = 0
// Unformatted.
ParameterFormat_UNFORMATTED ParameterFormat = 1
// YAML format.
ParameterFormat_YAML ParameterFormat = 2
// JSON format.
ParameterFormat_JSON ParameterFormat = 3
)func (ParameterFormat) Descriptor
func (ParameterFormat) Descriptor() protoreflect.EnumDescriptorfunc (ParameterFormat) Enum
func (x ParameterFormat) Enum() *ParameterFormatfunc (ParameterFormat) EnumDescriptor
func (ParameterFormat) EnumDescriptor() ([]byte, []int)Deprecated: Use ParameterFormat.Descriptor instead.
func (ParameterFormat) Number
func (x ParameterFormat) Number() protoreflect.EnumNumberfunc (ParameterFormat) String
func (x ParameterFormat) String() stringfunc (ParameterFormat) Type
func (ParameterFormat) Type() protoreflect.EnumTypeParameterManagerClient
type ParameterManagerClient interface {
// Lists Parameters in a given project and location.
ListParameters(ctx context.Context, in *ListParametersRequest, opts ...grpc.CallOption) (*ListParametersResponse, error)
// Gets details of a single Parameter.
GetParameter(ctx context.Context, in *GetParameterRequest, opts ...grpc.CallOption) (*Parameter, error)
// Creates a new Parameter in a given project and location.
CreateParameter(ctx context.Context, in *CreateParameterRequest, opts ...grpc.CallOption) (*Parameter, error)
// Updates a single Parameter.
UpdateParameter(ctx context.Context, in *UpdateParameterRequest, opts ...grpc.CallOption) (*Parameter, error)
// Deletes a single Parameter.
DeleteParameter(ctx context.Context, in *DeleteParameterRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Lists ParameterVersions in a given project, location, and parameter.
ListParameterVersions(ctx context.Context, in *ListParameterVersionsRequest, opts ...grpc.CallOption) (*ListParameterVersionsResponse, error)
// Gets details of a single ParameterVersion.
GetParameterVersion(ctx context.Context, in *GetParameterVersionRequest, opts ...grpc.CallOption) (*ParameterVersion, error)
// Gets rendered version of a ParameterVersion.
RenderParameterVersion(ctx context.Context, in *RenderParameterVersionRequest, opts ...grpc.CallOption) (*RenderParameterVersionResponse, error)
// Creates a new ParameterVersion in a given project, location, and parameter.
CreateParameterVersion(ctx context.Context, in *CreateParameterVersionRequest, opts ...grpc.CallOption) (*ParameterVersion, error)
// Updates a single ParameterVersion.
UpdateParameterVersion(ctx context.Context, in *UpdateParameterVersionRequest, opts ...grpc.CallOption) (*ParameterVersion, error)
// Deletes a single ParameterVersion.
DeleteParameterVersion(ctx context.Context, in *DeleteParameterVersionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}ParameterManagerClient is the client API for ParameterManager service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewParameterManagerClient
func NewParameterManagerClient(cc grpc.ClientConnInterface) ParameterManagerClientParameterManagerServer
type ParameterManagerServer interface {
// Lists Parameters in a given project and location.
ListParameters(context.Context, *ListParametersRequest) (*ListParametersResponse, error)
// Gets details of a single Parameter.
GetParameter(context.Context, *GetParameterRequest) (*Parameter, error)
// Creates a new Parameter in a given project and location.
CreateParameter(context.Context, *CreateParameterRequest) (*Parameter, error)
// Updates a single Parameter.
UpdateParameter(context.Context, *UpdateParameterRequest) (*Parameter, error)
// Deletes a single Parameter.
DeleteParameter(context.Context, *DeleteParameterRequest) (*emptypb.Empty, error)
// Lists ParameterVersions in a given project, location, and parameter.
ListParameterVersions(context.Context, *ListParameterVersionsRequest) (*ListParameterVersionsResponse, error)
// Gets details of a single ParameterVersion.
GetParameterVersion(context.Context, *GetParameterVersionRequest) (*ParameterVersion, error)
// Gets rendered version of a ParameterVersion.
RenderParameterVersion(context.Context, *RenderParameterVersionRequest) (*RenderParameterVersionResponse, error)
// Creates a new ParameterVersion in a given project, location, and parameter.
CreateParameterVersion(context.Context, *CreateParameterVersionRequest) (*ParameterVersion, error)
// Updates a single ParameterVersion.
UpdateParameterVersion(context.Context, *UpdateParameterVersionRequest) (*ParameterVersion, error)
// Deletes a single ParameterVersion.
DeleteParameterVersion(context.Context, *DeleteParameterVersionRequest) (*emptypb.Empty, error)
}ParameterManagerServer is the server API for ParameterManager service. All implementations should embed UnimplementedParameterManagerServer for forward compatibility
ParameterVersion
type ParameterVersion struct {
// Identifier. [Output only] The resource name of the ParameterVersion in the
// format `projects/*/locations/*/parameters/*/versions/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. [Output only] Create time stamp
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. [Output only] Update time stamp
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. Disabled boolean to determine if a ParameterVersion acts as a
// metadata only resource (payload is never returned if disabled is true). If
// true any calls will always default to BASIC view even if the user
// explicitly passes FULL view as part of the request. A render call on a
// disabled resource fails with an error. Default value is False.
Disabled bool `protobuf:"varint,4,opt,name=disabled,proto3" json:"disabled,omitempty"`
// Required. Immutable. Payload content of a ParameterVersion resource. This
// is only returned when the request provides the View value of FULL (default
// for GET request).
Payload *ParameterVersionPayload `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"`
// Optional. Output only. [Output only] The resource name of the KMS key
// version used to encrypt the ParameterVersion payload. This field is
// populated only if the Parameter resource has customer managed encryption
// key (CMEK) configured.
KmsKeyVersion *string `protobuf:"bytes,6,opt,name=kms_key_version,json=kmsKeyVersion,proto3,oneof" json:"kms_key_version,omitempty"`
// contains filtered or unexported fields
}Message describing ParameterVersion resource
func (*ParameterVersion) Descriptor
func (*ParameterVersion) Descriptor() ([]byte, []int)Deprecated: Use ParameterVersion.ProtoReflect.Descriptor instead.
func (*ParameterVersion) GetCreateTime
func (x *ParameterVersion) GetCreateTime() *timestamppb.Timestampfunc (*ParameterVersion) GetDisabled
func (x *ParameterVersion) GetDisabled() boolfunc (*ParameterVersion) GetKmsKeyVersion
func (x *ParameterVersion) GetKmsKeyVersion() stringfunc (*ParameterVersion) GetName
func (x *ParameterVersion) GetName() stringfunc (*ParameterVersion) GetPayload
func (x *ParameterVersion) GetPayload() *ParameterVersionPayloadfunc (*ParameterVersion) GetUpdateTime
func (x *ParameterVersion) GetUpdateTime() *timestamppb.Timestampfunc (*ParameterVersion) ProtoMessage
func (*ParameterVersion) ProtoMessage()func (*ParameterVersion) ProtoReflect
func (x *ParameterVersion) ProtoReflect() protoreflect.Messagefunc (*ParameterVersion) Reset
func (x *ParameterVersion) Reset()func (*ParameterVersion) String
func (x *ParameterVersion) String() stringParameterVersionPayload
type ParameterVersionPayload struct {
// Required. bytes data for storing payload.
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}Message for storing a ParameterVersion resource's payload data
func (*ParameterVersionPayload) Descriptor
func (*ParameterVersionPayload) Descriptor() ([]byte, []int)Deprecated: Use ParameterVersionPayload.ProtoReflect.Descriptor instead.
func (*ParameterVersionPayload) GetData
func (x *ParameterVersionPayload) GetData() []bytefunc (*ParameterVersionPayload) ProtoMessage
func (*ParameterVersionPayload) ProtoMessage()func (*ParameterVersionPayload) ProtoReflect
func (x *ParameterVersionPayload) ProtoReflect() protoreflect.Messagefunc (*ParameterVersionPayload) Reset
func (x *ParameterVersionPayload) Reset()func (*ParameterVersionPayload) String
func (x *ParameterVersionPayload) String() stringRenderParameterVersionRequest
type RenderParameterVersionRequest struct {
// Required. Name of the resource
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Message for getting a ParameterVersionRender
func (*RenderParameterVersionRequest) Descriptor
func (*RenderParameterVersionRequest) Descriptor() ([]byte, []int)Deprecated: Use RenderParameterVersionRequest.ProtoReflect.Descriptor instead.
func (*RenderParameterVersionRequest) GetName
func (x *RenderParameterVersionRequest) GetName() stringfunc (*RenderParameterVersionRequest) ProtoMessage
func (*RenderParameterVersionRequest) ProtoMessage()func (*RenderParameterVersionRequest) ProtoReflect
func (x *RenderParameterVersionRequest) ProtoReflect() protoreflect.Messagefunc (*RenderParameterVersionRequest) Reset
func (x *RenderParameterVersionRequest) Reset()func (*RenderParameterVersionRequest) String
func (x *RenderParameterVersionRequest) String() stringRenderParameterVersionResponse
type RenderParameterVersionResponse struct {
// Output only. Resource identifier of a ParameterVersion in the format
// `projects/*/locations/*/parameters/*/versions/*`.
ParameterVersion string `protobuf:"bytes,1,opt,name=parameter_version,json=parameterVersion,proto3" json:"parameter_version,omitempty"`
// Payload content of a ParameterVersion resource.
Payload *ParameterVersionPayload `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
// Output only. Server generated rendered version of the user provided payload
// data (ParameterVersionPayload) which has substitutions of all (if any)
// references to a SecretManager SecretVersion resources. This substitution
// only works for a Parameter which is in JSON or YAML format.
RenderedPayload []byte `protobuf:"bytes,3,opt,name=rendered_payload,json=renderedPayload,proto3" json:"rendered_payload,omitempty"`
// contains filtered or unexported fields
}Message describing RenderParameterVersionResponse resource
func (*RenderParameterVersionResponse) Descriptor
func (*RenderParameterVersionResponse) Descriptor() ([]byte, []int)Deprecated: Use RenderParameterVersionResponse.ProtoReflect.Descriptor instead.
func (*RenderParameterVersionResponse) GetParameterVersion
func (x *RenderParameterVersionResponse) GetParameterVersion() stringfunc (*RenderParameterVersionResponse) GetPayload
func (x *RenderParameterVersionResponse) GetPayload() *ParameterVersionPayloadfunc (*RenderParameterVersionResponse) GetRenderedPayload
func (x *RenderParameterVersionResponse) GetRenderedPayload() []bytefunc (*RenderParameterVersionResponse) ProtoMessage
func (*RenderParameterVersionResponse) ProtoMessage()func (*RenderParameterVersionResponse) ProtoReflect
func (x *RenderParameterVersionResponse) ProtoReflect() protoreflect.Messagefunc (*RenderParameterVersionResponse) Reset
func (x *RenderParameterVersionResponse) Reset()func (*RenderParameterVersionResponse) String
func (x *RenderParameterVersionResponse) String() stringUnimplementedParameterManagerServer
type UnimplementedParameterManagerServer struct {
}UnimplementedParameterManagerServer should be embedded to have forward compatible implementations.
func (UnimplementedParameterManagerServer) CreateParameter
func (UnimplementedParameterManagerServer) CreateParameter(context.Context, *CreateParameterRequest) (*Parameter, error)func (UnimplementedParameterManagerServer) CreateParameterVersion
func (UnimplementedParameterManagerServer) CreateParameterVersion(context.Context, *CreateParameterVersionRequest) (*ParameterVersion, error)func (UnimplementedParameterManagerServer) DeleteParameter
func (UnimplementedParameterManagerServer) DeleteParameter(context.Context, *DeleteParameterRequest) (*emptypb.Empty, error)func (UnimplementedParameterManagerServer) DeleteParameterVersion
func (UnimplementedParameterManagerServer) DeleteParameterVersion(context.Context, *DeleteParameterVersionRequest) (*emptypb.Empty, error)func (UnimplementedParameterManagerServer) GetParameter
func (UnimplementedParameterManagerServer) GetParameter(context.Context, *GetParameterRequest) (*Parameter, error)func (UnimplementedParameterManagerServer) GetParameterVersion
func (UnimplementedParameterManagerServer) GetParameterVersion(context.Context, *GetParameterVersionRequest) (*ParameterVersion, error)func (UnimplementedParameterManagerServer) ListParameterVersions
func (UnimplementedParameterManagerServer) ListParameterVersions(context.Context, *ListParameterVersionsRequest) (*ListParameterVersionsResponse, error)func (UnimplementedParameterManagerServer) ListParameters
func (UnimplementedParameterManagerServer) ListParameters(context.Context, *ListParametersRequest) (*ListParametersResponse, error)func (UnimplementedParameterManagerServer) RenderParameterVersion
func (UnimplementedParameterManagerServer) RenderParameterVersion(context.Context, *RenderParameterVersionRequest) (*RenderParameterVersionResponse, error)func (UnimplementedParameterManagerServer) UpdateParameter
func (UnimplementedParameterManagerServer) UpdateParameter(context.Context, *UpdateParameterRequest) (*Parameter, error)func (UnimplementedParameterManagerServer) UpdateParameterVersion
func (UnimplementedParameterManagerServer) UpdateParameterVersion(context.Context, *UpdateParameterVersionRequest) (*ParameterVersion, error)UnsafeParameterManagerServer
type UnsafeParameterManagerServer interface {
// contains filtered or unexported methods
}UnsafeParameterManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ParameterManagerServer will result in compilation errors.
UpdateParameterRequest
type UpdateParameterRequest struct {
// Optional. Field mask is used to specify the fields to be overwritten in the
// Parameter resource by the update.
// The fields specified in the update_mask are relative to the resource, not
// the full request. A mutable field will be overwritten if it is in the
// mask. If the user does not provide a mask then all mutable fields present
// in the request will be overwritten.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Required. The Parameter resource being updated
Parameter *Parameter `protobuf:"bytes,2,opt,name=parameter,proto3" json:"parameter,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}Message for updating a Parameter
func (*UpdateParameterRequest) Descriptor
func (*UpdateParameterRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateParameterRequest.ProtoReflect.Descriptor instead.
func (*UpdateParameterRequest) GetParameter
func (x *UpdateParameterRequest) GetParameter() *Parameterfunc (*UpdateParameterRequest) GetRequestId
func (x *UpdateParameterRequest) GetRequestId() stringfunc (*UpdateParameterRequest) GetUpdateMask
func (x *UpdateParameterRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateParameterRequest) ProtoMessage
func (*UpdateParameterRequest) ProtoMessage()func (*UpdateParameterRequest) ProtoReflect
func (x *UpdateParameterRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateParameterRequest) Reset
func (x *UpdateParameterRequest) Reset()func (*UpdateParameterRequest) String
func (x *UpdateParameterRequest) String() stringUpdateParameterVersionRequest
type UpdateParameterVersionRequest struct {
// Optional. Field mask is used to specify the fields to be overwritten in the
// ParameterVersion resource by the update.
// The fields specified in the update_mask are relative to the resource, not
// the full request. A mutable field will be overwritten if it is in the
// mask. If the user does not provide a mask then all mutable fields present
// in the request will be overwritten.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Required. The ParameterVersion resource being updated
ParameterVersion *ParameterVersion `protobuf:"bytes,2,opt,name=parameter_version,json=parameterVersion,proto3" json:"parameter_version,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}Message for updating a ParameterVersion
func (*UpdateParameterVersionRequest) Descriptor
func (*UpdateParameterVersionRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateParameterVersionRequest.ProtoReflect.Descriptor instead.
func (*UpdateParameterVersionRequest) GetParameterVersion
func (x *UpdateParameterVersionRequest) GetParameterVersion() *ParameterVersionfunc (*UpdateParameterVersionRequest) GetRequestId
func (x *UpdateParameterVersionRequest) GetRequestId() stringfunc (*UpdateParameterVersionRequest) GetUpdateMask
func (x *UpdateParameterVersionRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateParameterVersionRequest) ProtoMessage
func (*UpdateParameterVersionRequest) ProtoMessage()func (*UpdateParameterVersionRequest) ProtoReflect
func (x *UpdateParameterVersionRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateParameterVersionRequest) Reset
func (x *UpdateParameterVersionRequest) Reset()func (*UpdateParameterVersionRequest) String
func (x *UpdateParameterVersionRequest) String() stringView
type View int32Option for requesting only metadata, or user provided payload of a ParameterVersion resource.
View_VIEW_UNSPECIFIED, View_BASIC, View_FULL
const (
// The default / unset value.
// The API will default to the FULL view..
View_VIEW_UNSPECIFIED View = 0
// Include only the metadata for the resource.
View_BASIC View = 1
// Include metadata & other relevant payload data as well.
// This is the default view.
View_FULL View = 2
)func (View) Descriptor
func (View) Descriptor() protoreflect.EnumDescriptorfunc (View) Enum
func (View) EnumDescriptor
Deprecated: Use View.Descriptor instead.
func (View) Number
func (x View) Number() protoreflect.EnumNumberfunc (View) String
func (View) Type
func (View) Type() protoreflect.EnumType