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
.
FileDescriptor
File_google_cloud_apphub_v1_application_proto
var
File_google_cloud_apphub_v1_application_proto
protoreflect
.
FileDescriptor
File_google_cloud_apphub_v1_attributes_proto
var
File_google_cloud_apphub_v1_attributes_proto
protoreflect
.
FileDescriptor
File_google_cloud_apphub_v1_service_project_attachment_proto
var
File_google_cloud_apphub_v1_service_project_attachment_proto
protoreflect
.
FileDescriptor
File_google_cloud_apphub_v1_service_proto
var
File_google_cloud_apphub_v1_service_proto
protoreflect
.
FileDescriptor
File_google_cloud_apphub_v1_workload_proto
var
File_google_cloud_apphub_v1_workload_proto
protoreflect
.
FileDescriptor
Functions
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
)
AppHubClient
AppHubServer
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
()
*
Attributes
func (*Application) GetCreateTime
func
(
x
*
Application
)
GetCreateTime
()
*
timestamppb
.
Timestamp
func (*Application) GetDescription
func
(
x
*
Application
)
GetDescription
()
string
func (*Application) GetDisplayName
func
(
x
*
Application
)
GetDisplayName
()
string
func (*Application) GetName
func
(
x
*
Application
)
GetName
()
string
func (*Application) GetScope
func
(
x
*
Application
)
GetScope
()
*
Scope
func (*Application) GetState
func
(
x
*
Application
)
GetState
()
Application_State
func (*Application) GetUid
func
(
x
*
Application
)
GetUid
()
string
func (*Application) GetUpdateTime
func
(
x
*
Application
)
GetUpdateTime
()
*
timestamppb
.
Timestamp
func (*Application) ProtoMessage
func
(
*
Application
)
ProtoMessage
()
func (*Application) ProtoReflect
func
(
x
*
Application
)
ProtoReflect
()
protoreflect
.
Message
func (*Application) Reset
func
(
x
*
Application
)
Reset
()
func (*Application) String
func
(
x
*
Application
)
String
()
string
Application_State
type
Application_State
int32
Application 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
.
EnumDescriptor
func (Application_State) Enum
func
(
x
Application_State
)
Enum
()
*
Application_State
func (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
.
EnumNumber
func (Application_State) String
func
(
x
Application_State
)
String
()
string
func (Application_State) Type
func
(
Application_State
)
Type
()
protoreflect
.
EnumType
Attributes
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
()
[]
*
ContactInfo
func (*Attributes) GetCriticality
func
(
x
*
Attributes
)
GetCriticality
()
*
Criticality
func (*Attributes) GetDeveloperOwners
func
(
x
*
Attributes
)
GetDeveloperOwners
()
[]
*
ContactInfo
func (*Attributes) GetEnvironment
func
(
x
*
Attributes
)
GetEnvironment
()
*
Environment
func (*Attributes) GetOperatorOwners
func
(
x
*
Attributes
)
GetOperatorOwners
()
[]
*
ContactInfo
func (*Attributes) ProtoMessage
func
(
*
Attributes
)
ProtoMessage
()
func (*Attributes) ProtoReflect
func
(
x
*
Attributes
)
ProtoReflect
()
protoreflect
.
Message
func (*Attributes) Reset
func
(
x
*
Attributes
)
Reset
()
func (*Attributes) String
func
(
x
*
Attributes
)
String
()
string
ContactInfo
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
()
string
func (*ContactInfo) GetEmail
func
(
x
*
ContactInfo
)
GetEmail
()
string
func (*ContactInfo) ProtoMessage
func
(
*
ContactInfo
)
ProtoMessage
()
func (*ContactInfo) ProtoReflect
func
(
x
*
ContactInfo
)
ProtoReflect
()
protoreflect
.
Message
func (*ContactInfo) Reset
func
(
x
*
ContactInfo
)
Reset
()
func (*ContactInfo) String
func
(
x
*
ContactInfo
)
String
()
string
CreateApplicationRequest
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
()
*
Application
func (*CreateApplicationRequest) GetApplicationId
func
(
x
*
CreateApplicationRequest
)
GetApplicationId
()
string
func (*CreateApplicationRequest) GetParent
func
(
x
*
CreateApplicationRequest
)
GetParent
()
string
func (*CreateApplicationRequest) GetRequestId
func
(
x
*
CreateApplicationRequest
)
GetRequestId
()
string
func (*CreateApplicationRequest) ProtoMessage
func
(
*
CreateApplicationRequest
)
ProtoMessage
()
func (*CreateApplicationRequest) ProtoReflect
func
(
x
*
CreateApplicationRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*CreateApplicationRequest) Reset
func
(
x
*
CreateApplicationRequest
)
Reset
()
func (*CreateApplicationRequest) String
func
(
x
*
CreateApplicationRequest
)
String
()
string
CreateServiceProjectAttachmentRequest
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
()
string
func (*CreateServiceProjectAttachmentRequest) GetRequestId
func
(
x
*
CreateServiceProjectAttachmentRequest
)
GetRequestId
()
string
func (*CreateServiceProjectAttachmentRequest) GetServiceProjectAttachment
func
(
x
*
CreateServiceProjectAttachmentRequest
)
GetServiceProjectAttachment
()
*
ServiceProjectAttachment
func (*CreateServiceProjectAttachmentRequest) GetServiceProjectAttachmentId
func
(
x
*
CreateServiceProjectAttachmentRequest
)
GetServiceProjectAttachmentId
()
string
func (*CreateServiceProjectAttachmentRequest) ProtoMessage
func
(
*
CreateServiceProjectAttachmentRequest
)
ProtoMessage
()
func (*CreateServiceProjectAttachmentRequest) ProtoReflect
func
(
x
*
CreateServiceProjectAttachmentRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*CreateServiceProjectAttachmentRequest) Reset
func
(
x
*
CreateServiceProjectAttachmentRequest
)
Reset
()
func (*CreateServiceProjectAttachmentRequest) String
func
(
x
*
CreateServiceProjectAttachmentRequest
)
String
()
string
CreateServiceRequest
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
()
string
func (*CreateServiceRequest) GetRequestId
func
(
x
*
CreateServiceRequest
)
GetRequestId
()
string
func (*CreateServiceRequest) GetService
func
(
x
*
CreateServiceRequest
)
GetService
()
*
Service
func (*CreateServiceRequest) GetServiceId
func
(
x
*
CreateServiceRequest
)
GetServiceId
()
string
func (*CreateServiceRequest) ProtoMessage
func
(
*
CreateServiceRequest
)
ProtoMessage
()
func (*CreateServiceRequest) ProtoReflect
func
(
x
*
CreateServiceRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*CreateServiceRequest) Reset
func
(
x
*
CreateServiceRequest
)
Reset
()
func (*CreateServiceRequest) String
func
(
x
*
CreateServiceRequest
)
String
()
string
CreateWorkloadRequest
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
()
string
func (*CreateWorkloadRequest) GetRequestId
func
(
x
*
CreateWorkloadRequest
)
GetRequestId
()
string
func (*CreateWorkloadRequest) GetWorkload
func
(
x
*
CreateWorkloadRequest
)
GetWorkload
()
*
Workload
func (*CreateWorkloadRequest) GetWorkloadId
func
(
x
*
CreateWorkloadRequest
)
GetWorkloadId
()
string
func (*CreateWorkloadRequest) ProtoMessage
func
(
*
CreateWorkloadRequest
)
ProtoMessage
()
func (*CreateWorkloadRequest) ProtoReflect
func
(
x
*
CreateWorkloadRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*CreateWorkloadRequest) Reset
func
(
x
*
CreateWorkloadRequest
)
Reset
()
func (*CreateWorkloadRequest) String
func
(
x
*
CreateWorkloadRequest
)
String
()
string
Criticality
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_Type
func (*Criticality) ProtoMessage
func
(
*
Criticality
)
ProtoMessage
()
func (*Criticality) ProtoReflect
func
(
x
*
Criticality
)
ProtoReflect
()
protoreflect
.
Message
func (*Criticality) Reset
func
(
x
*
Criticality
)
Reset
()
func (*Criticality) String
func
(
x
*
Criticality
)
String
()
string
Criticality_Type
type
Criticality_Type
int32
Criticality 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
.
EnumDescriptor
func (Criticality_Type) Enum
func
(
x
Criticality_Type
)
Enum
()
*
Criticality_Type
func (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
.
EnumNumber
func (Criticality_Type) String
func
(
x
Criticality_Type
)
String
()
string
func (Criticality_Type) Type
func
(
Criticality_Type
)
Type
()
protoreflect
.
EnumType
DeleteApplicationRequest
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
()
string
func (*DeleteApplicationRequest) GetRequestId
func
(
x
*
DeleteApplicationRequest
)
GetRequestId
()
string
func (*DeleteApplicationRequest) ProtoMessage
func
(
*
DeleteApplicationRequest
)
ProtoMessage
()
func (*DeleteApplicationRequest) ProtoReflect
func
(
x
*
DeleteApplicationRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*DeleteApplicationRequest) Reset
func
(
x
*
DeleteApplicationRequest
)
Reset
()
func (*DeleteApplicationRequest) String
func
(
x
*
DeleteApplicationRequest
)
String
()
string
DeleteServiceProjectAttachmentRequest
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
()
string
func (*DeleteServiceProjectAttachmentRequest) GetRequestId
func
(
x
*
DeleteServiceProjectAttachmentRequest
)
GetRequestId
()
string
func (*DeleteServiceProjectAttachmentRequest) ProtoMessage
func
(
*
DeleteServiceProjectAttachmentRequest
)
ProtoMessage
()
func (*DeleteServiceProjectAttachmentRequest) ProtoReflect
func
(
x
*
DeleteServiceProjectAttachmentRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*DeleteServiceProjectAttachmentRequest) Reset
func
(
x
*
DeleteServiceProjectAttachmentRequest
)
Reset
()
func (*DeleteServiceProjectAttachmentRequest) String
func
(
x
*
DeleteServiceProjectAttachmentRequest
)
String
()
string
DeleteServiceRequest
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
()
string
func (*DeleteServiceRequest) GetRequestId
func
(
x
*
DeleteServiceRequest
)
GetRequestId
()
string
func (*DeleteServiceRequest) ProtoMessage
func
(
*
DeleteServiceRequest
)
ProtoMessage
()
func (*DeleteServiceRequest) ProtoReflect
func
(
x
*
DeleteServiceRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*DeleteServiceRequest) Reset
func
(
x
*
DeleteServiceRequest
)
Reset
()
func (*DeleteServiceRequest) String
func
(
x
*
DeleteServiceRequest
)
String
()
string
DeleteWorkloadRequest
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
()
string
func (*DeleteWorkloadRequest) GetRequestId
func
(
x
*
DeleteWorkloadRequest
)
GetRequestId
()
string
func (*DeleteWorkloadRequest) ProtoMessage
func
(
*
DeleteWorkloadRequest
)
ProtoMessage
()
func (*DeleteWorkloadRequest) ProtoReflect
func
(
x
*
DeleteWorkloadRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*DeleteWorkloadRequest) Reset
func
(
x
*
DeleteWorkloadRequest
)
Reset
()
func (*DeleteWorkloadRequest) String
func
(
x
*
DeleteWorkloadRequest
)
String
()
string
DetachServiceProjectAttachmentRequest
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
()
string
func (*DetachServiceProjectAttachmentRequest) ProtoMessage
func
(
*
DetachServiceProjectAttachmentRequest
)
ProtoMessage
()
func (*DetachServiceProjectAttachmentRequest) ProtoReflect
func
(
x
*
DetachServiceProjectAttachmentRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*DetachServiceProjectAttachmentRequest) Reset
func
(
x
*
DetachServiceProjectAttachmentRequest
)
Reset
()
func (*DetachServiceProjectAttachmentRequest) String
func
(
x
*
DetachServiceProjectAttachmentRequest
)
String
()
string
DetachServiceProjectAttachmentResponse
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
.
Message
func (*DetachServiceProjectAttachmentResponse) Reset
func
(
x
*
DetachServiceProjectAttachmentResponse
)
Reset
()
func (*DetachServiceProjectAttachmentResponse) String
func
(
x
*
DetachServiceProjectAttachmentResponse
)
String
()
string
DiscoveredService
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
()
string
func (*DiscoveredService) GetServiceProperties
func
(
x
*
DiscoveredService
)
GetServiceProperties
()
*
ServiceProperties
func (*DiscoveredService) GetServiceReference
func
(
x
*
DiscoveredService
)
GetServiceReference
()
*
ServiceReference
func (*DiscoveredService) ProtoMessage
func
(
*
DiscoveredService
)
ProtoMessage
()
func (*DiscoveredService) ProtoReflect
func
(
x
*
DiscoveredService
)
ProtoReflect
()
protoreflect
.
Message
func (*DiscoveredService) Reset
func
(
x
*
DiscoveredService
)
Reset
()
func (*DiscoveredService) String
func
(
x
*
DiscoveredService
)
String
()
string
DiscoveredWorkload
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
()
string
func (*DiscoveredWorkload) GetWorkloadProperties
func
(
x
*
DiscoveredWorkload
)
GetWorkloadProperties
()
*
WorkloadProperties
func (*DiscoveredWorkload) GetWorkloadReference
func
(
x
*
DiscoveredWorkload
)
GetWorkloadReference
()
*
WorkloadReference
func (*DiscoveredWorkload) ProtoMessage
func
(
*
DiscoveredWorkload
)
ProtoMessage
()
func (*DiscoveredWorkload) ProtoReflect
func
(
x
*
DiscoveredWorkload
)
ProtoReflect
()
protoreflect
.
Message
func (*DiscoveredWorkload) Reset
func
(
x
*
DiscoveredWorkload
)
Reset
()
func (*DiscoveredWorkload) String
func
(
x
*
DiscoveredWorkload
)
String
()
string
Environment
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_Type
func (*Environment) ProtoMessage
func
(
*
Environment
)
ProtoMessage
()
func (*Environment) ProtoReflect
func
(
x
*
Environment
)
ProtoReflect
()
protoreflect
.
Message
func (*Environment) Reset
func
(
x
*
Environment
)
Reset
()
func (*Environment) String
func
(
x
*
Environment
)
String
()
string
Environment_Type
type
Environment_Type
int32
Environment 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
.
EnumDescriptor
func (Environment_Type) Enum
func
(
x
Environment_Type
)
Enum
()
*
Environment_Type
func (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
.
EnumNumber
func (Environment_Type) String
func
(
x
Environment_Type
)
String
()
string
func (Environment_Type) Type
func
(
Environment_Type
)
Type
()
protoreflect
.
EnumType
GetApplicationRequest
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
()
string
func (*GetApplicationRequest) ProtoMessage
func
(
*
GetApplicationRequest
)
ProtoMessage
()
func (*GetApplicationRequest) ProtoReflect
func
(
x
*
GetApplicationRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*GetApplicationRequest) Reset
func
(
x
*
GetApplicationRequest
)
Reset
()
func (*GetApplicationRequest) String
func
(
x
*
GetApplicationRequest
)
String
()
string
GetDiscoveredServiceRequest
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
()
string
func (*GetDiscoveredServiceRequest) ProtoMessage
func
(
*
GetDiscoveredServiceRequest
)
ProtoMessage
()
func (*GetDiscoveredServiceRequest) ProtoReflect
func
(
x
*
GetDiscoveredServiceRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*GetDiscoveredServiceRequest) Reset
func
(
x
*
GetDiscoveredServiceRequest
)
Reset
()
func (*GetDiscoveredServiceRequest) String
func
(
x
*
GetDiscoveredServiceRequest
)
String
()
string
GetDiscoveredWorkloadRequest
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
()
string
func (*GetDiscoveredWorkloadRequest) ProtoMessage
func
(
*
GetDiscoveredWorkloadRequest
)
ProtoMessage
()
func (*GetDiscoveredWorkloadRequest) ProtoReflect
func
(
x
*
GetDiscoveredWorkloadRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*GetDiscoveredWorkloadRequest) Reset
func
(
x
*
GetDiscoveredWorkloadRequest
)
Reset
()
func (*GetDiscoveredWorkloadRequest) String
func
(
x
*
GetDiscoveredWorkloadRequest
)
String
()
string
GetServiceProjectAttachmentRequest
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
()
string
func (*GetServiceProjectAttachmentRequest) ProtoMessage
func
(
*
GetServiceProjectAttachmentRequest
)
ProtoMessage
()
func (*GetServiceProjectAttachmentRequest) ProtoReflect
func
(
x
*
GetServiceProjectAttachmentRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*GetServiceProjectAttachmentRequest) Reset
func
(
x
*
GetServiceProjectAttachmentRequest
)
Reset
()
func (*GetServiceProjectAttachmentRequest) String
func
(
x
*
GetServiceProjectAttachmentRequest
)
String
()
string
GetServiceRequest
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
()
string
func (*GetServiceRequest) ProtoMessage
func
(
*
GetServiceRequest
)
ProtoMessage
()
func (*GetServiceRequest) ProtoReflect
func
(
x
*
GetServiceRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*GetServiceRequest) Reset
func
(
x
*
GetServiceRequest
)
Reset
()
func (*GetServiceRequest) String
func
(
x
*
GetServiceRequest
)
String
()
string
GetWorkloadRequest
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
()
string
func (*GetWorkloadRequest) ProtoMessage
func
(
*
GetWorkloadRequest
)
ProtoMessage
()
func (*GetWorkloadRequest) ProtoReflect
func
(
x
*
GetWorkloadRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*GetWorkloadRequest) Reset
func
(
x
*
GetWorkloadRequest
)
Reset
()
func (*GetWorkloadRequest) String
func
(
x
*
GetWorkloadRequest
)
String
()
string
ListApplicationsRequest
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
()
string
func (*ListApplicationsRequest) GetOrderBy
func
(
x
*
ListApplicationsRequest
)
GetOrderBy
()
string
func (*ListApplicationsRequest) GetPageSize
func
(
x
*
ListApplicationsRequest
)
GetPageSize
()
int32
func (*ListApplicationsRequest) GetPageToken
func
(
x
*
ListApplicationsRequest
)
GetPageToken
()
string
func (*ListApplicationsRequest) GetParent
func
(
x
*
ListApplicationsRequest
)
GetParent
()
string
func (*ListApplicationsRequest) ProtoMessage
func
(
*
ListApplicationsRequest
)
ProtoMessage
()
func (*ListApplicationsRequest) ProtoReflect
func
(
x
*
ListApplicationsRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*ListApplicationsRequest) Reset
func
(
x
*
ListApplicationsRequest
)
Reset
()
func (*ListApplicationsRequest) String
func
(
x
*
ListApplicationsRequest
)
String
()
string
ListApplicationsResponse
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
()
[]
*
Application
func (*ListApplicationsResponse) GetNextPageToken
func
(
x
*
ListApplicationsResponse
)
GetNextPageToken
()
string
func (*ListApplicationsResponse) GetUnreachable
func
(
x
*
ListApplicationsResponse
)
GetUnreachable
()
[]
string
func (*ListApplicationsResponse) ProtoMessage
func
(
*
ListApplicationsResponse
)
ProtoMessage
()
func (*ListApplicationsResponse) ProtoReflect
func
(
x
*
ListApplicationsResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*ListApplicationsResponse) Reset
func
(
x
*
ListApplicationsResponse
)
Reset
()
func (*ListApplicationsResponse) String
func
(
x
*
ListApplicationsResponse
)
String
()
string
ListDiscoveredServicesRequest
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
()
string
func (*ListDiscoveredServicesRequest) GetOrderBy
func
(
x
*
ListDiscoveredServicesRequest
)
GetOrderBy
()
string
func (*ListDiscoveredServicesRequest) GetPageSize
func
(
x
*
ListDiscoveredServicesRequest
)
GetPageSize
()
int32
func (*ListDiscoveredServicesRequest) GetPageToken
func
(
x
*
ListDiscoveredServicesRequest
)
GetPageToken
()
string
func (*ListDiscoveredServicesRequest) GetParent
func
(
x
*
ListDiscoveredServicesRequest
)
GetParent
()
string
func (*ListDiscoveredServicesRequest) ProtoMessage
func
(
*
ListDiscoveredServicesRequest
)
ProtoMessage
()
func (*ListDiscoveredServicesRequest) ProtoReflect
func
(
x
*
ListDiscoveredServicesRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*ListDiscoveredServicesRequest) Reset
func
(
x
*
ListDiscoveredServicesRequest
)
Reset
()
func (*ListDiscoveredServicesRequest) String
func
(
x
*
ListDiscoveredServicesRequest
)
String
()
string
ListDiscoveredServicesResponse
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
()
[]
*
DiscoveredService
func (*ListDiscoveredServicesResponse) GetNextPageToken
func
(
x
*
ListDiscoveredServicesResponse
)
GetNextPageToken
()
string
func (*ListDiscoveredServicesResponse) GetUnreachable
func
(
x
*
ListDiscoveredServicesResponse
)
GetUnreachable
()
[]
string
func (*ListDiscoveredServicesResponse) ProtoMessage
func
(
*
ListDiscoveredServicesResponse
)
ProtoMessage
()
func (*ListDiscoveredServicesResponse) ProtoReflect
func
(
x
*
ListDiscoveredServicesResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*ListDiscoveredServicesResponse) Reset
func
(
x
*
ListDiscoveredServicesResponse
)
Reset
()
func (*ListDiscoveredServicesResponse) String
func
(
x
*
ListDiscoveredServicesResponse
)
String
()
string
ListDiscoveredWorkloadsRequest
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
()
string
func (*ListDiscoveredWorkloadsRequest) GetOrderBy
func
(
x
*
ListDiscoveredWorkloadsRequest
)
GetOrderBy
()
string
func (*ListDiscoveredWorkloadsRequest) GetPageSize
func
(
x
*
ListDiscoveredWorkloadsRequest
)
GetPageSize
()
int32
func (*ListDiscoveredWorkloadsRequest) GetPageToken
func
(
x
*
ListDiscoveredWorkloadsRequest
)
GetPageToken
()
string
func (*ListDiscoveredWorkloadsRequest) GetParent
func
(
x
*
ListDiscoveredWorkloadsRequest
)
GetParent
()
string
func (*ListDiscoveredWorkloadsRequest) ProtoMessage
func
(
*
ListDiscoveredWorkloadsRequest
)
ProtoMessage
()
func (*ListDiscoveredWorkloadsRequest) ProtoReflect
func
(
x
*
ListDiscoveredWorkloadsRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*ListDiscoveredWorkloadsRequest) Reset
func
(
x
*
ListDiscoveredWorkloadsRequest
)
Reset
()
func (*ListDiscoveredWorkloadsRequest) String
func
(
x
*
ListDiscoveredWorkloadsRequest
)
String
()
string
ListDiscoveredWorkloadsResponse
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
()
[]
*
DiscoveredWorkload
func (*ListDiscoveredWorkloadsResponse) GetNextPageToken
func
(
x
*
ListDiscoveredWorkloadsResponse
)
GetNextPageToken
()
string
func (*ListDiscoveredWorkloadsResponse) GetUnreachable
func
(
x
*
ListDiscoveredWorkloadsResponse
)
GetUnreachable
()
[]
string
func (*ListDiscoveredWorkloadsResponse) ProtoMessage
func
(
*
ListDiscoveredWorkloadsResponse
)
ProtoMessage
()
func (*ListDiscoveredWorkloadsResponse) ProtoReflect
func
(
x
*
ListDiscoveredWorkloadsResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*ListDiscoveredWorkloadsResponse) Reset
func
(
x
*
ListDiscoveredWorkloadsResponse
)
Reset
()
func (*ListDiscoveredWorkloadsResponse) String
func
(
x
*
ListDiscoveredWorkloadsResponse
)
String
()
string
ListServiceProjectAttachmentsRequest
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
()
string
func (*ListServiceProjectAttachmentsRequest) GetOrderBy
func
(
x
*
ListServiceProjectAttachmentsRequest
)
GetOrderBy
()
string
func (*ListServiceProjectAttachmentsRequest) GetPageSize
func
(
x
*
ListServiceProjectAttachmentsRequest
)
GetPageSize
()
int32
func (*ListServiceProjectAttachmentsRequest) GetPageToken
func
(
x
*
ListServiceProjectAttachmentsRequest
)
GetPageToken
()
string
func (*ListServiceProjectAttachmentsRequest) GetParent
func
(
x
*
ListServiceProjectAttachmentsRequest
)
GetParent
()
string
func (*ListServiceProjectAttachmentsRequest) ProtoMessage
func
(
*
ListServiceProjectAttachmentsRequest
)
ProtoMessage
()
func (*ListServiceProjectAttachmentsRequest) ProtoReflect
func
(
x
*
ListServiceProjectAttachmentsRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*ListServiceProjectAttachmentsRequest) Reset
func
(
x
*
ListServiceProjectAttachmentsRequest
)
Reset
()
func (*ListServiceProjectAttachmentsRequest) String
func
(
x
*
ListServiceProjectAttachmentsRequest
)
String
()
string
ListServiceProjectAttachmentsResponse
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
()
string
func (*ListServiceProjectAttachmentsResponse) GetServiceProjectAttachments
func
(
x
*
ListServiceProjectAttachmentsResponse
)
GetServiceProjectAttachments
()
[]
*
ServiceProjectAttachment
func (*ListServiceProjectAttachmentsResponse) GetUnreachable
func
(
x
*
ListServiceProjectAttachmentsResponse
)
GetUnreachable
()
[]
string
func (*ListServiceProjectAttachmentsResponse) ProtoMessage
func
(
*
ListServiceProjectAttachmentsResponse
)
ProtoMessage
()
func (*ListServiceProjectAttachmentsResponse) ProtoReflect
func
(
x
*
ListServiceProjectAttachmentsResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*ListServiceProjectAttachmentsResponse) Reset
func
(
x
*
ListServiceProjectAttachmentsResponse
)
Reset
()
func (*ListServiceProjectAttachmentsResponse) String
func
(
x
*
ListServiceProjectAttachmentsResponse
)
String
()
string
ListServicesRequest
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
()
string
func (*ListServicesRequest) GetOrderBy
func
(
x
*
ListServicesRequest
)
GetOrderBy
()
string
func (*ListServicesRequest) GetPageSize
func
(
x
*
ListServicesRequest
)
GetPageSize
()
int32
func (*ListServicesRequest) GetPageToken
func
(
x
*
ListServicesRequest
)
GetPageToken
()
string
func (*ListServicesRequest) GetParent
func
(
x
*
ListServicesRequest
)
GetParent
()
string
func (*ListServicesRequest) ProtoMessage
func
(
*
ListServicesRequest
)
ProtoMessage
()
func (*ListServicesRequest) ProtoReflect
func
(
x
*
ListServicesRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*ListServicesRequest) Reset
func
(
x
*
ListServicesRequest
)
Reset
()
func (*ListServicesRequest) String
func
(
x
*
ListServicesRequest
)
String
()
string
ListServicesResponse
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
()
string
func (*ListServicesResponse) GetServices
func
(
x
*
ListServicesResponse
)
GetServices
()
[]
*
Service
func (*ListServicesResponse) GetUnreachable
func
(
x
*
ListServicesResponse
)
GetUnreachable
()
[]
string
func (*ListServicesResponse) ProtoMessage
func
(
*
ListServicesResponse
)
ProtoMessage
()
func (*ListServicesResponse) ProtoReflect
func
(
x
*
ListServicesResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*ListServicesResponse) Reset
func
(
x
*
ListServicesResponse
)
Reset
()
func (*ListServicesResponse) String
func
(
x
*
ListServicesResponse
)
String
()
string
ListWorkloadsRequest
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
()
string
func (*ListWorkloadsRequest) GetOrderBy
func
(
x
*
ListWorkloadsRequest
)
GetOrderBy
()
string
func (*ListWorkloadsRequest) GetPageSize
func
(
x
*
ListWorkloadsRequest
)
GetPageSize
()
int32
func (*ListWorkloadsRequest) GetPageToken
func
(
x
*
ListWorkloadsRequest
)
GetPageToken
()
string
func (*ListWorkloadsRequest) GetParent
func
(
x
*
ListWorkloadsRequest
)
GetParent
()
string
func (*ListWorkloadsRequest) ProtoMessage
func
(
*
ListWorkloadsRequest
)
ProtoMessage
()
func (*ListWorkloadsRequest) ProtoReflect
func
(
x
*
ListWorkloadsRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*ListWorkloadsRequest) Reset
func
(
x
*
ListWorkloadsRequest
)
Reset
()
func (*ListWorkloadsRequest) String
func
(
x
*
ListWorkloadsRequest
)
String
()
string
ListWorkloadsResponse
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
()
string
func (*ListWorkloadsResponse) GetUnreachable
func
(
x
*
ListWorkloadsResponse
)
GetUnreachable
()
[]
string
func (*ListWorkloadsResponse) GetWorkloads
func
(
x
*
ListWorkloadsResponse
)
GetWorkloads
()
[]
*
Workload
func (*ListWorkloadsResponse) ProtoMessage
func
(
*
ListWorkloadsResponse
)
ProtoMessage
()
func (*ListWorkloadsResponse) ProtoReflect
func
(
x
*
ListWorkloadsResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*ListWorkloadsResponse) Reset
func
(
x
*
ListWorkloadsResponse
)
Reset
()
func (*ListWorkloadsResponse) String
func
(
x
*
ListWorkloadsResponse
)
String
()
string
LookupDiscoveredServiceRequest
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
()
string
func (*LookupDiscoveredServiceRequest) GetUri
func
(
x
*
LookupDiscoveredServiceRequest
)
GetUri
()
string
func (*LookupDiscoveredServiceRequest) ProtoMessage
func
(
*
LookupDiscoveredServiceRequest
)
ProtoMessage
()
func (*LookupDiscoveredServiceRequest) ProtoReflect
func
(
x
*
LookupDiscoveredServiceRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*LookupDiscoveredServiceRequest) Reset
func
(
x
*
LookupDiscoveredServiceRequest
)
Reset
()
func (*LookupDiscoveredServiceRequest) String
func
(
x
*
LookupDiscoveredServiceRequest
)
String
()
string
LookupDiscoveredServiceResponse
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
()
*
DiscoveredService
func (*LookupDiscoveredServiceResponse) ProtoMessage
func
(
*
LookupDiscoveredServiceResponse
)
ProtoMessage
()
func (*LookupDiscoveredServiceResponse) ProtoReflect
func
(
x
*
LookupDiscoveredServiceResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*LookupDiscoveredServiceResponse) Reset
func
(
x
*
LookupDiscoveredServiceResponse
)
Reset
()
func (*LookupDiscoveredServiceResponse) String
func
(
x
*
LookupDiscoveredServiceResponse
)
String
()
string
LookupDiscoveredWorkloadRequest
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
()
string
func (*LookupDiscoveredWorkloadRequest) GetUri
func
(
x
*
LookupDiscoveredWorkloadRequest
)
GetUri
()
string
func (*LookupDiscoveredWorkloadRequest) ProtoMessage
func
(
*
LookupDiscoveredWorkloadRequest
)
ProtoMessage
()
func (*LookupDiscoveredWorkloadRequest) ProtoReflect
func
(
x
*
LookupDiscoveredWorkloadRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*LookupDiscoveredWorkloadRequest) Reset
func
(
x
*
LookupDiscoveredWorkloadRequest
)
Reset
()
func (*LookupDiscoveredWorkloadRequest) String
func
(
x
*
LookupDiscoveredWorkloadRequest
)
String
()
string
LookupDiscoveredWorkloadResponse
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
()
*
DiscoveredWorkload
func (*LookupDiscoveredWorkloadResponse) ProtoMessage
func
(
*
LookupDiscoveredWorkloadResponse
)
ProtoMessage
()
func (*LookupDiscoveredWorkloadResponse) ProtoReflect
func
(
x
*
LookupDiscoveredWorkloadResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*LookupDiscoveredWorkloadResponse) Reset
func
(
x
*
LookupDiscoveredWorkloadResponse
)
Reset
()
func (*LookupDiscoveredWorkloadResponse) String
func
(
x
*
LookupDiscoveredWorkloadResponse
)
String
()
string
LookupServiceProjectAttachmentRequest
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
()
string
func (*LookupServiceProjectAttachmentRequest) ProtoMessage
func
(
*
LookupServiceProjectAttachmentRequest
)
ProtoMessage
()
func (*LookupServiceProjectAttachmentRequest) ProtoReflect
func
(
x
*
LookupServiceProjectAttachmentRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*LookupServiceProjectAttachmentRequest) Reset
func
(
x
*
LookupServiceProjectAttachmentRequest
)
Reset
()
func (*LookupServiceProjectAttachmentRequest) String
func
(
x
*
LookupServiceProjectAttachmentRequest
)
String
()
string
LookupServiceProjectAttachmentResponse
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
()
*
ServiceProjectAttachment
func (*LookupServiceProjectAttachmentResponse) ProtoMessage
func
(
*
LookupServiceProjectAttachmentResponse
)
ProtoMessage
()
func (*LookupServiceProjectAttachmentResponse) ProtoReflect
func
(
x
*
LookupServiceProjectAttachmentResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*LookupServiceProjectAttachmentResponse) Reset
func
(
x
*
LookupServiceProjectAttachmentResponse
)
Reset
()
func (*LookupServiceProjectAttachmentResponse) String
func
(
x
*
LookupServiceProjectAttachmentResponse
)
String
()
string
OperationMetadata
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
()
string
func (*OperationMetadata) GetCreateTime
func
(
x
*
OperationMetadata
)
GetCreateTime
()
*
timestamppb
.
Timestamp
func (*OperationMetadata) GetEndTime
func
(
x
*
OperationMetadata
)
GetEndTime
()
*
timestamppb
.
Timestamp
func (*OperationMetadata) GetRequestedCancellation
func
(
x
*
OperationMetadata
)
GetRequestedCancellation
()
bool
func (*OperationMetadata) GetStatusMessage
func
(
x
*
OperationMetadata
)
GetStatusMessage
()
string
func (*OperationMetadata) GetTarget
func
(
x
*
OperationMetadata
)
GetTarget
()
string
func (*OperationMetadata) GetVerb
func
(
x
*
OperationMetadata
)
GetVerb
()
string
func (*OperationMetadata) ProtoMessage
func
(
*
OperationMetadata
)
ProtoMessage
()
func (*OperationMetadata) ProtoReflect
func
(
x
*
OperationMetadata
)
ProtoReflect
()
protoreflect
.
Message
func (*OperationMetadata) Reset
func
(
x
*
OperationMetadata
)
Reset
()
func (*OperationMetadata) String
func
(
x
*
OperationMetadata
)
String
()
string
Scope
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_Type
func (*Scope) ProtoMessage
func
(
*
Scope
)
ProtoMessage
()
func (*Scope) ProtoReflect
func
(
x
*
Scope
)
ProtoReflect
()
protoreflect
.
Message
func (*Scope) Reset
func
(
x
*
Scope
)
Reset
()
func (*Scope) String
Scope_Type
type
Scope_Type
int32
Scope 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
.
EnumDescriptor
func (Scope_Type) Enum
func
(
x
Scope_Type
)
Enum
()
*
Scope_Type
func (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
.
EnumNumber
func (Scope_Type) String
func
(
x
Scope_Type
)
String
()
string
func (Scope_Type) Type
func
(
Scope_Type
)
Type
()
protoreflect
.
EnumType
Service
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
()
*
Attributes
func (*Service) GetCreateTime
func
(
x
*
Service
)
GetCreateTime
()
*
timestamppb
.
Timestamp
func (*Service) GetDescription
func (*Service) GetDiscoveredService
func (*Service) GetDisplayName
func (*Service) GetName
func (*Service) GetServiceProperties
func
(
x
*
Service
)
GetServiceProperties
()
*
ServiceProperties
func (*Service) GetServiceReference
func
(
x
*
Service
)
GetServiceReference
()
*
ServiceReference
func (*Service) GetState
func
(
x
*
Service
)
GetState
()
Service_State
func (*Service) GetUid
func (*Service) GetUpdateTime
func
(
x
*
Service
)
GetUpdateTime
()
*
timestamppb
.
Timestamp
func (*Service) ProtoMessage
func
(
*
Service
)
ProtoMessage
()
func (*Service) ProtoReflect
func
(
x
*
Service
)
ProtoReflect
()
protoreflect
.
Message
func (*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
.
Timestamp
func (*ServiceProjectAttachment) GetName
func
(
x
*
ServiceProjectAttachment
)
GetName
()
string
func (*ServiceProjectAttachment) GetServiceProject
func
(
x
*
ServiceProjectAttachment
)
GetServiceProject
()
string
func (*ServiceProjectAttachment) GetState
func
(
x
*
ServiceProjectAttachment
)
GetState
()
ServiceProjectAttachment_State
func (*ServiceProjectAttachment) GetUid
func
(
x
*
ServiceProjectAttachment
)
GetUid
()
string
func (*ServiceProjectAttachment) ProtoMessage
func
(
*
ServiceProjectAttachment
)
ProtoMessage
()
func (*ServiceProjectAttachment) ProtoReflect
func
(
x
*
ServiceProjectAttachment
)
ProtoReflect
()
protoreflect
.
Message
func (*ServiceProjectAttachment) Reset
func
(
x
*
ServiceProjectAttachment
)
Reset
()
func (*ServiceProjectAttachment) String
func
(
x
*
ServiceProjectAttachment
)
String
()
string
ServiceProjectAttachment_State
type
ServiceProjectAttachment_State
int32
ServiceProjectAttachment 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
.
EnumDescriptor
func (ServiceProjectAttachment_State) Enum
func
(
x
ServiceProjectAttachment_State
)
Enum
()
*
ServiceProjectAttachment_State
func (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
.
EnumNumber
func (ServiceProjectAttachment_State) String
func
(
x
ServiceProjectAttachment_State
)
String
()
string
func (ServiceProjectAttachment_State) Type
func
(
ServiceProjectAttachment_State
)
Type
()
protoreflect
.
EnumType
ServiceProperties
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
()
string
func (*ServiceProperties) GetLocation
func
(
x
*
ServiceProperties
)
GetLocation
()
string
func (*ServiceProperties) GetZone
func
(
x
*
ServiceProperties
)
GetZone
()
string
func (*ServiceProperties) ProtoMessage
func
(
*
ServiceProperties
)
ProtoMessage
()
func (*ServiceProperties) ProtoReflect
func
(
x
*
ServiceProperties
)
ProtoReflect
()
protoreflect
.
Message
func (*ServiceProperties) Reset
func
(
x
*
ServiceProperties
)
Reset
()
func (*ServiceProperties) String
func
(
x
*
ServiceProperties
)
String
()
string
ServiceReference
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
()
string
func (*ServiceReference) ProtoMessage
func
(
*
ServiceReference
)
ProtoMessage
()
func (*ServiceReference) ProtoReflect
func
(
x
*
ServiceReference
)
ProtoReflect
()
protoreflect
.
Message
func (*ServiceReference) Reset
func
(
x
*
ServiceReference
)
Reset
()
func (*ServiceReference) String
func
(
x
*
ServiceReference
)
String
()
string
Service_State
type
Service_State
int32
Service 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
.
EnumDescriptor
func (Service_State) Enum
func
(
x
Service_State
)
Enum
()
*
Service_State
func (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
.
EnumNumber
func (Service_State) String
func
(
x
Service_State
)
String
()
string
func (Service_State) Type
func
(
Service_State
)
Type
()
protoreflect
.
EnumType
UnimplementedAppHubServer
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
()
*
Application
func (*UpdateApplicationRequest) GetRequestId
func
(
x
*
UpdateApplicationRequest
)
GetRequestId
()
string
func (*UpdateApplicationRequest) GetUpdateMask
func
(
x
*
UpdateApplicationRequest
)
GetUpdateMask
()
*
fieldmaskpb
.
FieldMask
func (*UpdateApplicationRequest) ProtoMessage
func
(
*
UpdateApplicationRequest
)
ProtoMessage
()
func (*UpdateApplicationRequest) ProtoReflect
func
(
x
*
UpdateApplicationRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*UpdateApplicationRequest) Reset
func
(
x
*
UpdateApplicationRequest
)
Reset
()
func (*UpdateApplicationRequest) String
func
(
x
*
UpdateApplicationRequest
)
String
()
string
UpdateServiceRequest
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
()
string
func (*UpdateServiceRequest) GetService
func
(
x
*
UpdateServiceRequest
)
GetService
()
*
Service
func (*UpdateServiceRequest) GetUpdateMask
func
(
x
*
UpdateServiceRequest
)
GetUpdateMask
()
*
fieldmaskpb
.
FieldMask
func (*UpdateServiceRequest) ProtoMessage
func
(
*
UpdateServiceRequest
)
ProtoMessage
()
func (*UpdateServiceRequest) ProtoReflect
func
(
x
*
UpdateServiceRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*UpdateServiceRequest) Reset
func
(
x
*
UpdateServiceRequest
)
Reset
()
func (*UpdateServiceRequest) String
func
(
x
*
UpdateServiceRequest
)
String
()
string
UpdateWorkloadRequest
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
()
string
func (*UpdateWorkloadRequest) GetUpdateMask
func
(
x
*
UpdateWorkloadRequest
)
GetUpdateMask
()
*
fieldmaskpb
.
FieldMask
func (*UpdateWorkloadRequest) GetWorkload
func
(
x
*
UpdateWorkloadRequest
)
GetWorkload
()
*
Workload
func (*UpdateWorkloadRequest) ProtoMessage
func
(
*
UpdateWorkloadRequest
)
ProtoMessage
()
func (*UpdateWorkloadRequest) ProtoReflect
func
(
x
*
UpdateWorkloadRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*UpdateWorkloadRequest) Reset
func
(
x
*
UpdateWorkloadRequest
)
Reset
()
func (*UpdateWorkloadRequest) String
func
(
x
*
UpdateWorkloadRequest
)
String
()
string
Workload
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
()
*
Attributes
func (*Workload) GetCreateTime
func
(
x
*
Workload
)
GetCreateTime
()
*
timestamppb
.
Timestamp
func (*Workload) GetDescription
func (*Workload) GetDiscoveredWorkload
func (*Workload) GetDisplayName
func (*Workload) GetName
func (*Workload) GetState
func
(
x
*
Workload
)
GetState
()
Workload_State
func (*Workload) GetUid
func (*Workload) GetUpdateTime
func
(
x
*
Workload
)
GetUpdateTime
()
*
timestamppb
.
Timestamp
func (*Workload) GetWorkloadProperties
func
(
x
*
Workload
)
GetWorkloadProperties
()
*
WorkloadProperties
func (*Workload) GetWorkloadReference
func
(
x
*
Workload
)
GetWorkloadReference
()
*
WorkloadReference
func (*Workload) ProtoMessage
func
(
*
Workload
)
ProtoMessage
()
func (*Workload) ProtoReflect
func
(
x
*
Workload
)
ProtoReflect
()
protoreflect
.
Message
func (*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
()
string
func (*WorkloadProperties) GetLocation
func
(
x
*
WorkloadProperties
)
GetLocation
()
string
func (*WorkloadProperties) GetZone
func
(
x
*
WorkloadProperties
)
GetZone
()
string
func (*WorkloadProperties) ProtoMessage
func
(
*
WorkloadProperties
)
ProtoMessage
()
func (*WorkloadProperties) ProtoReflect
func
(
x
*
WorkloadProperties
)
ProtoReflect
()
protoreflect
.
Message
func (*WorkloadProperties) Reset
func
(
x
*
WorkloadProperties
)
Reset
()
func (*WorkloadProperties) String
func
(
x
*
WorkloadProperties
)
String
()
string
WorkloadReference
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
()
string
func (*WorkloadReference) ProtoMessage
func
(
*
WorkloadReference
)
ProtoMessage
()
func (*WorkloadReference) ProtoReflect
func
(
x
*
WorkloadReference
)
ProtoReflect
()
protoreflect
.
Message
func (*WorkloadReference) Reset
func
(
x
*
WorkloadReference
)
Reset
()
func (*WorkloadReference) String
func
(
x
*
WorkloadReference
)
String
()
string
Workload_State
type
Workload_State
int32
Workload 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
.
EnumDescriptor
func (Workload_State) Enum
func
(
x
Workload_State
)
Enum
()
*
Workload_State
func (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
.
EnumNumber
func (Workload_State) String
func
(
x
Workload_State
)
String
()
string
func (Workload_State) Type
func
(
Workload_State
)
Type
()
protoreflect
.
EnumType

