public class CloudDeploymentModule extends Object
DeploymentManager service.| Constructor and Description |
|---|
CloudDeploymentModule(Class<T> clazz)
Constructs the module for instantiating dependencies of the cloud deployment implementation
with type
clazz. |
| Modifier and Type | Method and Description |
|---|---|
com.google.jenkins.plugins.credentials.oauth.GoogleOAuth2ScopeRequirement |
getRequirement() |
com.google.jenkins.plugins.util.Executor |
newExecutor()
Interface for requesting the
Executor for executing requests. |
com.google.api.services.deploymentmanager.DeploymentManager |
newManager(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials)
Interface for requesting new connections to the
DeploymentManager service. |
public CloudDeploymentModule(Class<T> clazz)
clazz.clazz - The type for which we instantiate dependencies.public com.google.api.services.deploymentmanager.DeploymentManager newManager(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials)
throws CloudManagementException
DeploymentManager service.credentials - The credentials to use to authenticate with the serviceDeploymentManager service for issuing requestsCloudManagementException - if a service connection cannot be established.public com.google.jenkins.plugins.credentials.oauth.GoogleOAuth2ScopeRequirement getRequirement()
public com.google.jenkins.plugins.util.Executor newExecutor()
Executor for executing requests.Executor instance for issuing requestsCopyright © 2016. All rights reserved.