Search in sources :

Example 1 with CsmPublishingProfileOptions

use of com.azure.resourcemanager.appservice.models.CsmPublishingProfileOptions in project azure-maven-plugins by microsoft.

the class AbstractAppService method listPublishingProfileXmlWithSecrets.

@Override
public InputStream listPublishingProfileXmlWithSecrets() {
    final ResourceId resourceId = ResourceId.fromString(id());
    final String resourceName = StringUtils.equals(resourceId.resourceType(), "slots") ? String.format("%s/slots/%s", resourceId.parent().name(), resourceId.name()) : resourceId.name();
    final CsmPublishingProfileOptions csmPublishingProfileOptions = new CsmPublishingProfileOptions().withFormat(PublishingProfileFormat.FTP);
    return remote().manager().serviceClient().getWebApps().listPublishingProfileXmlWithSecrets(resourceId.resourceGroupName(), resourceName, csmPublishingProfileOptions);
}
Also used : ResourceId(com.microsoft.azure.arm.resources.ResourceId) CsmPublishingProfileOptions(com.azure.resourcemanager.appservice.models.CsmPublishingProfileOptions)

Aggregations

CsmPublishingProfileOptions (com.azure.resourcemanager.appservice.models.CsmPublishingProfileOptions)1 ResourceId (com.microsoft.azure.arm.resources.ResourceId)1