Class RepositoryExternalConnectionInfo

    • Method Detail

      • externalConnectionName

        public final String externalConnectionName()

        The name of the external connection associated with a repository.

        Returns:
        The name of the external connection associated with a repository.
      • packageFormat

        public final PackageFormat packageFormat()

        The package format associated with a repository's external connection. The valid package formats are:

        • npm: A Node Package Manager (npm) package.

        • pypi: A Python Package Index (PyPI) package.

        • maven: A Maven package that contains compiled code in a distributable format, such as a JAR file.

        • nuget: A NuGet package.

        If the service returns an enum value that is not available in the current SDK version, packageFormat will return PackageFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from packageFormatAsString().

        Returns:
        The package format associated with a repository's external connection. The valid package formats are:

        • npm: A Node Package Manager (npm) package.

        • pypi: A Python Package Index (PyPI) package.

        • maven: A Maven package that contains compiled code in a distributable format, such as a JAR file.

        • nuget: A NuGet package.

        See Also:
        PackageFormat
      • packageFormatAsString

        public final String packageFormatAsString()

        The package format associated with a repository's external connection. The valid package formats are:

        • npm: A Node Package Manager (npm) package.

        • pypi: A Python Package Index (PyPI) package.

        • maven: A Maven package that contains compiled code in a distributable format, such as a JAR file.

        • nuget: A NuGet package.

        If the service returns an enum value that is not available in the current SDK version, packageFormat will return PackageFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from packageFormatAsString().

        Returns:
        The package format associated with a repository's external connection. The valid package formats are:

        • npm: A Node Package Manager (npm) package.

        • pypi: A Python Package Index (PyPI) package.

        • maven: A Maven package that contains compiled code in a distributable format, such as a JAR file.

        • nuget: A NuGet package.

        See Also:
        PackageFormat
      • statusAsString

        public final String statusAsString()

        The status of the external connection of a repository. There is one valid value, Available.

        If the service returns an enum value that is not available in the current SDK version, status will return ExternalConnectionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        Returns:
        The status of the external connection of a repository. There is one valid value, Available.
        See Also:
        ExternalConnectionStatus
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)