SourceRegistryCredentials Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. SourceRegistryCredentials
- com.
Implements
public final class SourceRegistryCredentials
implements JsonSerializable<SourceRegistryCredentials>
Describes the credential parameters for accessing the source registry.
Constructor Summary
Constructor | Description |
---|---|
SourceRegistryCredentials() |
Creates an instance of Source |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Source |
fromJson(JsonReader jsonReader)
Reads an instance of Source |
Source |
loginMode()
Get the login |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Source |
withLoginMode(SourceRegistryLoginMode loginMode)
Set the login |
Methods inherited from java.lang.Object
Constructor Details
SourceRegistryCredentials
public SourceRegistryCredentials()
Creates an instance of SourceRegistryCredentials class.
Method Details
fromJson
public static SourceRegistryCredentials fromJson(JsonReader jsonReader)
Reads an instance of SourceRegistryCredentials from the JsonReader.
Parameters:
Returns:
Throws:
loginMode
public SourceRegistryLoginMode loginMode()
Get the loginMode property: The authentication mode which determines the source registry login scope. The credentials for the source registry will be generated using the given scope. These credentials will be used to login to the source registry during the run.
Returns:
toJson
validate
public void validate()
Validates the instance.
withLoginMode
public SourceRegistryCredentials withLoginMode(SourceRegistryLoginMode loginMode)
Set the loginMode property: The authentication mode which determines the source registry login scope. The credentials for the source registry will be generated using the given scope. These credentials will be used to login to the source registry during the run.
Parameters:
Returns:
Applies to
Azure SDK for Java