-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1092 from hashicorp/auto-pr/d1b507f76
Auto PR: Regenerating the Go SDK (ab54431)
- Loading branch information
Showing
13,730 changed files
with
344,383 additions
and
87,215 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...ager/alertsmanagement/2019-05-05-preview/alertsmanagements/model_monitorservicedetails.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package alertsmanagements | ||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
type MonitorServiceDetails struct { | ||
DisplayName *string `json:"displayName,omitempty"` | ||
Name *string `json:"name,omitempty"` | ||
} |
50 changes: 50 additions & 0 deletions
50
...manager/alertsmanagement/2019-05-05-preview/alertsmanagements/model_monitorservicelist.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package alertsmanagements | ||
|
||
import ( | ||
"encoding/json" | ||
"fmt" | ||
) | ||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
var _ AlertsMetaDataProperties = MonitorServiceList{} | ||
|
||
type MonitorServiceList struct { | ||
Data []MonitorServiceDetails `json:"data"` | ||
|
||
// Fields inherited from AlertsMetaDataProperties | ||
|
||
MetadataIdentifier MetadataIdentifier `json:"metadataIdentifier"` | ||
} | ||
|
||
func (s MonitorServiceList) AlertsMetaDataProperties() BaseAlertsMetaDataPropertiesImpl { | ||
return BaseAlertsMetaDataPropertiesImpl{ | ||
MetadataIdentifier: s.MetadataIdentifier, | ||
} | ||
} | ||
|
||
var _ json.Marshaler = MonitorServiceList{} | ||
|
||
func (s MonitorServiceList) MarshalJSON() ([]byte, error) { | ||
type wrapper MonitorServiceList | ||
wrapped := wrapper(s) | ||
encoded, err := json.Marshal(wrapped) | ||
if err != nil { | ||
return nil, fmt.Errorf("marshaling MonitorServiceList: %+v", err) | ||
} | ||
|
||
var decoded map[string]interface{} | ||
if err = json.Unmarshal(encoded, &decoded); err != nil { | ||
return nil, fmt.Errorf("unmarshaling MonitorServiceList: %+v", err) | ||
} | ||
|
||
decoded["metadataIdentifier"] = "MonitorServiceList" | ||
|
||
encoded, err = json.Marshal(decoded) | ||
if err != nil { | ||
return nil, fmt.Errorf("re-marshaling MonitorServiceList: %+v", err) | ||
} | ||
|
||
return encoded, nil | ||
} |
Oops, something went wrong.