diff --git a/profiles/latest/search/mgmt/search/models.go b/profiles/latest/search/mgmt/search/models.go index 415c6215dfdd..a8d2179eef9f 100644 --- a/profiles/latest/search/mgmt/search/models.go +++ b/profiles/latest/search/mgmt/search/models.go @@ -83,6 +83,7 @@ type CheckNameAvailabilityInput = original.CheckNameAvailabilityInput type CheckNameAvailabilityOutput = original.CheckNameAvailabilityOutput type CloudError = original.CloudError type CloudErrorBody = original.CloudErrorBody +type Identity = original.Identity type ListQueryKeysResult = original.ListQueryKeysResult type Operation = original.Operation type OperationDisplay = original.OperationDisplay diff --git a/profiles/preview/search/mgmt/search/models.go b/profiles/preview/search/mgmt/search/models.go index 86a82b61a644..c35ac2f1789d 100644 --- a/profiles/preview/search/mgmt/search/models.go +++ b/profiles/preview/search/mgmt/search/models.go @@ -83,6 +83,7 @@ type CheckNameAvailabilityInput = original.CheckNameAvailabilityInput type CheckNameAvailabilityOutput = original.CheckNameAvailabilityOutput type CloudError = original.CloudError type CloudErrorBody = original.CloudErrorBody +type Identity = original.Identity type ListQueryKeysResult = original.ListQueryKeysResult type Operation = original.Operation type OperationDisplay = original.OperationDisplay diff --git a/services/search/mgmt/2015-08-19/search/models.go b/services/search/mgmt/2015-08-19/search/models.go index 69d2976bcb1a..236fb8e8ee85 100644 --- a/services/search/mgmt/2015-08-19/search/models.go +++ b/services/search/mgmt/2015-08-19/search/models.go @@ -176,6 +176,16 @@ type CloudErrorBody struct { Details *[]CloudErrorBody `json:"details,omitempty"` } +// Identity identity for the resource. +type Identity struct { + // PrincipalID - The principal ID of resource identity. + PrincipalID *string `json:"principalId,omitempty"` + // TenantID - The tenant ID of resource. + TenantID *string `json:"tenantId,omitempty"` + // Type - The identity type. + Type *string `json:"type,omitempty"` +} + // ListQueryKeysResult response containing the query API keys for a given Azure Search service. type ListQueryKeysResult struct { autorest.Response `json:"-"` @@ -234,6 +244,8 @@ type Resource struct { Location *string `json:"location,omitempty"` // Tags - Tags to help categorize the resource in the Azure portal. Tags map[string]*string `json:"tags"` + // Identity - The identity of the resource. + Identity *Identity `json:"identity,omitempty"` } // MarshalJSON is the custom marshaler for Resource. @@ -254,6 +266,9 @@ func (r Resource) MarshalJSON() ([]byte, error) { if r.Tags != nil { objectMap["tags"] = r.Tags } + if r.Identity != nil { + objectMap["identity"] = r.Identity + } return json.Marshal(objectMap) } @@ -274,6 +289,8 @@ type Service struct { Location *string `json:"location,omitempty"` // Tags - Tags to help categorize the resource in the Azure portal. Tags map[string]*string `json:"tags"` + // Identity - The identity of the resource. + Identity *Identity `json:"identity,omitempty"` } // MarshalJSON is the custom marshaler for Service. @@ -300,6 +317,9 @@ func (s Service) MarshalJSON() ([]byte, error) { if s.Tags != nil { objectMap["tags"] = s.Tags } + if s.Identity != nil { + objectMap["identity"] = s.Identity + } return json.Marshal(objectMap) } @@ -375,6 +395,15 @@ func (s *Service) UnmarshalJSON(body []byte) error { } s.Tags = tags } + case "identity": + if v != nil { + var identity Identity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + s.Identity = &identity + } } }