Table of Contents

Class GitConfigResponse

Namespace
Nexus.Api.V1
Assembly
Nexus.Api.dll

The effective Git configuration without secret values.

public record GitConfigResponse : IEquatable<GitConfigResponse>
Inheritance
GitConfigResponse
Implements
Inherited Members

Constructors

GitConfigResponse(string, int, string?, string?, bool, bool, string, string, string, bool)

The effective Git configuration without secret values.

public GitConfigResponse(string Branch, int CommitThrottleSeconds, string? RemoteUrl, string? Username, bool HasToken, bool HasSshPrivateKey, string AuthMode, string CommitAuthorName, string CommitAuthorEmail, bool IsRemoteConfigured)

Parameters

Branch string

The configured Git branch.

CommitThrottleSeconds int

The number of seconds Nexus waits before committing configuration changes.

RemoteUrl string

The configured remote Git repository URL.

Username string

The configured HTTPS username.

HasToken bool

A value indicating whether an HTTPS token is configured.

HasSshPrivateKey bool

A value indicating whether an SSH private key is configured.

AuthMode string

The authentication mode inferred from the remote URL.

CommitAuthorName string

The Git commit author name.

CommitAuthorEmail string

The Git commit author email.

IsRemoteConfigured bool

A value indicating whether remote backup has enough configuration to push.

Properties

AuthMode

The authentication mode inferred from the remote URL.

public string AuthMode { get; init; }

Property Value

string

Branch

The configured Git branch.

public string Branch { get; init; }

Property Value

string

CommitAuthorEmail

The Git commit author email.

public string CommitAuthorEmail { get; init; }

Property Value

string

CommitAuthorName

The Git commit author name.

public string CommitAuthorName { get; init; }

Property Value

string

CommitThrottleSeconds

The number of seconds Nexus waits before committing configuration changes.

public int CommitThrottleSeconds { get; init; }

Property Value

int

HasSshPrivateKey

A value indicating whether an SSH private key is configured.

public bool HasSshPrivateKey { get; init; }

Property Value

bool

HasToken

A value indicating whether an HTTPS token is configured.

public bool HasToken { get; init; }

Property Value

bool

IsRemoteConfigured

A value indicating whether remote backup has enough configuration to push.

public bool IsRemoteConfigured { get; init; }

Property Value

bool

RemoteUrl

The configured remote Git repository URL.

public string? RemoteUrl { get; init; }

Property Value

string

Username

The configured HTTPS username.

public string? Username { get; init; }

Property Value

string