Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto PR: Regenerating the Go SDK (42025fa8d14576059a43dbb7a4032af0864e6c0a) #1039

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
13 changes: 13 additions & 0 deletions resource-manager/aad/2021-05-01/domainservices/method_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ type ListCompleteResult struct {
Items []DomainService
}

type ListCustomPager struct {
NextLink *odata.Link `json:"nextLink"`
}

func (p *ListCustomPager) NextPageLink() *odata.Link {
defer func() {
p.NextLink = nil
}()

return p.NextLink
}

// List ...
func (c DomainServicesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) {
opts := client.RequestOptions{
Expand All @@ -32,6 +44,7 @@ func (c DomainServicesClient) List(ctx context.Context, id commonids.Subscriptio
http.StatusOK,
},
HttpMethod: http.MethodGet,
Pager: &ListCustomPager{},
Path: fmt.Sprintf("%s/providers/Microsoft.AAD/domainServices", id.ID()),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct {
Items []DomainService
}

type ListByResourceGroupCustomPager struct {
NextLink *odata.Link `json:"nextLink"`
}

func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link {
defer func() {
p.NextLink = nil
}()

return p.NextLink
}

// ListByResourceGroup ...
func (c DomainServicesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) {
opts := client.RequestOptions{
Expand All @@ -32,6 +44,7 @@ func (c DomainServicesClient) ListByResourceGroup(ctx context.Context, id common
http.StatusOK,
},
HttpMethod: http.MethodGet,
Pager: &ListByResourceGroupCustomPager{},
Path: fmt.Sprintf("%s/providers/Microsoft.AAD/domainServices", id.ID()),
}

Expand Down
13 changes: 13 additions & 0 deletions resource-manager/aad/2021-05-01/oucontainer/method_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ type ListCompleteResult struct {
Items []OuContainer
}

type ListCustomPager struct {
NextLink *odata.Link `json:"nextLink"`
}

func (p *ListCustomPager) NextPageLink() *odata.Link {
defer func() {
p.NextLink = nil
}()

return p.NextLink
}

// List ...
func (c OuContainerClient) List(ctx context.Context, id DomainServiceId) (result ListOperationResponse, err error) {
opts := client.RequestOptions{
Expand All @@ -31,6 +43,7 @@ func (c OuContainerClient) List(ctx context.Context, id DomainServiceId) (result
http.StatusOK,
},
HttpMethod: http.MethodGet,
Pager: &ListCustomPager{},
Path: fmt.Sprintf("%s/ouContainer", id.ID()),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct {
Items []Tenant
}

type ListByResourceGroupCustomPager struct {
NextLink *odata.Link `json:"nextLink"`
}

func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link {
defer func() {
p.NextLink = nil
}()

return p.NextLink
}

// ListByResourceGroup ...
func (c TenantsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) {
opts := client.RequestOptions{
Expand All @@ -32,6 +44,7 @@ func (c TenantsClient) ListByResourceGroup(ctx context.Context, id commonids.Res
http.StatusOK,
},
HttpMethod: http.MethodGet,
Pager: &ListByResourceGroupCustomPager{},
Path: fmt.Sprintf("%s/providers/Microsoft.AzureActiveDirectory/b2cDirectories", id.ID()),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct {
Items []Tenant
}

type ListBySubscriptionCustomPager struct {
NextLink *odata.Link `json:"nextLink"`
}

func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link {
defer func() {
p.NextLink = nil
}()

return p.NextLink
}

// ListBySubscription ...
func (c TenantsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) {
opts := client.RequestOptions{
Expand All @@ -32,6 +44,7 @@ func (c TenantsClient) ListBySubscription(ctx context.Context, id commonids.Subs
http.StatusOK,
},
HttpMethod: http.MethodGet,
Pager: &ListBySubscriptionCustomPager{},
Path: fmt.Sprintf("%s/providers/Microsoft.AzureActiveDirectory/b2cDirectories", id.ID()),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct {
Items []ConfigData
}

type ListByResourceGroupCustomPager struct {
NextLink *odata.Link `json:"nextLink"`
}

func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link {
defer func() {
p.NextLink = nil
}()

return p.NextLink
}

// ListByResourceGroup ...
func (c ConfigurationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) {
opts := client.RequestOptions{
Expand All @@ -32,6 +44,7 @@ func (c ConfigurationsClient) ListByResourceGroup(ctx context.Context, id common
http.StatusOK,
},
HttpMethod: http.MethodGet,
Pager: &ListByResourceGroupCustomPager{},
Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/configurations", id.ID()),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct {
Items []ConfigData
}

type ListBySubscriptionCustomPager struct {
NextLink *odata.Link `json:"nextLink"`
}

func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link {
defer func() {
p.NextLink = nil
}()

return p.NextLink
}

// ListBySubscription ...
func (c ConfigurationsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) {
opts := client.RequestOptions{
Expand All @@ -32,6 +44,7 @@ func (c ConfigurationsClient) ListBySubscription(ctx context.Context, id commoni
http.StatusOK,
},
HttpMethod: http.MethodGet,
Pager: &ListBySubscriptionCustomPager{},
Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/configurations", id.ID()),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ func (o RecommendationsListOperationOptions) ToQuery() *client.QueryParams {
return &out
}

type RecommendationsListCustomPager struct {
NextLink *odata.Link `json:"nextLink"`
}

func (p *RecommendationsListCustomPager) NextPageLink() *odata.Link {
defer func() {
p.NextLink = nil
}()

return p.NextLink
}

// RecommendationsList ...
func (c GetRecommendationsClient) RecommendationsList(ctx context.Context, id commonids.SubscriptionId, options RecommendationsListOperationOptions) (result RecommendationsListOperationResponse, err error) {
opts := client.RequestOptions{
Expand All @@ -63,8 +75,9 @@ func (c GetRecommendationsClient) RecommendationsList(ctx context.Context, id co
http.StatusOK,
},
HttpMethod: http.MethodGet,
Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/recommendations", id.ID()),
OptionsObject: options,
Pager: &RecommendationsListCustomPager{},
Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/recommendations", id.ID()),
}

req, err := c.Client.NewRequest(ctx, opts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ type RecommendationMetadataListCompleteResult struct {
Items []MetadataEntity
}

type RecommendationMetadataListCustomPager struct {
NextLink *odata.Link `json:"nextLink"`
}

func (p *RecommendationMetadataListCustomPager) NextPageLink() *odata.Link {
defer func() {
p.NextLink = nil
}()

return p.NextLink
}

// RecommendationMetadataList ...
func (c MetadataClient) RecommendationMetadataList(ctx context.Context) (result RecommendationMetadataListOperationResponse, err error) {
opts := client.RequestOptions{
Expand All @@ -31,6 +43,7 @@ func (c MetadataClient) RecommendationMetadataList(ctx context.Context) (result
http.StatusOK,
},
HttpMethod: http.MethodGet,
Pager: &RecommendationMetadataListCustomPager{},
Path: "/providers/Microsoft.Advisor/metadata",
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams {
return &out
}

type ListCustomPager struct {
NextLink *odata.Link `json:"nextLink"`
}

func (p *ListCustomPager) NextPageLink() *odata.Link {
defer func() {
p.NextLink = nil
}()

return p.NextLink
}

// List ...
func (c SuppressionsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) {
opts := client.RequestOptions{
Expand All @@ -59,8 +71,9 @@ func (c SuppressionsClient) List(ctx context.Context, id commonids.SubscriptionI
http.StatusOK,
},
HttpMethod: http.MethodGet,
Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/suppressions", id.ID()),
OptionsObject: options,
Pager: &ListCustomPager{},
Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/suppressions", id.ID()),
}

req, err := c.Client.NewRequest(ctx, opts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct {
Items []ConfigData
}

type ListByResourceGroupCustomPager struct {
NextLink *odata.Link `json:"nextLink"`
}

func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link {
defer func() {
p.NextLink = nil
}()

return p.NextLink
}

// ListByResourceGroup ...
func (c ConfigurationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) {
opts := client.RequestOptions{
Expand All @@ -32,6 +44,7 @@ func (c ConfigurationsClient) ListByResourceGroup(ctx context.Context, id common
http.StatusOK,
},
HttpMethod: http.MethodGet,
Pager: &ListByResourceGroupCustomPager{},
Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/configurations", id.ID()),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct {
Items []ConfigData
}

type ListBySubscriptionCustomPager struct {
NextLink *odata.Link `json:"nextLink"`
}

func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link {
defer func() {
p.NextLink = nil
}()

return p.NextLink
}

// ListBySubscription ...
func (c ConfigurationsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) {
opts := client.RequestOptions{
Expand All @@ -32,6 +44,7 @@ func (c ConfigurationsClient) ListBySubscription(ctx context.Context, id commoni
http.StatusOK,
},
HttpMethod: http.MethodGet,
Pager: &ListBySubscriptionCustomPager{},
Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/configurations", id.ID()),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ func (o RecommendationsListOperationOptions) ToQuery() *client.QueryParams {
return &out
}

type RecommendationsListCustomPager struct {
NextLink *odata.Link `json:"nextLink"`
}

func (p *RecommendationsListCustomPager) NextPageLink() *odata.Link {
defer func() {
p.NextLink = nil
}()

return p.NextLink
}

// RecommendationsList ...
func (c GetRecommendationsClient) RecommendationsList(ctx context.Context, id commonids.SubscriptionId, options RecommendationsListOperationOptions) (result RecommendationsListOperationResponse, err error) {
opts := client.RequestOptions{
Expand All @@ -63,8 +75,9 @@ func (c GetRecommendationsClient) RecommendationsList(ctx context.Context, id co
http.StatusOK,
},
HttpMethod: http.MethodGet,
Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/recommendations", id.ID()),
OptionsObject: options,
Pager: &RecommendationsListCustomPager{},
Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/recommendations", id.ID()),
}

req, err := c.Client.NewRequest(ctx, opts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ type RecommendationMetadataListCompleteResult struct {
Items []MetadataEntity
}

type RecommendationMetadataListCustomPager struct {
NextLink *odata.Link `json:"nextLink"`
}

func (p *RecommendationMetadataListCustomPager) NextPageLink() *odata.Link {
defer func() {
p.NextLink = nil
}()

return p.NextLink
}

// RecommendationMetadataList ...
func (c MetadataClient) RecommendationMetadataList(ctx context.Context) (result RecommendationMetadataListOperationResponse, err error) {
opts := client.RequestOptions{
Expand All @@ -31,6 +43,7 @@ func (c MetadataClient) RecommendationMetadataList(ctx context.Context) (result
http.StatusOK,
},
HttpMethod: http.MethodGet,
Pager: &RecommendationMetadataListCustomPager{},
Path: "/providers/Microsoft.Advisor/metadata",
}

Expand Down
Loading
Loading