com.microsoft.azure.management.resources.fluentcore.arm.Region.label()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(106)

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

Region.label介绍

暂无

代码示例

代码示例来源:origin: Azure/azure-libraries-for-java

private String getCertificateUniqueName(String thumbprint, Region region) {
    return String.format("%s##%s#", thumbprint, region.label());
  }
}

代码示例来源:origin: jenkinsci/azure-vm-agents-plugin

public ListBoxModel doFillAvailabilitySetItems(
    @RelativePath("../..") @QueryParameter String azureCredentialsId,
    @RelativePath("../..") @QueryParameter String resourceGroupReferenceType,
    @RelativePath("../..") @QueryParameter String newResourceGroupName,
    @RelativePath("../..") @QueryParameter String existingResourceGroupName,
    @RelativePath("..") @QueryParameter String location) {
  ListBoxModel model = new ListBoxModel();
  model.add("--- Select Availability Set in current resource group and location ---", "");
  if (StringUtils.isBlank(azureCredentialsId)) {
    return model;
  }
  //resourceGroupReferenceType passed wrong value in 2.60.1-LTS, we won't use this value until bug resolved.
  resourceGroupReferenceType = null;
  try {
    Azure azureClient = AzureClientHolder.get(azureCredentialsId);
    String resourceGroupName = AzureVMCloud.getResourceGroupName(
        resourceGroupReferenceType, newResourceGroupName, existingResourceGroupName);
    PagedList<AvailabilitySet> availabilitySets = azureClient.availabilitySets()
        .listByResourceGroup(resourceGroupName);
    for (AvailabilitySet set : availabilitySets) {
      String label = set.region().label();
      if (label.equals(location)) {
        model.add(set.name());
      }
    }
  } catch (Exception e) {
    LOGGER.log(Level.WARNING, "Cannot list availability set: ", e);
  }
  return model;
}

代码示例来源:origin: Azure/azure-libraries-for-java

@Override
public void onlineRegion(Region region) {
  this.manager().inner().databaseAccounts().onlineRegion(this.resourceGroupName(), this.name(), region.label());
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-cosmosdb

@Override
public void offlineRegion(Region region) {
  this.manager().inner().databaseAccounts().offlineRegion(this.resourceGroupName(), this.name(), region.label());
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-cosmosdb

@Override
public void onlineRegion(Region region) {
  this.manager().inner().databaseAccounts().onlineRegion(this.resourceGroupName(), this.name(), region.label());
}

代码示例来源:origin: Azure/azure-libraries-for-java

@Override
public void offlineRegion(Region region) {
  this.manager().inner().databaseAccounts().offlineRegion(this.resourceGroupName(), this.name(), region.label());
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-cosmosdb

@Override
public Completable onlineRegionAsync(Region region) {
  return this.manager().inner().databaseAccounts().onlineRegionAsync(this.resourceGroupName(), this.name(), region.label()).toCompletable();
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-cosmosdb

@Override
public Completable offlineRegionAsync(Region region) {
  return this.manager().inner().databaseAccounts().offlineRegionAsync(this.resourceGroupName(), this.name(), region.label()).toCompletable();
}

代码示例来源:origin: Azure/azure-libraries-for-java

@Override
public Completable onlineRegionAsync(Region region) {
  return this.manager().inner().databaseAccounts().onlineRegionAsync(this.resourceGroupName(), this.name(), region.label()).toCompletable();
}

代码示例来源:origin: Azure/azure-libraries-for-java

@Override
public Completable offlineRegionAsync(Region region) {
  return this.manager().inner().databaseAccounts().offlineRegionAsync(this.resourceGroupName(), this.name(), region.label()).toCompletable();
}

相关文章