From 5edbb481cf54709ecae5975a38becb787e90e2bc Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 20 Nov 2020 09:34:38 +0000 Subject: [PATCH] CodeGen from PR 11722 in Azure/azure-rest-api-specs [T2] datalakestore for python track2 (#11722) * python track2 * python.md --- .../store/mgmt/2016-11-01/account/models.go | 67 +++++++++++-------- 1 file changed, 40 insertions(+), 27 deletions(-) diff --git a/services/datalake/store/mgmt/2016-11-01/account/models.go b/services/datalake/store/mgmt/2016-11-01/account/models.go index 49da3dcc22c5..4460a1d75020 100644 --- a/services/datalake/store/mgmt/2016-11-01/account/models.go +++ b/services/datalake/store/mgmt/2016-11-01/account/models.go @@ -241,8 +241,8 @@ type CreateDataLakeStoreAccountProperties struct { NewTier TierType `json:"newTier,omitempty"` } -// CreateFirewallRuleWithAccountParameters the parameters used to create a new firewall rule while creating a -// new Data Lake Store account. +// CreateFirewallRuleWithAccountParameters the parameters used to create a new firewall rule while creating +// a new Data Lake Store account. type CreateFirewallRuleWithAccountParameters struct { // Name - The unique name of the firewall rule to create. Name *string `json:"name,omitempty"` @@ -334,7 +334,8 @@ func (coufrp *CreateOrUpdateFirewallRuleParameters) UnmarshalJSON(body []byte) e return nil } -// CreateOrUpdateFirewallRuleProperties the firewall rule properties to use when creating a new firewall rule. +// CreateOrUpdateFirewallRuleProperties the firewall rule properties to use when creating a new firewall +// rule. type CreateOrUpdateFirewallRuleProperties struct { // StartIPAddress - The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol. StartIPAddress *string `json:"startIpAddress,omitempty"` @@ -381,8 +382,8 @@ func (coutipp *CreateOrUpdateTrustedIDProviderParameters) UnmarshalJSON(body []b return nil } -// CreateOrUpdateTrustedIDProviderProperties the trusted identity provider properties to use when creating a -// new trusted identity provider. +// CreateOrUpdateTrustedIDProviderProperties the trusted identity provider properties to use when creating +// a new trusted identity provider. type CreateOrUpdateTrustedIDProviderProperties struct { // IDProvider - The URL of this trusted identity provider. IDProvider *string `json:"idProvider,omitempty"` @@ -427,15 +428,15 @@ func (couvnrp *CreateOrUpdateVirtualNetworkRuleParameters) UnmarshalJSON(body [] return nil } -// CreateOrUpdateVirtualNetworkRuleProperties the virtual network rule properties to use when creating a new -// virtual network rule. +// CreateOrUpdateVirtualNetworkRuleProperties the virtual network rule properties to use when creating a +// new virtual network rule. type CreateOrUpdateVirtualNetworkRuleProperties struct { // SubnetID - The resource identifier for the subnet. SubnetID *string `json:"subnetId,omitempty"` } -// CreateTrustedIDProviderWithAccountParameters the parameters used to create a new trusted identity provider -// while creating a new Data Lake Store account. +// CreateTrustedIDProviderWithAccountParameters the parameters used to create a new trusted identity +// provider while creating a new Data Lake Store account. type CreateTrustedIDProviderWithAccountParameters struct { // Name - The unique name of the trusted identity provider to create. Name *string `json:"name,omitempty"` @@ -488,8 +489,8 @@ func (ctipwap *CreateTrustedIDProviderWithAccountParameters) UnmarshalJSON(body return nil } -// CreateVirtualNetworkRuleWithAccountParameters the parameters used to create a new virtual network rule while -// creating a new Data Lake Store account. +// CreateVirtualNetworkRuleWithAccountParameters the parameters used to create a new virtual network rule +// while creating a new Data Lake Store account. type CreateVirtualNetworkRuleWithAccountParameters struct { // Name - The unique name of the virtual network rule to create. Name *string `json:"name,omitempty"` @@ -745,8 +746,8 @@ type DataLakeStoreAccountListResult struct { NextLink *string `json:"nextLink,omitempty"` } -// DataLakeStoreAccountListResultIterator provides access to a complete listing of DataLakeStoreAccountBasic -// values. +// DataLakeStoreAccountListResultIterator provides access to a complete listing of +// DataLakeStoreAccountBasic values. type DataLakeStoreAccountListResultIterator struct { i int page DataLakeStoreAccountListResultPage @@ -889,8 +890,11 @@ func (page DataLakeStoreAccountListResultPage) Values() []DataLakeStoreAccountBa } // Creates a new instance of the DataLakeStoreAccountListResultPage type. -func NewDataLakeStoreAccountListResultPage(getNextPage func(context.Context, DataLakeStoreAccountListResult) (DataLakeStoreAccountListResult, error)) DataLakeStoreAccountListResultPage { - return DataLakeStoreAccountListResultPage{fn: getNextPage} +func NewDataLakeStoreAccountListResultPage(cur DataLakeStoreAccountListResult, getNextPage func(context.Context, DataLakeStoreAccountListResult) (DataLakeStoreAccountListResult, error)) DataLakeStoreAccountListResultPage { + return DataLakeStoreAccountListResultPage{ + fn: getNextPage, + dlsalr: cur, + } } // DataLakeStoreAccountProperties data Lake Store account properties information. @@ -1199,8 +1203,11 @@ func (page FirewallRuleListResultPage) Values() []FirewallRule { } // Creates a new instance of the FirewallRuleListResultPage type. -func NewFirewallRuleListResultPage(getNextPage func(context.Context, FirewallRuleListResult) (FirewallRuleListResult, error)) FirewallRuleListResultPage { - return FirewallRuleListResultPage{fn: getNextPage} +func NewFirewallRuleListResultPage(cur FirewallRuleListResult, getNextPage func(context.Context, FirewallRuleListResult) (FirewallRuleListResult, error)) FirewallRuleListResultPage { + return FirewallRuleListResultPage{ + fn: getNextPage, + frlr: cur, + } } // FirewallRuleProperties the firewall rule properties. @@ -1524,8 +1531,11 @@ func (page TrustedIDProviderListResultPage) Values() []TrustedIDProvider { } // Creates a new instance of the TrustedIDProviderListResultPage type. -func NewTrustedIDProviderListResultPage(getNextPage func(context.Context, TrustedIDProviderListResult) (TrustedIDProviderListResult, error)) TrustedIDProviderListResultPage { - return TrustedIDProviderListResultPage{fn: getNextPage} +func NewTrustedIDProviderListResultPage(cur TrustedIDProviderListResult, getNextPage func(context.Context, TrustedIDProviderListResult) (TrustedIDProviderListResult, error)) TrustedIDProviderListResultPage { + return TrustedIDProviderListResultPage{ + fn: getNextPage, + tiplr: cur, + } } // TrustedIDProviderProperties the trusted identity provider properties. @@ -1662,8 +1672,8 @@ type UpdateFirewallRuleProperties struct { EndIPAddress *string `json:"endIpAddress,omitempty"` } -// UpdateFirewallRuleWithAccountParameters the parameters used to update a firewall rule while updating a Data -// Lake Store account. +// UpdateFirewallRuleWithAccountParameters the parameters used to update a firewall rule while updating a +// Data Lake Store account. type UpdateFirewallRuleWithAccountParameters struct { // Name - The unique name of the firewall rule to update. Name *string `json:"name,omitempty"` @@ -1761,15 +1771,15 @@ func (utipp *UpdateTrustedIDProviderParameters) UnmarshalJSON(body []byte) error return nil } -// UpdateTrustedIDProviderProperties the trusted identity provider properties to use when updating a trusted -// identity provider. +// UpdateTrustedIDProviderProperties the trusted identity provider properties to use when updating a +// trusted identity provider. type UpdateTrustedIDProviderProperties struct { // IDProvider - The URL of this trusted identity provider. IDProvider *string `json:"idProvider,omitempty"` } -// UpdateTrustedIDProviderWithAccountParameters the parameters used to update a trusted identity provider while -// updating a Data Lake Store account. +// UpdateTrustedIDProviderWithAccountParameters the parameters used to update a trusted identity provider +// while updating a Data Lake Store account. type UpdateTrustedIDProviderWithAccountParameters struct { // Name - The unique name of the trusted identity provider to update. Name *string `json:"name,omitempty"` @@ -2173,8 +2183,11 @@ func (page VirtualNetworkRuleListResultPage) Values() []VirtualNetworkRule { } // Creates a new instance of the VirtualNetworkRuleListResultPage type. -func NewVirtualNetworkRuleListResultPage(getNextPage func(context.Context, VirtualNetworkRuleListResult) (VirtualNetworkRuleListResult, error)) VirtualNetworkRuleListResultPage { - return VirtualNetworkRuleListResultPage{fn: getNextPage} +func NewVirtualNetworkRuleListResultPage(cur VirtualNetworkRuleListResult, getNextPage func(context.Context, VirtualNetworkRuleListResult) (VirtualNetworkRuleListResult, error)) VirtualNetworkRuleListResultPage { + return VirtualNetworkRuleListResultPage{ + fn: getNextPage, + vnrlr: cur, + } } // VirtualNetworkRuleProperties the virtual network rule properties.