Skip to content

Commit d1cd4f1

Browse files
author
SDK Automation
committed
Generated from 0b47ad406f6fbb48822734454720454ffb2d2d3f
Reverting Agreement related changes
1 parent 41731cd commit d1cd4f1

File tree

10 files changed

+374
-0
lines changed

10 files changed

+374
-0
lines changed

sdk/billing/mgmt-v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfile.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ public interface BillingProfile extends HasInner<BillingProfileInner>, Indexable
2929
*/
3030
AddressDetails address();
3131

32+
/**
33+
* @return the billingRelationshipType value.
34+
*/
35+
BillingRelationshipType billingRelationshipType();
36+
3237
/**
3338
* @return the currency value.
3439
*/
@@ -49,6 +54,11 @@ public interface BillingProfile extends HasInner<BillingProfileInner>, Indexable
4954
*/
5055
String id();
5156

57+
/**
58+
* @return the indirectRelationshipInfo value.
59+
*/
60+
IndirectRelationshipInfo indirectRelationshipInfo();
61+
5262
/**
5363
* @return the invoiceDay value.
5464
*/
@@ -89,6 +99,11 @@ public interface BillingProfile extends HasInner<BillingProfileInner>, Indexable
8999
*/
90100
StatusReasonCode statusReasonCode();
91101

