|
1 | | -//go:build go1.18 |
2 | | -// +build go1.18 |
3 | | - |
4 | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
5 | 2 | // Licensed under the MIT License. See License.txt in the project root for license information. |
6 | 3 |
|
@@ -156,7 +153,7 @@ func (c *Client) GetSetting(ctx context.Context, key string, options *GetSetting |
156 | 153 | return GetSettingResponse{ |
157 | 154 | Setting: settingFromGenerated(resp.KeyValue), |
158 | 155 | SyncToken: SyncToken(*resp.SyncToken), |
159 | | - LastModified: resp.KeyValue.LastModified, |
| 156 | + LastModified: resp.LastModified, |
160 | 157 | }, nil |
161 | 158 | } |
162 | 159 |
|
@@ -474,9 +471,9 @@ func (c *Client) GetSnapshot(ctx context.Context, snapshotName string, options * |
474 | 471 | ETag: (*azcore.ETag)(getResp.Etag), |
475 | 472 | Expires: getResp.Expires, |
476 | 473 | ItemsCount: getResp.ItemsCount, |
477 | | - Name: getResp.Snapshot.Name, |
| 474 | + Name: getResp.Name, |
478 | 475 | Size: getResp.Size, |
479 | | - Status: getResp.Snapshot.Status, |
| 476 | + Status: getResp.Status, |
480 | 477 | }, |
481 | 478 | SyncToken: SyncToken(*getResp.SyncToken), |
482 | 479 | Link: getResp.Link, |
@@ -569,9 +566,9 @@ func (c *Client) updateSnapshotStatus(ctx context.Context, snapshotName string, |
569 | 566 | ETag: (*azcore.ETag)(updateResp.Etag), |
570 | 567 | Expires: updateResp.Expires, |
571 | 568 | ItemsCount: updateResp.ItemsCount, |
572 | | - Name: updateResp.Snapshot.Name, |
| 569 | + Name: updateResp.Name, |
573 | 570 | Size: updateResp.Size, |
574 | | - Status: updateResp.Snapshot.Status, |
| 571 | + Status: updateResp.Status, |
575 | 572 | }, |
576 | 573 | SyncToken: SyncToken(*updateResp.SyncToken), |
577 | 574 | Link: updateResp.Link, |
|
0 commit comments