Tabnine Logo
AzsPersistentStore.getStorageAccountName
Code IndexAdd Tabnine to your IDE (free)

How to use
getStorageAccountName
method
in
com.netflix.spinnaker.halyard.config.model.v1.persistentStorage.AzsPersistentStore

Best Java code snippets using com.netflix.spinnaker.halyard.config.model.v1.persistentStorage.AzsPersistentStore.getStorageAccountName (Showing top 4 results out of 315)

origin: spinnaker/halyard

 @Override
 public void validate(ConfigProblemSetBuilder ps, AzsPersistentStore n) {
  String connectionString = "DefaultEndpointsProtocol=https;AccountName=" + n.getStorageAccountName() + ";AccountKey=" + n.getStorageAccountKey();

  try {
   CloudStorageAccount storageAccount = CloudStorageAccount.parse(connectionString);

   CloudBlobContainer container = storageAccount.createCloudBlobClient().getContainerReference(n.getStorageContainerName());
   container.exists();
  } catch (Exception e) {
   ps.addProblem(Problem.Severity.ERROR, "Failed to connect to the Azure storage account \"" + n.getStorageAccountName() + "\": " + e.getMessage());
   return;
  }
 }
}
origin: com.netflix.spinnaker.halyard/halyard-config

 @Override
 public void validate(ConfigProblemSetBuilder ps, AzsPersistentStore n) {
  String connectionString = "DefaultEndpointsProtocol=https;AccountName=" + n.getStorageAccountName() + ";AccountKey=" + n.getStorageAccountKey();

  try {
   CloudStorageAccount storageAccount = CloudStorageAccount.parse(connectionString);

   CloudBlobContainer container = storageAccount.createCloudBlobClient().getContainerReference(n.getStorageContainerName());
   container.exists();
  } catch (Exception e) {
   ps.addProblem(Problem.Severity.ERROR, "Failed to connect to the Azure storage account \"" + n.getStorageAccountName() + "\": " + e.getMessage());
   return;
  }
 }
}
origin: com.netflix.spinnaker.halyard/halyard-cli

 @Override
 protected AzsPersistentStore editPersistentStore(AzsPersistentStore persistentStore) {
  persistentStore.setStorageAccountName(isSet(storageAccountName) ? storageAccountName : persistentStore.getStorageAccountName());
  persistentStore.setStorageAccountKey(isSet(storageAccountKey) ? storageAccountKey : persistentStore.getStorageAccountKey());
  persistentStore.setStorageContainerName(isSet(storageContainerName) ? storageContainerName : persistentStore.getStorageContainerName());

  return persistentStore;
 }
}
origin: spinnaker/halyard

 @Override
 protected AzsPersistentStore editPersistentStore(AzsPersistentStore persistentStore) {
  persistentStore.setStorageAccountName(isSet(storageAccountName) ? storageAccountName : persistentStore.getStorageAccountName());
  persistentStore.setStorageAccountKey(isSet(storageAccountKey) ? storageAccountKey : persistentStore.getStorageAccountKey());
  persistentStore.setStorageContainerName(isSet(storageContainerName) ? storageContainerName : persistentStore.getStorageContainerName());

  return persistentStore;
 }
}
com.netflix.spinnaker.halyard.config.model.v1.persistentStorageAzsPersistentStoregetStorageAccountName

Popular methods of AzsPersistentStore

  • getStorageAccountKey
  • getStorageContainerName
  • setStorageAccountKey
  • setStorageAccountName
  • setStorageContainerName

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Top Sublime Text 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