Variables
ClientGateway_State_name, ClientGateway_State_value
var (
ClientGateway_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "UPDATING",
3: "DELETING",
4: "RUNNING",
5: "DOWN",
6: "ERROR",
}
ClientGateway_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"UPDATING": 2,
"DELETING": 3,
"RUNNING": 4,
"DOWN": 5,
"ERROR": 6,
}
)
Enum value maps for ClientGateway_State.
File_google_cloud_beyondcorp_clientgateways_v1_client_gateways_service_proto
var File_google_cloud_beyondcorp_clientgateways_v1_client_gateways_service_proto protoreflect.FileDescriptor
Functions
func RegisterClientGatewaysServiceServer
func RegisterClientGatewaysServiceServer(s *grpc.Server, srv ClientGatewaysServiceServer)
ClientGateway
type ClientGateway struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
State ClientGateway_State "" /* 131 byte string literal not displayed */
Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
ClientConnectorService string "" /* 129 byte string literal not displayed */
}
Message describing ClientGateway object.
func (*ClientGateway) Descriptor
func (*ClientGateway) Descriptor() ([]byte, []int)
Deprecated: Use ClientGateway.ProtoReflect.Descriptor instead.
func (*ClientGateway) GetClientConnectorService
func (x *ClientGateway) GetClientConnectorService() string
func (*ClientGateway) GetCreateTime
func (x *ClientGateway) GetCreateTime() *timestamppb.Timestamp
func (*ClientGateway) GetId
func (x *ClientGateway) GetId() string
func (*ClientGateway) GetName
func (x *ClientGateway) GetName() string
func (*ClientGateway) GetState
func (x *ClientGateway) GetState() ClientGateway_State
func (*ClientGateway) GetUpdateTime
func (x *ClientGateway) GetUpdateTime() *timestamppb.Timestamp
func (*ClientGateway) ProtoMessage
func (*ClientGateway) ProtoMessage()
func (*ClientGateway) ProtoReflect
func (x *ClientGateway) ProtoReflect() protoreflect.Message
func (*ClientGateway) Reset
func (x *ClientGateway) Reset()
func (*ClientGateway) String
func (x *ClientGateway) String() string
ClientGatewayOperationMetadata
type ClientGatewayOperationMetadata struct {
// Output only. The time the operation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time the operation finished running.
EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only. Server-defined resource path for the target of the operation.
Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
// Output only. Name of the verb executed by the operation.
Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
// Output only. Human-readable status of the operation, if any.
StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
// Output only. Identifies whether the user has requested cancellation
// of the operation. Operations that have been cancelled successfully
// have [Operation.error][] value with a
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
// `Code.CANCELLED`.
RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
// Output only. API version used to start the operation.
ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// contains filtered or unexported fields
}
Represents the metadata of the long-running operation.
func (*ClientGatewayOperationMetadata) Descriptor
func (*ClientGatewayOperationMetadata) Descriptor() ([]byte, []int)
Deprecated: Use ClientGatewayOperationMetadata.ProtoReflect.Descriptor instead.
func (*ClientGatewayOperationMetadata) GetApiVersion
func (x *ClientGatewayOperationMetadata) GetApiVersion() string
func (*ClientGatewayOperationMetadata) GetCreateTime
func (x *ClientGatewayOperationMetadata) GetCreateTime() *timestamppb.Timestamp
func (*ClientGatewayOperationMetadata) GetEndTime
func (x *ClientGatewayOperationMetadata) GetEndTime() *timestamppb.Timestamp
func (*ClientGatewayOperationMetadata) GetRequestedCancellation
func (x *ClientGatewayOperationMetadata) GetRequestedCancellation() bool
func (*ClientGatewayOperationMetadata) GetStatusMessage
func (x *ClientGatewayOperationMetadata) GetStatusMessage() string
func (*ClientGatewayOperationMetadata) GetTarget
func (x *ClientGatewayOperationMetadata) GetTarget() string
func (*ClientGatewayOperationMetadata) GetVerb
func (x *ClientGatewayOperationMetadata) GetVerb() string
func (*ClientGatewayOperationMetadata) ProtoMessage
func (*ClientGatewayOperationMetadata) ProtoMessage()
func (*ClientGatewayOperationMetadata) ProtoReflect
func (x *ClientGatewayOperationMetadata) ProtoReflect() protoreflect.Message
func (*ClientGatewayOperationMetadata) Reset
func (x *ClientGatewayOperationMetadata) Reset()
func (*ClientGatewayOperationMetadata) String
func (x *ClientGatewayOperationMetadata) String() string
ClientGateway_State
type ClientGateway_State int32
Represents the different states of a gateway.
ClientGateway_STATE_UNSPECIFIED, ClientGateway_CREATING, ClientGateway_UPDATING, ClientGateway_DELETING, ClientGateway_RUNNING, ClientGateway_DOWN, ClientGateway_ERROR
const (
// Default value. This value is unused.
ClientGateway_STATE_UNSPECIFIED ClientGateway_State = 0
// Gateway is being created.
ClientGateway_CREATING ClientGateway_State = 1
// Gateway is being updated.
ClientGateway_UPDATING ClientGateway_State = 2
// Gateway is being deleted.
ClientGateway_DELETING ClientGateway_State = 3
// Gateway is running.
ClientGateway_RUNNING ClientGateway_State = 4
// Gateway is down and may be restored in the future.
// This happens when CCFE sends ProjectState = OFF.
ClientGateway_DOWN ClientGateway_State = 5
// ClientGateway encountered an error and is in indeterministic state.
ClientGateway_ERROR ClientGateway_State = 6
)
func (ClientGateway_State) Descriptor
func (ClientGateway_State) Descriptor() protoreflect.EnumDescriptor
func (ClientGateway_State) Enum
func (x ClientGateway_State) Enum() *ClientGateway_State
func (ClientGateway_State) EnumDescriptor
func (ClientGateway_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use ClientGateway_State.Descriptor instead.
func (ClientGateway_State) Number
func (x ClientGateway_State) Number() protoreflect.EnumNumber
func (ClientGateway_State) String
func (x ClientGateway_State) String() string
func (ClientGateway_State) Type
func (ClientGateway_State) Type() protoreflect.EnumType
ClientGatewaysServiceClient
type ClientGatewaysServiceClient interface {
// Lists ClientGateways in a given project and location.
ListClientGateways(ctx context.Context, in *ListClientGatewaysRequest, opts ...grpc.CallOption) (*ListClientGatewaysResponse, error)
// Gets details of a single ClientGateway.
GetClientGateway(ctx context.Context, in *GetClientGatewayRequest, opts ...grpc.CallOption) (*ClientGateway, error)
// Creates a new ClientGateway in a given project and location.
CreateClientGateway(ctx context.Context, in *CreateClientGatewayRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a single ClientGateway.
DeleteClientGateway(ctx context.Context, in *DeleteClientGatewayRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}
ClientGatewaysServiceClient is the client API for ClientGatewaysService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClientGatewaysServiceClient
func NewClientGatewaysServiceClient(cc grpc.ClientConnInterface) ClientGatewaysServiceClient
ClientGatewaysServiceServer
type ClientGatewaysServiceServer interface {
// Lists ClientGateways in a given project and location.
ListClientGateways(context.Context, *ListClientGatewaysRequest) (*ListClientGatewaysResponse, error)
// Gets details of a single ClientGateway.
GetClientGateway(context.Context, *GetClientGatewayRequest) (*ClientGateway, error)
// Creates a new ClientGateway in a given project and location.
CreateClientGateway(context.Context, *CreateClientGatewayRequest) (*longrunningpb.Operation, error)
// Deletes a single ClientGateway.
DeleteClientGateway(context.Context, *DeleteClientGatewayRequest) (*longrunningpb.Operation, error)
}
ClientGatewaysServiceServer is the server API for ClientGatewaysService service.
CreateClientGatewayRequest
type CreateClientGatewayRequest struct {
// Required. Value for parent.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. User-settable client gateway resource ID.
// * Must start with a letter.
// * Must contain between 4-63 characters from `/[a-z][0-9]-/`.
// * Must end with a number or a letter.
ClientGatewayId string `protobuf:"bytes,2,opt,name=client_gateway_id,json=clientGatewayId,proto3" json:"client_gateway_id,omitempty"`
// Required. The resource being created.
ClientGateway *ClientGateway `protobuf:"bytes,3,opt,name=client_gateway,json=clientGateway,proto3" json:"client_gateway,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 t
// he 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"`
// Optional. If set, validates request by executing a dry-run which would not
// alter the resource in any way.
ValidateOnly bool `protobuf:"varint,5,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// contains filtered or unexported fields
}
Message for creating a ClientGateway.
func (*CreateClientGatewayRequest) Descriptor
func (*CreateClientGatewayRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateClientGatewayRequest.ProtoReflect.Descriptor instead.
func (*CreateClientGatewayRequest) GetClientGateway
func (x *CreateClientGatewayRequest) GetClientGateway() *ClientGateway
func (*CreateClientGatewayRequest) GetClientGatewayId
func (x *CreateClientGatewayRequest) GetClientGatewayId() string
func (*CreateClientGatewayRequest) GetParent
func (x *CreateClientGatewayRequest) GetParent() string
func (*CreateClientGatewayRequest) GetRequestId
func (x *CreateClientGatewayRequest) GetRequestId() string
func (*CreateClientGatewayRequest) GetValidateOnly
func (x *CreateClientGatewayRequest) GetValidateOnly() bool
func (*CreateClientGatewayRequest) ProtoMessage
func (*CreateClientGatewayRequest) ProtoMessage()
func (*CreateClientGatewayRequest) ProtoReflect
func (x *CreateClientGatewayRequest) ProtoReflect() protoreflect.Message
func (*CreateClientGatewayRequest) Reset
func (x *CreateClientGatewayRequest) Reset()
func (*CreateClientGatewayRequest) String
func (x *CreateClientGatewayRequest) String() string
DeleteClientGatewayRequest
type DeleteClientGatewayRequest struct {
// Required. Name of the resource
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 t
// he 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"`
// Optional. If set, validates request by executing a dry-run which would not
// alter the resource in any way.
ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// contains filtered or unexported fields
}
Message for deleting a ClientGateway
func (*DeleteClientGatewayRequest) Descriptor
func (*DeleteClientGatewayRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteClientGatewayRequest.ProtoReflect.Descriptor instead.
func (*DeleteClientGatewayRequest) GetName
func (x *DeleteClientGatewayRequest) GetName() string
func (*DeleteClientGatewayRequest) GetRequestId
func (x *DeleteClientGatewayRequest) GetRequestId() string
func (*DeleteClientGatewayRequest) GetValidateOnly
func (x *DeleteClientGatewayRequest) GetValidateOnly() bool
func (*DeleteClientGatewayRequest) ProtoMessage
func (*DeleteClientGatewayRequest) ProtoMessage()
func (*DeleteClientGatewayRequest) ProtoReflect
func (x *DeleteClientGatewayRequest) ProtoReflect() protoreflect.Message
func (*DeleteClientGatewayRequest) Reset
func (x *DeleteClientGatewayRequest) Reset()
func (*DeleteClientGatewayRequest) String
func (x *DeleteClientGatewayRequest) String() string
GetClientGatewayRequest
type GetClientGatewayRequest 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 ClientGateway.
func (*GetClientGatewayRequest) Descriptor
func (*GetClientGatewayRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetClientGatewayRequest.ProtoReflect.Descriptor instead.
func (*GetClientGatewayRequest) GetName
func (x *GetClientGatewayRequest) GetName() string
func (*GetClientGatewayRequest) ProtoMessage
func (*GetClientGatewayRequest) ProtoMessage()
func (*GetClientGatewayRequest) ProtoReflect
func (x *GetClientGatewayRequest) ProtoReflect() protoreflect.Message
func (*GetClientGatewayRequest) Reset
func (x *GetClientGatewayRequest) Reset()
func (*GetClientGatewayRequest) String
func (x *GetClientGatewayRequest) String() string
ListClientGatewaysRequest
type ListClientGatewaysRequest struct {
// Required. Parent value for ListClientGatewaysRequest.
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 ClientGateways.
func (*ListClientGatewaysRequest) Descriptor
func (*ListClientGatewaysRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListClientGatewaysRequest.ProtoReflect.Descriptor instead.
func (*ListClientGatewaysRequest) GetFilter
func (x *ListClientGatewaysRequest) GetFilter() string
func (*ListClientGatewaysRequest) GetOrderBy
func (x *ListClientGatewaysRequest) GetOrderBy() string
func (*ListClientGatewaysRequest) GetPageSize
func (x *ListClientGatewaysRequest) GetPageSize() int32
func (*ListClientGatewaysRequest) GetPageToken
func (x *ListClientGatewaysRequest) GetPageToken() string
func (*ListClientGatewaysRequest) GetParent
func (x *ListClientGatewaysRequest) GetParent() string
func (*ListClientGatewaysRequest) ProtoMessage
func (*ListClientGatewaysRequest) ProtoMessage()
func (*ListClientGatewaysRequest) ProtoReflect
func (x *ListClientGatewaysRequest) ProtoReflect() protoreflect.Message
func (*ListClientGatewaysRequest) Reset
func (x *ListClientGatewaysRequest) Reset()
func (*ListClientGatewaysRequest) String
func (x *ListClientGatewaysRequest) String() string
ListClientGatewaysResponse
type ListClientGatewaysResponse struct {
// The list of ClientGateway.
ClientGateways []*ClientGateway `protobuf:"bytes,1,rep,name=client_gateways,json=clientGateways,proto3" json:"client_gateways,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"`
// 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 ClientGateways.
func (*ListClientGatewaysResponse) Descriptor
func (*ListClientGatewaysResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListClientGatewaysResponse.ProtoReflect.Descriptor instead.
func (*ListClientGatewaysResponse) GetClientGateways
func (x *ListClientGatewaysResponse) GetClientGateways() []*ClientGateway
func (*ListClientGatewaysResponse) GetNextPageToken
func (x *ListClientGatewaysResponse) GetNextPageToken() string
func (*ListClientGatewaysResponse) GetUnreachable
func (x *ListClientGatewaysResponse) GetUnreachable() []string
func (*ListClientGatewaysResponse) ProtoMessage
func (*ListClientGatewaysResponse) ProtoMessage()
func (*ListClientGatewaysResponse) ProtoReflect
func (x *ListClientGatewaysResponse) ProtoReflect() protoreflect.Message
func (*ListClientGatewaysResponse) Reset
func (x *ListClientGatewaysResponse) Reset()
func (*ListClientGatewaysResponse) String
func (x *ListClientGatewaysResponse) String() string
UnimplementedClientGatewaysServiceServer
type UnimplementedClientGatewaysServiceServer struct {
}
UnimplementedClientGatewaysServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedClientGatewaysServiceServer) CreateClientGateway
func (*UnimplementedClientGatewaysServiceServer) CreateClientGateway(context.Context, *CreateClientGatewayRequest) (*longrunningpb.Operation, error)
func (*UnimplementedClientGatewaysServiceServer) DeleteClientGateway
func (*UnimplementedClientGatewaysServiceServer) DeleteClientGateway(context.Context, *DeleteClientGatewayRequest) (*longrunningpb.Operation, error)
func (*UnimplementedClientGatewaysServiceServer) GetClientGateway
func (*UnimplementedClientGatewaysServiceServer) GetClientGateway(context.Context, *GetClientGatewayRequest) (*ClientGateway, error)
func (*UnimplementedClientGatewaysServiceServer) ListClientGateways
func (*UnimplementedClientGatewaysServiceServer) ListClientGateways(context.Context, *ListClientGatewaysRequest) (*ListClientGatewaysResponse, error)