102+
/**
103+
* @return the targetClouds value.
104+
*/
105+
List<TargetCloud> targetClouds();
106+
92107
/**
93108
* @return the type value.
94109
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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.billing.v2019_10_01_preview;
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 BillingRelationshipType.
17+
*/
18+
public final class BillingRelationshipType extends ExpandableStringEnum<BillingRelationshipType> {
19+
/** Static value Direct for BillingRelationshipType. */
20+
public static final BillingRelationshipType DIRECT = fromString("Direct");
21+
22+
/** Static value IndirectCustomer for BillingRelationshipType. */
23+
public static final BillingRelationshipType INDIRECT_CUSTOMER = fromString("IndirectCustomer");
24+
25+
/** Static value IndirectPartner for BillingRelationshipType. */
26+
public static final BillingRelationshipType INDIRECT_PARTNER = fromString("IndirectPartner");
27+
28+
/** Static value CSPPartner for BillingRelationshipType. */
29+
public static final BillingRelationshipType CSPPARTNER = fromString("CSPPartner");
30+
31+
/**
32+
* Creates or finds a BillingRelationshipType from its string representation.
33+
* @param name a name to look for
34+
* @return the corresponding BillingRelationshipType
35+
*/
36+
@JsonCreator
37+
public static BillingRelationshipType fromString(String name) {
38+
return fromString(name, BillingRelationshipType.class);
39+
}
40+
41+
/**
42+
* @return known BillingRelationshipType values
43+
*/
44+
public static Collection<BillingRelationshipType> values() {
45+
return values(BillingRelationshipType.class);
46+
}
47+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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.billing.v2019_10_01_preview;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* The billing profile details of the partner of the customer for an indirect
15+
* motion.
16+
*/
17+
public class IndirectRelationshipInfo {
18+
/**
19+
* The billing account name of the partner or the customer for an indirect
20+
* motion.
21+
*/
22+
@JsonProperty(value = "billingAccountName")
23+
private String billingAccountName;
24+
25+
/**
26+
* The billing profile name of the partner or the customer for an indirect
27+
* motion.
28+
*/
29+
@JsonProperty(value = "billingProfileName")
30+
private String billingProfileName;
31+
32+
/**
33+
* The display name of the partner or customer for an indirect motion.
34+
*/
35+
@JsonProperty(value = "displayName")
36+
private String displayName;
37+
38+
/**
39+
* Get the billing account name of the partner or the customer for an indirect motion.
40+
*
41+
* @return the billingAccountName value
42+
*/
43+
public String billingAccountName() {
44+
return this.billingAccountName;
45+
}
46+
47+
/**
48+
* Set the billing account name of the partner or the customer for an indirect motion.
49+
*
50+
* @param billingAccountName the billingAccountName value to set
51+
* @return the IndirectRelationshipInfo object itself.
52+
*/
53+
public IndirectRelationshipInfo withBillingAccountName(String billingAccountName) {
54+
this.billingAccountName = billingAccountName;
55+
return this;
56+
}
57+
58+
/**
59+
* Get the billing profile name of the partner or the customer for an indirect motion.
60+
*
61+
* @return the billingProfileName value
62+
*/
63+
public String billingProfileName() {
64+
return this.billingProfileName;
65+
}
66+
67+
/**
68+
* Set the billing profile name of the partner or the customer for an indirect motion.
69+
*
70+
* @param billingProfileName the billingProfileName value to set
71+
* @return the IndirectRelationshipInfo object itself.
72+
*/
73+
public IndirectRelationshipInfo withBillingProfileName(String billingProfileName) {
74+
this.billingProfileName = billingProfileName;
75+
return this;
76+
}
77+
78+
/**
79+
* Get the display name of the partner or customer for an indirect motion.
80+
*
81+
* @return the displayName value
82+
*/
83+
public String displayName() {
84+
return this.displayName;
85+
}
86+
87+
/**
88+
* Set the display name of the partner or customer for an indirect motion.
89+
*
90+
* @param displayName the displayName value to set
91+
* @return the IndirectRelationshipInfo object itself.
92+
*/
93+
public IndirectRelationshipInfo withDisplayName(String displayName) {
94+
this.displayName = displayName;
95+
return this;
96+
}
97+
98+
}

sdk/billing/mgmt-v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSection.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ public interface InvoiceSection extends HasInner<InvoiceSectionInner>, Indexable
3737
*/
3838
String name();
3939

40+
/**
41+
* @return the state value.
42+
*/
43+
InvoiceSectionState state();
44+
45+
/**
46+
* @return the targetCloud value.
47+
*/
48+
TargetCloud targetCloud();
49+
4050
/**
4151
* @return the type value.
4252
*/
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.billing.v2019_10_01_preview;
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 InvoiceSectionState.
17+
*/
18+
public final class InvoiceSectionState extends ExpandableStringEnum<InvoiceSectionState> {
19+
/** Static value Active for InvoiceSectionState. */
20+
public static final InvoiceSectionState ACTIVE = fromString("Active");
21+
22+
/** Static value Restricted for InvoiceSectionState. */
23+
public static final InvoiceSectionState RESTRICTED = fromString("Restricted");
24+
25+
/**
26+
* Creates or finds a InvoiceSectionState from its string representation.
27+
* @param name a name to look for
28+
* @return the corresponding InvoiceSectionState
29+
*/
30+
@JsonCreator
31+
public static InvoiceSectionState fromString(String name) {
32+
return fromString(name, InvoiceSectionState.class);
33+
}
34+
35+
/**
36+
* @return known InvoiceSectionState values
37+
*/
38+
public static Collection<InvoiceSectionState> values() {
39+
return values(InvoiceSectionState.class);
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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.billing.v2019_10_01_preview;
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 TargetCloud.
17+
*/
18+
public final class TargetCloud extends ExpandableStringEnum<TargetCloud> {
19+
/** Static value USGov for TargetCloud. */
20+
public static final TargetCloud USGOV = fromString("USGov");
21+
22+
/** Static value USNat for TargetCloud. */
23+
public static final TargetCloud USNAT = fromString("USNat");
24+
25+
/** Static value USSec for TargetCloud. */
26+
public static final TargetCloud USSEC = fromString("USSec");
27+
28+
/**
29+
* Creates or finds a TargetCloud from its string representation.
30+
* @param name a name to look for
31+
* @return the corresponding TargetCloud
32+
*/
33+
@JsonCreator
34+
public static TargetCloud fromString(String name) {
35+
return fromString(name, TargetCloud.class);
36+
}
37+
38+
/**
39+
* @return known TargetCloud values
40+
*/
41+
public static Collection<TargetCloud> values() {
42+
return values(TargetCloud.class);
43+
}
44+
}

sdk/billing/mgmt-v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/implementation/BillingProfileImpl.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@
1212
import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl;
1313
import rx.Observable;
1414
import com.microsoft.azure.management.billing.v2019_10_01_preview.AddressDetails;
15+
import com.microsoft.azure.management.billing.v2019_10_01_preview.BillingRelationshipType;
1516
import java.util.List;
1617
import com.microsoft.azure.management.billing.v2019_10_01_preview.AzurePlan;
18+
import com.microsoft.azure.management.billing.v2019_10_01_preview.IndirectRelationshipInfo;
1719
import com.microsoft.azure.management.billing.v2019_10_01_preview.StatusReasonCode;
1820
import com.microsoft.azure.management.billing.v2019_10_01_preview.SpendingLimit;
21+
import com.microsoft.azure.management.billing.v2019_10_01_preview.TargetCloud;
1922
import com.microsoft.azure.management.billing.v2019_10_01_preview.BillingProfileCreationRequest;
2023
import java.util.ArrayList;
2124
import com.microsoft.azure.management.billing.v2019_10_01_preview.InvoiceSection;
@@ -101,6 +104,11 @@ public AddressDetails address() {
101104
return this.inner().address();
102105
}
103106

107+
@Override
108+
public BillingRelationshipType billingRelationshipType() {
109+
return this.inner().billingRelationshipType();
110+
}
111+
104112
@Override
105113
public String currency() {
106114
return this.inner().currency();
@@ -121,6 +129,11 @@ public String id() {
121129
return this.inner().id();
122130
}
123131

132+
@Override
133+
public IndirectRelationshipInfo indirectRelationshipInfo() {
134+
return this.inner().indirectRelationshipInfo();
135+
}
136+
124137
@Override
125138
public Integer invoiceDay() {
126139
return this.inner().invoiceDay();
@@ -167,6 +180,11 @@ public StatusReasonCode statusReasonCode() {
167180
return this.inner().statusReasonCode();
168181
}
169182

183+
@Override
184+
public List<TargetCloud> targetClouds() {
185+
return this.inner().targetClouds();
186+
}
187+
170188
@Override
171189
public String type() {
172190
return this.inner().type();

0 commit comments

Comments
 (0)