Skip to content

Commit

Permalink
remove slice pointers (#22548)
Browse files Browse the repository at this point in the history
  • Loading branch information
gracewilcox authored Mar 7, 2024
1 parent 3c22771 commit 1a36ffe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions sdk/monitor/query/azlogs/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ security: "AADToken"
use: "@autorest/go@4.0.0-preview.61"
inject-spans: true
version: "^3.0.0"
slice-elements-byval: true

directive:
# delete extra endpoints
Expand Down
2 changes: 1 addition & 1 deletion sdk/monitor/query/azlogs/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func TestQueryWorkspace_AdvancedQuerySuccess(t *testing.T) {

func TestQueryWorkspace_MultipleWorkspaces(t *testing.T) {
client := startTest(t)
workspaces := []*string{&workspaceID2}
workspaces := []string{workspaceID2}
body := azlogs.QueryBody{
Query: &query,
AdditionalWorkspaces: workspaces,
Expand Down
2 changes: 1 addition & 1 deletion sdk/monitor/query/azlogs/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func ExampleClient_QueryWorkspace_second() {
// according to the workspace from which it was retrieved.
workspaceID1 := "g4d1e129-fb1e-4b0a-b234-250abc987ea65" // example Azure Log Analytics Workspace ID
workspaceID2 := "h4bc4471-2e8c-4b1c-8f47-12b9a4d5ac71"
additionalWorkspaces := []*string{to.Ptr(workspaceID2)}
additionalWorkspaces := []string{workspaceID2}

// Advanced query options
// Setting Statistics to true returns stats information in Results.Statistics
Expand Down
6 changes: 3 additions & 3 deletions sdk/monitor/query/azlogs/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1a36ffe

Please sign in to comment.