Skip to content

Commit 434bff9

Browse files
committed
feat: create azure initial structure
Signed-off-by: Otavio Santana <[email protected]>
1 parent 1785927 commit 434bff9

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package org.soujava.demos.arangodb.document;
2+
3+
import jakarta.nosql.Column;
4+
import jakarta.nosql.Entity;
5+
import net.datafaker.Faker;
6+
7+
import java.util.UUID;
8+
9+
@Entity
10+
public class AzureCloudProvider extends CloudProvider {
11+
12+
13+
@Column
14+
private String accountId;
15+
16+
17+
18+
public static AzureCloudProvider of(Faker faker) {
19+
var aws = faker.aws();
20+
var cloudProvider = new AzureCloudProvider();
21+
cloudProvider.region = aws.region();
22+
cloudProvider.region = aws.region();
23+
cloudProvider.id = UUID.randomUUID().toString();
24+
cloudProvider.accountId = aws.accountId();
25+
return cloudProvider;
26+
27+
}
28+
29+
30+
}

0 commit comments

Comments
 (0)