Skip to content

Commit 27bd4c3

Browse files
author
SDK Automation
committed
Generated from c0e334513038787686fe5db7729455ac0a8360f5
update examples for pipeline run
1 parent e5494c7 commit 27bd4c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1439
-77
lines changed

sdk/containerregistry/mgmt-v2018_09_01/pom.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
<parent>
1212
<groupId>com.microsoft.azure</groupId>
1313
<artifactId>azure-arm-parent</artifactId>
14-
<version>1.2.0</version>
14+
<version>1.1.0</version>
1515
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-containerregistry</artifactId>
18-
<version>1.0.0-beta-1</version>
18+
<version>1.0.0-beta</version>
1919
<packaging>jar</packaging>
2020
<name>Microsoft Azure SDK for ContainerRegistry Management</name>
2121
<description>This package contains Microsoft ContainerRegistry Management SDK.</description>
@@ -71,6 +71,8 @@
7171
<artifactId>azure-arm-client-runtime</artifactId>
7272
<type>test-jar</type>
7373
<scope>test</scope>
74+
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
75+
<version>1.6.5</version>
7476
</dependency>
7577
</dependencies>
7678
<build>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.containerregistry.v2018_09_01;
10+
11+
import java.util.Collection;
12+
import com.fasterxml.jackson.annotation.JsonCreator;
13+
import com.microsoft.rest.ExpandableStringEnum;
14+
15+
/**
16+
* Defines values for Action.
17+
*/
18+
public final class Action extends ExpandableStringEnum<Action> {
19+
/** Static value Allow for Action. */
20+
public static final Action ALLOW = fromString("Allow");
21+
22+
/**
23+
* Creates or finds a Action from its string representation.
24+
* @param name a name to look for
25+
* @return the corresponding Action
26+
*/
27+
@JsonCreator
28+
public static Action fromString(String name) {
29+
return fromString(name, Action.class);
30+
}
31+
32+
/**
33+
* @return known Action values
34+
*/
35+
public static Collection<Action> values() {
36+
return values(Action.class);
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.containerregistry.v2018_09_01;
10+
11+
import java.util.Map;
12+
import com.fasterxml.jackson.annotation.JsonProperty;
13+
14+
/**
15+
* The parameters that describes a set of credentials that will be used when a
16+
* run is invoked.
17+
*/
18+
public class Credentials {
19+
/**
20+
* Describes the credential parameters for accessing the source registry.
21+
*/
22+
@JsonProperty(value = "sourceRegistry")
23+
private SourceRegistryCredentials sourceRegistry;
24+
25+
/**
26+
* Describes the credential parameters for accessing other custom
27+
* registries. The key
28+
* for the dictionary item will be the registry login server
29+
* (myregistry.azurecr.io) and
30+
* the value of the item will be the registry credentials for accessing the
31+
* registry.
32+
*/
33+
@JsonProperty(value = "customRegistries")
34+
private Map<String, CustomRegistryCredentials> customRegistries;
35+
36+
/**
37+
* Get describes the credential parameters for accessing the source registry.
38+
*
39+
* @return the sourceRegistry value
40+
*/
41+
public SourceRegistryCredentials sourceRegistry() {
42+
return this.sourceRegistry;
43+
}
44+
45+
/**
46+
* Set describes the credential parameters for accessing the source registry.
47+
*
48+
* @param sourceRegistry the sourceRegistry value to set
49+
* @return the Credentials object itself.
50+
*/
51+
public Credentials withSourceRegistry(SourceRegistryCredentials sourceRegistry) {
52+
this.sourceRegistry = sourceRegistry;
53+
return this;
54+
}
55+
56+
/**
57+
* Get describes the credential parameters for accessing other custom registries. The key
58+
for the dictionary item will be the registry login server (myregistry.azurecr.io) and
59+
the value of the item will be the registry credentials for accessing the registry.
60+
*
61+
* @return the customRegistries value
62+
*/
63+
public Map<String, CustomRegistryCredentials> customRegistries() {
64+
return this.customRegistries;
65+
}
66+
67+
/**
68+
* Set describes the credential parameters for accessing other custom registries. The key
69+
for the dictionary item will be the registry login server (myregistry.azurecr.io) and
70+
the value of the item will be the registry credentials for accessing the registry.
71+
*
72+
* @param customRegistries the customRegistries value to set
73+
* @return the Credentials object itself.
74+
*/
75+
public Credentials withCustomRegistries(Map<String, CustomRegistryCredentials> customRegistries) {
76+
this.customRegistries = customRegistries;
77+
return this;
78+
}
79+
80+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.containerregistry.v2018_09_01;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* Describes the credentials that will be used to access a custom registry
15+
* during a run.
16+
*/
17+
public class CustomRegistryCredentials {
18+
/**
19+
* The username for logging into the custom registry.
20+
*/
21+
@JsonProperty(value = "userName")
22+
private SecretObject userName;
23+
24+
/**
25+
* The password for logging into the custom registry. The password is a
26+
* secret
27+
* object that allows multiple ways of providing the value for it.
28+
*/
29+
@JsonProperty(value = "password")
30+
private SecretObject password;
31+
32+
/**
33+
* Get the username for logging into the custom registry.
34+
*
35+
* @return the userName value
36+
*/
37+
public SecretObject userName() {
38+
return this.userName;
39+
}
40+
41+
/**
42+
* Set the username for logging into the custom registry.
43+
*
44+
* @param userName the userName value to set
45+
* @return the CustomRegistryCredentials object itself.
46+
*/
47+
public CustomRegistryCredentials withUserName(SecretObject userName) {
48+
this.userName = userName;
49+
return this;
50+
}
51+
52+
/**
53+
* Get the password for logging into the custom registry. The password is a secret
54+
object that allows multiple ways of providing the value for it.
55+
*
56+
* @return the password value
57+
*/
58+
public SecretObject password() {
59+
return this.password;
60+
}
61+
62+
/**
63+
* Set the password for logging into the custom registry. The password is a secret
64+
object that allows multiple ways of providing the value for it.
65+
*
66+
* @param password the password value to set
67+
* @return the CustomRegistryCredentials object itself.
68+
*/
69+
public CustomRegistryCredentials withPassword(SecretObject password) {
70+
this.password = password;
71+
return this;
72+
}
73+
74+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.containerregistry.v2018_09_01;
10+
11+
import java.util.Collection;
12+
import com.fasterxml.jackson.annotation.JsonCreator;
13+
import com.microsoft.rest.ExpandableStringEnum;
14+
15+
/**
16+
* Defines values for DefaultAction.
17+
*/
18+
public final class DefaultAction extends ExpandableStringEnum<DefaultAction> {
19+
/** Static value Allow for DefaultAction. */
20+
public static final DefaultAction ALLOW = fromString("Allow");
21+
22+
/** Static value Deny for DefaultAction. */
23+
public static final DefaultAction DENY = fromString("Deny");
24+
25+
/**
26+
* Creates or finds a DefaultAction from its string representation.
27+
* @param name a name to look for
28+
* @return the corresponding DefaultAction
29+
*/
30+
@JsonCreator
31+
public static DefaultAction fromString(String name) {
32+
return fromString(name, DefaultAction.class);
33+
}
34+
35+
/**
36+
* @return known DefaultAction values
37+
*/
38+
public static Collection<DefaultAction> values() {
39+
return values(DefaultAction.class);
40+
}
41+
}

sdk/containerregistry/mgmt-v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/DockerBuildRequest.java

Lines changed: 57 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/**
1717
* The parameters for a docker quick build.
1818
*/
19-
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
19+
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", defaultImpl = DockerBuildRequest.class)
2020
@JsonTypeName("DockerBuildRequest")
2121
public class DockerBuildRequest extends RunRequest {
2222
/**
@@ -45,6 +45,12 @@ public class DockerBuildRequest extends RunRequest {
4545
@JsonProperty(value = "dockerFilePath", required = true)
4646
private String dockerFilePath;
4747

48+
/**
49+
* The name of the target build stage for the docker build.
50+
*/
51+
@JsonProperty(value = "target")
52+
private String target;
53+
4854
/**
4955
* The collection of override arguments to be used when executing the run.
5056
*/
@@ -71,13 +77,20 @@ public class DockerBuildRequest extends RunRequest {
7177

7278
/**
7379
* The URL(absolute or relative) of the source context. It can be an URL to
74-
* a tar or git repoistory.
80+
* a tar or git repository.
7581
* If it is relative URL, the relative path should be obtained from calling
7682
* listBuildSourceUploadUrl API.
7783
*/
7884
@JsonProperty(value = "sourceLocation")
7985
private String sourceLocation;
8086

87+
/**
88+
* The properties that describes a set of credentials that will be used
89+
* when this run is invoked.
90+
*/
91+
@JsonProperty(value = "credentials")
92+
private Credentials credentials;
93+
8194
/**
8295
* Get the fully qualified image names including the repository and tag.
8396
*
@@ -158,6 +171,26 @@ public DockerBuildRequest withDockerFilePath(String dockerFilePath) {
158171
return this;
159172
}
160173

174+
/**
175+
* Get the name of the target build stage for the docker build.
176+
*
177+
* @return the target value
178+
*/
179+
public String target() {
180+
return this.target;
181+
}
182+
183+
/**
184+
* Set the name of the target build stage for the docker build.
185+
*
186+
* @param target the target value to set
187+
* @return the DockerBuildRequest object itself.
188+
*/
189+
public DockerBuildRequest withTarget(String target) {
190+
this.target = target;
191+
return this;
192+
}
193+
161194
/**
162195
* Get the collection of override arguments to be used when executing the run.
163196
*
@@ -239,7 +272,7 @@ public DockerBuildRequest withAgentConfiguration(AgentProperties agentConfigurat
239272
}
240273

241274
/**
242-
* Get the URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory.
275+
* Get the URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
243276
If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
244277
*
245278
* @return the sourceLocation value
@@ -249,7 +282,7 @@ public String sourceLocation() {
249282
}
250283

251284
/**
252-
* Set the URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory.
285+
* Set the URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
253286
If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
254287
*
255288
* @param sourceLocation the sourceLocation value to set
@@ -260,4 +293,24 @@ public DockerBuildRequest withSourceLocation(String sourceLocation) {
260293
return this;
261294
}
262295

296+
/**
297+
* Get the properties that describes a set of credentials that will be used when this run is invoked.
298+
*
299+
* @return the credentials value
300+
*/
301+
public Credentials credentials() {
302+
return this.credentials;
303+
}
304+
305+
/**
306+
* Set the properties that describes a set of credentials that will be used when this run is invoked.
307+
*
308+
* @param credentials the credentials value to set
309+
* @return the DockerBuildRequest object itself.
310+
*/
311+
public DockerBuildRequest withCredentials(Credentials credentials) {
312+
this.credentials = credentials;
313+
return this;
314+
}
315+
263316
}

0 commit comments

Comments
 (0)