Class AgentConfiguration
java.lang.Object
com.azure.resourcemanager.hybridcompute.models.AgentConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AgentConfiguration>
public final class AgentConfiguration
extends Object
implements com.azure.json.JsonSerializable<AgentConfiguration>
Configurable properties that the user can set locally via the azcmagent config command, or remotely via ARM.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the configMode property: Name of configuration mode to use.Get the extensionsAllowList property: Array of extensions that are allowed to be installed or updated.Get the extensionsBlockList property: Array of extensions that are blocked (cannot be installed or updated).Get the extensionsEnabled property: Specifies whether the extension service is enabled or disabled.static AgentConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AgentConfiguration from the JsonReader.Get the guestConfigurationEnabled property: Specified whether the guest configuration service is enabled or disabled.Get the incomingConnectionsPorts property: Specifies the list of ports that the agent will be able to listen on.Get the proxyBypass property: List of service names which should not use the specified proxy server.proxyUrl()Get the proxyUrl property: Specifies the URL of the proxy to be used.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AgentConfiguration
public AgentConfiguration()Creates an instance of AgentConfiguration class.
-
-
Method Details
-
proxyUrl
Get the proxyUrl property: Specifies the URL of the proxy to be used.- Returns:
- the proxyUrl value.
-
incomingConnectionsPorts
Get the incomingConnectionsPorts property: Specifies the list of ports that the agent will be able to listen on.- Returns:
- the incomingConnectionsPorts value.
-
extensionsAllowList
Get the extensionsAllowList property: Array of extensions that are allowed to be installed or updated.- Returns:
- the extensionsAllowList value.
-
extensionsBlockList
Get the extensionsBlockList property: Array of extensions that are blocked (cannot be installed or updated).- Returns:
- the extensionsBlockList value.
-
proxyBypass
Get the proxyBypass property: List of service names which should not use the specified proxy server.- Returns:
- the proxyBypass value.
-
extensionsEnabled
Get the extensionsEnabled property: Specifies whether the extension service is enabled or disabled.- Returns:
- the extensionsEnabled value.
-
guestConfigurationEnabled
Get the guestConfigurationEnabled property: Specified whether the guest configuration service is enabled or disabled.- Returns:
- the guestConfigurationEnabled value.
-
configMode
Get the configMode property: Name of configuration mode to use. Modes are pre-defined configurations of security controls, extension allowlists and guest configuration, maintained by Microsoft.- Returns:
- the configMode value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AgentConfiguration>- Throws:
IOException
-
fromJson
Reads an instance of AgentConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AgentConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the AgentConfiguration.
-