diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProfile.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProfile.cs
index 35a438a6a3d6..edfc1a407607 100644
--- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProfile.cs
+++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingProfile.cs
@@ -40,7 +40,14 @@ public BillingProfile()
/// The name of the billing profile.
/// The purchase order name that will appear on
/// the invoices generated for the billing profile.
+ /// Identifies which services and
+ /// purchases are paid by a billing profile. Possible values include:
+ /// 'Direct', 'IndirectCustomer', 'IndirectPartner',
+ /// 'CSPPartner'
/// Billing address.
+ /// Identifies the billing
+ /// profile that is linked to another billing profile in indirect
+ /// purchase motion.
/// Flag controlling whether the
/// invoices for the billing profile are sent through email.
/// The day of the month when the invoice for
@@ -63,12 +70,18 @@ public BillingProfile()
/// 'SpendingLimitReached', 'SpendingLimitExpired'
/// The billing profile spending limit.
/// Possible values include: 'Off', 'On'
- public BillingProfile(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), string poNumber = default(string), AddressDetails billTo = default(AddressDetails), bool? invoiceEmailOptIn = default(bool?), int? invoiceDay = default(int?), string currency = default(string), IList enabledAzurePlans = default(IList), InvoiceSectionsOnExpand invoiceSections = default(InvoiceSectionsOnExpand), bool? hasReadAccess = default(bool?), string systemId = default(string), string status = default(string), string statusReasonCode = default(string), string spendingLimit = default(string))
+ /// Identifies the cloud environments that
+ /// are associated with a billing profile. This is a system managed
+ /// optional field and gets updated as the billing profile gets
+ /// associated with accounts in various clouds.
+ public BillingProfile(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), string poNumber = default(string), string billingRelationshipType = default(string), AddressDetails billTo = default(AddressDetails), IndirectRelationshipInfo indirectRelationshipInfo = default(IndirectRelationshipInfo), bool? invoiceEmailOptIn = default(bool?), int? invoiceDay = default(int?), string currency = default(string), IList enabledAzurePlans = default(IList), InvoiceSectionsOnExpand invoiceSections = default(InvoiceSectionsOnExpand), bool? hasReadAccess = default(bool?), string systemId = default(string), string status = default(string), string statusReasonCode = default(string), string spendingLimit = default(string), IList targetClouds = default(IList))
: base(id, name, type)
{
DisplayName = displayName;
PoNumber = poNumber;
+ BillingRelationshipType = billingRelationshipType;
BillTo = billTo;
+ IndirectRelationshipInfo = indirectRelationshipInfo;
InvoiceEmailOptIn = invoiceEmailOptIn;
InvoiceDay = invoiceDay;
Currency = currency;
@@ -79,6 +92,7 @@ public BillingProfile()
Status = status;
StatusReasonCode = statusReasonCode;
SpendingLimit = spendingLimit;
+ TargetClouds = targetClouds;
CustomInit();
}
@@ -100,12 +114,27 @@ public BillingProfile()
[JsonProperty(PropertyName = "properties.poNumber")]
public string PoNumber { get; set; }
+ ///
+ /// Gets identifies which services and purchases are paid by a billing
+ /// profile. Possible values include: 'Direct', 'IndirectCustomer',
+ /// 'IndirectPartner', 'CSPPartner'
+ ///
+ [JsonProperty(PropertyName = "properties.billingRelationshipType")]
+ public string BillingRelationshipType { get; private set; }
+
///
/// Gets or sets billing address.
///
[JsonProperty(PropertyName = "properties.billTo")]
public AddressDetails BillTo { get; set; }
+ ///
+ /// Gets identifies the billing profile that is linked to another
+ /// billing profile in indirect purchase motion.
+ ///
+ [JsonProperty(PropertyName = "properties.indirectRelationshipInfo")]
+ public IndirectRelationshipInfo IndirectRelationshipInfo { get; private set; }
+
///
/// Gets or sets flag controlling whether the invoices for the billing
/// profile are sent through email.
@@ -175,6 +204,15 @@ public BillingProfile()
[JsonProperty(PropertyName = "properties.spendingLimit")]
public string SpendingLimit { get; private set; }
+ ///
+ /// Gets identifies the cloud environments that are associated with a
+ /// billing profile. This is a system managed optional field and gets
+ /// updated as the billing profile gets associated with accounts in
+ /// various clouds.
+ ///
+ [JsonProperty(PropertyName = "properties.targetClouds")]
+ public IList TargetClouds { get; private set; }
+
///
/// Validate the object.
///
diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingRelationshipType.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingRelationshipType.cs
new file mode 100644
index 000000000000..c7ca4e637710
--- /dev/null
+++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/BillingRelationshipType.cs
@@ -0,0 +1,24 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Billing.Models
+{
+
+ ///
+ /// Defines values for BillingRelationshipType.
+ ///
+ public static class BillingRelationshipType
+ {
+ public const string Direct = "Direct";
+ public const string IndirectCustomer = "IndirectCustomer";
+ public const string IndirectPartner = "IndirectPartner";
+ public const string CSPPartner = "CSPPartner";
+ }
+}
diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/IndirectRelationshipInfo.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/IndirectRelationshipInfo.cs
new file mode 100644
index 000000000000..977b6f231d37
--- /dev/null
+++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/IndirectRelationshipInfo.cs
@@ -0,0 +1,74 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Billing.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The billing profile details of the partner of the customer for an
+ /// indirect motion.
+ ///
+ public partial class IndirectRelationshipInfo
+ {
+ ///
+ /// Initializes a new instance of the IndirectRelationshipInfo class.
+ ///
+ public IndirectRelationshipInfo()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the IndirectRelationshipInfo class.
+ ///
+ /// The billing account name of the
+ /// partner or the customer for an indirect motion.
+ /// The billing profile name of the
+ /// partner or the customer for an indirect motion.
+ /// The display name of the partner or
+ /// customer for an indirect motion.
+ public IndirectRelationshipInfo(string billingAccountName = default(string), string billingProfileName = default(string), string displayName = default(string))
+ {
+ BillingAccountName = billingAccountName;
+ BillingProfileName = billingProfileName;
+ DisplayName = displayName;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the billing account name of the partner or the
+ /// customer for an indirect motion.
+ ///
+ [JsonProperty(PropertyName = "billingAccountName")]
+ public string BillingAccountName { get; set; }
+
+ ///
+ /// Gets or sets the billing profile name of the partner or the
+ /// customer for an indirect motion.
+ ///
+ [JsonProperty(PropertyName = "billingProfileName")]
+ public string BillingProfileName { get; set; }
+
+ ///
+ /// Gets or sets the display name of the partner or customer for an
+ /// indirect motion.
+ ///
+ [JsonProperty(PropertyName = "displayName")]
+ public string DisplayName { get; set; }
+
+ }
+}
diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSection.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSection.cs
index 1a7aaac35a84..8516701512f2 100644
--- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSection.cs
+++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSection.cs
@@ -40,14 +40,23 @@ public InvoiceSection()
/// The name of the invoice section.
/// Dictionary of metadata associated with the
/// invoice section.
+ /// Identifies the state of an invoice section.
+ /// Possible values include: 'Active', 'Restricted'
/// The system generated unique identifier for
/// an invoice section.
- public InvoiceSection(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), IDictionary labels = default(IDictionary), string systemId = default(string))
+ /// Identifies the cloud environments that
+ /// are associated with an invoice section. This is a system managed
+ /// optional field and gets updated as the invoice section gets
+ /// associated with accounts in various clouds. Possible values
+ /// include: 'USGov', 'USNat', 'USSec'
+ public InvoiceSection(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), IDictionary labels = default(IDictionary), string state = default(string), string systemId = default(string), string targetCloud = default(string))
: base(id, name, type)
{
DisplayName = displayName;
Labels = labels;
+ State = state;
SystemId = systemId;
+ TargetCloud = targetCloud;
CustomInit();
}
@@ -69,11 +78,27 @@ public InvoiceSection()
[JsonProperty(PropertyName = "properties.labels")]
public IDictionary Labels { get; set; }
+ ///
+ /// Gets identifies the state of an invoice section. Possible values
+ /// include: 'Active', 'Restricted'
+ ///
+ [JsonProperty(PropertyName = "properties.state")]
+ public string State { get; private set; }
+
///
/// Gets the system generated unique identifier for an invoice section.
///
[JsonProperty(PropertyName = "properties.systemId")]
public string SystemId { get; private set; }
+ ///
+ /// Gets identifies the cloud environments that are associated with an
+ /// invoice section. This is a system managed optional field and gets
+ /// updated as the invoice section gets associated with accounts in
+ /// various clouds. Possible values include: 'USGov', 'USNat', 'USSec'
+ ///
+ [JsonProperty(PropertyName = "properties.targetCloud")]
+ public string TargetCloud { get; private set; }
+
}
}
diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSectionState.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSectionState.cs
new file mode 100644
index 000000000000..243d3b1e54fd
--- /dev/null
+++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/InvoiceSectionState.cs
@@ -0,0 +1,22 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Billing.Models
+{
+
+ ///
+ /// Defines values for InvoiceSectionState.
+ ///
+ public static class InvoiceSectionState
+ {
+ public const string Active = "Active";
+ public const string Restricted = "Restricted";
+ }
+}
diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TargetCloud.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TargetCloud.cs
new file mode 100644
index 000000000000..25fca188d989
--- /dev/null
+++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/Models/TargetCloud.cs
@@ -0,0 +1,23 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Billing.Models
+{
+
+ ///
+ /// Defines values for TargetCloud.
+ ///
+ public static class TargetCloud
+ {
+ public const string USGov = "USGov";
+ public const string USNat = "USNat";
+ public const string USSec = "USSec";
+ }
+}
diff --git a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/SdkInfo_BillingManagementClient.cs b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/SdkInfo_BillingManagementClient.cs
index 64cfd41202ee..284b74359f7a 100644
--- a/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/SdkInfo_BillingManagementClient.cs
+++ b/sdk/billing/Microsoft.Azure.Management.Billing/src/Generated/SdkInfo_BillingManagementClient.cs
@@ -42,16 +42,5 @@ public static IEnumerable> ApiInfo_BillingManageme
}.AsEnumerable();
}
}
- // BEGIN: Code Generation Metadata Section
- public static readonly String AutoRestVersion = "v2";
- public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413";
- public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/billing/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\Users\\ansar\\Documents\\GitHub\\azure-sdk-for-net\\sdk";
- public static readonly String GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "bfd326ea58084517f8e9cb2e6bdbcb0c400f6370";
- public static readonly String CodeGenerationErrors = "";
- public static readonly String GithubRepoName = "azure-rest-api-specs";
- // END: Code Generation Metadata Section
}
}
-