Skip to content

Commit a246b6f

Browse files
author
SDK Automation
committed
Generated from addfb1fa4ed6f546c1215840edfb98a3188ac1d7
fix spacing
1 parent 11119d0 commit a246b6f

File tree

5 files changed

+188
-1
lines changed

5 files changed

+188
-1
lines changed

sdk/resources/mgmt-v2019_06_01/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
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-resources</artifactId>
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.resources.v2019_06_01;
10+
11+
import com.fasterxml.jackson.annotation.JsonCreator;
12+
import com.fasterxml.jackson.annotation.JsonValue;
13+
14+
/**
15+
* Defines values for TenantCategory.
16+
*/
17+
public enum TenantCategory {
18+
/** Enum value Home. */
19+
HOME("Home"),
20+
21+
/** Enum value ProjectedBy. */
22+
PROJECTED_BY("ProjectedBy"),
23+
24+
/** Enum value ManagedBy. */
25+
MANAGED_BY("ManagedBy");
26+
27+
/** The actual serialized value for a TenantCategory instance. */
28+
private String value;
29+
30+
TenantCategory(String value) {
31+
this.value = value;
32+
}
33+
34+
/**
35+
* Parses a serialized value to a TenantCategory instance.
36+
*
37+
* @param value the serialized value to parse.
38+
* @return the parsed TenantCategory object, or null if unable to parse.
39+
*/
40+
@JsonCreator
41+
public static TenantCategory fromString(String value) {
42+
TenantCategory[] items = TenantCategory.values();
43+
for (TenantCategory item : items) {
44+
if (item.toString().equalsIgnoreCase(value)) {
45+
return item;
46+
}
47+
}
48+
return null;
49+
}
50+
51+
@JsonValue
52+
@Override
53+
public String toString() {
54+
return this.value;
55+
}
56+
}

sdk/resources/mgmt-v2019_06_01/src/main/java/com/microsoft/azure/management/resources/v2019_06_01/TenantIdDescription.java

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,42 @@
1212
import com.microsoft.azure.arm.resources.models.HasManager;
1313
import com.microsoft.azure.management.resources.v2019_06_01.implementation.ResourcesManager;
1414
import com.microsoft.azure.management.resources.v2019_06_01.implementation.TenantIdDescriptionInner;
15+
import java.util.List;
1516

1617
/**
1718
* Type representing TenantIdDescription.
1819
*/
1920
public interface TenantIdDescription extends HasInner<TenantIdDescriptionInner>, HasManager<ResourcesManager> {
21+
/**
22+
* @return the country value.
23+
*/
24+
String country();
25+
26+
/**
27+
* @return the countryCode value.
28+
*/
29+
String countryCode();
30+
31+
/**
32+
* @return the displayName value.
33+
*/
34+
String displayName();
35+
36+
/**
37+
* @return the domains value.
38+
*/
39+
List<String> domains();
40+
2041
/**
2142
* @return the id value.
2243
*/
2344
String id();
2445

46+
/**
47+
* @return the tenantCategory value.
48+
*/
49+
TenantCategory tenantCategory();
50+
2551
/**
2652
* @return the tenantId value.
2753
*/

sdk/resources/mgmt-v2019_06_01/src/main/java/com/microsoft/azure/management/resources/v2019_06_01/implementation/TenantIdDescriptionImpl.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
import com.microsoft.azure.management.resources.v2019_06_01.TenantIdDescription;
1212
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
13+
import java.util.List;
14+
import com.microsoft.azure.management.resources.v2019_06_01.TenantCategory;
1315

1416
class TenantIdDescriptionImpl extends WrapperImpl<TenantIdDescriptionInner> implements TenantIdDescription {
1517
private final ResourcesManager manager;
@@ -23,11 +25,36 @@ public ResourcesManager manager() {
2325
return this.manager;
2426
}
2527

28+
@Override
29+
public String country() {
30+
return this.inner().country();
31+
}
32+
33+
@Override
34+
public String countryCode() {
35+
return this.inner().countryCode();
36+
}
37+
38+
@Override
39+
public String displayName() {
40+
return this.inner().displayName();
41+
}
42+
43+
@Override
44+
public List<String> domains() {
45+
return this.inner().domains();
46+
}
47+
2648
@Override
2749
public String id() {
2850
return this.inner().id();
2951
}
3052

53+
@Override
54+
public TenantCategory tenantCategory() {
55+
return this.inner().tenantCategory();
56+
}
57+
3158
@Override
3259
public String tenantId() {
3360
return this.inner().tenantId();

sdk/resources/mgmt-v2019_06_01/src/main/java/com/microsoft/azure/management/resources/v2019_06_01/implementation/TenantIdDescriptionInner.java

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
package com.microsoft.azure.management.resources.v2019_06_01.implementation;
1010

11+
import com.microsoft.azure.management.resources.v2019_06_01.TenantCategory;
12+
import java.util.List;
1113
import com.fasterxml.jackson.annotation.JsonProperty;
1214

1315
/**
@@ -27,6 +29,37 @@ public class TenantIdDescriptionInner {
2729
@JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY)
2830
private String tenantId;
2931

32+
/**
33+
* The tenant category. Possible values include: 'Home', 'ProjectedBy',
34+
* 'ManagedBy'.
35+
*/
36+
@JsonProperty(value = "tenantCategory", access = JsonProperty.Access.WRITE_ONLY)
37+
private TenantCategory tenantCategory;
38+
39+
/**
40+
* Country/region name of the address for the tenant.
41+
*/
42+
@JsonProperty(value = "country", access = JsonProperty.Access.WRITE_ONLY)
43+
private String country;
44+
45+
/**
46+
* Country/region abbreviation for the tenant.
47+
*/
48+
@JsonProperty(value = "countryCode", access = JsonProperty.Access.WRITE_ONLY)
49+
private String countryCode;
50+
51+
/**
52+
* The display name of the tenant.
53+
*/
54+
@JsonProperty(value = "displayName", access = JsonProperty.Access.WRITE_ONLY)
55+
private String displayName;
56+
57+
/**
58+
* The list of domains for the tenant.
59+
*/
60+
@JsonProperty(value = "domains", access = JsonProperty.Access.WRITE_ONLY)
61+
private List<String> domains;
62+
3063
/**
3164
* Get the fully qualified ID of the tenant. For example, /tenants/00000000-0000-0000-0000-000000000000.
3265
*
@@ -45,4 +78,49 @@ public String tenantId() {
4578
return this.tenantId;
4679
}
4780

81+
/**
82+
* Get the tenant category. Possible values include: 'Home', 'ProjectedBy', 'ManagedBy'.
83+
*
84+
* @return the tenantCategory value
85+
*/
86+
public TenantCategory tenantCategory() {
87+
return this.tenantCategory;
88+
}
89+
90+
/**
91+
* Get country/region name of the address for the tenant.
92+
*
93+
* @return the country value
94+
*/
95+
public String country() {
96+
return this.country;
97+
}
98+
99+
/**
100+
* Get country/region abbreviation for the tenant.
101+
*
102+
* @return the countryCode value
103+
*/
104+
public String countryCode() {
105+
return this.countryCode;
106+
}
107+
108+
/**
109+
* Get the display name of the tenant.
110+
*
111+
* @return the displayName value
112+
*/
113+
public String displayName() {
114+
return this.displayName;
115+
}
116+
117+
/**
118+
* Get the list of domains for the tenant.
119+
*
120+
* @return the domains value
121+
*/
122+
public List<String> domains() {
123+
return this.domains;
124+
}
125+
48126
}

0 commit comments

Comments
 (0)