Documentation
¶
Index ¶
- Constants
- func DisableServiceWaitHandler(ctx context.Context, a APIClientInstanceInterface, ...) *wait.AsyncActionHandler[serviceenablement.ServiceStatus]
- func EnableServiceWaitHandler(ctx context.Context, a APIClientInstanceInterface, ...) *wait.AsyncActionHandler[serviceenablement.ServiceStatus]
- type APIClientInstanceInterface
Constants ¶
View Source
const ( // Deprecated: ServiceStateEnabled is deprecated and will be removed after 14th November 2025. Use [serviceenablement.SERVICESTATUSSTATE_ENABLED] instead. ServiceStateEnabled = "ENABLED" // Deprecated: ServiceStateEnabling is deprecated and will be removed after 14th November 2025. Use [serviceenablement.SERVICESTATUSSTATE_ENABLING] instead. ServiceStateEnabling = "ENABLING" // Deprecated: ServiceStateDisabled is deprecated and will be removed after 14th November 2025. Use [serviceenablement.SERVICESTATUSSTATE_DISABLED] instead. ServiceStateDisabled = "DISABLED" // Deprecated: ServiceStateDisabling is deprecated and will be removed after 14th November 2025. Use [serviceenablement.SERVICESTATUSSTATE_DISABLING] instead. ServiceStateDisabling = "DISABLING" )
Variables ¶
This section is empty.
Functions ¶
func DisableServiceWaitHandler ¶
func DisableServiceWaitHandler(ctx context.Context, a APIClientInstanceInterface, region, projectId, serviceId string) *wait.AsyncActionHandler[serviceenablement.ServiceStatus]
func EnableServiceWaitHandler ¶
func EnableServiceWaitHandler(ctx context.Context, a APIClientInstanceInterface, region, projectId, serviceId string) *wait.AsyncActionHandler[serviceenablement.ServiceStatus]
Types ¶
type APIClientInstanceInterface ¶
type APIClientInstanceInterface interface {
GetServiceStatusRegionalExecute(ctx context.Context, region, projectId, serviceId string) (*serviceenablement.ServiceStatus, error)
}
Interface needed for tests
Click to show internal directories.
Click to hide internal directories.