Tabnine Logo
GoogleCanaryAccount.getSupportedTypes
Code IndexAdd Tabnine to your IDE (free)

How to use
getSupportedTypes
method
in
com.netflix.spinnaker.halyard.config.model.v1.canary.google.GoogleCanaryAccount

Best Java code snippets using com.netflix.spinnaker.halyard.config.model.v1.canary.google.GoogleCanaryAccount.getSupportedTypes (Showing top 4 results out of 315)

origin: spinnaker/halyard

@Override
protected AbstractCanaryAccount buildAccount(Canary canary, String accountName) {
 GoogleCanaryAccount account = (GoogleCanaryAccount)new GoogleCanaryAccount().setName(accountName);
 account.setProject(project).setJsonPath(jsonPath);
 account.setBucket(bucket).setBucketLocation(bucketLocation);
 account.setRootFolder(isSet(rootFolder) ? rootFolder : account.getRootFolder());
 GoogleCanaryServiceIntegration googleCanaryServiceIntegration =
   (GoogleCanaryServiceIntegration)CanaryUtils.getServiceIntegrationByClass(canary, GoogleCanaryServiceIntegration.class);
 if (googleCanaryServiceIntegration.isStackdriverEnabled()) {
  account.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.METRICS_STORE);
 }
 if (googleCanaryServiceIntegration.isGcsEnabled()) {
  account.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.CONFIGURATION_STORE);
  account.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.OBJECT_STORE);
 }
 return account;
}
origin: com.netflix.spinnaker.halyard/halyard-cli

@Override
protected AbstractCanaryAccount buildAccount(Canary canary, String accountName) {
 GoogleCanaryAccount account = (GoogleCanaryAccount)new GoogleCanaryAccount().setName(accountName);
 account.setProject(project).setJsonPath(jsonPath);
 account.setBucket(bucket).setBucketLocation(bucketLocation);
 account.setRootFolder(isSet(rootFolder) ? rootFolder : account.getRootFolder());
 GoogleCanaryServiceIntegration googleCanaryServiceIntegration =
   (GoogleCanaryServiceIntegration)CanaryUtils.getServiceIntegrationByClass(canary, GoogleCanaryServiceIntegration.class);
 if (googleCanaryServiceIntegration.isStackdriverEnabled()) {
  account.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.METRICS_STORE);
 }
 if (googleCanaryServiceIntegration.isGcsEnabled()) {
  account.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.CONFIGURATION_STORE);
  account.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.OBJECT_STORE);
 }
 return account;
}
origin: spinnaker/halyard

 googleCanaryServiceIntegration.getAccounts().forEach(a -> a.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.METRICS_STORE));
} else {
 googleCanaryServiceIntegration.getAccounts().forEach(a -> a.getSupportedTypes().remove(AbstractCanaryServiceIntegration.SupportedTypes.METRICS_STORE));
 googleCanaryServiceIntegration.getAccounts().forEach(a -> a.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.CONFIGURATION_STORE));
 googleCanaryServiceIntegration.getAccounts().forEach(a -> a.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.OBJECT_STORE));
} else {
 googleCanaryServiceIntegration.getAccounts().forEach(a -> a.getSupportedTypes().remove(AbstractCanaryServiceIntegration.SupportedTypes.CONFIGURATION_STORE));
 googleCanaryServiceIntegration.getAccounts().forEach(a -> a.getSupportedTypes().remove(AbstractCanaryServiceIntegration.SupportedTypes.OBJECT_STORE));
origin: com.netflix.spinnaker.halyard/halyard-cli

 googleCanaryServiceIntegration.getAccounts().forEach(a -> a.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.METRICS_STORE));
} else {
 googleCanaryServiceIntegration.getAccounts().forEach(a -> a.getSupportedTypes().remove(AbstractCanaryServiceIntegration.SupportedTypes.METRICS_STORE));
 googleCanaryServiceIntegration.getAccounts().forEach(a -> a.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.CONFIGURATION_STORE));
 googleCanaryServiceIntegration.getAccounts().forEach(a -> a.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.OBJECT_STORE));
} else {
 googleCanaryServiceIntegration.getAccounts().forEach(a -> a.getSupportedTypes().remove(AbstractCanaryServiceIntegration.SupportedTypes.CONFIGURATION_STORE));
 googleCanaryServiceIntegration.getAccounts().forEach(a -> a.getSupportedTypes().remove(AbstractCanaryServiceIntegration.SupportedTypes.OBJECT_STORE));
com.netflix.spinnaker.halyard.config.model.v1.canary.googleGoogleCanaryAccountgetSupportedTypes

Popular methods of GoogleCanaryAccount

  • getBucket
  • getJsonPath
  • getProject
  • getBucketLocation
  • getRootFolder
  • <init>
  • getName
  • getNamedAccountCredentials
  • setBucket
  • setBucketLocation
  • setJsonPath
  • setName
  • setJsonPath,
  • setName,
  • setProject,
  • setRootFolder

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now