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
Aug 11, 2020
1 parent
cd8c375
commit 3106cf5
Showing
27 changed files
with
624 additions
and
35 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
...ain/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/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_02_01_preview; | ||
|
||
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); | ||
} | ||
} |
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
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
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
41 changes: 41 additions & 0 deletions
41
...a/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/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_02_01_preview; | ||
|
||
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
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
70 changes: 70 additions & 0 deletions
70
...ain/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/IPRule.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,70 @@ | ||
/** | ||
* 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_02_01_preview; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* IP rule with specific IP or IP range in CIDR format. | ||
*/ | ||
public class IPRule { | ||
/** | ||
* The action of IP ACL rule. Possible values include: 'Allow'. | ||
*/ | ||
@JsonProperty(value = "action") | ||
private Action action; | ||
|
||
/** | ||
* Specifies the IP or IP range in CIDR format. Only IPV4 address is | ||
* allowed. | ||
*/ | ||
@JsonProperty(value = "value", required = true) | ||
private String iPAddressOrRange; | ||
|
||
/** | ||
* Get the action of IP ACL rule. Possible values include: 'Allow'. | ||
* | ||
* @return the action value | ||
*/ | ||
public Action action() { | ||
return this.action; | ||
} | ||
|
||
/** | ||
* Set the action of IP ACL rule. Possible values include: 'Allow'. | ||
* | ||
* @param action the action value to set | ||
* @return the IPRule object itself. | ||
*/ | ||
public IPRule withAction(Action action) { | ||
this.action = action; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. | ||
* | ||
* @return the iPAddressOrRange value | ||
*/ | ||
public String iPAddressOrRange() { | ||
return this.iPAddressOrRange; | ||
} | ||
|
||
/** | ||
* Set specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. | ||
* | ||
* @param iPAddressOrRange the iPAddressOrRange value to set | ||
* @return the IPRule object itself. | ||
*/ | ||
public IPRule withIPAddressOrRange(String iPAddressOrRange) { | ||
this.iPAddressOrRange = iPAddressOrRange; | ||
return this; | ||
} | ||
|
||
} |
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
69 changes: 69 additions & 0 deletions
69
...osoft/azure/management/containerregistry/v2018_02_01_preview/ImportSourceCredentials.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,69 @@ | ||
/** | ||
* 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_02_01_preview; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* The ImportSourceCredentials model. | ||
*/ | ||
public class ImportSourceCredentials { | ||
/** | ||
* The username to authenticate with the source registry. | ||
*/ | ||
@JsonProperty(value = "username") | ||
private String username; | ||
|
||
/** | ||
* The password used to authenticate with the source registry. | ||
*/ | ||
@JsonProperty(value = "password", required = true) | ||
private String password; | ||
|
||
/** | ||
* Get the username to authenticate with the source registry. | ||
* | ||
* @return the username value | ||
*/ | ||
public String username() { | ||
return this.username; | ||
} | ||
|
||
/** | ||
* Set the username to authenticate with the source registry. | ||
* | ||
* @param username the username value to set | ||
* @return the ImportSourceCredentials object itself. | ||
*/ | ||
public ImportSourceCredentials withUsername(String username) { | ||
this.username = username; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the password used to authenticate with the source registry. | ||
* | ||
* @return the password value | ||
*/ | ||
public String password() { | ||
return this.password; | ||
} | ||
|
||
/** | ||
* Set the password used to authenticate with the source registry. | ||
* | ||
* @param password the password value to set | ||
* @return the ImportSourceCredentials object itself. | ||
*/ | ||
public ImportSourceCredentials withPassword(String password) { | ||
this.password = password; | ||
return this; | ||
} | ||
|
||
} |
Oops, something went wrong.