diff --git a/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/models.go b/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/models.go index 8851b392325c..cc8868f94ece 100644 --- a/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/models.go +++ b/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/models.go @@ -622,6 +622,8 @@ type GraphQueryResource struct { ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name. This is GUID value. The display name should be assigned within properties field. Name *string `json:"name,omitempty"` + // Location - READ-ONLY; The location of the resource + Location *string `json:"location,omitempty"` // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // ETag - This will be used to handle Optimistic Concurrency. If not present, it will always overwrite the existing resource without checking conflict. @@ -681,6 +683,15 @@ func (gqr *GraphQueryResource) UnmarshalJSON(body []byte) error { } gqr.Name = &name } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + gqr.Location = &location + } case "type": if v != nil { var typeVar string @@ -1064,6 +1075,8 @@ type Resource struct { ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name. This is GUID value. The display name should be assigned within properties field. Name *string `json:"name,omitempty"` + // Location - READ-ONLY; The location of the resource + Location *string `json:"location,omitempty"` // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // ETag - This will be used to handle Optimistic Concurrency. If not present, it will always overwrite the existing resource without checking conflict. diff --git a/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/version.go b/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/version.go index 39f2e4800e53..715f9e043654 100644 --- a/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/version.go +++ b/services/preview/resourcegraph/mgmt/2018-09-01/resourcegraph/version.go @@ -21,7 +21,7 @@ import "github.com/Azure/azure-sdk-for-go/version" // UserAgent returns the UserAgent string to use when sending http.Requests. func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " resourcegraph/2018-09-01-preview" + return "Azure-SDK-For-Go/" + Version() + " resourcegraph/2018-09-01-preview" } // Version returns the semantic version (see http://semver.org) of the client.