本文整理了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
暂无
代码示例来源: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();
}
内容来源于网络,如有侵权,请联系作者删除!