forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
SDK Automation
committed
Jul 16, 2020
1 parent
64a250c
commit f546043
Showing
46 changed files
with
1,440 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Action.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.management.containerregistry.v2018_09_01; | ||
|
||
import java.util.Collection; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.microsoft.rest.ExpandableStringEnum; | ||
|
||
/** | ||
* Defines values for Action. | ||
*/ | ||
public final class Action extends ExpandableStringEnum<Action> { | ||
/** Static value Allow for Action. */ | ||
public static final Action ALLOW = fromString("Allow"); | ||
|
||
/** | ||
* Creates or finds a Action from its string representation. | ||
* @param name a name to look for | ||
* @return the corresponding Action | ||
*/ | ||
@JsonCreator | ||
public static Action fromString(String name) { | ||
return fromString(name, Action.class); | ||
} | ||
|
||
/** | ||
* @return known Action values | ||
*/ | ||
public static Collection<Action> values() { | ||
return values(Action.class); | ||
} | ||
} |
80 changes: 80 additions & 0 deletions
80
...c/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Credentials.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.management.containerregistry.v2018_09_01; | ||
|
||
import java.util.Map; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* The parameters that describes a set of credentials that will be used when a | ||
* run is invoked. | ||
*/ | ||
public class Credentials { | ||
/** | ||
* Describes the credential parameters for accessing the source registry. | ||
*/ | ||
@JsonProperty(value = "sourceRegistry") | ||
private SourceRegistryCredentials sourceRegistry; | ||
|
||
/** | ||
* Describes the credential parameters for accessing other custom | ||
* registries. The key | ||
* for the dictionary item will be the registry login server | ||
* (myregistry.azurecr.io) and | ||
* the value of the item will be the registry credentials for accessing the | ||
* registry. | ||
*/ | ||
@JsonProperty(value = "customRegistries") | ||
private Map<String, CustomRegistryCredentials> customRegistries; | ||
|
||
/** | ||
* Get describes the credential parameters for accessing the source registry. | ||
* | ||
* @return the sourceRegistry value | ||
*/ | ||
public SourceRegistryCredentials sourceRegistry() { | ||
return this.sourceRegistry; | ||
} | ||
|
||
/** | ||
* Set describes the credential parameters for accessing the source registry. | ||
* | ||
* @param sourceRegistry the sourceRegistry value to set | ||
* @return the Credentials object itself. | ||
*/ | ||
public Credentials withSourceRegistry(SourceRegistryCredentials sourceRegistry) { | ||
this.sourceRegistry = sourceRegistry; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get describes the credential parameters for accessing other custom registries. The key | ||
for the dictionary item will be the registry login server (myregistry.azurecr.io) and | ||
the value of the item will be the registry credentials for accessing the registry. | ||
* | ||
* @return the customRegistries value | ||
*/ | ||
public Map<String, CustomRegistryCredentials> customRegistries() { | ||
return this.customRegistries; | ||
} | ||
|
||
/** | ||
* Set describes the credential parameters for accessing other custom registries. The key | ||
for the dictionary item will be the registry login server (myregistry.azurecr.io) and | ||
the value of the item will be the registry credentials for accessing the registry. | ||
* | ||
* @param customRegistries the customRegistries value to set | ||
* @return the Credentials object itself. | ||
*/ | ||
public Credentials withCustomRegistries(Map<String, CustomRegistryCredentials> customRegistries) { | ||
this.customRegistries = customRegistries; | ||
return this; | ||
} | ||
|
||
} |
74 changes: 74 additions & 0 deletions
74
...m/microsoft/azure/management/containerregistry/v2018_09_01/CustomRegistryCredentials.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.management.containerregistry.v2018_09_01; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Describes the credentials that will be used to access a custom registry | ||
* during a run. | ||
*/ | ||
public class CustomRegistryCredentials { | ||
/** | ||
* The username for logging into the custom registry. | ||
*/ | ||
@JsonProperty(value = "userName") | ||
private SecretObject userName; | ||
|
||
/** | ||
* The password for logging into the custom registry. The password is a | ||
* secret | ||
* object that allows multiple ways of providing the value for it. | ||
*/ | ||
@JsonProperty(value = "password") | ||
private SecretObject password; | ||
|
||
/** | ||
* Get the username for logging into the custom registry. | ||
* | ||
* @return the userName value | ||
*/ | ||
public SecretObject userName() { | ||
return this.userName; | ||
} | ||
|
||
/** | ||
* Set the username for logging into the custom registry. | ||
* | ||
* @param userName the userName value to set | ||
* @return the CustomRegistryCredentials object itself. | ||
*/ | ||
public CustomRegistryCredentials withUserName(SecretObject userName) { | ||
this.userName = userName; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the password for logging into the custom registry. The password is a secret | ||
object that allows multiple ways of providing the value for it. | ||
* | ||
* @return the password value | ||
*/ | ||
public SecretObject password() { | ||
return this.password; | ||
} | ||
|
||
/** | ||
* Set the password for logging into the custom registry. The password is a secret | ||
object that allows multiple ways of providing the value for it. | ||
* | ||
* @param password the password value to set | ||
* @return the CustomRegistryCredentials object itself. | ||
*/ | ||
public CustomRegistryCredentials withPassword(SecretObject password) { | ||
this.password = password; | ||
return this; | ||
} | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
...main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/DefaultAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.management.containerregistry.v2018_09_01; | ||
|
||
import java.util.Collection; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.microsoft.rest.ExpandableStringEnum; | ||
|
||
/** | ||
* Defines values for DefaultAction. | ||
*/ | ||
public final class DefaultAction extends ExpandableStringEnum<DefaultAction> { | ||
/** Static value Allow for DefaultAction. */ | ||
public static final DefaultAction ALLOW = fromString("Allow"); | ||
|
||
/** Static value Deny for DefaultAction. */ | ||
public static final DefaultAction DENY = fromString("Deny"); | ||
|
||
/** | ||
* Creates or finds a DefaultAction from its string representation. | ||
* @param name a name to look for | ||
* @return the corresponding DefaultAction | ||
*/ | ||
@JsonCreator | ||
public static DefaultAction fromString(String name) { | ||
return fromString(name, DefaultAction.class); | ||
} | ||
|
||
/** | ||
* @return known DefaultAction values | ||
*/ | ||
public static Collection<DefaultAction> values() { | ||
return values(DefaultAction.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.