From 6d75e2f2ef0d3b5843e539e8e4eba7e00ae82ee9 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 7 Jun 2019 00:25:01 +0000 Subject: [PATCH] Generated from e3d30340671952fd9943fa64c24536227521f1a1 Mark remaining required properties as not read-only --- .../2017-11-03-preview/hanaonazure/models.go | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/models.go b/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/models.go index e436ad5a3a7b..3ba7cd7ec301 100644 --- a/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/models.go +++ b/services/preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure/models.go @@ -193,7 +193,7 @@ type HanaInstance struct { Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` - // Location - READ-ONLY; Resource location + // Location - Resource location Location *string `json:"location,omitempty"` // Tags - READ-ONLY; Resource tags Tags map[string]*string `json:"tags"` @@ -205,6 +205,9 @@ func (hi HanaInstance) MarshalJSON() ([]byte, error) { if hi.HanaInstanceProperties != nil { objectMap["properties"] = hi.HanaInstanceProperties } + if hi.Location != nil { + objectMap["location"] = hi.Location + } return json.Marshal(objectMap) } @@ -295,7 +298,7 @@ type HanaInstanceProperties struct { ProximityPlacementGroup *string `json:"proximityPlacementGroup,omitempty"` // HwRevision - READ-ONLY; Hardware revision of a HANA instance HwRevision *string `json:"hwRevision,omitempty"` - // PartnerNodeID - READ-ONLY; ARM ID of another HanaInstance that will share a network with this HanaInstance + // PartnerNodeID - ARM ID of another HanaInstance that will share a network with this HanaInstance PartnerNodeID *string `json:"partnerNodeId,omitempty"` // ProvisioningState - READ-ONLY; State of provisioning of the HanaInstance. Possible values include: 'Accepted', 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating' ProvisioningState HanaProvisioningStatesEnum `json:"provisioningState,omitempty"` @@ -555,7 +558,7 @@ type HardwareProfile struct { // IPAddress specifies the IP address of the network interface. type IPAddress struct { - // IPAddress - READ-ONLY; Specifies the IP address of the network interface. + // IPAddress - Specifies the IP address of the network interface. IPAddress *string `json:"ipAddress,omitempty"` } @@ -600,13 +603,13 @@ type OperationList struct { // OSProfile specifies the operating system settings for the HANA instance. type OSProfile struct { - // ComputerName - READ-ONLY; Specifies the host OS name of the HANA instance. + // ComputerName - Specifies the host OS name of the HANA instance. ComputerName *string `json:"computerName,omitempty"` // OsType - READ-ONLY; This property allows you to specify the type of the OS. OsType *string `json:"osType,omitempty"` // Version - READ-ONLY; Specifies version of operating system. Version *string `json:"version,omitempty"` - // SSHPublicKey - READ-ONLY; Specifies the SSH public key used to access the operating system. + // SSHPublicKey - Specifies the SSH public key used to access the operating system. SSHPublicKey *string `json:"sshPublicKey,omitempty"` } @@ -618,7 +621,7 @@ type Resource struct { Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` - // Location - READ-ONLY; Resource location + // Location - Resource location Location *string `json:"location,omitempty"` // Tags - READ-ONLY; Resource tags Tags map[string]*string `json:"tags"` @@ -627,6 +630,9 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) + if r.Location != nil { + objectMap["location"] = r.Location + } return json.Marshal(objectMap) }