com.microsoft.azure.management.Azure.configure()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(245)

本文整理了Java中com.microsoft.azure.management.Azure.configure()方法的一些代码示例,展示了Azure.configure()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Azure.configure()方法的具体详情如下:
包路径:com.microsoft.azure.management.Azure
类名称:Azure
方法名:configure

Azure.configure介绍

暂无

代码示例

代码示例来源:origin: Microsoft/azure-maven-plugins

  1. protected Azure.Configurable azureConfigure() {
  2. final String httpProxyHost = config.getHttpProxyHost();
  3. final int httpProxyPort = config.getHttpProxyPort();
  4. final Azure.Configurable configurable = Azure.configure()
  5. .withLogLevel(getLogLevel())
  6. .withUserAgent(config.getUserAgent());
  7. return StringUtils.isNotEmpty(httpProxyHost) ?
  8. configurable.withProxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress(httpProxyHost, httpProxyPort))) :
  9. configurable;
  10. }

代码示例来源:origin: com.microsoft.azure/azure-maven-plugin-lib

  1. protected Azure.Configurable azureConfigure() {
  2. final String httpProxyHost = config.getHttpProxyHost();
  3. final int httpProxyPort = config.getHttpProxyPort();
  4. final Azure.Configurable configurable = Azure.configure()
  5. .withLogLevel(getLogLevel())
  6. .withUserAgent(config.getUserAgent());
  7. return StringUtils.isNotEmpty(httpProxyHost) ?
  8. configurable.withProxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress(httpProxyHost, httpProxyPort))) :
  9. configurable;
  10. }

代码示例来源:origin: Microsoft/azure-tools-for-java

  1. private Azure.Authenticated auth() throws IOException {
  2. Azure.Configurable azureConfigurable = Azure.configure()
  3. .withInterceptor(new TelemetryInterceptor())
  4. .withUserAgent(CommonSettings.USER_AGENT);
  5. return (atc == null)
  6. ? azureConfigurable.authenticate(credFile)
  7. : azureConfigurable.authenticate(atc);
  8. }

代码示例来源:origin: Microsoft/azure-tools-for-java

  1. private static Azure.Authenticated authTid(String tid) throws IOException {
  2. // String token = AdAuthManager.getInstance().getAccessToken(tid);
  3. // return auth(token);
  4. return Azure.configure()
  5. .withInterceptor(new TelemetryInterceptor())
  6. .withUserAgent(CommonSettings.USER_AGENT).authenticate(new RefreshableTokenCredentials(AdAuthManager.getInstance(), tid));
  7. }

相关文章