com.microsoft.azure.management.network.ApplicationGatewayAuthenticationCertificate Maven / Gradle / Ivy
Show all versions of azure-mgmt-network Show documentation
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.network;
import java.io.File;
import java.io.IOException;
import com.microsoft.azure.management.apigeneration.Beta;
import com.microsoft.azure.management.apigeneration.Beta.SinceVersion;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.network.implementation.ApplicationGatewayAuthenticationCertificateInner;
import com.microsoft.azure.management.resources.fluentcore.arm.models.ChildResource;
import com.microsoft.azure.management.resources.fluentcore.model.Attachable;
import com.microsoft.azure.management.resources.fluentcore.model.Settable;
import com.microsoft.azure.management.resources.fluentcore.model.HasInner;
/**
* A client-side representation of an application gateway authentication certificate.
*/
@Fluent()
@Beta(SinceVersion.V1_4_0)
public interface ApplicationGatewayAuthenticationCertificate extends
HasInner,
ChildResource {
/**
* @return base-64 encoded bytes of the X.509 certificate
*/
String data();
/**
* Grouping of application gateway authentication certificate stages.
*/
interface DefinitionStages {
/**
* The first stage of an application gateway authentication certificate definition.
* @param the stage of the parent application gateway definition to return to after attaching this definition
*/
interface Blank extends WithData {
}
/**
* The stage of an application gateway authentication certificate definition allowing to specify the data of the certificate.
* @param the stage of the parent application gateway definition to return to after attaching this definition
*/
interface WithData {
/**
* Specifies an X.509 certificate to upload.
* @param derData the DER-encoded bytes of an X.509 certificate
* @return the next stage of the definition
*/
WithAttach fromBytes(byte[] derData);
/**
* Specifies an X.509 certificate to upload.
* @param certificateFile a DER encoded X.509 certificate file
* @return the next stage of the definition
* @throws IOException when there are problems reading the certificate file
*/
WithAttach fromFile(File certificateFile) throws IOException;
/**
* Specifies an X.509 certificate to upload.
* @param base64data base-64 encoded data of the certificate
* @return the next stage of the definition
*/
WithAttach fromBase64(String base64data);
}
/** The final stage of an application gateway authentication certificate definition.
*
* At this stage, any remaining optional settings can be specified, or the definition
* can be attached to the parent application gateway definition.
* @param the stage of the parent application gateway definition to return to after attaching this definition
*/
interface WithAttach extends
Attachable.InDefinition {
}
}
/** The entirety of an application gateway authentication certificate definition.
* @param the stage of the parent application gateway definition to return to after attaching this definition
*/
interface Definition extends
DefinitionStages.Blank,
DefinitionStages.WithAttach,
DefinitionStages.WithData {
}
/**
* Grouping of application gateway authentication certificate update stages.
*/
interface UpdateStages {
}
/**
* The entirety of an application gateway authentication certificate update as part of an application gateway update.
*/
interface Update extends
Settable {
}
/**
* Grouping of application gateway authentication certificate definition stages applicable as part of an application gateway update.
*/
interface UpdateDefinitionStages {
/**
* The first stage of an application gateway authentication certificate definition.
* @param the stage of the parent application gateway definition to return to after attaching this definition
*/
interface Blank extends WithData {
}
/**
* The stage of an application gateway authentication certificate definition allowing to specify the data of the certificate.
* @param the stage of the parent application gateway update to return to after attaching this definition
*/
interface WithData {
/**
* Specifies an X.509 certificate to upload.
* @param data the DER-encoded bytes of an X.509 certificate
* @return the next stage of the definition
*/
WithAttach fromBytes(byte[] data);
/**
* Specifies an X.509 certificate to upload.
* @param certificateFile a DER encoded X.509 certificate file
* @return the next stage of the definition
* @throws IOException when there are problems reading the certificate file
*/
WithAttach fromFile(File certificateFile) throws IOException;
/**
* Specifies an X.509 certificate to upload.
* @param base64data base-64 encoded data of the certificate
* @return the next stage of the definition
*/
WithAttach fromBase64(String base64data);
}
/** The final stage of an application gateway authentication certificate definition.
*
* At this stage, any remaining optional settings can be specified, or the definition
* can be attached to the parent application gateway definition.
* @param the stage of the parent application gateway definition to return to after attaching this definition
*/
interface WithAttach extends
Attachable.InUpdate {
}
}
/** The entirety of an application gateway authentication certificate definition as part of an application gateway update.
* @param the stage of the parent application gateway definition to return to after attaching this definition
*/
interface UpdateDefinition extends
UpdateDefinitionStages.Blank,
UpdateDefinitionStages.WithAttach,
UpdateDefinitionStages.WithData {
}
}