public class ClientUtil extends Object
Constructor and Description |
---|
ClientUtil() |
Modifier and Type | Method and Description |
---|---|
static com.google.cloud.graphite.platforms.plugin.client.ClientFactory |
getClientFactory(ItemGroup itemGroup,
com.google.common.collect.ImmutableList<com.cloudbees.plugins.credentials.domains.DomainRequirement> domainRequirements,
String credentialsId,
Optional<com.google.api.client.http.HttpTransport> transport)
Creates a
ClientFactory for generating the GCP api clients. |
static com.google.cloud.graphite.platforms.plugin.client.ClientFactory |
getClientFactory(ItemGroup itemGroup,
String credentialsId)
Creates a
ClientFactory for generating the GCP api clients. |
public static com.google.cloud.graphite.platforms.plugin.client.ClientFactory getClientFactory(ItemGroup itemGroup, com.google.common.collect.ImmutableList<com.cloudbees.plugins.credentials.domains.DomainRequirement> domainRequirements, String credentialsId, Optional<com.google.api.client.http.HttpTransport> transport) throws AbortException
ClientFactory
for generating the GCP api clients.itemGroup
- The Jenkins context to use for retrieving the credentials.domainRequirements
- A list of domain requirements. Must be non-null.credentialsId
- The ID of the credentials to use for generating clients.transport
- An Optional
parameter that specifies the HttpTransport
to use.
A default will be used if unspecified.ClientFactory
to get clients.AbortException
- If there was an error initializing the ClientFactory.public static com.google.cloud.graphite.platforms.plugin.client.ClientFactory getClientFactory(ItemGroup itemGroup, String credentialsId) throws AbortException
ClientFactory
for generating the GCP api clients.itemGroup
- The Jenkins context to use for retrieving the credentials.credentialsId
- The ID of the credentials to use for generating clients.ClientFactory
to get clients.AbortException
- If there was an error initializing the ClientFactory.Copyright © 2016–2021 Google. All rights reserved.