Skip to content

Commit bceb824

Browse files
yolocsbrendandburns
authored andcommitted
Add Java ACI runtime annotation (#37)
* added aci runtime for java * add default value for resource group
1 parent 68cd883 commit bceb824

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
package io.metaparticle.annotations;
2+
3+
import java.lang.annotation.Retention;
4+
import java.lang.annotation.RetentionPolicy;
5+
6+
@Retention(RetentionPolicy.RUNTIME)
7+
public @interface AciRuntime {
8+
/**
9+
* Azure tenant id.
10+
*/
11+
public String azureTenantId() default "";
12+
13+
/**
14+
* Azure subscription id.
15+
* Container instances will be created using the given subscription.
16+
*/
17+
public String azureSubscriptionId() default "";
18+
19+
/**
20+
* Azure client id (aka. application id).
21+
*/
22+
public String azureClientId() default "";
23+
24+
/**
25+
* Azure client secret (aka. application key).
26+
* If specified, then will authenticate to Azure as service principal.
27+
* And then no need to specify username/password.
28+
*/
29+
public String azureClientSecret() default "";
30+
31+
public String username() default "";
32+
33+
public String password() default "";
34+
35+
/**
36+
* The resource group to create container instance.
37+
*/
38+
public String aciResourceGroup() default "metaparticle-execution";
39+
}

0 commit comments

Comments
 (0)