Constants
AppHub_LookupServiceProjectAttachment_FullMethodName, AppHub_ListServiceProjectAttachments_FullMethodName, AppHub_CreateServiceProjectAttachment_FullMethodName, AppHub_GetServiceProjectAttachment_FullMethodName, AppHub_DeleteServiceProjectAttachment_FullMethodName, AppHub_DetachServiceProjectAttachment_FullMethodName, AppHub_ListDiscoveredServices_FullMethodName, AppHub_GetDiscoveredService_FullMethodName, AppHub_LookupDiscoveredService_FullMethodName, AppHub_ListServices_FullMethodName, AppHub_CreateService_FullMethodName, AppHub_GetService_FullMethodName, AppHub_UpdateService_FullMethodName, AppHub_DeleteService_FullMethodName, AppHub_ListDiscoveredWorkloads_FullMethodName, AppHub_GetDiscoveredWorkload_FullMethodName, AppHub_LookupDiscoveredWorkload_FullMethodName, AppHub_ListWorkloads_FullMethodName, AppHub_CreateWorkload_FullMethodName, AppHub_GetWorkload_FullMethodName, AppHub_UpdateWorkload_FullMethodName, AppHub_DeleteWorkload_FullMethodName, AppHub_ListApplications_FullMethodName, AppHub_CreateApplication_FullMethodName, AppHub_GetApplication_FullMethodName, AppHub_UpdateApplication_FullMethodName, AppHub_DeleteApplication_FullMethodName
const (
AppHub_LookupServiceProjectAttachment_FullMethodName = "/google.cloud.apphub.v1.AppHub/LookupServiceProjectAttachment"
AppHub_ListServiceProjectAttachments_FullMethodName = "/google.cloud.apphub.v1.AppHub/ListServiceProjectAttachments"
AppHub_CreateServiceProjectAttachment_FullMethodName = "/google.cloud.apphub.v1.AppHub/CreateServiceProjectAttachment"
AppHub_GetServiceProjectAttachment_FullMethodName = "/google.cloud.apphub.v1.AppHub/GetServiceProjectAttachment"
AppHub_DeleteServiceProjectAttachment_FullMethodName = "/google.cloud.apphub.v1.AppHub/DeleteServiceProjectAttachment"
AppHub_DetachServiceProjectAttachment_FullMethodName = "/google.cloud.apphub.v1.AppHub/DetachServiceProjectAttachment"
AppHub_ListDiscoveredServices_FullMethodName = "/google.cloud.apphub.v1.AppHub/ListDiscoveredServices"
AppHub_GetDiscoveredService_FullMethodName = "/google.cloud.apphub.v1.AppHub/GetDiscoveredService"
AppHub_LookupDiscoveredService_FullMethodName = "/google.cloud.apphub.v1.AppHub/LookupDiscoveredService"
AppHub_ListServices_FullMethodName = "/google.cloud.apphub.v1.AppHub/ListServices"
AppHub_CreateService_FullMethodName = "/google.cloud.apphub.v1.AppHub/CreateService"
AppHub_GetService_FullMethodName = "/google.cloud.apphub.v1.AppHub/GetService"
AppHub_UpdateService_FullMethodName = "/google.cloud.apphub.v1.AppHub/UpdateService"
AppHub_DeleteService_FullMethodName = "/google.cloud.apphub.v1.AppHub/DeleteService"
AppHub_ListDiscoveredWorkloads_FullMethodName = "/google.cloud.apphub.v1.AppHub/ListDiscoveredWorkloads"
AppHub_GetDiscoveredWorkload_FullMethodName = "/google.cloud.apphub.v1.AppHub/GetDiscoveredWorkload"
AppHub_LookupDiscoveredWorkload_FullMethodName = "/google.cloud.apphub.v1.AppHub/LookupDiscoveredWorkload"
AppHub_ListWorkloads_FullMethodName = "/google.cloud.apphub.v1.AppHub/ListWorkloads"
AppHub_CreateWorkload_FullMethodName = "/google.cloud.apphub.v1.AppHub/CreateWorkload"
AppHub_GetWorkload_FullMethodName = "/google.cloud.apphub.v1.AppHub/GetWorkload"
AppHub_UpdateWorkload_FullMethodName = "/google.cloud.apphub.v1.AppHub/UpdateWorkload"
AppHub_DeleteWorkload_FullMethodName = "/google.cloud.apphub.v1.AppHub/DeleteWorkload"
AppHub_ListApplications_FullMethodName = "/google.cloud.apphub.v1.AppHub/ListApplications"
AppHub_CreateApplication_FullMethodName = "/google.cloud.apphub.v1.AppHub/CreateApplication"
AppHub_GetApplication_FullMethodName = "/google.cloud.apphub.v1.AppHub/GetApplication"
AppHub_UpdateApplication_FullMethodName = "/google.cloud.apphub.v1.AppHub/UpdateApplication"
AppHub_DeleteApplication_FullMethodName = "/google.cloud.apphub.v1.AppHub/DeleteApplication"
)Variables
Application_State_name, Application_State_value
var (
Application_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "ACTIVE",
3: "DELETING",
}
Application_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"ACTIVE": 2,
"DELETING": 3,
}
)Enum value maps for Application_State.
Scope_Type_name, Scope_Type_value
var (
Scope_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "REGIONAL",
2: "GLOBAL",
}
Scope_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"REGIONAL": 1,
"GLOBAL": 2,
}
)Enum value maps for Scope_Type.
Criticality_Type_name, Criticality_Type_value
var (
Criticality_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "MISSION_CRITICAL",
2: "HIGH",
3: "MEDIUM",
4: "LOW",
}
Criticality_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"MISSION_CRITICAL": 1,
"HIGH": 2,
"MEDIUM": 3,
"LOW": 4,
}
)Enum value maps for Criticality_Type.
Environment_Type_name, Environment_Type_value
var (
Environment_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "PRODUCTION",
2: "STAGING",
3: "TEST",
4: "DEVELOPMENT",
}
Environment_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"PRODUCTION": 1,
"STAGING": 2,
"TEST": 3,
"DEVELOPMENT": 4,
}
)Enum value maps for Environment_Type.
Service_State_name, Service_State_value
var (
Service_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "ACTIVE",
3: "DELETING",
4: "DETACHED",
}
Service_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"ACTIVE": 2,
"DELETING": 3,
"DETACHED": 4,
}
)Enum value maps for Service_State.
ServiceProjectAttachment_State_name, ServiceProjectAttachment_State_value
var (
ServiceProjectAttachment_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "ACTIVE",
3: "DELETING",
}
ServiceProjectAttachment_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"ACTIVE": 2,
"DELETING": 3,
}
)Enum value maps for ServiceProjectAttachment_State.
Workload_State_name, Workload_State_value
var (
Workload_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "ACTIVE",
3: "DELETING",
4: "DETACHED",
}
Workload_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"ACTIVE": 2,
"DELETING": 3,
"DETACHED": 4,
}
)Enum value maps for Workload_State.
AppHub_ServiceDesc
var AppHub_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.apphub.v1.AppHub",
HandlerType: (*AppHubServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "LookupServiceProjectAttachment",
Handler: _AppHub_LookupServiceProjectAttachment_Handler,
},
{
MethodName: "ListServiceProjectAttachments",
Handler: _AppHub_ListServiceProjectAttachments_Handler,
},
{
MethodName: "CreateServiceProjectAttachment",
Handler: _AppHub_CreateServiceProjectAttachment_Handler,
},
{
MethodName: "GetServiceProjectAttachment",
Handler: _AppHub_GetServiceProjectAttachment_Handler,
},
{
MethodName: "DeleteServiceProjectAttachment",
Handler: _AppHub_DeleteServiceProjectAttachment_Handler,
},
{
MethodName: "DetachServiceProjectAttachment",
Handler: _AppHub_DetachServiceProjectAttachment_Handler,
},
{
MethodName: "ListDiscoveredServices",
Handler: _AppHub_ListDiscoveredServices_Handler,
},
{
MethodName: "GetDiscoveredService",
Handler: _AppHub_GetDiscoveredService_Handler,
},
{
MethodName: "LookupDiscoveredService",
Handler: _AppHub_LookupDiscoveredService_Handler,
},
{
MethodName: "ListServices",
Handler: _AppHub_ListServices_Handler,
},
{
MethodName: "CreateService",
Handler: _AppHub_CreateService_Handler,
},
{
MethodName: "GetService",
Handler: _AppHub_GetService_Handler,
},
{
MethodName: "UpdateService",
Handler: _AppHub_UpdateService_Handler,
},
{
MethodName: "DeleteService",
Handler: _AppHub_DeleteService_Handler,
},
{
MethodName: "ListDiscoveredWorkloads",
Handler: _AppHub_ListDiscoveredWorkloads_Handler,
},
{
MethodName: "GetDiscoveredWorkload",
Handler: _AppHub_GetDiscoveredWorkload_Handler,
},
{
MethodName: "LookupDiscoveredWorkload",
Handler: _AppHub_LookupDiscoveredWorkload_Handler,
},
{
MethodName: "ListWorkloads",
Handler: _AppHub_ListWorkloads_Handler,
},
{
MethodName: "CreateWorkload",
Handler: _AppHub_CreateWorkload_Handler,
},
{
MethodName: "GetWorkload",
Handler: _AppHub_GetWorkload_Handler,
},
{
MethodName: "UpdateWorkload",
Handler: _AppHub_UpdateWorkload_Handler,
},
{
MethodName: "DeleteWorkload",
Handler: _AppHub_DeleteWorkload_Handler,
},
{
MethodName: "ListApplications",
Handler: _AppHub_ListApplications_Handler,
},
{
MethodName: "CreateApplication",
Handler: _AppHub_CreateApplication_Handler,
},
{
MethodName: "GetApplication",
Handler: _AppHub_GetApplication_Handler,
},
{
MethodName: "UpdateApplication",
Handler: _AppHub_UpdateApplication_Handler,
},
{
MethodName: "DeleteApplication",
Handler: _AppHub_DeleteApplication_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/apphub/v1/apphub_service.proto",
}AppHub_ServiceDesc is the grpc.ServiceDesc for AppHub service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
File_google_cloud_apphub_v1_apphub_service_proto
var File_google_cloud_apphub_v1_apphub_service_proto protoreflect.FileDescriptorFile_google_cloud_apphub_v1_application_proto
var File_google_cloud_apphub_v1_application_proto protoreflect.FileDescriptorFile_google_cloud_apphub_v1_attributes_proto
var File_google_cloud_apphub_v1_attributes_proto protoreflect.FileDescriptorFile_google_cloud_apphub_v1_service_project_attachment_proto
var File_google_cloud_apphub_v1_service_project_attachment_proto protoreflect.FileDescriptorFile_google_cloud_apphub_v1_service_proto
var File_google_cloud_apphub_v1_service_proto protoreflect.FileDescriptorFile_google_cloud_apphub_v1_workload_proto
var File_google_cloud_apphub_v1_workload_proto protoreflect.FileDescriptorFunctions
func RegisterAppHubServer
func RegisterAppHubServer(s grpc.ServiceRegistrar, srv AppHubServer)AppHubClient
type AppHubClient interface {
// Lists a service project attachment for a given service project. You can
// call this API from any project to find if it is attached to a host project.
LookupServiceProjectAttachment(ctx context.Context, in *LookupServiceProjectAttachmentRequest, opts ...grpc.CallOption) (*LookupServiceProjectAttachmentResponse, error)
// Lists service projects attached to the host project.
ListServiceProjectAttachments(ctx context.Context, in *ListServiceProjectAttachmentsRequest, opts ...grpc.CallOption) (*ListServiceProjectAttachmentsResponse, error)
// Attaches a service project to the host project.
CreateServiceProjectAttachment(ctx context.Context, in *CreateServiceProjectAttachmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Gets a service project attachment.
GetServiceProjectAttachment(ctx context.Context, in *GetServiceProjectAttachmentRequest, opts ...grpc.CallOption) (*ServiceProjectAttachment, error)
// Deletes a service project attachment.
DeleteServiceProjectAttachment(ctx context.Context, in *DeleteServiceProjectAttachmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Detaches a service project from a host project.
// You can call this API from any service project without needing access to
// the host project that it is attached to.
DetachServiceProjectAttachment(ctx context.Context, in *DetachServiceProjectAttachmentRequest, opts ...grpc.CallOption) (*DetachServiceProjectAttachmentResponse, error)
// Lists Discovered Services that can be added to an Application in a host
// project and location.
ListDiscoveredServices(ctx context.Context, in *ListDiscoveredServicesRequest, opts ...grpc.CallOption) (*ListDiscoveredServicesResponse, error)
// Gets a Discovered Service in a host project and location.
GetDiscoveredService(ctx context.Context, in *GetDiscoveredServiceRequest, opts ...grpc.CallOption) (*DiscoveredService, error)
// Lists a Discovered Service in a host project and location, with a
// given resource URI.
LookupDiscoveredService(ctx context.Context, in *LookupDiscoveredServiceRequest, opts ...grpc.CallOption) (*LookupDiscoveredServiceResponse, error)
// Lists Services in an Application.
ListServices(ctx context.Context, in *ListServicesRequest, opts ...grpc.CallOption) (*ListServicesResponse, error)
// Creates a Service in an Application.
CreateService(ctx context.Context, in *CreateServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Gets a Service in an Application.
GetService(ctx context.Context, in *GetServiceRequest, opts ...grpc.CallOption) (*Service, error)
// Updates a Service in an Application.
UpdateService(ctx context.Context, in *UpdateServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a Service from an Application.
DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists Discovered Workloads that can be added to an Application in a host
// project and location.
ListDiscoveredWorkloads(ctx context.Context, in *ListDiscoveredWorkloadsRequest, opts ...grpc.CallOption) (*ListDiscoveredWorkloadsResponse, error)
// Gets a Discovered Workload in a host project and location.
GetDiscoveredWorkload(ctx context.Context, in *GetDiscoveredWorkloadRequest, opts ...grpc.CallOption) (*DiscoveredWorkload, error)
// Lists a Discovered Workload in a host project and location, with a
// given resource URI.
LookupDiscoveredWorkload(ctx context.Context, in *LookupDiscoveredWorkloadRequest, opts ...grpc.CallOption) (*LookupDiscoveredWorkloadResponse, error)
// Lists Workloads in an Application.
ListWorkloads(ctx context.Context, in *ListWorkloadsRequest, opts ...grpc.CallOption) (*ListWorkloadsResponse, error)
// Creates a Workload in an Application.
CreateWorkload(ctx context.Context, in *CreateWorkloadRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Gets a Workload in an Application.
GetWorkload(ctx context.Context, in *GetWorkloadRequest, opts ...grpc.CallOption) (*Workload, error)
// Updates a Workload in an Application.
UpdateWorkload(ctx context.Context, in *UpdateWorkloadRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a Workload from an Application.
DeleteWorkload(ctx context.Context, in *DeleteWorkloadRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists Applications in a host project and location.
ListApplications(ctx context.Context, in *ListApplicationsRequest, opts ...grpc.CallOption) (*ListApplicationsResponse, error)
// Creates an Application in a host project and location.
CreateApplication(ctx context.Context, in *CreateApplicationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Gets an Application in a host project and location.
GetApplication(ctx context.Context, in *GetApplicationRequest, opts ...grpc.CallOption) (*Application, error)
// Updates an Application in a host project and location.
UpdateApplication(ctx context.Context, in *UpdateApplicationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes an Application in a host project and location.
DeleteApplication(ctx context.Context, in *DeleteApplicationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}AppHubClient is the client API for AppHub 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 NewAppHubClient
func NewAppHubClient(cc grpc.ClientConnInterface) AppHubClientAppHubServer
type AppHubServer interface {
// Lists a service project attachment for a given service project. You can
// call this API from any project to find if it is attached to a host project.
LookupServiceProjectAttachment(context.Context, *LookupServiceProjectAttachmentRequest) (*LookupServiceProjectAttachmentResponse, error)
// Lists service projects attached to the host project.
ListServiceProjectAttachments(context.Context, *ListServiceProjectAttachmentsRequest) (*ListServiceProjectAttachmentsResponse, error)
// Attaches a service project to the host project.
CreateServiceProjectAttachment(context.Context, *CreateServiceProjectAttachmentRequest) (*longrunningpb.Operation, error)
// Gets a service project attachment.
GetServiceProjectAttachment(context.Context, *GetServiceProjectAttachmentRequest) (*ServiceProjectAttachment, error)
// Deletes a service project attachment.
DeleteServiceProjectAttachment(context.Context, *DeleteServiceProjectAttachmentRequest) (*longrunningpb.Operation, error)
// Detaches a service project from a host project.
// You can call this API from any service project without needing access to
// the host project that it is attached to.
DetachServiceProjectAttachment(context.Context, *DetachServiceProjectAttachmentRequest) (*DetachServiceProjectAttachmentResponse, error)
// Lists Discovered Services that can be added to an Application in a host
// project and location.
ListDiscoveredServices(context.Context, *ListDiscoveredServicesRequest) (*ListDiscoveredServicesResponse, error)
// Gets a Discovered Service in a host project and location.
GetDiscoveredService(context.Context, *GetDiscoveredServiceRequest) (*DiscoveredService, error)
// Lists a Discovered Service in a host project and location, with a
// given resource URI.
LookupDiscoveredService(context.Context, *LookupDiscoveredServiceRequest) (*LookupDiscoveredServiceResponse, error)
// Lists Services in an Application.
ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error)
// Creates a Service in an Application.
CreateService(context.Context, *CreateServiceRequest) (*longrunningpb.Operation, error)
// Gets a Service in an Application.
GetService(context.Context, *GetServiceRequest) (*Service, error)
// Updates a Service in an Application.
UpdateService(context.Context, *UpdateServiceRequest) (*longrunningpb.Operation, error)
// Deletes a Service from an Application.
DeleteService(context.Context, *DeleteServiceRequest) (*longrunningpb.Operation, error)
// Lists Discovered Workloads that can be added to an Application in a host
// project and location.
ListDiscoveredWorkloads(context.Context, *ListDiscoveredWorkloadsRequest) (*ListDiscoveredWorkloadsResponse, error)
// Gets a Discovered Workload in a host project and location.
GetDiscoveredWorkload(context.Context, *GetDiscoveredWorkloadRequest) (*DiscoveredWorkload, error)
// Lists a Discovered Workload in a host project and location, with a
// given resource URI.
LookupDiscoveredWorkload(context.Context, *LookupDiscoveredWorkloadRequest) (*LookupDiscoveredWorkloadResponse, error)
// Lists Workloads in an Application.
ListWorkloads(context.Context, *ListWorkloadsRequest) (*ListWorkloadsResponse, error)
// Creates a Workload in an Application.
CreateWorkload(context.Context, *CreateWorkloadRequest) (*longrunningpb.Operation, error)
// Gets a Workload in an Application.
GetWorkload(context.Context, *GetWorkloadRequest) (*Workload, error)
// Updates a Workload in an Application.
UpdateWorkload(context.Context, *UpdateWorkloadRequest) (*longrunningpb.Operation, error)
// Deletes a Workload from an Application.
DeleteWorkload(context.Context, *DeleteWorkloadRequest) (*longrunningpb.Operation, error)
// Lists Applications in a host project and location.
ListApplications(context.Context, *ListApplicationsRequest) (*ListApplicationsResponse, error)
// Creates an Application in a host project and location.
CreateApplication(context.Context, *CreateApplicationRequest) (*longrunningpb.Operation, error)
// Gets an Application in a host project and location.
GetApplication(context.Context, *GetApplicationRequest) (*Application, error)
// Updates an Application in a host project and location.
UpdateApplication(context.Context, *UpdateApplicationRequest) (*longrunningpb.Operation, error)
// Deletes an Application in a host project and location.
DeleteApplication(context.Context, *DeleteApplicationRequest) (*longrunningpb.Operation, error)
}AppHubServer is the server API for AppHub service. All implementations should embed UnimplementedAppHubServer for forward compatibility
Application
type Application struct {
// Identifier. The resource name of an Application. Format:
// `"projects/{host-project-id}/locations/{location}/applications/{application-id}"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. User-defined name for the Application.
// Can have a maximum length of 63 characters.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. User-defined description of an Application.
// Can have a maximum length of 2048 characters.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Optional. Consumer provided attributes.
Attributes *Attributes `protobuf:"bytes,4,opt,name=attributes,proto3" json:"attributes,omitempty"`
// Output only. Create time.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Update time.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Required. Immutable. Defines what data can be included into this
// Application. Limits which Services and Workloads can be registered.
Scope *Scope `protobuf:"bytes,9,opt,name=scope,proto3" json:"scope,omitempty"`
// Output only. A universally unique identifier (in UUID4 format) for the
// `Application`.
Uid string `protobuf:"bytes,10,opt,name=uid,proto3" json:"uid,omitempty"`
// Output only. Application state.
State Application_State `protobuf:"varint,11,opt,name=state,proto3,enum=google.cloud.apphub.v1.Application_State" json:"state,omitempty"`
// contains filtered or unexported fields
}Application defines the governance boundary for App Hub entities that perform a logical end-to-end business function. App Hub supports application level IAM permission to align with governance requirements.
func (*Application) Descriptor
func (*Application) Descriptor() ([]byte, []int)Deprecated: Use Application.ProtoReflect.Descriptor instead.
func (*Application) GetAttributes
func (x *Application) GetAttributes() *Attributesfunc (*Application) GetCreateTime
func (x *Application) GetCreateTime() *timestamppb.Timestampfunc (*Application) GetDescription
func (x *Application) GetDescription() stringfunc (*Application) GetDisplayName
func (x *Application) GetDisplayName() stringfunc (*Application) GetName
func (x *Application) GetName() stringfunc (*Application) GetScope
func (x *Application) GetScope() *Scopefunc (*Application) GetState
func (x *Application) GetState() Application_Statefunc (*Application) GetUid
func (x *Application) GetUid() stringfunc (*Application) GetUpdateTime
func (x *Application) GetUpdateTime() *timestamppb.Timestampfunc (*Application) ProtoMessage
func (*Application) ProtoMessage()func (*Application) ProtoReflect
func (x *Application) ProtoReflect() protoreflect.Messagefunc (*Application) Reset
func (x *Application) Reset()func (*Application) String
func (x *Application) String() stringApplication_State
type Application_State int32Application state.
Application_STATE_UNSPECIFIED, Application_CREATING, Application_ACTIVE, Application_DELETING
const (
// Unspecified state.
Application_STATE_UNSPECIFIED Application_State = 0
// The Application is being created.
Application_CREATING Application_State = 1
// The Application is ready to register Services and Workloads.
Application_ACTIVE Application_State = 2
// The Application is being deleted.
Application_DELETING Application_State = 3
)func (Application_State) Descriptor
func (Application_State) Descriptor() protoreflect.EnumDescriptorfunc (Application_State) Enum
func (x Application_State) Enum() *Application_Statefunc (Application_State) EnumDescriptor
func (Application_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Application_State.Descriptor instead.
func (Application_State) Number
func (x Application_State) Number() protoreflect.EnumNumberfunc (Application_State) String
func (x Application_State) String() stringfunc (Application_State) Type
func (Application_State) Type() protoreflect.EnumTypeAttributes
type Attributes struct {
// Optional. User-defined criticality information.
Criticality *Criticality `protobuf:"bytes,1,opt,name=criticality,proto3" json:"criticality,omitempty"`
// Optional. User-defined environment information.
Environment *Environment `protobuf:"bytes,2,opt,name=environment,proto3" json:"environment,omitempty"`
// Optional. Developer team that owns development and coding.
DeveloperOwners []*ContactInfo `protobuf:"bytes,3,rep,name=developer_owners,json=developerOwners,proto3" json:"developer_owners,omitempty"`
// Optional. Operator team that ensures runtime and operations.
OperatorOwners []*ContactInfo `protobuf:"bytes,4,rep,name=operator_owners,json=operatorOwners,proto3" json:"operator_owners,omitempty"`
// Optional. Business team that ensures user needs are met and value is
// delivered
BusinessOwners []*ContactInfo `protobuf:"bytes,5,rep,name=business_owners,json=businessOwners,proto3" json:"business_owners,omitempty"`
// contains filtered or unexported fields
}Consumer provided attributes.
func (*Attributes) Descriptor
func (*Attributes) Descriptor() ([]byte, []int)Deprecated: Use Attributes.ProtoReflect.Descriptor instead.
func (*Attributes) GetBusinessOwners
func (x *Attributes) GetBusinessOwners() []*ContactInfofunc (*Attributes) GetCriticality
func (x *Attributes) GetCriticality() *Criticalityfunc (*Attributes) GetDeveloperOwners
func (x *Attributes) GetDeveloperOwners() []*ContactInfofunc (*Attributes) GetEnvironment
func (x *Attributes) GetEnvironment() *Environmentfunc (*Attributes) GetOperatorOwners
func (x *Attributes) GetOperatorOwners() []*ContactInfofunc (*Attributes) ProtoMessage
func (*Attributes) ProtoMessage()func (*Attributes) ProtoReflect
func (x *Attributes) ProtoReflect() protoreflect.Messagefunc (*Attributes) Reset
func (x *Attributes) Reset()func (*Attributes) String
func (x *Attributes) String() stringContactInfo
type ContactInfo struct {
// Optional. Contact's name.
// Can have a maximum length of 63 characters.
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Required. Email address of the contacts.
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
// contains filtered or unexported fields
}Contact information of stakeholders.
func (*ContactInfo) Descriptor
func (*ContactInfo) Descriptor() ([]byte, []int)Deprecated: Use ContactInfo.ProtoReflect.Descriptor instead.
func (*ContactInfo) GetDisplayName
func (x *ContactInfo) GetDisplayName() stringfunc (*ContactInfo) GetEmail
func (x *ContactInfo) GetEmail() stringfunc (*ContactInfo) ProtoMessage
func (*ContactInfo) ProtoMessage()func (*ContactInfo) ProtoReflect
func (x *ContactInfo) ProtoReflect() protoreflect.Messagefunc (*ContactInfo) Reset
func (x *ContactInfo) Reset()func (*ContactInfo) String
func (x *ContactInfo) String() stringCreateApplicationRequest
type CreateApplicationRequest struct {
// Required. Project and location to create Application in.
// Expected format: `projects/{project}/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The Application identifier.
// Must contain only lowercase letters, numbers
// or hyphens, with the first character a letter, the last a letter or a
// number, and a 63 character maximum.
ApplicationId string `protobuf:"bytes,2,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"`
// Required. The resource being created
Application *Application `protobuf:"bytes,3,opt,name=application,proto3" json:"application,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
}Request for CreateApplication.
func (*CreateApplicationRequest) Descriptor
func (*CreateApplicationRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateApplicationRequest.ProtoReflect.Descriptor instead.
func (*CreateApplicationRequest) GetApplication
func (x *CreateApplicationRequest) GetApplication() *Applicationfunc (*CreateApplicationRequest) GetApplicationId
func (x *CreateApplicationRequest) GetApplicationId() stringfunc (*CreateApplicationRequest) GetParent
func (x *CreateApplicationRequest) GetParent() stringfunc (*CreateApplicationRequest) GetRequestId
func (x *CreateApplicationRequest) GetRequestId() stringfunc (*CreateApplicationRequest) ProtoMessage
func (*CreateApplicationRequest) ProtoMessage()func (*CreateApplicationRequest) ProtoReflect
func (x *CreateApplicationRequest) ProtoReflect() protoreflect.Messagefunc (*CreateApplicationRequest) Reset
func (x *CreateApplicationRequest) Reset()func (*CreateApplicationRequest) String
func (x *CreateApplicationRequest) String() stringCreateServiceProjectAttachmentRequest
type CreateServiceProjectAttachmentRequest struct {
// Required. Host project ID and location to which service project is being
// attached. Only global location is supported. Expected format:
// `projects/{project}/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The service project attachment identifier must contain the
// project id of the service project specified in the
// service_project_attachment.service_project field.
ServiceProjectAttachmentId string `protobuf:"bytes,2,opt,name=service_project_attachment_id,json=serviceProjectAttachmentId,proto3" json:"service_project_attachment_id,omitempty"`
// Required. The resource being created.
ServiceProjectAttachment *ServiceProjectAttachment `protobuf:"bytes,3,opt,name=service_project_attachment,json=serviceProjectAttachment,proto3" json:"service_project_attachment,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
}Request for CreateServiceProjectAttachment.
func (*CreateServiceProjectAttachmentRequest) Descriptor
func (*CreateServiceProjectAttachmentRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateServiceProjectAttachmentRequest.ProtoReflect.Descriptor instead.
func (*CreateServiceProjectAttachmentRequest) GetParent
func (x *CreateServiceProjectAttachmentRequest) GetParent() stringfunc (*CreateServiceProjectAttachmentRequest) GetRequestId
func (x *CreateServiceProjectAttachmentRequest) GetRequestId() stringfunc (*CreateServiceProjectAttachmentRequest) GetServiceProjectAttachment
func (x *CreateServiceProjectAttachmentRequest) GetServiceProjectAttachment() *ServiceProjectAttachmentfunc (*CreateServiceProjectAttachmentRequest) GetServiceProjectAttachmentId
func (x *CreateServiceProjectAttachmentRequest) GetServiceProjectAttachmentId() stringfunc (*CreateServiceProjectAttachmentRequest) ProtoMessage
func (*CreateServiceProjectAttachmentRequest) ProtoMessage()func (*CreateServiceProjectAttachmentRequest) ProtoReflect
func (x *CreateServiceProjectAttachmentRequest) ProtoReflect() protoreflect.Messagefunc (*CreateServiceProjectAttachmentRequest) Reset
func (x *CreateServiceProjectAttachmentRequest) Reset()func (*CreateServiceProjectAttachmentRequest) String
func (x *CreateServiceProjectAttachmentRequest) String() stringCreateServiceRequest
type CreateServiceRequest struct {
// Required. Fully qualified name of the parent Application to create the
// Service in. Expected format:
// `projects/{project}/locations/{location}/applications/{application}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The Service identifier.
// Must contain only lowercase letters, numbers
// or hyphens, with the first character a letter, the last a letter or a
// number, and a 63 character maximum.
ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
// Required. The resource being created.
Service *Service `protobuf:"bytes,3,opt,name=service,proto3" json:"service,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
}Request for CreateService.
func (*CreateServiceRequest) Descriptor
func (*CreateServiceRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateServiceRequest.ProtoReflect.Descriptor instead.
func (*CreateServiceRequest) GetParent
func (x *CreateServiceRequest) GetParent() stringfunc (*CreateServiceRequest) GetRequestId
func (x *CreateServiceRequest) GetRequestId() stringfunc (*CreateServiceRequest) GetService
func (x *CreateServiceRequest) GetService() *Servicefunc (*CreateServiceRequest) GetServiceId
func (x *CreateServiceRequest) GetServiceId() stringfunc (*CreateServiceRequest) ProtoMessage
func (*CreateServiceRequest) ProtoMessage()func (*CreateServiceRequest) ProtoReflect
func (x *CreateServiceRequest) ProtoReflect() protoreflect.Messagefunc (*CreateServiceRequest) Reset
func (x *CreateServiceRequest) Reset()func (*CreateServiceRequest) String
func (x *CreateServiceRequest) String() stringCreateWorkloadRequest
type CreateWorkloadRequest struct {
// Required. Fully qualified name of the Application to create Workload in.
// Expected format:
// `projects/{project}/locations/{location}/applications/{application}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The Workload identifier.
// Must contain only lowercase letters, numbers
// or hyphens, with the first character a letter, the last a letter or a
// number, and a 63 character maximum.
WorkloadId string `protobuf:"bytes,2,opt,name=workload_id,json=workloadId,proto3" json:"workload_id,omitempty"`
// Required. The resource being created.
Workload *Workload `protobuf:"bytes,3,opt,name=workload,proto3" json:"workload,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
}Request for CreateWorkload.
func (*CreateWorkloadRequest) Descriptor
func (*CreateWorkloadRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateWorkloadRequest.ProtoReflect.Descriptor instead.
func (*CreateWorkloadRequest) GetParent
func (x *CreateWorkloadRequest) GetParent() stringfunc (*CreateWorkloadRequest) GetRequestId
func (x *CreateWorkloadRequest) GetRequestId() stringfunc (*CreateWorkloadRequest) GetWorkload
func (x *CreateWorkloadRequest) GetWorkload() *Workloadfunc (*CreateWorkloadRequest) GetWorkloadId
func (x *CreateWorkloadRequest) GetWorkloadId() stringfunc (*CreateWorkloadRequest) ProtoMessage
func (*CreateWorkloadRequest) ProtoMessage()func (*CreateWorkloadRequest) ProtoReflect
func (x *CreateWorkloadRequest) ProtoReflect() protoreflect.Messagefunc (*CreateWorkloadRequest) Reset
func (x *CreateWorkloadRequest) Reset()func (*CreateWorkloadRequest) String
func (x *CreateWorkloadRequest) String() stringCriticality
type Criticality struct {
// Required. Criticality Type.
Type Criticality_Type `protobuf:"varint,3,opt,name=type,proto3,enum=google.cloud.apphub.v1.Criticality_Type" json:"type,omitempty"`
// contains filtered or unexported fields
}Criticality of the Application, Service, or Workload
func (*Criticality) Descriptor
func (*Criticality) Descriptor() ([]byte, []int)Deprecated: Use Criticality.ProtoReflect.Descriptor instead.
func (*Criticality) GetType
func (x *Criticality) GetType() Criticality_Typefunc (*Criticality) ProtoMessage
func (*Criticality) ProtoMessage()func (*Criticality) ProtoReflect
func (x *Criticality) ProtoReflect() protoreflect.Messagefunc (*Criticality) Reset
func (x *Criticality) Reset()func (*Criticality) String
func (x *Criticality) String() stringCriticality_Type
type Criticality_Type int32Criticality Type.
Criticality_TYPE_UNSPECIFIED, Criticality_MISSION_CRITICAL, Criticality_HIGH, Criticality_MEDIUM, Criticality_LOW
const (
// Unspecified type.
Criticality_TYPE_UNSPECIFIED Criticality_Type = 0
// Mission critical service, application or workload.
Criticality_MISSION_CRITICAL Criticality_Type = 1
// High impact.
Criticality_HIGH Criticality_Type = 2
// Medium impact.
Criticality_MEDIUM Criticality_Type = 3
// Low impact.
Criticality_LOW Criticality_Type = 4
)func (Criticality_Type) Descriptor
func (Criticality_Type) Descriptor() protoreflect.EnumDescriptorfunc (Criticality_Type) Enum
func (x Criticality_Type) Enum() *Criticality_Typefunc (Criticality_Type) EnumDescriptor
func (Criticality_Type) EnumDescriptor() ([]byte, []int)Deprecated: Use Criticality_Type.Descriptor instead.
func (Criticality_Type) Number
func (x Criticality_Type) Number() protoreflect.EnumNumberfunc (Criticality_Type) String
func (x Criticality_Type) String() stringfunc (Criticality_Type) Type
func (Criticality_Type) Type() protoreflect.EnumTypeDeleteApplicationRequest
type DeleteApplicationRequest struct {
// Required. Fully qualified name of the Application to delete.
// Expected format:
// `projects/{project}/locations/{location}/applications/{application}`.
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
}Request for DeleteApplication.
func (*DeleteApplicationRequest) Descriptor
func (*DeleteApplicationRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteApplicationRequest.ProtoReflect.Descriptor instead.
func (*DeleteApplicationRequest) GetName
func (x *DeleteApplicationRequest) GetName() stringfunc (*DeleteApplicationRequest) GetRequestId
func (x *DeleteApplicationRequest) GetRequestId() stringfunc (*DeleteApplicationRequest) ProtoMessage
func (*DeleteApplicationRequest) ProtoMessage()func (*DeleteApplicationRequest) ProtoReflect
func (x *DeleteApplicationRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteApplicationRequest) Reset
func (x *DeleteApplicationRequest) Reset()func (*DeleteApplicationRequest) String
func (x *DeleteApplicationRequest) String() stringDeleteServiceProjectAttachmentRequest
type DeleteServiceProjectAttachmentRequest struct {
// Required. Fully qualified name of the service project attachment to delete.
// Expected format:
// `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
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
}Request for DeleteServiceProjectAttachment.
func (*DeleteServiceProjectAttachmentRequest) Descriptor
func (*DeleteServiceProjectAttachmentRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteServiceProjectAttachmentRequest.ProtoReflect.Descriptor instead.
func (*DeleteServiceProjectAttachmentRequest) GetName
func (x *DeleteServiceProjectAttachmentRequest) GetName() stringfunc (*DeleteServiceProjectAttachmentRequest) GetRequestId
func (x *DeleteServiceProjectAttachmentRequest) GetRequestId() stringfunc (*DeleteServiceProjectAttachmentRequest) ProtoMessage
func (*DeleteServiceProjectAttachmentRequest) ProtoMessage()func (*DeleteServiceProjectAttachmentRequest) ProtoReflect
func (x *DeleteServiceProjectAttachmentRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteServiceProjectAttachmentRequest) Reset
func (x *DeleteServiceProjectAttachmentRequest) Reset()func (*DeleteServiceProjectAttachmentRequest) String
func (x *DeleteServiceProjectAttachmentRequest) String() stringDeleteServiceRequest
type DeleteServiceRequest struct {
// Required. Fully qualified name of the Service to delete from an
// Application. Expected format:
// `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
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
}Request for DeleteService.
func (*DeleteServiceRequest) Descriptor
func (*DeleteServiceRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteServiceRequest.ProtoReflect.Descriptor instead.
func (*DeleteServiceRequest) GetName
func (x *DeleteServiceRequest) GetName() stringfunc (*DeleteServiceRequest) GetRequestId
func (x *DeleteServiceRequest) GetRequestId() stringfunc (*DeleteServiceRequest) ProtoMessage
func (*DeleteServiceRequest) ProtoMessage()func (*DeleteServiceRequest) ProtoReflect
func (x *DeleteServiceRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteServiceRequest) Reset
func (x *DeleteServiceRequest) Reset()func (*DeleteServiceRequest) String
func (x *DeleteServiceRequest) String() stringDeleteWorkloadRequest
type DeleteWorkloadRequest struct {
// Required. Fully qualified name of the Workload to delete from an
// Application. Expected format:
// `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
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
}Request for DeleteWorkload.
func (*DeleteWorkloadRequest) Descriptor
func (*DeleteWorkloadRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteWorkloadRequest.ProtoReflect.Descriptor instead.
func (*DeleteWorkloadRequest) GetName
func (x *DeleteWorkloadRequest) GetName() stringfunc (*DeleteWorkloadRequest) GetRequestId
func (x *DeleteWorkloadRequest) GetRequestId() stringfunc (*DeleteWorkloadRequest) ProtoMessage
func (*DeleteWorkloadRequest) ProtoMessage()func (*DeleteWorkloadRequest) ProtoReflect
func (x *DeleteWorkloadRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteWorkloadRequest) Reset
func (x *DeleteWorkloadRequest) Reset()func (*DeleteWorkloadRequest) String
func (x *DeleteWorkloadRequest) String() stringDetachServiceProjectAttachmentRequest
type DetachServiceProjectAttachmentRequest struct {
// Required. Service project id and location to detach from a host project.
// Only global location is supported. Expected format:
// `projects/{project}/locations/{location}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for DetachServiceProjectAttachment.
func (*DetachServiceProjectAttachmentRequest) Descriptor
func (*DetachServiceProjectAttachmentRequest) Descriptor() ([]byte, []int)Deprecated: Use DetachServiceProjectAttachmentRequest.ProtoReflect.Descriptor instead.
func (*DetachServiceProjectAttachmentRequest) GetName
func (x *DetachServiceProjectAttachmentRequest) GetName() stringfunc (*DetachServiceProjectAttachmentRequest) ProtoMessage
func (*DetachServiceProjectAttachmentRequest) ProtoMessage()func (*DetachServiceProjectAttachmentRequest) ProtoReflect
func (x *DetachServiceProjectAttachmentRequest) ProtoReflect() protoreflect.Messagefunc (*DetachServiceProjectAttachmentRequest) Reset
func (x *DetachServiceProjectAttachmentRequest) Reset()func (*DetachServiceProjectAttachmentRequest) String
func (x *DetachServiceProjectAttachmentRequest) String() stringDetachServiceProjectAttachmentResponse
type DetachServiceProjectAttachmentResponse struct {
// contains filtered or unexported fields
}Response for DetachServiceProjectAttachment.
func (*DetachServiceProjectAttachmentResponse) Descriptor
func (*DetachServiceProjectAttachmentResponse) Descriptor() ([]byte, []int)Deprecated: Use DetachServiceProjectAttachmentResponse.ProtoReflect.Descriptor instead.
func (*DetachServiceProjectAttachmentResponse) ProtoMessage
func (*DetachServiceProjectAttachmentResponse) ProtoMessage()func (*DetachServiceProjectAttachmentResponse) ProtoReflect
func (x *DetachServiceProjectAttachmentResponse) ProtoReflect() protoreflect.Messagefunc (*DetachServiceProjectAttachmentResponse) Reset
func (x *DetachServiceProjectAttachmentResponse) Reset()func (*DetachServiceProjectAttachmentResponse) String
func (x *DetachServiceProjectAttachmentResponse) String() stringDiscoveredService
type DiscoveredService struct {
// Identifier. The resource name of the discovered service. Format:
// `"projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Reference to an underlying networking resource that can
// comprise a Service. These are immutable.
ServiceReference *ServiceReference `protobuf:"bytes,2,opt,name=service_reference,json=serviceReference,proto3" json:"service_reference,omitempty"`
// Output only. Properties of an underlying compute resource that can comprise
// a Service. These are immutable.
ServiceProperties *ServiceProperties `protobuf:"bytes,3,opt,name=service_properties,json=serviceProperties,proto3" json:"service_properties,omitempty"`
// contains filtered or unexported fields
}DiscoveredService is a network or API interface that exposes some functionality to clients for consumption over the network. A discovered service can be registered to a App Hub service.
func (*DiscoveredService) Descriptor
func (*DiscoveredService) Descriptor() ([]byte, []int)Deprecated: Use DiscoveredService.ProtoReflect.Descriptor instead.
func (*DiscoveredService) GetName
func (x *DiscoveredService) GetName() stringfunc (*DiscoveredService) GetServiceProperties
func (x *DiscoveredService) GetServiceProperties() *ServicePropertiesfunc (*DiscoveredService) GetServiceReference
func (x *DiscoveredService) GetServiceReference() *ServiceReferencefunc (*DiscoveredService) ProtoMessage
func (*DiscoveredService) ProtoMessage()func (*DiscoveredService) ProtoReflect
func (x *DiscoveredService) ProtoReflect() protoreflect.Messagefunc (*DiscoveredService) Reset
func (x *DiscoveredService) Reset()func (*DiscoveredService) String
func (x *DiscoveredService) String() stringDiscoveredWorkload
type DiscoveredWorkload struct {
// Identifier. The resource name of the discovered workload. Format:
// `"projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Reference of an underlying compute resource represented by the
// Workload. These are immutable.
WorkloadReference *WorkloadReference `protobuf:"bytes,2,opt,name=workload_reference,json=workloadReference,proto3" json:"workload_reference,omitempty"`
// Output only. Properties of an underlying compute resource represented by
// the Workload. These are immutable.
WorkloadProperties *WorkloadProperties `protobuf:"bytes,3,opt,name=workload_properties,json=workloadProperties,proto3" json:"workload_properties,omitempty"`
// contains filtered or unexported fields
}DiscoveredWorkload is a binary deployment (such as managed instance groups (MIGs) and GKE deployments) that performs the smallest logical subset of business functionality. A discovered workload can be registered to an App Hub Workload.
func (*DiscoveredWorkload) Descriptor
func (*DiscoveredWorkload) Descriptor() ([]byte, []int)Deprecated: Use DiscoveredWorkload.ProtoReflect.Descriptor instead.
func (*DiscoveredWorkload) GetName
func (x *DiscoveredWorkload) GetName() stringfunc (*DiscoveredWorkload) GetWorkloadProperties
func (x *DiscoveredWorkload) GetWorkloadProperties() *WorkloadPropertiesfunc (*DiscoveredWorkload) GetWorkloadReference
func (x *DiscoveredWorkload) GetWorkloadReference() *WorkloadReferencefunc (*DiscoveredWorkload) ProtoMessage
func (*DiscoveredWorkload) ProtoMessage()func (*DiscoveredWorkload) ProtoReflect
func (x *DiscoveredWorkload) ProtoReflect() protoreflect.Messagefunc (*DiscoveredWorkload) Reset
func (x *DiscoveredWorkload) Reset()func (*DiscoveredWorkload) String
func (x *DiscoveredWorkload) String() stringEnvironment
type Environment struct {
// Required. Environment Type.
Type Environment_Type `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.apphub.v1.Environment_Type" json:"type,omitempty"`
// contains filtered or unexported fields
}Environment of the Application, Service, or Workload
func (*Environment) Descriptor
func (*Environment) Descriptor() ([]byte, []int)Deprecated: Use Environment.ProtoReflect.Descriptor instead.
func (*Environment) GetType
func (x *Environment) GetType() Environment_Typefunc (*Environment) ProtoMessage
func (*Environment) ProtoMessage()func (*Environment) ProtoReflect
func (x *Environment) ProtoReflect() protoreflect.Messagefunc (*Environment) Reset
func (x *Environment) Reset()func (*Environment) String
func (x *Environment) String() stringEnvironment_Type
type Environment_Type int32Environment Type.
Environment_TYPE_UNSPECIFIED, Environment_PRODUCTION, Environment_STAGING, Environment_TEST, Environment_DEVELOPMENT
const (
// Unspecified type.
Environment_TYPE_UNSPECIFIED Environment_Type = 0
// Production environment.
Environment_PRODUCTION Environment_Type = 1
// Staging environment.
Environment_STAGING Environment_Type = 2
// Test environment.
Environment_TEST Environment_Type = 3
// Development environment.
Environment_DEVELOPMENT Environment_Type = 4
)func (Environment_Type) Descriptor
func (Environment_Type) Descriptor() protoreflect.EnumDescriptorfunc (Environment_Type) Enum
func (x Environment_Type) Enum() *Environment_Typefunc (Environment_Type) EnumDescriptor
func (Environment_Type) EnumDescriptor() ([]byte, []int)Deprecated: Use Environment_Type.Descriptor instead.
func (Environment_Type) Number
func (x Environment_Type) Number() protoreflect.EnumNumberfunc (Environment_Type) String
func (x Environment_Type) String() stringfunc (Environment_Type) Type
func (Environment_Type) Type() protoreflect.EnumTypeGetApplicationRequest
type GetApplicationRequest struct {
// Required. Fully qualified name of the Application to fetch.
// Expected format:
// `projects/{project}/locations/{location}/applications/{application}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for GetApplication.
func (*GetApplicationRequest) Descriptor
func (*GetApplicationRequest) Descriptor() ([]byte, []int)Deprecated: Use GetApplicationRequest.ProtoReflect.Descriptor instead.
func (*GetApplicationRequest) GetName
func (x *GetApplicationRequest) GetName() stringfunc (*GetApplicationRequest) ProtoMessage
func (*GetApplicationRequest) ProtoMessage()func (*GetApplicationRequest) ProtoReflect
func (x *GetApplicationRequest) ProtoReflect() protoreflect.Messagefunc (*GetApplicationRequest) Reset
func (x *GetApplicationRequest) Reset()func (*GetApplicationRequest) String
func (x *GetApplicationRequest) String() stringGetDiscoveredServiceRequest
type GetDiscoveredServiceRequest struct {
// Required. Fully qualified name of the Discovered Service to fetch.
// Expected format:
// `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for GetDiscoveredService.
func (*GetDiscoveredServiceRequest) Descriptor
func (*GetDiscoveredServiceRequest) Descriptor() ([]byte, []int)Deprecated: Use GetDiscoveredServiceRequest.ProtoReflect.Descriptor instead.
func (*GetDiscoveredServiceRequest) GetName
func (x *GetDiscoveredServiceRequest) GetName() stringfunc (*GetDiscoveredServiceRequest) ProtoMessage
func (*GetDiscoveredServiceRequest) ProtoMessage()func (*GetDiscoveredServiceRequest) ProtoReflect
func (x *GetDiscoveredServiceRequest) ProtoReflect() protoreflect.Messagefunc (*GetDiscoveredServiceRequest) Reset
func (x *GetDiscoveredServiceRequest) Reset()func (*GetDiscoveredServiceRequest) String
func (x *GetDiscoveredServiceRequest) String() stringGetDiscoveredWorkloadRequest
type GetDiscoveredWorkloadRequest struct {
// Required. Fully qualified name of the Discovered Workload to fetch.
// Expected format:
// `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for GetDiscoveredWorkload.
func (*GetDiscoveredWorkloadRequest) Descriptor
func (*GetDiscoveredWorkloadRequest) Descriptor() ([]byte, []int)Deprecated: Use GetDiscoveredWorkloadRequest.ProtoReflect.Descriptor instead.
func (*GetDiscoveredWorkloadRequest) GetName
func (x *GetDiscoveredWorkloadRequest) GetName() stringfunc (*GetDiscoveredWorkloadRequest) ProtoMessage
func (*GetDiscoveredWorkloadRequest) ProtoMessage()func (*GetDiscoveredWorkloadRequest) ProtoReflect
func (x *GetDiscoveredWorkloadRequest) ProtoReflect() protoreflect.Messagefunc (*GetDiscoveredWorkloadRequest) Reset
func (x *GetDiscoveredWorkloadRequest) Reset()func (*GetDiscoveredWorkloadRequest) String
func (x *GetDiscoveredWorkloadRequest) String() stringGetServiceProjectAttachmentRequest
type GetServiceProjectAttachmentRequest struct {
// Required. Fully qualified name of the service project attachment to
// retrieve. Expected format:
// `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for GetServiceProjectAttachment.
func (*GetServiceProjectAttachmentRequest) Descriptor
func (*GetServiceProjectAttachmentRequest) Descriptor() ([]byte, []int)Deprecated: Use GetServiceProjectAttachmentRequest.ProtoReflect.Descriptor instead.
func (*GetServiceProjectAttachmentRequest) GetName
func (x *GetServiceProjectAttachmentRequest) GetName() stringfunc (*GetServiceProjectAttachmentRequest) ProtoMessage
func (*GetServiceProjectAttachmentRequest) ProtoMessage()func (*GetServiceProjectAttachmentRequest) ProtoReflect
func (x *GetServiceProjectAttachmentRequest) ProtoReflect() protoreflect.Messagefunc (*GetServiceProjectAttachmentRequest) Reset
func (x *GetServiceProjectAttachmentRequest) Reset()func (*GetServiceProjectAttachmentRequest) String
func (x *GetServiceProjectAttachmentRequest) String() stringGetServiceRequest
type GetServiceRequest struct {
// Required. Fully qualified name of the Service to fetch.
// Expected format:
// `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for GetService.
func (*GetServiceRequest) Descriptor
func (*GetServiceRequest) Descriptor() ([]byte, []int)Deprecated: Use GetServiceRequest.ProtoReflect.Descriptor instead.
func (*GetServiceRequest) GetName
func (x *GetServiceRequest) GetName() stringfunc (*GetServiceRequest) ProtoMessage
func (*GetServiceRequest) ProtoMessage()func (*GetServiceRequest) ProtoReflect
func (x *GetServiceRequest) ProtoReflect() protoreflect.Messagefunc (*GetServiceRequest) Reset
func (x *GetServiceRequest) Reset()func (*GetServiceRequest) String
func (x *GetServiceRequest) String() stringGetWorkloadRequest
type GetWorkloadRequest struct {
// Required. Fully qualified name of the Workload to fetch.
// Expected format:
// `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for GetWorkload.
func (*GetWorkloadRequest) Descriptor
func (*GetWorkloadRequest) Descriptor() ([]byte, []int)Deprecated: Use GetWorkloadRequest.ProtoReflect.Descriptor instead.
func (*GetWorkloadRequest) GetName
func (x *GetWorkloadRequest) GetName() stringfunc (*GetWorkloadRequest) ProtoMessage
func (*GetWorkloadRequest) ProtoMessage()func (*GetWorkloadRequest) ProtoReflect
func (x *GetWorkloadRequest) ProtoReflect() protoreflect.Messagefunc (*GetWorkloadRequest) Reset
func (x *GetWorkloadRequest) Reset()func (*GetWorkloadRequest) String
func (x *GetWorkloadRequest) String() stringListApplicationsRequest
type ListApplicationsRequest struct {
// Required. Project and location to list Applications on.
// Expected format: `projects/{project}/locations/{location}`.
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
}Request for ListApplications.
func (*ListApplicationsRequest) Descriptor
func (*ListApplicationsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListApplicationsRequest.ProtoReflect.Descriptor instead.
func (*ListApplicationsRequest) GetFilter
func (x *ListApplicationsRequest) GetFilter() stringfunc (*ListApplicationsRequest) GetOrderBy
func (x *ListApplicationsRequest) GetOrderBy() stringfunc (*ListApplicationsRequest) GetPageSize
func (x *ListApplicationsRequest) GetPageSize() int32func (*ListApplicationsRequest) GetPageToken
func (x *ListApplicationsRequest) GetPageToken() stringfunc (*ListApplicationsRequest) GetParent
func (x *ListApplicationsRequest) GetParent() stringfunc (*ListApplicationsRequest) ProtoMessage
func (*ListApplicationsRequest) ProtoMessage()func (*ListApplicationsRequest) ProtoReflect
func (x *ListApplicationsRequest) ProtoReflect() protoreflect.Messagefunc (*ListApplicationsRequest) Reset
func (x *ListApplicationsRequest) Reset()func (*ListApplicationsRequest) String
func (x *ListApplicationsRequest) String() stringListApplicationsResponse
type ListApplicationsResponse struct {
// List of Applications.
Applications []*Application `protobuf:"bytes,1,rep,name=applications,proto3" json:"applications,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
}Response for ListApplications.
func (*ListApplicationsResponse) Descriptor
func (*ListApplicationsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListApplicationsResponse.ProtoReflect.Descriptor instead.
func (*ListApplicationsResponse) GetApplications
func (x *ListApplicationsResponse) GetApplications() []*Applicationfunc (*ListApplicationsResponse) GetNextPageToken
func (x *ListApplicationsResponse) GetNextPageToken() stringfunc (*ListApplicationsResponse) GetUnreachable
func (x *ListApplicationsResponse) GetUnreachable() []stringfunc (*ListApplicationsResponse) ProtoMessage
func (*ListApplicationsResponse) ProtoMessage()func (*ListApplicationsResponse) ProtoReflect
func (x *ListApplicationsResponse) ProtoReflect() protoreflect.Messagefunc (*ListApplicationsResponse) Reset
func (x *ListApplicationsResponse) Reset()func (*ListApplicationsResponse) String
func (x *ListApplicationsResponse) String() stringListDiscoveredServicesRequest
type ListDiscoveredServicesRequest struct {
// Required. Project and location to list Discovered Services on.
// Expected format: `projects/{project}/locations/{location}`.
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
}Request for ListDiscoveredServices.
func (*ListDiscoveredServicesRequest) Descriptor
func (*ListDiscoveredServicesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListDiscoveredServicesRequest.ProtoReflect.Descriptor instead.
func (*ListDiscoveredServicesRequest) GetFilter
func (x *ListDiscoveredServicesRequest) GetFilter() stringfunc (*ListDiscoveredServicesRequest) GetOrderBy
func (x *ListDiscoveredServicesRequest) GetOrderBy() stringfunc (*ListDiscoveredServicesRequest) GetPageSize
func (x *ListDiscoveredServicesRequest) GetPageSize() int32func (*ListDiscoveredServicesRequest) GetPageToken
func (x *ListDiscoveredServicesRequest) GetPageToken() stringfunc (*ListDiscoveredServicesRequest) GetParent
func (x *ListDiscoveredServicesRequest) GetParent() stringfunc (*ListDiscoveredServicesRequest) ProtoMessage
func (*ListDiscoveredServicesRequest) ProtoMessage()func (*ListDiscoveredServicesRequest) ProtoReflect
func (x *ListDiscoveredServicesRequest) ProtoReflect() protoreflect.Messagefunc (*ListDiscoveredServicesRequest) Reset
func (x *ListDiscoveredServicesRequest) Reset()func (*ListDiscoveredServicesRequest) String
func (x *ListDiscoveredServicesRequest) String() stringListDiscoveredServicesResponse
type ListDiscoveredServicesResponse struct {
// List of Discovered Services.
DiscoveredServices []*DiscoveredService `protobuf:"bytes,1,rep,name=discovered_services,json=discoveredServices,proto3" json:"discovered_services,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
}Response for ListDiscoveredServices.
func (*ListDiscoveredServicesResponse) Descriptor
func (*ListDiscoveredServicesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListDiscoveredServicesResponse.ProtoReflect.Descriptor instead.
func (*ListDiscoveredServicesResponse) GetDiscoveredServices
func (x *ListDiscoveredServicesResponse) GetDiscoveredServices() []*DiscoveredServicefunc (*ListDiscoveredServicesResponse) GetNextPageToken
func (x *ListDiscoveredServicesResponse) GetNextPageToken() stringfunc (*ListDiscoveredServicesResponse) GetUnreachable
func (x *ListDiscoveredServicesResponse) GetUnreachable() []stringfunc (*ListDiscoveredServicesResponse) ProtoMessage
func (*ListDiscoveredServicesResponse) ProtoMessage()func (*ListDiscoveredServicesResponse) ProtoReflect
func (x *ListDiscoveredServicesResponse) ProtoReflect() protoreflect.Messagefunc (*ListDiscoveredServicesResponse) Reset
func (x *ListDiscoveredServicesResponse) Reset()func (*ListDiscoveredServicesResponse) String
func (x *ListDiscoveredServicesResponse) String() stringListDiscoveredWorkloadsRequest
type ListDiscoveredWorkloadsRequest struct {
// Required. Project and location to list Discovered Workloads on.
// Expected format: `projects/{project}/locations/{location}`.
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
}Request for ListDiscoveredWorkloads.
func (*ListDiscoveredWorkloadsRequest) Descriptor
func (*ListDiscoveredWorkloadsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListDiscoveredWorkloadsRequest.ProtoReflect.Descriptor instead.
func (*ListDiscoveredWorkloadsRequest) GetFilter
func (x *ListDiscoveredWorkloadsRequest) GetFilter() stringfunc (*ListDiscoveredWorkloadsRequest) GetOrderBy
func (x *ListDiscoveredWorkloadsRequest) GetOrderBy() stringfunc (*ListDiscoveredWorkloadsRequest) GetPageSize
func (x *ListDiscoveredWorkloadsRequest) GetPageSize() int32func (*ListDiscoveredWorkloadsRequest) GetPageToken
func (x *ListDiscoveredWorkloadsRequest) GetPageToken() stringfunc (*ListDiscoveredWorkloadsRequest) GetParent
func (x *ListDiscoveredWorkloadsRequest) GetParent() stringfunc (*ListDiscoveredWorkloadsRequest) ProtoMessage
func (*ListDiscoveredWorkloadsRequest) ProtoMessage()func (*ListDiscoveredWorkloadsRequest) ProtoReflect
func (x *ListDiscoveredWorkloadsRequest) ProtoReflect() protoreflect.Messagefunc (*ListDiscoveredWorkloadsRequest) Reset
func (x *ListDiscoveredWorkloadsRequest) Reset()func (*ListDiscoveredWorkloadsRequest) String
func (x *ListDiscoveredWorkloadsRequest) String() stringListDiscoveredWorkloadsResponse
type ListDiscoveredWorkloadsResponse struct {
// List of Discovered Workloads.
DiscoveredWorkloads []*DiscoveredWorkload `protobuf:"bytes,1,rep,name=discovered_workloads,json=discoveredWorkloads,proto3" json:"discovered_workloads,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
}Response for ListDiscoveredWorkloads.
func (*ListDiscoveredWorkloadsResponse) Descriptor
func (*ListDiscoveredWorkloadsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListDiscoveredWorkloadsResponse.ProtoReflect.Descriptor instead.
func (*ListDiscoveredWorkloadsResponse) GetDiscoveredWorkloads
func (x *ListDiscoveredWorkloadsResponse) GetDiscoveredWorkloads() []*DiscoveredWorkloadfunc (*ListDiscoveredWorkloadsResponse) GetNextPageToken
func (x *ListDiscoveredWorkloadsResponse) GetNextPageToken() stringfunc (*ListDiscoveredWorkloadsResponse) GetUnreachable
func (x *ListDiscoveredWorkloadsResponse) GetUnreachable() []stringfunc (*ListDiscoveredWorkloadsResponse) ProtoMessage
func (*ListDiscoveredWorkloadsResponse) ProtoMessage()func (*ListDiscoveredWorkloadsResponse) ProtoReflect
func (x *ListDiscoveredWorkloadsResponse) ProtoReflect() protoreflect.Messagefunc (*ListDiscoveredWorkloadsResponse) Reset
func (x *ListDiscoveredWorkloadsResponse) Reset()func (*ListDiscoveredWorkloadsResponse) String
func (x *ListDiscoveredWorkloadsResponse) String() stringListServiceProjectAttachmentsRequest
type ListServiceProjectAttachmentsRequest struct {
// Required. Host project ID and location to list service project attachments.
// Only global location is supported. Expected format:
// `projects/{project}/locations/{location}`.
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
}Request for ListServiceProjectAttachments.
func (*ListServiceProjectAttachmentsRequest) Descriptor
func (*ListServiceProjectAttachmentsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListServiceProjectAttachmentsRequest.ProtoReflect.Descriptor instead.
func (*ListServiceProjectAttachmentsRequest) GetFilter
func (x *ListServiceProjectAttachmentsRequest) GetFilter() stringfunc (*ListServiceProjectAttachmentsRequest) GetOrderBy
func (x *ListServiceProjectAttachmentsRequest) GetOrderBy() stringfunc (*ListServiceProjectAttachmentsRequest) GetPageSize
func (x *ListServiceProjectAttachmentsRequest) GetPageSize() int32func (*ListServiceProjectAttachmentsRequest) GetPageToken
func (x *ListServiceProjectAttachmentsRequest) GetPageToken() stringfunc (*ListServiceProjectAttachmentsRequest) GetParent
func (x *ListServiceProjectAttachmentsRequest) GetParent() stringfunc (*ListServiceProjectAttachmentsRequest) ProtoMessage
func (*ListServiceProjectAttachmentsRequest) ProtoMessage()func (*ListServiceProjectAttachmentsRequest) ProtoReflect
func (x *ListServiceProjectAttachmentsRequest) ProtoReflect() protoreflect.Messagefunc (*ListServiceProjectAttachmentsRequest) Reset
func (x *ListServiceProjectAttachmentsRequest) Reset()func (*ListServiceProjectAttachmentsRequest) String
func (x *ListServiceProjectAttachmentsRequest) String() stringListServiceProjectAttachmentsResponse
type ListServiceProjectAttachmentsResponse struct {
// List of service project attachments.
ServiceProjectAttachments []*ServiceProjectAttachment `protobuf:"bytes,1,rep,name=service_project_attachments,json=serviceProjectAttachments,proto3" json:"service_project_attachments,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
}Response for ListServiceProjectAttachments.
func (*ListServiceProjectAttachmentsResponse) Descriptor
func (*ListServiceProjectAttachmentsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListServiceProjectAttachmentsResponse.ProtoReflect.Descriptor instead.
func (*ListServiceProjectAttachmentsResponse) GetNextPageToken
func (x *ListServiceProjectAttachmentsResponse) GetNextPageToken() stringfunc (*ListServiceProjectAttachmentsResponse) GetServiceProjectAttachments
func (x *ListServiceProjectAttachmentsResponse) GetServiceProjectAttachments() []*ServiceProjectAttachmentfunc (*ListServiceProjectAttachmentsResponse) GetUnreachable
func (x *ListServiceProjectAttachmentsResponse) GetUnreachable() []stringfunc (*ListServiceProjectAttachmentsResponse) ProtoMessage
func (*ListServiceProjectAttachmentsResponse) ProtoMessage()func (*ListServiceProjectAttachmentsResponse) ProtoReflect
func (x *ListServiceProjectAttachmentsResponse) ProtoReflect() protoreflect.Messagefunc (*ListServiceProjectAttachmentsResponse) Reset
func (x *ListServiceProjectAttachmentsResponse) Reset()func (*ListServiceProjectAttachmentsResponse) String
func (x *ListServiceProjectAttachmentsResponse) String() stringListServicesRequest
type ListServicesRequest struct {
// Required. Fully qualified name of the parent Application to list Services
// for. Expected format:
// `projects/{project}/locations/{location}/applications/{application}`.
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
}Request for ListServices.
func (*ListServicesRequest) Descriptor
func (*ListServicesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListServicesRequest.ProtoReflect.Descriptor instead.
func (*ListServicesRequest) GetFilter
func (x *ListServicesRequest) GetFilter() stringfunc (*ListServicesRequest) GetOrderBy
func (x *ListServicesRequest) GetOrderBy() stringfunc (*ListServicesRequest) GetPageSize
func (x *ListServicesRequest) GetPageSize() int32func (*ListServicesRequest) GetPageToken
func (x *ListServicesRequest) GetPageToken() stringfunc (*ListServicesRequest) GetParent
func (x *ListServicesRequest) GetParent() stringfunc (*ListServicesRequest) ProtoMessage
func (*ListServicesRequest) ProtoMessage()func (*ListServicesRequest) ProtoReflect
func (x *ListServicesRequest) ProtoReflect() protoreflect.Messagefunc (*ListServicesRequest) Reset
func (x *ListServicesRequest) Reset()func (*ListServicesRequest) String
func (x *ListServicesRequest) String() stringListServicesResponse
type ListServicesResponse struct {
// List of Services.
Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,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
}Response for ListServices.
func (*ListServicesResponse) Descriptor
func (*ListServicesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListServicesResponse.ProtoReflect.Descriptor instead.
func (*ListServicesResponse) GetNextPageToken
func (x *ListServicesResponse) GetNextPageToken() stringfunc (*ListServicesResponse) GetServices
func (x *ListServicesResponse) GetServices() []*Servicefunc (*ListServicesResponse) GetUnreachable
func (x *ListServicesResponse) GetUnreachable() []stringfunc (*ListServicesResponse) ProtoMessage
func (*ListServicesResponse) ProtoMessage()func (*ListServicesResponse) ProtoReflect
func (x *ListServicesResponse) ProtoReflect() protoreflect.Messagefunc (*ListServicesResponse) Reset
func (x *ListServicesResponse) Reset()func (*ListServicesResponse) String
func (x *ListServicesResponse) String() stringListWorkloadsRequest
type ListWorkloadsRequest struct {
// Required. Fully qualified name of the parent Application to list Workloads
// for. Expected format:
// `projects/{project}/locations/{location}/applications/{application}`.
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
}Request for ListWorkloads.
func (*ListWorkloadsRequest) Descriptor
func (*ListWorkloadsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListWorkloadsRequest.ProtoReflect.Descriptor instead.
func (*ListWorkloadsRequest) GetFilter
func (x *ListWorkloadsRequest) GetFilter() stringfunc (*ListWorkloadsRequest) GetOrderBy
func (x *ListWorkloadsRequest) GetOrderBy() stringfunc (*ListWorkloadsRequest) GetPageSize
func (x *ListWorkloadsRequest) GetPageSize() int32func (*ListWorkloadsRequest) GetPageToken
func (x *ListWorkloadsRequest) GetPageToken() stringfunc (*ListWorkloadsRequest) GetParent
func (x *ListWorkloadsRequest) GetParent() stringfunc (*ListWorkloadsRequest) ProtoMessage
func (*ListWorkloadsRequest) ProtoMessage()func (*ListWorkloadsRequest) ProtoReflect
func (x *ListWorkloadsRequest) ProtoReflect() protoreflect.Messagefunc (*ListWorkloadsRequest) Reset
func (x *ListWorkloadsRequest) Reset()func (*ListWorkloadsRequest) String
func (x *ListWorkloadsRequest) String() stringListWorkloadsResponse
type ListWorkloadsResponse struct {
// List of Workloads.
Workloads []*Workload `protobuf:"bytes,1,rep,name=workloads,proto3" json:"workloads,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
}Response for ListWorkloads.
func (*ListWorkloadsResponse) Descriptor
func (*ListWorkloadsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListWorkloadsResponse.ProtoReflect.Descriptor instead.
func (*ListWorkloadsResponse) GetNextPageToken
func (x *ListWorkloadsResponse) GetNextPageToken() stringfunc (*ListWorkloadsResponse) GetUnreachable
func (x *ListWorkloadsResponse) GetUnreachable() []stringfunc (*ListWorkloadsResponse) GetWorkloads
func (x *ListWorkloadsResponse) GetWorkloads() []*Workloadfunc (*ListWorkloadsResponse) ProtoMessage
func (*ListWorkloadsResponse) ProtoMessage()func (*ListWorkloadsResponse) ProtoReflect
func (x *ListWorkloadsResponse) ProtoReflect() protoreflect.Messagefunc (*ListWorkloadsResponse) Reset
func (x *ListWorkloadsResponse) Reset()func (*ListWorkloadsResponse) String
func (x *ListWorkloadsResponse) String() stringLookupDiscoveredServiceRequest
type LookupDiscoveredServiceRequest struct {
// Required. Host project ID and location to lookup Discovered Service in.
// Expected format: `projects/{project}/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Resource URI to find DiscoveredService for.
// Accepts both project number and project ID and does translation when
// needed.
Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
// contains filtered or unexported fields
}Request for LookupDiscoveredService.
func (*LookupDiscoveredServiceRequest) Descriptor
func (*LookupDiscoveredServiceRequest) Descriptor() ([]byte, []int)Deprecated: Use LookupDiscoveredServiceRequest.ProtoReflect.Descriptor instead.
func (*LookupDiscoveredServiceRequest) GetParent
func (x *LookupDiscoveredServiceRequest) GetParent() stringfunc (*LookupDiscoveredServiceRequest) GetUri
func (x *LookupDiscoveredServiceRequest) GetUri() stringfunc (*LookupDiscoveredServiceRequest) ProtoMessage
func (*LookupDiscoveredServiceRequest) ProtoMessage()func (*LookupDiscoveredServiceRequest) ProtoReflect
func (x *LookupDiscoveredServiceRequest) ProtoReflect() protoreflect.Messagefunc (*LookupDiscoveredServiceRequest) Reset
func (x *LookupDiscoveredServiceRequest) Reset()func (*LookupDiscoveredServiceRequest) String
func (x *LookupDiscoveredServiceRequest) String() stringLookupDiscoveredServiceResponse
type LookupDiscoveredServiceResponse struct {
// Discovered Service if exists, empty otherwise.
DiscoveredService *DiscoveredService `protobuf:"bytes,1,opt,name=discovered_service,json=discoveredService,proto3" json:"discovered_service,omitempty"`
// contains filtered or unexported fields
}Response for LookupDiscoveredService.
func (*LookupDiscoveredServiceResponse) Descriptor
func (*LookupDiscoveredServiceResponse) Descriptor() ([]byte, []int)Deprecated: Use LookupDiscoveredServiceResponse.ProtoReflect.Descriptor instead.
func (*LookupDiscoveredServiceResponse) GetDiscoveredService
func (x *LookupDiscoveredServiceResponse) GetDiscoveredService() *DiscoveredServicefunc (*LookupDiscoveredServiceResponse) ProtoMessage
func (*LookupDiscoveredServiceResponse) ProtoMessage()func (*LookupDiscoveredServiceResponse) ProtoReflect
func (x *LookupDiscoveredServiceResponse) ProtoReflect() protoreflect.Messagefunc (*LookupDiscoveredServiceResponse) Reset
func (x *LookupDiscoveredServiceResponse) Reset()func (*LookupDiscoveredServiceResponse) String
func (x *LookupDiscoveredServiceResponse) String() stringLookupDiscoveredWorkloadRequest
type LookupDiscoveredWorkloadRequest struct {
// Required. Host project ID and location to lookup Discovered Workload in.
// Expected format: `projects/{project}/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Resource URI to find Discovered Workload for.
// Accepts both project number and project ID and does translation when
// needed.
Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
// contains filtered or unexported fields
}Request for LookupDiscoveredWorkload.
func (*LookupDiscoveredWorkloadRequest) Descriptor
func (*LookupDiscoveredWorkloadRequest) Descriptor() ([]byte, []int)Deprecated: Use LookupDiscoveredWorkloadRequest.ProtoReflect.Descriptor instead.
func (*LookupDiscoveredWorkloadRequest) GetParent
func (x *LookupDiscoveredWorkloadRequest) GetParent() stringfunc (*LookupDiscoveredWorkloadRequest) GetUri
func (x *LookupDiscoveredWorkloadRequest) GetUri() stringfunc (*LookupDiscoveredWorkloadRequest) ProtoMessage
func (*LookupDiscoveredWorkloadRequest) ProtoMessage()func (*LookupDiscoveredWorkloadRequest) ProtoReflect
func (x *LookupDiscoveredWorkloadRequest) ProtoReflect() protoreflect.Messagefunc (*LookupDiscoveredWorkloadRequest) Reset
func (x *LookupDiscoveredWorkloadRequest) Reset()func (*LookupDiscoveredWorkloadRequest) String
func (x *LookupDiscoveredWorkloadRequest) String() stringLookupDiscoveredWorkloadResponse
type LookupDiscoveredWorkloadResponse struct {
// Discovered Workload if exists, empty otherwise.
DiscoveredWorkload *DiscoveredWorkload `protobuf:"bytes,1,opt,name=discovered_workload,json=discoveredWorkload,proto3" json:"discovered_workload,omitempty"`
// contains filtered or unexported fields
}Response for LookupDiscoveredWorkload.
func (*LookupDiscoveredWorkloadResponse) Descriptor
func (*LookupDiscoveredWorkloadResponse) Descriptor() ([]byte, []int)Deprecated: Use LookupDiscoveredWorkloadResponse.ProtoReflect.Descriptor instead.
func (*LookupDiscoveredWorkloadResponse) GetDiscoveredWorkload
func (x *LookupDiscoveredWorkloadResponse) GetDiscoveredWorkload() *DiscoveredWorkloadfunc (*LookupDiscoveredWorkloadResponse) ProtoMessage
func (*LookupDiscoveredWorkloadResponse) ProtoMessage()func (*LookupDiscoveredWorkloadResponse) ProtoReflect
func (x *LookupDiscoveredWorkloadResponse) ProtoReflect() protoreflect.Messagefunc (*LookupDiscoveredWorkloadResponse) Reset
func (x *LookupDiscoveredWorkloadResponse) Reset()func (*LookupDiscoveredWorkloadResponse) String
func (x *LookupDiscoveredWorkloadResponse) String() stringLookupServiceProjectAttachmentRequest
type LookupServiceProjectAttachmentRequest struct {
// Required. Service project ID and location to lookup service project
// attachment for. Only global location is supported. Expected format:
// `projects/{project}/locations/{location}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for LookupServiceProjectAttachment.
func (*LookupServiceProjectAttachmentRequest) Descriptor
func (*LookupServiceProjectAttachmentRequest) Descriptor() ([]byte, []int)Deprecated: Use LookupServiceProjectAttachmentRequest.ProtoReflect.Descriptor instead.
func (*LookupServiceProjectAttachmentRequest) GetName
func (x *LookupServiceProjectAttachmentRequest) GetName() stringfunc (*LookupServiceProjectAttachmentRequest) ProtoMessage
func (*LookupServiceProjectAttachmentRequest) ProtoMessage()func (*LookupServiceProjectAttachmentRequest) ProtoReflect
func (x *LookupServiceProjectAttachmentRequest) ProtoReflect() protoreflect.Messagefunc (*LookupServiceProjectAttachmentRequest) Reset
func (x *LookupServiceProjectAttachmentRequest) Reset()func (*LookupServiceProjectAttachmentRequest) String
func (x *LookupServiceProjectAttachmentRequest) String() stringLookupServiceProjectAttachmentResponse
type LookupServiceProjectAttachmentResponse struct {
// Service project attachment for a project if exists, empty otherwise.
ServiceProjectAttachment *ServiceProjectAttachment `protobuf:"bytes,1,opt,name=service_project_attachment,json=serviceProjectAttachment,proto3" json:"service_project_attachment,omitempty"`
// contains filtered or unexported fields
}Response for LookupServiceProjectAttachment.
func (*LookupServiceProjectAttachmentResponse) Descriptor
func (*LookupServiceProjectAttachmentResponse) Descriptor() ([]byte, []int)Deprecated: Use LookupServiceProjectAttachmentResponse.ProtoReflect.Descriptor instead.
func (*LookupServiceProjectAttachmentResponse) GetServiceProjectAttachment
func (x *LookupServiceProjectAttachmentResponse) GetServiceProjectAttachment() *ServiceProjectAttachmentfunc (*LookupServiceProjectAttachmentResponse) ProtoMessage
func (*LookupServiceProjectAttachmentResponse) ProtoMessage()func (*LookupServiceProjectAttachmentResponse) ProtoReflect
func (x *LookupServiceProjectAttachmentResponse) ProtoReflect() protoreflect.Messagefunc (*LookupServiceProjectAttachmentResponse) Reset
func (x *LookupServiceProjectAttachmentResponse) Reset()func (*LookupServiceProjectAttachmentResponse) String
func (x *LookupServiceProjectAttachmentResponse) String() stringOperationMetadata
type OperationMetadata 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
// [google.longrunning.Operation.error][google.longrunning.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 (*OperationMetadata) Descriptor
func (*OperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
func (*OperationMetadata) GetApiVersion
func (x *OperationMetadata) GetApiVersion() stringfunc (*OperationMetadata) GetCreateTime
func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*OperationMetadata) GetEndTime
func (x *OperationMetadata) GetEndTime() *timestamppb.Timestampfunc (*OperationMetadata) GetRequestedCancellation
func (x *OperationMetadata) GetRequestedCancellation() boolfunc (*OperationMetadata) GetStatusMessage
func (x *OperationMetadata) GetStatusMessage() stringfunc (*OperationMetadata) GetTarget
func (x *OperationMetadata) GetTarget() stringfunc (*OperationMetadata) GetVerb
func (x *OperationMetadata) GetVerb() stringfunc (*OperationMetadata) ProtoMessage
func (*OperationMetadata) ProtoMessage()func (*OperationMetadata) ProtoReflect
func (x *OperationMetadata) ProtoReflect() protoreflect.Messagefunc (*OperationMetadata) Reset
func (x *OperationMetadata) Reset()func (*OperationMetadata) String
func (x *OperationMetadata) String() stringScope
type Scope struct {
// Required. Scope Type.
Type Scope_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.apphub.v1.Scope_Type" json:"type,omitempty"`
// contains filtered or unexported fields
}Scope of an application.
func (*Scope) Descriptor
Deprecated: Use Scope.ProtoReflect.Descriptor instead.
func (*Scope) GetType
func (x *Scope) GetType() Scope_Typefunc (*Scope) ProtoMessage
func (*Scope) ProtoMessage()func (*Scope) ProtoReflect
func (x *Scope) ProtoReflect() protoreflect.Messagefunc (*Scope) Reset
func (x *Scope) Reset()func (*Scope) String
Scope_Type
type Scope_Type int32Scope Type.
Scope_TYPE_UNSPECIFIED, Scope_REGIONAL, Scope_GLOBAL
const (
// Unspecified type.
Scope_TYPE_UNSPECIFIED Scope_Type = 0
// Regional type.
Scope_REGIONAL Scope_Type = 1
// Global type.
Scope_GLOBAL Scope_Type = 2
)func (Scope_Type) Descriptor
func (Scope_Type) Descriptor() protoreflect.EnumDescriptorfunc (Scope_Type) Enum
func (x Scope_Type) Enum() *Scope_Typefunc (Scope_Type) EnumDescriptor
func (Scope_Type) EnumDescriptor() ([]byte, []int)Deprecated: Use Scope_Type.Descriptor instead.
func (Scope_Type) Number
func (x Scope_Type) Number() protoreflect.EnumNumberfunc (Scope_Type) String
func (x Scope_Type) String() stringfunc (Scope_Type) Type
func (Scope_Type) Type() protoreflect.EnumTypeService
type Service struct {
// Identifier. The resource name of a Service. Format:
// `"projects/{host-project-id}/locations/{location}/applications/{application-id}/services/{service-id}"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. User-defined name for the Service.
// Can have a maximum length of 63 characters.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. User-defined description of a Service.
// Can have a maximum length of 2048 characters.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Output only. Reference to an underlying networking resource that can
// comprise a Service. These are immutable.
ServiceReference *ServiceReference `protobuf:"bytes,4,opt,name=service_reference,json=serviceReference,proto3" json:"service_reference,omitempty"`
// Output only. Properties of an underlying compute resource that can comprise
// a Service. These are immutable.
ServiceProperties *ServiceProperties `protobuf:"bytes,5,opt,name=service_properties,json=serviceProperties,proto3" json:"service_properties,omitempty"`
// Optional. Consumer provided attributes.
Attributes *Attributes `protobuf:"bytes,6,opt,name=attributes,proto3" json:"attributes,omitempty"`
// Required. Immutable. The resource name of the original discovered service.
DiscoveredService string `protobuf:"bytes,7,opt,name=discovered_service,json=discoveredService,proto3" json:"discovered_service,omitempty"`
// Output only. Create time.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Update time.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. A universally unique identifier (UUID) for the `Service` in
// the UUID4 format.
Uid string `protobuf:"bytes,10,opt,name=uid,proto3" json:"uid,omitempty"`
// Output only. Service state.
State Service_State `protobuf:"varint,11,opt,name=state,proto3,enum=google.cloud.apphub.v1.Service_State" json:"state,omitempty"`
// contains filtered or unexported fields
}Service is an App Hub data model that contains a discovered service, which represents a network or API interface that exposes some functionality to clients for consumption over the network.
func (*Service) Descriptor
Deprecated: Use Service.ProtoReflect.Descriptor instead.
func (*Service) GetAttributes
func (x *Service) GetAttributes() *Attributesfunc (*Service) GetCreateTime
func (x *Service) GetCreateTime() *timestamppb.Timestampfunc (*Service) GetDescription
func (*Service) GetDiscoveredService
func (*Service) GetDisplayName
func (*Service) GetName
func (*Service) GetServiceProperties
func (x *Service) GetServiceProperties() *ServicePropertiesfunc (*Service) GetServiceReference
func (x *Service) GetServiceReference() *ServiceReferencefunc (*Service) GetState
func (x *Service) GetState() Service_Statefunc (*Service) GetUid
func (*Service) GetUpdateTime
func (x *Service) GetUpdateTime() *timestamppb.Timestampfunc (*Service) ProtoMessage
func (*Service) ProtoMessage()func (*Service) ProtoReflect
func (x *Service) ProtoReflect() protoreflect.Messagefunc (*Service) Reset
func (x *Service) Reset()func (*Service) String
ServiceProjectAttachment
type ServiceProjectAttachment struct {
// Identifier. The resource name of a ServiceProjectAttachment. Format:
// `"projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}."`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Immutable. Service project name in the format: `"projects/abc"`
// or `"projects/123"`. As input, project name with either project id or
// number are accepted. As output, this field will contain project number.
ServiceProject string `protobuf:"bytes,2,opt,name=service_project,json=serviceProject,proto3" json:"service_project,omitempty"`
// Output only. Create time.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. A globally unique identifier (in UUID4 format) for the
// `ServiceProjectAttachment`.
Uid string `protobuf:"bytes,4,opt,name=uid,proto3" json:"uid,omitempty"`
// Output only. ServiceProjectAttachment state.
State ServiceProjectAttachment_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.cloud.apphub.v1.ServiceProjectAttachment_State" json:"state,omitempty"`
// contains filtered or unexported fields
}ServiceProjectAttachment represents an attachment from a service project to a host project. Service projects contain the underlying cloud infrastructure resources, and expose these resources to the host project through a ServiceProjectAttachment. With the attachments, the host project can provide an aggregated view of resources across all service projects.
func (*ServiceProjectAttachment) Descriptor
func (*ServiceProjectAttachment) Descriptor() ([]byte, []int)Deprecated: Use ServiceProjectAttachment.ProtoReflect.Descriptor instead.
func (*ServiceProjectAttachment) GetCreateTime
func (x *ServiceProjectAttachment) GetCreateTime() *timestamppb.Timestampfunc (*ServiceProjectAttachment) GetName
func (x *ServiceProjectAttachment) GetName() stringfunc (*ServiceProjectAttachment) GetServiceProject
func (x *ServiceProjectAttachment) GetServiceProject() stringfunc (*ServiceProjectAttachment) GetState
func (x *ServiceProjectAttachment) GetState() ServiceProjectAttachment_Statefunc (*ServiceProjectAttachment) GetUid
func (x *ServiceProjectAttachment) GetUid() stringfunc (*ServiceProjectAttachment) ProtoMessage
func (*ServiceProjectAttachment) ProtoMessage()func (*ServiceProjectAttachment) ProtoReflect
func (x *ServiceProjectAttachment) ProtoReflect() protoreflect.Messagefunc (*ServiceProjectAttachment) Reset
func (x *ServiceProjectAttachment) Reset()func (*ServiceProjectAttachment) String
func (x *ServiceProjectAttachment) String() stringServiceProjectAttachment_State
type ServiceProjectAttachment_State int32ServiceProjectAttachment state.
ServiceProjectAttachment_STATE_UNSPECIFIED, ServiceProjectAttachment_CREATING, ServiceProjectAttachment_ACTIVE, ServiceProjectAttachment_DELETING
const (
// Unspecified state.
ServiceProjectAttachment_STATE_UNSPECIFIED ServiceProjectAttachment_State = 0
// The ServiceProjectAttachment is being created.
ServiceProjectAttachment_CREATING ServiceProjectAttachment_State = 1
// The ServiceProjectAttachment is ready.
// This means Services and Workloads under the corresponding
// ServiceProjectAttachment is ready for registration.
ServiceProjectAttachment_ACTIVE ServiceProjectAttachment_State = 2
// The ServiceProjectAttachment is being deleted.
ServiceProjectAttachment_DELETING ServiceProjectAttachment_State = 3
)func (ServiceProjectAttachment_State) Descriptor
func (ServiceProjectAttachment_State) Descriptor() protoreflect.EnumDescriptorfunc (ServiceProjectAttachment_State) Enum
func (x ServiceProjectAttachment_State) Enum() *ServiceProjectAttachment_Statefunc (ServiceProjectAttachment_State) EnumDescriptor
func (ServiceProjectAttachment_State) EnumDescriptor() ([]byte, []int)Deprecated: Use ServiceProjectAttachment_State.Descriptor instead.
func (ServiceProjectAttachment_State) Number
func (x ServiceProjectAttachment_State) Number() protoreflect.EnumNumberfunc (ServiceProjectAttachment_State) String
func (x ServiceProjectAttachment_State) String() stringfunc (ServiceProjectAttachment_State) Type
func (ServiceProjectAttachment_State) Type() protoreflect.EnumTypeServiceProperties
type ServiceProperties struct {
// Output only. The service project identifier that the underlying cloud
// resource resides in.
GcpProject string `protobuf:"bytes,1,opt,name=gcp_project,json=gcpProject,proto3" json:"gcp_project,omitempty"`
// Output only. The location that the underlying resource resides in, for
// example, us-west1.
Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
// Output only. The location that the underlying resource resides in if it is
// zonal, for example, us-west1-a).
Zone string `protobuf:"bytes,3,opt,name=zone,proto3" json:"zone,omitempty"`
// contains filtered or unexported fields
}Properties of an underlying cloud resource that can comprise a Service.
func (*ServiceProperties) Descriptor
func (*ServiceProperties) Descriptor() ([]byte, []int)Deprecated: Use ServiceProperties.ProtoReflect.Descriptor instead.
func (*ServiceProperties) GetGcpProject
func (x *ServiceProperties) GetGcpProject() stringfunc (*ServiceProperties) GetLocation
func (x *ServiceProperties) GetLocation() stringfunc (*ServiceProperties) GetZone
func (x *ServiceProperties) GetZone() stringfunc (*ServiceProperties) ProtoMessage
func (*ServiceProperties) ProtoMessage()func (*ServiceProperties) ProtoReflect
func (x *ServiceProperties) ProtoReflect() protoreflect.Messagefunc (*ServiceProperties) Reset
func (x *ServiceProperties) Reset()func (*ServiceProperties) String
func (x *ServiceProperties) String() stringServiceReference
type ServiceReference struct {
// Output only. The underlying resource URI. For example, URI of Forwarding
// Rule, URL Map, and Backend Service.
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
// contains filtered or unexported fields
}Reference to an underlying networking resource that can comprise a Service.
func (*ServiceReference) Descriptor
func (*ServiceReference) Descriptor() ([]byte, []int)Deprecated: Use ServiceReference.ProtoReflect.Descriptor instead.
func (*ServiceReference) GetUri
func (x *ServiceReference) GetUri() stringfunc (*ServiceReference) ProtoMessage
func (*ServiceReference) ProtoMessage()func (*ServiceReference) ProtoReflect
func (x *ServiceReference) ProtoReflect() protoreflect.Messagefunc (*ServiceReference) Reset
func (x *ServiceReference) Reset()func (*ServiceReference) String
func (x *ServiceReference) String() stringService_State
type Service_State int32Service state.
Service_STATE_UNSPECIFIED, Service_CREATING, Service_ACTIVE, Service_DELETING, Service_DETACHED
const (
// Unspecified state.
Service_STATE_UNSPECIFIED Service_State = 0
// The service is being created.
Service_CREATING Service_State = 1
// The service is ready.
Service_ACTIVE Service_State = 2
// The service is being deleted.
Service_DELETING Service_State = 3
// The underlying networking resources have been deleted.
Service_DETACHED Service_State = 4
)func (Service_State) Descriptor
func (Service_State) Descriptor() protoreflect.EnumDescriptorfunc (Service_State) Enum
func (x Service_State) Enum() *Service_Statefunc (Service_State) EnumDescriptor
func (Service_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Service_State.Descriptor instead.
func (Service_State) Number
func (x Service_State) Number() protoreflect.EnumNumberfunc (Service_State) String
func (x Service_State) String() stringfunc (Service_State) Type
func (Service_State) Type() protoreflect.EnumTypeUnimplementedAppHubServer
type UnimplementedAppHubServer struct {
}UnimplementedAppHubServer should be embedded to have forward compatible implementations.
func (UnimplementedAppHubServer) CreateApplication
func (UnimplementedAppHubServer) CreateApplication(context.Context, *CreateApplicationRequest) (*longrunningpb.Operation, error)func (UnimplementedAppHubServer) CreateService
func (UnimplementedAppHubServer) CreateService(context.Context, *CreateServiceRequest) (*longrunningpb.Operation, error)func (UnimplementedAppHubServer) CreateServiceProjectAttachment
func (UnimplementedAppHubServer) CreateServiceProjectAttachment(context.Context, *CreateServiceProjectAttachmentRequest) (*longrunningpb.Operation, error)func (UnimplementedAppHubServer) CreateWorkload
func (UnimplementedAppHubServer) CreateWorkload(context.Context, *CreateWorkloadRequest) (*longrunningpb.Operation, error)func (UnimplementedAppHubServer) DeleteApplication
func (UnimplementedAppHubServer) DeleteApplication(context.Context, *DeleteApplicationRequest) (*longrunningpb.Operation, error)func (UnimplementedAppHubServer) DeleteService
func (UnimplementedAppHubServer) DeleteService(context.Context, *DeleteServiceRequest) (*longrunningpb.Operation, error)func (UnimplementedAppHubServer) DeleteServiceProjectAttachment
func (UnimplementedAppHubServer) DeleteServiceProjectAttachment(context.Context, *DeleteServiceProjectAttachmentRequest) (*longrunningpb.Operation, error)func (UnimplementedAppHubServer) DeleteWorkload
func (UnimplementedAppHubServer) DeleteWorkload(context.Context, *DeleteWorkloadRequest) (*longrunningpb.Operation, error)func (UnimplementedAppHubServer) DetachServiceProjectAttachment
func (UnimplementedAppHubServer) DetachServiceProjectAttachment(context.Context, *DetachServiceProjectAttachmentRequest) (*DetachServiceProjectAttachmentResponse, error)func (UnimplementedAppHubServer) GetApplication
func (UnimplementedAppHubServer) GetApplication(context.Context, *GetApplicationRequest) (*Application, error)func (UnimplementedAppHubServer) GetDiscoveredService
func (UnimplementedAppHubServer) GetDiscoveredService(context.Context, *GetDiscoveredServiceRequest) (*DiscoveredService, error)func (UnimplementedAppHubServer) GetDiscoveredWorkload
func (UnimplementedAppHubServer) GetDiscoveredWorkload(context.Context, *GetDiscoveredWorkloadRequest) (*DiscoveredWorkload, error)func (UnimplementedAppHubServer) GetService
func (UnimplementedAppHubServer) GetService(context.Context, *GetServiceRequest) (*Service, error)func (UnimplementedAppHubServer) GetServiceProjectAttachment
func (UnimplementedAppHubServer) GetServiceProjectAttachment(context.Context, *GetServiceProjectAttachmentRequest) (*ServiceProjectAttachment, error)func (UnimplementedAppHubServer) GetWorkload
func (UnimplementedAppHubServer) GetWorkload(context.Context, *GetWorkloadRequest) (*Workload, error)func (UnimplementedAppHubServer) ListApplications
func (UnimplementedAppHubServer) ListApplications(context.Context, *ListApplicationsRequest) (*ListApplicationsResponse, error)func (UnimplementedAppHubServer) ListDiscoveredServices
func (UnimplementedAppHubServer) ListDiscoveredServices(context.Context, *ListDiscoveredServicesRequest) (*ListDiscoveredServicesResponse, error)func (UnimplementedAppHubServer) ListDiscoveredWorkloads
func (UnimplementedAppHubServer) ListDiscoveredWorkloads(context.Context, *ListDiscoveredWorkloadsRequest) (*ListDiscoveredWorkloadsResponse, error)func (UnimplementedAppHubServer) ListServiceProjectAttachments
func (UnimplementedAppHubServer) ListServiceProjectAttachments(context.Context, *ListServiceProjectAttachmentsRequest) (*ListServiceProjectAttachmentsResponse, error)func (UnimplementedAppHubServer) ListServices
func (UnimplementedAppHubServer) ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error)func (UnimplementedAppHubServer) ListWorkloads
func (UnimplementedAppHubServer) ListWorkloads(context.Context, *ListWorkloadsRequest) (*ListWorkloadsResponse, error)func (UnimplementedAppHubServer) LookupDiscoveredService
func (UnimplementedAppHubServer) LookupDiscoveredService(context.Context, *LookupDiscoveredServiceRequest) (*LookupDiscoveredServiceResponse, error)func (UnimplementedAppHubServer) LookupDiscoveredWorkload
func (UnimplementedAppHubServer) LookupDiscoveredWorkload(context.Context, *LookupDiscoveredWorkloadRequest) (*LookupDiscoveredWorkloadResponse, error)func (UnimplementedAppHubServer) LookupServiceProjectAttachment
func (UnimplementedAppHubServer) LookupServiceProjectAttachment(context.Context, *LookupServiceProjectAttachmentRequest) (*LookupServiceProjectAttachmentResponse, error)func (UnimplementedAppHubServer) UpdateApplication
func (UnimplementedAppHubServer) UpdateApplication(context.Context, *UpdateApplicationRequest) (*longrunningpb.Operation, error)func (UnimplementedAppHubServer) UpdateService
func (UnimplementedAppHubServer) UpdateService(context.Context, *UpdateServiceRequest) (*longrunningpb.Operation, error)func (UnimplementedAppHubServer) UpdateWorkload
func (UnimplementedAppHubServer) UpdateWorkload(context.Context, *UpdateWorkloadRequest) (*longrunningpb.Operation, error)UnsafeAppHubServer
type UnsafeAppHubServer interface {
// contains filtered or unexported methods
}UnsafeAppHubServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AppHubServer will result in compilation errors.
UpdateApplicationRequest
type UpdateApplicationRequest struct {
// Required. Field mask is used to specify the fields to be overwritten in the
// Application resource by the update.
// The fields specified in the update_mask are relative to the resource, not
// the full request.
// The API changes the values of the fields as specified in the update_mask.
// The API ignores the values of all fields not covered by the update_mask.
// You can also unset a field by not specifying it in the updated message, but
// adding the field to the mask. This clears whatever value the field
// previously had.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Required. The resource being updated.
Application *Application `protobuf:"bytes,2,opt,name=application,proto3" json:"application,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
}Request for UpdateApplication.
func (*UpdateApplicationRequest) Descriptor
func (*UpdateApplicationRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateApplicationRequest.ProtoReflect.Descriptor instead.
func (*UpdateApplicationRequest) GetApplication
func (x *UpdateApplicationRequest) GetApplication() *Applicationfunc (*UpdateApplicationRequest) GetRequestId
func (x *UpdateApplicationRequest) GetRequestId() stringfunc (*UpdateApplicationRequest) GetUpdateMask
func (x *UpdateApplicationRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateApplicationRequest) ProtoMessage
func (*UpdateApplicationRequest) ProtoMessage()func (*UpdateApplicationRequest) ProtoReflect
func (x *UpdateApplicationRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateApplicationRequest) Reset
func (x *UpdateApplicationRequest) Reset()func (*UpdateApplicationRequest) String
func (x *UpdateApplicationRequest) String() stringUpdateServiceRequest
type UpdateServiceRequest struct {
// Required. Field mask is used to specify the fields to be overwritten in the
// Service resource by the update.
// The fields specified in the update_mask are relative to the resource, not
// the full request.
// The API changes the values of the fields as specified in the update_mask.
// The API ignores the values of all fields not covered by the update_mask.
// You can also unset a field by not specifying it in the updated message, but
// adding the field to the mask. This clears whatever value the field
// previously had.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Required. The resource being updated.
Service *Service `protobuf:"bytes,2,opt,name=service,proto3" json:"service,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
}Request for UpdateService.
func (*UpdateServiceRequest) Descriptor
func (*UpdateServiceRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateServiceRequest.ProtoReflect.Descriptor instead.
func (*UpdateServiceRequest) GetRequestId
func (x *UpdateServiceRequest) GetRequestId() stringfunc (*UpdateServiceRequest) GetService
func (x *UpdateServiceRequest) GetService() *Servicefunc (*UpdateServiceRequest) GetUpdateMask
func (x *UpdateServiceRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateServiceRequest) ProtoMessage
func (*UpdateServiceRequest) ProtoMessage()func (*UpdateServiceRequest) ProtoReflect
func (x *UpdateServiceRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateServiceRequest) Reset
func (x *UpdateServiceRequest) Reset()func (*UpdateServiceRequest) String
func (x *UpdateServiceRequest) String() stringUpdateWorkloadRequest
type UpdateWorkloadRequest struct {
// Required. Field mask is used to specify the fields to be overwritten in the
// Workload resource by the update.
// The fields specified in the update_mask are relative to the resource, not
// the full request.
// The API changes the values of the fields as specified in the update_mask.
// The API ignores the values of all fields not covered by the update_mask.
// You can also unset a field by not specifying it in the updated message, but
// adding the field to the mask. This clears whatever value the field
// previously had.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Required. The resource being updated.
Workload *Workload `protobuf:"bytes,2,opt,name=workload,proto3" json:"workload,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
}Request for UpdateWorkload.
func (*UpdateWorkloadRequest) Descriptor
func (*UpdateWorkloadRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateWorkloadRequest.ProtoReflect.Descriptor instead.
func (*UpdateWorkloadRequest) GetRequestId
func (x *UpdateWorkloadRequest) GetRequestId() stringfunc (*UpdateWorkloadRequest) GetUpdateMask
func (x *UpdateWorkloadRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateWorkloadRequest) GetWorkload
func (x *UpdateWorkloadRequest) GetWorkload() *Workloadfunc (*UpdateWorkloadRequest) ProtoMessage
func (*UpdateWorkloadRequest) ProtoMessage()func (*UpdateWorkloadRequest) ProtoReflect
func (x *UpdateWorkloadRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateWorkloadRequest) Reset
func (x *UpdateWorkloadRequest) Reset()func (*UpdateWorkloadRequest) String
func (x *UpdateWorkloadRequest) String() stringWorkload
type Workload struct {
// Identifier. The resource name of the Workload. Format:
// `"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. User-defined name for the Workload.
// Can have a maximum length of 63 characters.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. User-defined description of a Workload.
// Can have a maximum length of 2048 characters.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Output only. Reference of an underlying compute resource represented by the
// Workload. These are immutable.
WorkloadReference *WorkloadReference `protobuf:"bytes,4,opt,name=workload_reference,json=workloadReference,proto3" json:"workload_reference,omitempty"`
// Output only. Properties of an underlying compute resource represented by
// the Workload. These are immutable.
WorkloadProperties *WorkloadProperties `protobuf:"bytes,5,opt,name=workload_properties,json=workloadProperties,proto3" json:"workload_properties,omitempty"`
// Required. Immutable. The resource name of the original discovered workload.
DiscoveredWorkload string `protobuf:"bytes,6,opt,name=discovered_workload,json=discoveredWorkload,proto3" json:"discovered_workload,omitempty"`
// Optional. Consumer provided attributes.
Attributes *Attributes `protobuf:"bytes,7,opt,name=attributes,proto3" json:"attributes,omitempty"`
// Output only. Create time.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Update time.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. A universally unique identifier (UUID) for the `Workload` in
// the UUID4 format.
Uid string `protobuf:"bytes,10,opt,name=uid,proto3" json:"uid,omitempty"`
// Output only. Workload state.
State Workload_State `protobuf:"varint,11,opt,name=state,proto3,enum=google.cloud.apphub.v1.Workload_State" json:"state,omitempty"`
// contains filtered or unexported fields
}Workload is an App Hub data model that contains a discovered workload, which represents a binary deployment (such as managed instance groups (MIGs) and GKE deployments) that performs the smallest logical subset of business functionality.
func (*Workload) Descriptor
Deprecated: Use Workload.ProtoReflect.Descriptor instead.
func (*Workload) GetAttributes
func (x *Workload) GetAttributes() *Attributesfunc (*Workload) GetCreateTime
func (x *Workload) GetCreateTime() *timestamppb.Timestampfunc (*Workload) GetDescription
func (*Workload) GetDiscoveredWorkload
func (*Workload) GetDisplayName
func (*Workload) GetName
func (*Workload) GetState
func (x *Workload) GetState() Workload_Statefunc (*Workload) GetUid
func (*Workload) GetUpdateTime
func (x *Workload) GetUpdateTime() *timestamppb.Timestampfunc (*Workload) GetWorkloadProperties
func (x *Workload) GetWorkloadProperties() *WorkloadPropertiesfunc (*Workload) GetWorkloadReference
func (x *Workload) GetWorkloadReference() *WorkloadReferencefunc (*Workload) ProtoMessage
func (*Workload) ProtoMessage()func (*Workload) ProtoReflect
func (x *Workload) ProtoReflect() protoreflect.Messagefunc (*Workload) Reset
func (x *Workload) Reset()func (*Workload) String
WorkloadProperties
type WorkloadProperties struct {
// Output only. The service project identifier that the underlying cloud
// resource resides in. Empty for non-cloud resources.
GcpProject string `protobuf:"bytes,1,opt,name=gcp_project,json=gcpProject,proto3" json:"gcp_project,omitempty"`
// Output only. The location that the underlying compute resource resides in
// (for example, us-west1).
Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
// Output only. The location that the underlying compute resource resides in
// if it is zonal (for example, us-west1-a).
Zone string `protobuf:"bytes,3,opt,name=zone,proto3" json:"zone,omitempty"`
// contains filtered or unexported fields
}Properties of an underlying compute resource represented by the Workload.
func (*WorkloadProperties) Descriptor
func (*WorkloadProperties) Descriptor() ([]byte, []int)Deprecated: Use WorkloadProperties.ProtoReflect.Descriptor instead.
func (*WorkloadProperties) GetGcpProject
func (x *WorkloadProperties) GetGcpProject() stringfunc (*WorkloadProperties) GetLocation
func (x *WorkloadProperties) GetLocation() stringfunc (*WorkloadProperties) GetZone
func (x *WorkloadProperties) GetZone() stringfunc (*WorkloadProperties) ProtoMessage
func (*WorkloadProperties) ProtoMessage()func (*WorkloadProperties) ProtoReflect
func (x *WorkloadProperties) ProtoReflect() protoreflect.Messagefunc (*WorkloadProperties) Reset
func (x *WorkloadProperties) Reset()func (*WorkloadProperties) String
func (x *WorkloadProperties) String() stringWorkloadReference
type WorkloadReference struct {
// Output only. The underlying compute resource uri.
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
// contains filtered or unexported fields
}Reference of an underlying compute resource represented by the Workload.
func (*WorkloadReference) Descriptor
func (*WorkloadReference) Descriptor() ([]byte, []int)Deprecated: Use WorkloadReference.ProtoReflect.Descriptor instead.
func (*WorkloadReference) GetUri
func (x *WorkloadReference) GetUri() stringfunc (*WorkloadReference) ProtoMessage
func (*WorkloadReference) ProtoMessage()func (*WorkloadReference) ProtoReflect
func (x *WorkloadReference) ProtoReflect() protoreflect.Messagefunc (*WorkloadReference) Reset
func (x *WorkloadReference) Reset()func (*WorkloadReference) String
func (x *WorkloadReference) String() stringWorkload_State
type Workload_State int32Workload state.
Workload_STATE_UNSPECIFIED, Workload_CREATING, Workload_ACTIVE, Workload_DELETING, Workload_DETACHED
const (
// Unspecified state.
Workload_STATE_UNSPECIFIED Workload_State = 0
// The Workload is being created.
Workload_CREATING Workload_State = 1
// The Workload is ready.
Workload_ACTIVE Workload_State = 2
// The Workload is being deleted.
Workload_DELETING Workload_State = 3
// The underlying compute resources have been deleted.
Workload_DETACHED Workload_State = 4
)func (Workload_State) Descriptor
func (Workload_State) Descriptor() protoreflect.EnumDescriptorfunc (Workload_State) Enum
func (x Workload_State) Enum() *Workload_Statefunc (Workload_State) EnumDescriptor
func (Workload_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Workload_State.Descriptor instead.
func (Workload_State) Number
func (x Workload_State) Number() protoreflect.EnumNumberfunc (Workload_State) String
func (x Workload_State) String() stringfunc (Workload_State) Type
func (Workload_State) Type() protoreflect.EnumType