From e0e1d545bbd779d8d8fab69cd82b363f7a1dfd1d Mon Sep 17 00:00:00 2001 From: Joel Hendrix Date: Wed, 17 Jan 2024 13:42:26 -0800 Subject: [PATCH] fix LRO options type name --- sdk/data/azappconfig/client.go | 6 +++--- sdk/data/azappconfig/client_test.go | 2 +- sdk/data/azappconfig/examples_test.go | 2 +- sdk/data/azappconfig/options.go | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sdk/data/azappconfig/client.go b/sdk/data/azappconfig/client.go index aea6bab6732b..8bdedec025ae 100644 --- a/sdk/data/azappconfig/client.go +++ b/sdk/data/azappconfig/client.go @@ -382,10 +382,10 @@ func (c *Client) NewListSettingsForSnapshotPager(snapshotName string, options *L // // - snapshotName - The name of the snapshot to create. // - settingFilter - The filters to apply on the key-values. -// - options - CreateSnapshotOptions contains the optional parameters to create a Snapshot -func (c *Client) BeginCreateSnapshot(ctx context.Context, snapshotName string, settingFilter []SettingFilter, options *CreateSnapshotOptions) (*runtime.Poller[CreateSnapshotResponse], error) { +// - options - BeginCreateSnapshotOptions contains the optional parameters to create a Snapshot +func (c *Client) BeginCreateSnapshot(ctx context.Context, snapshotName string, settingFilter []SettingFilter, options *BeginCreateSnapshotOptions) (*runtime.Poller[CreateSnapshotResponse], error) { if options == nil { - options = &CreateSnapshotOptions{} + options = &BeginCreateSnapshotOptions{} } filter := make([]generated.KeyValueFilter, len(settingFilter)) diff --git a/sdk/data/azappconfig/client_test.go b/sdk/data/azappconfig/client_test.go index 3cc538062d60..9d758bc75b33 100644 --- a/sdk/data/azappconfig/client_test.go +++ b/sdk/data/azappconfig/client_test.go @@ -605,7 +605,7 @@ func CreateSnapshot(c *azappconfig.Client, snapshotName string, sf []azappconfig } } - opts := &azappconfig.CreateSnapshotOptions{ + opts := &azappconfig.BeginCreateSnapshotOptions{ RetentionPeriod: to.Ptr[int64](3600), } diff --git a/sdk/data/azappconfig/examples_test.go b/sdk/data/azappconfig/examples_test.go index 97ab354a83c6..7251bd8c4d95 100644 --- a/sdk/data/azappconfig/examples_test.go +++ b/sdk/data/azappconfig/examples_test.go @@ -266,7 +266,7 @@ func ExampleClient_BeginCreateSnapshot() { }, } - _, err = client.BeginCreateSnapshot(context.TODO(), snapshotName, filter, &azappconfig.CreateSnapshotOptions{}) + _, err = client.BeginCreateSnapshot(context.TODO(), snapshotName, filter, nil) if err != nil { // TODO: Update the following line with your application specific error handling logic diff --git a/sdk/data/azappconfig/options.go b/sdk/data/azappconfig/options.go index 5fd21e38d9c4..89d71119428f 100644 --- a/sdk/data/azappconfig/options.go +++ b/sdk/data/azappconfig/options.go @@ -85,8 +85,8 @@ type SetSettingOptions struct { OnlyIfUnchanged *azcore.ETag } -// CreateSnapshotOptions contains the optional parameters for the BeginCreateSnapshot method. -type CreateSnapshotOptions struct { +// BeginCreateSnapshotOptions contains the optional parameters for the BeginCreateSnapshot method. +type BeginCreateSnapshotOptions struct { // Resumes the LRO from the provided token. ResumeToken string