Class ExtensionProperties


  • public final class ExtensionProperties
    extends Object
    Properties of an Extension resource.
    • Constructor Detail

      • ExtensionProperties

        public ExtensionProperties()
    • Method Detail

      • extensionType

        public String extensionType()
        Get the extensionType property: Type of the Extension, of which this resource is an instance of. It must be one of the Extension Types registered with Microsoft.KubernetesConfiguration by the Extension publisher.
        Returns:
        the extensionType value.
      • withExtensionType

        public ExtensionProperties withExtensionType​(String extensionType)
        Set the extensionType property: Type of the Extension, of which this resource is an instance of. It must be one of the Extension Types registered with Microsoft.KubernetesConfiguration by the Extension publisher.
        Parameters:
        extensionType - the extensionType value to set.
        Returns:
        the ExtensionProperties object itself.
      • autoUpgradeMinorVersion

        public Boolean autoUpgradeMinorVersion()
        Get the autoUpgradeMinorVersion property: Flag to note if this extension participates in auto upgrade of minor version, or not.
        Returns:
        the autoUpgradeMinorVersion value.
      • withAutoUpgradeMinorVersion

        public ExtensionProperties withAutoUpgradeMinorVersion​(Boolean autoUpgradeMinorVersion)
        Set the autoUpgradeMinorVersion property: Flag to note if this extension participates in auto upgrade of minor version, or not.
        Parameters:
        autoUpgradeMinorVersion - the autoUpgradeMinorVersion value to set.
        Returns:
        the ExtensionProperties object itself.
      • releaseTrain

        public String releaseTrain()
        Get the releaseTrain property: ReleaseTrain this extension participates in for auto-upgrade (e.g. Stable, Preview, etc.) - only if autoUpgradeMinorVersion is 'true'.
        Returns:
        the releaseTrain value.
      • withReleaseTrain

        public ExtensionProperties withReleaseTrain​(String releaseTrain)
        Set the releaseTrain property: ReleaseTrain this extension participates in for auto-upgrade (e.g. Stable, Preview, etc.) - only if autoUpgradeMinorVersion is 'true'.
        Parameters:
        releaseTrain - the releaseTrain value to set.
        Returns:
        the ExtensionProperties object itself.
      • version

        public String version()
        Get the version property: User-specified version of the extension for this extension to 'pin'. To use 'version', autoUpgradeMinorVersion must be 'false'.
        Returns:
        the version value.
      • withVersion

        public ExtensionProperties withVersion​(String version)
        Set the version property: User-specified version of the extension for this extension to 'pin'. To use 'version', autoUpgradeMinorVersion must be 'false'.
        Parameters:
        version - the version value to set.
        Returns:
        the ExtensionProperties object itself.
      • scope

        public Scope scope()
        Get the scope property: Scope at which the extension is installed.
        Returns:
        the scope value.
      • withScope

        public ExtensionProperties withScope​(Scope scope)
        Set the scope property: Scope at which the extension is installed.
        Parameters:
        scope - the scope value to set.
        Returns:
        the ExtensionProperties object itself.
      • configurationSettings

        public Map<String,​String> configurationSettings()
        Get the configurationSettings property: Configuration settings, as name-value pairs for configuring this extension.
        Returns:
        the configurationSettings value.
      • withConfigurationSettings

        public ExtensionProperties withConfigurationSettings​(Map<String,​String> configurationSettings)
        Set the configurationSettings property: Configuration settings, as name-value pairs for configuring this extension.
        Parameters:
        configurationSettings - the configurationSettings value to set.
        Returns:
        the ExtensionProperties object itself.
      • configurationProtectedSettings

        public Map<String,​String> configurationProtectedSettings()
        Get the configurationProtectedSettings property: Configuration settings that are sensitive, as name-value pairs for configuring this extension.
        Returns:
        the configurationProtectedSettings value.
      • withConfigurationProtectedSettings

        public ExtensionProperties withConfigurationProtectedSettings​(Map<String,​String> configurationProtectedSettings)
        Set the configurationProtectedSettings property: Configuration settings that are sensitive, as name-value pairs for configuring this extension.
        Parameters:
        configurationProtectedSettings - the configurationProtectedSettings value to set.
        Returns:
        the ExtensionProperties object itself.
      • installedVersion

        public String installedVersion()
        Get the installedVersion property: Installed version of the extension.
        Returns:
        the installedVersion value.
      • provisioningState

        public ProvisioningState provisioningState()
        Get the provisioningState property: Status of installation of this extension.
        Returns:
        the provisioningState value.
      • statuses

        public List<ExtensionStatus> statuses()
        Get the statuses property: Status from this extension.
        Returns:
        the statuses value.
      • withStatuses

        public ExtensionProperties withStatuses​(List<ExtensionStatus> statuses)
        Set the statuses property: Status from this extension.
        Parameters:
        statuses - the statuses value to set.
        Returns:
        the ExtensionProperties object itself.
      • errorInfo

        public com.azure.core.management.exception.ManagementError errorInfo()
        Get the errorInfo property: Error information from the Agent - e.g. errors during installation.
        Returns:
        the errorInfo value.
      • customLocationSettings

        public Map<String,​String> customLocationSettings()
        Get the customLocationSettings property: Custom Location settings properties.
        Returns:
        the customLocationSettings value.
      • packageUri

        public String packageUri()
        Get the packageUri property: Uri of the Helm package.
        Returns:
        the packageUri value.
      • aksAssignedIdentity

        public ExtensionPropertiesAksAssignedIdentity aksAssignedIdentity()
        Get the aksAssignedIdentity property: Identity of the Extension resource in an AKS cluster.
        Returns:
        the aksAssignedIdentity value.
      • withAksAssignedIdentity

        public ExtensionProperties withAksAssignedIdentity​(ExtensionPropertiesAksAssignedIdentity aksAssignedIdentity)
        Set the aksAssignedIdentity property: Identity of the Extension resource in an AKS cluster.
        Parameters:
        aksAssignedIdentity - the aksAssignedIdentity value to set.
        Returns:
        the ExtensionProperties object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.