diff --git a/sdk/resourcemanager/avs/armavs/CHANGELOG.md b/sdk/resourcemanager/avs/armavs/CHANGELOG.md index b8e8c442f791..352b6adbd368 100644 --- a/sdk/resourcemanager/avs/armavs/CHANGELOG.md +++ b/sdk/resourcemanager/avs/armavs/CHANGELOG.md @@ -1,5 +1,10 @@ # Release History +## 1.2.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + ## 1.2.0 (2023-03-27) ### Features Added diff --git a/sdk/resourcemanager/avs/armavs/autorest.md b/sdk/resourcemanager/avs/armavs/autorest.md index 0f3e8e2c21fc..7b22b5e76eea 100644 --- a/sdk/resourcemanager/avs/armavs/autorest.md +++ b/sdk/resourcemanager/avs/armavs/autorest.md @@ -8,5 +8,5 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/c71a66dab813061f1d09982c2748a09317fe0860/specification/vmware/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/c71a66dab813061f1d09982c2748a09317fe0860/specification/vmware/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.2.0 +module-version: 1.2.1 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/avs/armavs/constants.go b/sdk/resourcemanager/avs/armavs/constants.go index 02d033c57ac8..e16ab8413693 100644 --- a/sdk/resourcemanager/avs/armavs/constants.go +++ b/sdk/resourcemanager/avs/armavs/constants.go @@ -11,7 +11,7 @@ package armavs const ( moduleName = "armavs" - moduleVersion = "v1.2.0" + moduleVersion = "v1.2.1" ) // AddonProvisioningState - The state of the addon provisioning diff --git a/sdk/resourcemanager/avs/armavs/models.go b/sdk/resourcemanager/avs/armavs/models.go index 1b43cf12f290..dcc8adf0edae 100644 --- a/sdk/resourcemanager/avs/armavs/models.go +++ b/sdk/resourcemanager/avs/armavs/models.go @@ -14,28 +14,28 @@ import "time" // Addon - An addon resource type Addon struct { // The properties of an addon resource - Properties AddonPropertiesClassification `json:"properties,omitempty"` + Properties AddonPropertiesClassification // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // AddonArcProperties - The properties of an Arc addon type AddonArcProperties struct { // REQUIRED; The type of private cloud addon - AddonType *AddonType `json:"addonType,omitempty"` + AddonType *AddonType // The VMware vCenter resource ID - VCenter *string `json:"vCenter,omitempty"` + VCenter *string // READ-ONLY; The state of the addon provisioning - ProvisioningState *AddonProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *AddonProvisioningState } // GetAddonProperties implements the AddonPropertiesClassification interface for type AddonArcProperties. @@ -49,13 +49,13 @@ func (a *AddonArcProperties) GetAddonProperties() *AddonProperties { // AddonHcxProperties - The properties of an HCX addon type AddonHcxProperties struct { // REQUIRED; The type of private cloud addon - AddonType *AddonType `json:"addonType,omitempty"` + AddonType *AddonType // REQUIRED; The HCX offer, example VMware MaaS Cloud Provider (Enterprise) - Offer *string `json:"offer,omitempty"` + Offer *string // READ-ONLY; The state of the addon provisioning - ProvisioningState *AddonProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *AddonProvisioningState } // GetAddonProperties implements the AddonPropertiesClassification interface for type AddonHcxProperties. @@ -69,10 +69,10 @@ func (a *AddonHcxProperties) GetAddonProperties() *AddonProperties { // AddonList - A paged list of addons type AddonList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on a page - Value []*Addon `json:"value,omitempty" azure:"ro"` + Value []*Addon } // AddonPropertiesClassification provides polymorphic access to related types. @@ -87,10 +87,10 @@ type AddonPropertiesClassification interface { // AddonProperties - The properties of an addon type AddonProperties struct { // REQUIRED; The type of private cloud addon - AddonType *AddonType `json:"addonType,omitempty"` + AddonType *AddonType // READ-ONLY; The state of the addon provisioning - ProvisioningState *AddonProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *AddonProvisioningState } // GetAddonProperties implements the AddonPropertiesClassification interface for type AddonProperties. @@ -99,13 +99,13 @@ func (a *AddonProperties) GetAddonProperties() *AddonProperties { return a } // AddonSrmProperties - The properties of a Site Recovery Manager (SRM) addon type AddonSrmProperties struct { // REQUIRED; The type of private cloud addon - AddonType *AddonType `json:"addonType,omitempty"` + AddonType *AddonType // The Site Recovery Manager (SRM) license - LicenseKey *string `json:"licenseKey,omitempty"` + LicenseKey *string // READ-ONLY; The state of the addon provisioning - ProvisioningState *AddonProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *AddonProvisioningState } // GetAddonProperties implements the AddonPropertiesClassification interface for type AddonSrmProperties. @@ -119,13 +119,13 @@ func (a *AddonSrmProperties) GetAddonProperties() *AddonProperties { // AddonVrProperties - The properties of a vSphere Replication (VR) addon type AddonVrProperties struct { // REQUIRED; The type of private cloud addon - AddonType *AddonType `json:"addonType,omitempty"` + AddonType *AddonType // REQUIRED; The vSphere Replication Server (VRS) count - VrsCount *int32 `json:"vrsCount,omitempty"` + VrsCount *int32 // READ-ONLY; The state of the addon provisioning - ProvisioningState *AddonProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *AddonProvisioningState } // GetAddonProperties implements the AddonPropertiesClassification interface for type AddonVrProperties. @@ -161,16 +161,16 @@ type AddonsClientListOptions struct { // AdminCredentials - Administrative credentials for accessing vCenter and NSX-T type AdminCredentials struct { // READ-ONLY; NSX-T Manager password - NsxtPassword *string `json:"nsxtPassword,omitempty" azure:"ro"` + NsxtPassword *string // READ-ONLY; NSX-T Manager username - NsxtUsername *string `json:"nsxtUsername,omitempty" azure:"ro"` + NsxtUsername *string // READ-ONLY; vCenter admin password - VcenterPassword *string `json:"vcenterPassword,omitempty" azure:"ro"` + VcenterPassword *string // READ-ONLY; vCenter admin username - VcenterUsername *string `json:"vcenterUsername,omitempty" azure:"ro"` + VcenterUsername *string } // AuthorizationsClientBeginCreateOrUpdateOptions contains the optional parameters for the AuthorizationsClient.BeginCreateOrUpdate @@ -199,61 +199,61 @@ type AuthorizationsClientListOptions struct { // AvailabilityProperties - The properties describing private cloud availability zone distribution type AvailabilityProperties struct { // The secondary availability zone for the private cloud - SecondaryZone *int32 `json:"secondaryZone,omitempty"` + SecondaryZone *int32 // The availability strategy for the private cloud - Strategy *AvailabilityStrategy `json:"strategy,omitempty"` + Strategy *AvailabilityStrategy // The primary availability zone for the private cloud - Zone *int32 `json:"zone,omitempty"` + Zone *int32 } // Circuit - An ExpressRoute Circuit type Circuit struct { // READ-ONLY; Identifier of the ExpressRoute Circuit (Microsoft Colo only) - ExpressRouteID *string `json:"expressRouteID,omitempty" azure:"ro"` + ExpressRouteID *string // READ-ONLY; ExpressRoute Circuit private peering identifier - ExpressRoutePrivatePeeringID *string `json:"expressRoutePrivatePeeringID,omitempty" azure:"ro"` + ExpressRoutePrivatePeeringID *string // READ-ONLY; CIDR of primary subnet - PrimarySubnet *string `json:"primarySubnet,omitempty" azure:"ro"` + PrimarySubnet *string // READ-ONLY; CIDR of secondary subnet - SecondarySubnet *string `json:"secondarySubnet,omitempty" azure:"ro"` + SecondarySubnet *string } // CloudLink - A cloud link resource type CloudLink struct { // The properties of a cloud link. - Properties *CloudLinkProperties `json:"properties,omitempty"` + Properties *CloudLinkProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // CloudLinkList - A paged list of cloud links type CloudLinkList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on a page - Value []*CloudLink `json:"value,omitempty" azure:"ro"` + Value []*CloudLink } // CloudLinkProperties - The properties of a cloud link. type CloudLinkProperties struct { // Identifier of the other private cloud participating in the link. - LinkedCloud *string `json:"linkedCloud,omitempty"` + LinkedCloud *string // READ-ONLY; The state of the cloud link. - Status *CloudLinkStatus `json:"status,omitempty" azure:"ro"` + Status *CloudLinkStatus } // CloudLinksClientBeginCreateOrUpdateOptions contains the optional parameters for the CloudLinksClient.BeginCreateOrUpdate @@ -282,73 +282,73 @@ type CloudLinksClientListOptions struct { // Cluster - A cluster resource type Cluster struct { // REQUIRED; The cluster SKU - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // The properties of a cluster resource - Properties *ClusterProperties `json:"properties,omitempty"` + Properties *ClusterProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ClusterList - A paged list of clusters type ClusterList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on a page - Value []*Cluster `json:"value,omitempty" azure:"ro"` + Value []*Cluster } // ClusterProperties - The properties of a cluster type ClusterProperties struct { // The cluster size - ClusterSize *int32 `json:"clusterSize,omitempty"` + ClusterSize *int32 // The hosts - Hosts []*string `json:"hosts,omitempty"` + Hosts []*string // READ-ONLY; The identity - ClusterID *int32 `json:"clusterId,omitempty" azure:"ro"` + ClusterID *int32 // READ-ONLY; The state of the cluster provisioning - ProvisioningState *ClusterProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ClusterProvisioningState } // ClusterUpdate - An update of a cluster resource type ClusterUpdate struct { // The properties of a cluster resource that may be updated - Properties *ClusterUpdateProperties `json:"properties,omitempty"` + Properties *ClusterUpdateProperties } // ClusterUpdateProperties - The properties of a cluster that may be updated type ClusterUpdateProperties struct { // The cluster size - ClusterSize *int32 `json:"clusterSize,omitempty"` + ClusterSize *int32 // The hosts - Hosts []*string `json:"hosts,omitempty"` + Hosts []*string } // ClusterZone - Zone and associated hosts info type ClusterZone struct { // READ-ONLY; List of hosts belonging to the availability zone in a cluster - Hosts []*string `json:"hosts,omitempty" azure:"ro"` + Hosts []*string // READ-ONLY; Availability zone identifier - Zone *string `json:"zone,omitempty" azure:"ro"` + Zone *string } // ClusterZoneList - List of all zones and associated hosts for a cluster type ClusterZoneList struct { // Zone and associated hosts info - Zones []*ClusterZone `json:"zones,omitempty"` + Zones []*ClusterZone } // ClustersClientBeginCreateOrUpdateOptions contains the optional parameters for the ClustersClient.BeginCreateOrUpdate method. @@ -387,55 +387,55 @@ type ClustersClientListZonesOptions struct { // CommonClusterProperties - The common properties of a cluster type CommonClusterProperties struct { // The cluster size - ClusterSize *int32 `json:"clusterSize,omitempty"` + ClusterSize *int32 // The hosts - Hosts []*string `json:"hosts,omitempty"` + Hosts []*string // READ-ONLY; The identity - ClusterID *int32 `json:"clusterId,omitempty" azure:"ro"` + ClusterID *int32 // READ-ONLY; The state of the cluster provisioning - ProvisioningState *ClusterProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ClusterProvisioningState } // Datastore - A datastore resource type Datastore struct { // The properties of a datastore resource - Properties *DatastoreProperties `json:"properties,omitempty"` + Properties *DatastoreProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // DatastoreList - A paged list of datastores type DatastoreList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on a page - Value []*Datastore `json:"value,omitempty" azure:"ro"` + Value []*Datastore } // DatastoreProperties - The properties of a datastore type DatastoreProperties struct { // An iSCSI volume - DiskPoolVolume *DiskPoolVolume `json:"diskPoolVolume,omitempty"` + DiskPoolVolume *DiskPoolVolume // An Azure NetApp Files volume - NetAppVolume *NetAppVolume `json:"netAppVolume,omitempty"` + NetAppVolume *NetAppVolume // READ-ONLY; The state of the datastore provisioning - ProvisioningState *DatastoreProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *DatastoreProvisioningState // READ-ONLY; The operational status of the datastore - Status *DatastoreStatus `json:"status,omitempty" azure:"ro"` + Status *DatastoreStatus } // DatastoresClientBeginCreateOrUpdateOptions contains the optional parameters for the DatastoresClient.BeginCreateOrUpdate @@ -464,170 +464,170 @@ type DatastoresClientListOptions struct { // DiskPoolVolume - An iSCSI volume from Microsoft.StoragePool provider type DiskPoolVolume struct { // REQUIRED; Name of the LUN to be used for datastore - LunName *string `json:"lunName,omitempty"` + LunName *string // REQUIRED; Azure resource ID of the iSCSI target - TargetID *string `json:"targetId,omitempty"` + TargetID *string // Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN - MountOption *MountOptionEnum `json:"mountOption,omitempty"` + MountOption *MountOptionEnum // READ-ONLY; Device path - Path *string `json:"path,omitempty" azure:"ro"` + Path *string } // Encryption - The properties of customer managed encryption key type Encryption struct { // The key vault where the encryption key is stored - KeyVaultProperties *EncryptionKeyVaultProperties `json:"keyVaultProperties,omitempty"` + KeyVaultProperties *EncryptionKeyVaultProperties // Status of customer managed encryption key - Status *EncryptionState `json:"status,omitempty"` + Status *EncryptionState } // EncryptionKeyVaultProperties - An Encryption Key type EncryptionKeyVaultProperties struct { // The name of the key. - KeyName *string `json:"keyName,omitempty"` + KeyName *string // The URL of the vault. - KeyVaultURL *string `json:"keyVaultUrl,omitempty"` + KeyVaultURL *string // The version of the key. - KeyVersion *string `json:"keyVersion,omitempty"` + KeyVersion *string // READ-ONLY; The auto-detected version of the key if versionType is auto-detected. - AutoDetectedKeyVersion *string `json:"autoDetectedKeyVersion,omitempty" azure:"ro"` + AutoDetectedKeyVersion *string // READ-ONLY; The state of key provided - KeyState *EncryptionKeyStatus `json:"keyState,omitempty" azure:"ro"` + KeyState *EncryptionKeyStatus // READ-ONLY; Property of the key if user provided or auto detected - VersionType *EncryptionVersionType `json:"versionType,omitempty" azure:"ro"` + VersionType *EncryptionVersionType } // Endpoints - Endpoint addresses type Endpoints struct { // READ-ONLY; Endpoint for the HCX Cloud Manager - HcxCloudManager *string `json:"hcxCloudManager,omitempty" azure:"ro"` + HcxCloudManager *string // READ-ONLY; Endpoint for the NSX-T Data Center manager - NsxtManager *string `json:"nsxtManager,omitempty" azure:"ro"` + NsxtManager *string // READ-ONLY; Endpoint for Virtual Center Server Appliance - Vcsa *string `json:"vcsa,omitempty" azure:"ro"` + Vcsa *string } // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. - Info any `json:"info,omitempty" azure:"ro"` + Info any // READ-ONLY; The additional info type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. // (This also follows the OData error response format.) type ErrorResponse struct { // READ-ONLY; The error additional info. - AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` + AdditionalInfo []*ErrorAdditionalInfo // READ-ONLY; The error code. - Code *string `json:"code,omitempty" azure:"ro"` + Code *string // READ-ONLY; The error details. - Details []*ErrorResponse `json:"details,omitempty" azure:"ro"` + Details []*ErrorResponse // READ-ONLY; The error message. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string // READ-ONLY; The error target. - Target *string `json:"target,omitempty" azure:"ro"` + Target *string } // ExpressRouteAuthorization - ExpressRoute Circuit Authorization type ExpressRouteAuthorization struct { // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The properties of an ExpressRoute Circuit Authorization resource - Properties *ExpressRouteAuthorizationProperties `json:"properties,omitempty" azure:"ro"` + Properties *ExpressRouteAuthorizationProperties // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ExpressRouteAuthorizationList - A paged list of ExpressRoute Circuit Authorizations type ExpressRouteAuthorizationList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on a page - Value []*ExpressRouteAuthorization `json:"value,omitempty" azure:"ro"` + Value []*ExpressRouteAuthorization } // ExpressRouteAuthorizationProperties - The properties of an ExpressRoute Circuit Authorization resource type ExpressRouteAuthorizationProperties struct { // The ID of the ExpressRoute Circuit - ExpressRouteID *string `json:"expressRouteId,omitempty"` + ExpressRouteID *string // READ-ONLY; The ID of the ExpressRoute Circuit Authorization - ExpressRouteAuthorizationID *string `json:"expressRouteAuthorizationId,omitempty" azure:"ro"` + ExpressRouteAuthorizationID *string // READ-ONLY; The key of the ExpressRoute Circuit Authorization - ExpressRouteAuthorizationKey *string `json:"expressRouteAuthorizationKey,omitempty" azure:"ro"` + ExpressRouteAuthorizationKey *string // READ-ONLY; The state of the ExpressRoute Circuit Authorization provisioning - ProvisioningState *ExpressRouteAuthorizationProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ExpressRouteAuthorizationProvisioningState } // GlobalReachConnection - A global reach connection resource type GlobalReachConnection struct { // The properties of a global reach connection resource - Properties *GlobalReachConnectionProperties `json:"properties,omitempty"` + Properties *GlobalReachConnectionProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GlobalReachConnectionList - A paged list of global reach connections type GlobalReachConnectionList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on a page - Value []*GlobalReachConnection `json:"value,omitempty" azure:"ro"` + Value []*GlobalReachConnection } // GlobalReachConnectionProperties - The properties of a global reach connection type GlobalReachConnectionProperties struct { // Authorization key from the peer express route used for the global reach connection - AuthorizationKey *string `json:"authorizationKey,omitempty"` + AuthorizationKey *string // The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection - ExpressRouteID *string `json:"expressRouteId,omitempty"` + ExpressRouteID *string // Identifier of the ExpressRoute Circuit to peer with in the global reach connection - PeerExpressRouteCircuit *string `json:"peerExpressRouteCircuit,omitempty"` + PeerExpressRouteCircuit *string // READ-ONLY; The network used for global reach carved out from the original network block provided for the private cloud - AddressPrefix *string `json:"addressPrefix,omitempty" azure:"ro"` + AddressPrefix *string // READ-ONLY; The connection status of the global reach connection - CircuitConnectionStatus *GlobalReachConnectionStatus `json:"circuitConnectionStatus,omitempty" azure:"ro"` + CircuitConnectionStatus *GlobalReachConnectionStatus // READ-ONLY; The state of the ExpressRoute Circuit Authorization provisioning - ProvisioningState *GlobalReachConnectionProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *GlobalReachConnectionProvisioningState } // GlobalReachConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the GlobalReachConnectionsClient.BeginCreateOrUpdate @@ -658,34 +658,34 @@ type GlobalReachConnectionsClientListOptions struct { // HcxEnterpriseSite - An HCX Enterprise Site resource type HcxEnterpriseSite struct { // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The properties of an HCX Enterprise Site resource - Properties *HcxEnterpriseSiteProperties `json:"properties,omitempty" azure:"ro"` + Properties *HcxEnterpriseSiteProperties // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // HcxEnterpriseSiteList - A paged list of HCX Enterprise Sites type HcxEnterpriseSiteList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on a page - Value []*HcxEnterpriseSite `json:"value,omitempty" azure:"ro"` + Value []*HcxEnterpriseSite } // HcxEnterpriseSiteProperties - The properties of an HCX Enterprise Site type HcxEnterpriseSiteProperties struct { // READ-ONLY; The activation key - ActivationKey *string `json:"activationKey,omitempty" azure:"ro"` + ActivationKey *string // READ-ONLY; The status of the HCX Enterprise Site - Status *HcxEnterpriseSiteStatus `json:"status,omitempty" azure:"ro"` + Status *HcxEnterpriseSiteStatus } // HcxEnterpriseSitesClientCreateOrUpdateOptions contains the optional parameters for the HcxEnterpriseSitesClient.CreateOrUpdate @@ -712,34 +712,34 @@ type HcxEnterpriseSitesClientListOptions struct { // IdentitySource - vCenter Single Sign On Identity Source type IdentitySource struct { // The domain's NetBIOS name - Alias *string `json:"alias,omitempty"` + Alias *string // The base distinguished name for groups - BaseGroupDN *string `json:"baseGroupDN,omitempty"` + BaseGroupDN *string // The base distinguished name for users - BaseUserDN *string `json:"baseUserDN,omitempty"` + BaseUserDN *string // The domain's dns name - Domain *string `json:"domain,omitempty"` + Domain *string // The name of the identity source - Name *string `json:"name,omitempty"` + Name *string // The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. - Password *string `json:"password,omitempty"` + Password *string // Primary server URL - PrimaryServer *string `json:"primaryServer,omitempty"` + PrimaryServer *string // Protect LDAP communication using SSL certificate (LDAPS) - SSL *SSLEnum `json:"ssl,omitempty"` + SSL *SSLEnum // Secondary server URL - SecondaryServer *string `json:"secondaryServer,omitempty"` + SecondaryServer *string // The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group - Username *string `json:"username,omitempty"` + Username *string } // LocationsClientCheckQuotaAvailabilityOptions contains the optional parameters for the LocationsClient.CheckQuotaAvailability @@ -758,139 +758,139 @@ type LocationsClientCheckTrialAvailabilityOptions struct { // LogSpecification - Specifications of the Log for Azure Monitoring type LogSpecification struct { // Blob duration of the log - BlobDuration *string `json:"blobDuration,omitempty"` + BlobDuration *string // Localized friendly display name of the log - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Name of the log - Name *string `json:"name,omitempty"` + Name *string } // ManagementCluster - The properties of a management cluster type ManagementCluster struct { // The cluster size - ClusterSize *int32 `json:"clusterSize,omitempty"` + ClusterSize *int32 // The hosts - Hosts []*string `json:"hosts,omitempty"` + Hosts []*string // READ-ONLY; The identity - ClusterID *int32 `json:"clusterId,omitempty" azure:"ro"` + ClusterID *int32 // READ-ONLY; The state of the cluster provisioning - ProvisioningState *ClusterProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ClusterProvisioningState } // MetricDimension - Specifications of the Dimension of metrics type MetricDimension struct { // Localized friendly display name of the dimension - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Name of the dimension as it appears in MDM - InternalName *string `json:"internalName,omitempty"` + InternalName *string // Name of the dimension - Name *string `json:"name,omitempty"` + Name *string // A boolean flag indicating whether this dimension should be included for the shoebox export scenario - ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` + ToBeExportedForShoebox *bool } // MetricSpecification - Specifications of the Metrics for Azure Monitoring type MetricSpecification struct { // Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. - AggregationType *string `json:"aggregationType,omitempty"` + AggregationType *string // Name of the metric category that the metric belongs to. A metric can only belong to a single category. - Category *string `json:"category,omitempty"` + Category *string // Dimensions of the metric - Dimensions []*MetricDimension `json:"dimensions,omitempty"` + Dimensions []*MetricDimension // Localized friendly description of the metric - DisplayDescription *string `json:"displayDescription,omitempty"` + DisplayDescription *string // Localized friendly display name of the metric - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Whether or not the service is using regional MDM accounts. - EnableRegionalMdmAccount *string `json:"enableRegionalMdmAccount,omitempty"` + EnableRegionalMdmAccount *string // Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. - FillGapWithZero *bool `json:"fillGapWithZero,omitempty"` + FillGapWithZero *bool // Name of the metric - Name *string `json:"name,omitempty"` + Name *string // The name of the MDM account. - SourceMdmAccount *string `json:"sourceMdmAccount,omitempty"` + SourceMdmAccount *string // The name of the MDM namespace. - SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` + SourceMdmNamespace *string // Supported aggregation types - SupportedAggregationTypes []*string `json:"supportedAggregationTypes,omitempty"` + SupportedAggregationTypes []*string // Supported time grain types - SupportedTimeGrainTypes []*string `json:"supportedTimeGrainTypes,omitempty"` + SupportedTimeGrainTypes []*string // Unit that makes sense for the metric - Unit *string `json:"unit,omitempty"` + Unit *string } // NetAppVolume - An Azure NetApp Files volume from Microsoft.NetApp provider type NetAppVolume struct { // REQUIRED; Azure resource ID of the NetApp volume - ID *string `json:"id,omitempty"` + ID *string } // Operation - A REST API operation type Operation struct { // Gets or sets a value indicating whether the operation is a data action or not - IsDataAction *bool `json:"isDataAction,omitempty"` + IsDataAction *bool // Origin of the operation - Origin *string `json:"origin,omitempty"` + Origin *string // Properties of the operation - Properties *OperationProperties `json:"properties,omitempty"` + Properties *OperationProperties // READ-ONLY; Contains the localized display information for this operation - Display *OperationDisplay `json:"display,omitempty" azure:"ro"` + Display *OperationDisplay // READ-ONLY; Name of the operation being performed on this object - Name *string `json:"name,omitempty" azure:"ro"` + Name *string } // OperationDisplay - Contains the localized display information for this operation type OperationDisplay struct { // READ-ONLY; Localized friendly description for the operation - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; Localized friendly name for the operation - Operation *string `json:"operation,omitempty" azure:"ro"` + Operation *string // READ-ONLY; Localized friendly form of the resource provider name - Provider *string `json:"provider,omitempty" azure:"ro"` + Provider *string // READ-ONLY; Localized friendly form of the resource type related to this operation - Resource *string `json:"resource,omitempty" azure:"ro"` + Resource *string } // OperationList - Pageable list of operations type OperationList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of operations - Value []*Operation `json:"value,omitempty" azure:"ro"` + Value []*Operation } // OperationProperties - Extra Operation properties type OperationProperties struct { // Service specifications of the operation - ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` + ServiceSpecification *ServiceSpecification } // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. @@ -901,16 +901,16 @@ type OperationsClientListOptions struct { // PSCredentialExecutionParameter - a powershell credential object type PSCredentialExecutionParameter struct { // REQUIRED; The parameter name - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; The type of execution parameter - Type *ScriptExecutionParameterType `json:"type,omitempty"` + Type *ScriptExecutionParameterType // password for login - Password *string `json:"password,omitempty"` + Password *string // username for login - Username *string `json:"username,omitempty"` + Username *string } // GetScriptExecutionParameter implements the ScriptExecutionParameterClassification interface for type PSCredentialExecutionParameter. @@ -955,25 +955,25 @@ type PlacementPoliciesClientListOptions struct { // PlacementPoliciesList - Represents list of placement policies type PlacementPoliciesList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on the page - Value []*PlacementPolicy `json:"value,omitempty" azure:"ro"` + Value []*PlacementPolicy } // PlacementPolicy - A vSphere Distributed Resource Scheduler (DRS) placement policy type PlacementPolicy struct { // placement policy properties - Properties PlacementPolicyPropertiesClassification `json:"properties,omitempty"` + Properties PlacementPolicyPropertiesClassification // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PlacementPolicyPropertiesClassification provides polymorphic access to related types. @@ -988,16 +988,16 @@ type PlacementPolicyPropertiesClassification interface { // PlacementPolicyProperties - Abstract placement policy properties type PlacementPolicyProperties struct { // REQUIRED; placement policy type - Type *PlacementPolicyType `json:"type,omitempty"` + Type *PlacementPolicyType // Display name of the placement policy - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Whether the placement policy is enabled or disabled - State *PlacementPolicyState `json:"state,omitempty"` + State *PlacementPolicyState // READ-ONLY; The provisioning state - ProvisioningState *PlacementPolicyProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *PlacementPolicyProvisioningState } // GetPlacementPolicyProperties implements the PlacementPolicyPropertiesClassification interface for type PlacementPolicyProperties. @@ -1008,74 +1008,74 @@ func (p *PlacementPolicyProperties) GetPlacementPolicyProperties() *PlacementPol // PlacementPolicyUpdate - An update of a DRS placement policy resource type PlacementPolicyUpdate struct { // The properties of a placement policy resource that may be updated - Properties *PlacementPolicyUpdateProperties `json:"properties,omitempty"` + Properties *PlacementPolicyUpdateProperties } // PlacementPolicyUpdateProperties - The properties of a placement policy resource that may be updated type PlacementPolicyUpdateProperties struct { // vm-host placement policy affinity strength (should/must) - AffinityStrength *AffinityStrength `json:"affinityStrength,omitempty"` + AffinityStrength *AffinityStrength // placement policy azure hybrid benefit opt-in type - AzureHybridBenefitType *AzureHybridBenefitType `json:"azureHybridBenefitType,omitempty"` + AzureHybridBenefitType *AzureHybridBenefitType // Host members list - HostMembers []*string `json:"hostMembers,omitempty"` + HostMembers []*string // Whether the placement policy is enabled or disabled - State *PlacementPolicyState `json:"state,omitempty"` + State *PlacementPolicyState // Virtual machine members list - VMMembers []*string `json:"vmMembers,omitempty"` + VMMembers []*string } // PrivateCloud - A private cloud resource type PrivateCloud struct { // REQUIRED; The private cloud SKU - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // The identity of the private cloud, if configured. - Identity *PrivateCloudIdentity `json:"identity,omitempty"` + Identity *PrivateCloudIdentity // Resource location - Location *string `json:"location,omitempty"` + Location *string // The properties of a private cloud resource - Properties *PrivateCloudProperties `json:"properties,omitempty"` + Properties *PrivateCloudProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PrivateCloudIdentity - Identity for the virtual machine. type PrivateCloudIdentity struct { // The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The // type 'None' will remove any identities from the Private Cloud. - Type *ResourceIdentityType `json:"type,omitempty"` + Type *ResourceIdentityType // READ-ONLY; The principal ID of private cloud identity. This property will only be provided for a system assigned identity. - PrincipalID *string `json:"principalId,omitempty" azure:"ro"` + PrincipalID *string // READ-ONLY; The tenant ID associated with the private cloud. This property will only be provided for a system assigned identity. - TenantID *string `json:"tenantId,omitempty" azure:"ro"` + TenantID *string } // PrivateCloudList - A paged list of private clouds type PrivateCloudList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on the page - Value []*PrivateCloud `json:"value,omitempty" azure:"ro"` + Value []*PrivateCloud } // PrivateCloudProperties - The properties of a private cloud resource @@ -1083,92 +1083,92 @@ type PrivateCloudProperties struct { // REQUIRED; The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the // CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is // between 0 and 22 - NetworkBlock *string `json:"networkBlock,omitempty"` + NetworkBlock *string // Properties describing how the cloud is distributed across availability zones - Availability *AvailabilityProperties `json:"availability,omitempty"` + Availability *AvailabilityProperties // An ExpressRoute Circuit - Circuit *Circuit `json:"circuit,omitempty"` + Circuit *Circuit // Customer managed key encryption, can be enabled or disabled - Encryption *Encryption `json:"encryption,omitempty"` + Encryption *Encryption // vCenter Single Sign On Identity Sources - IdentitySources []*IdentitySource `json:"identitySources,omitempty"` + IdentitySources []*IdentitySource // Connectivity to internet is enabled or disabled - Internet *InternetEnum `json:"internet,omitempty"` + Internet *InternetEnum // The default cluster used for management - ManagementCluster *ManagementCluster `json:"managementCluster,omitempty"` + ManagementCluster *ManagementCluster // Optionally, set the NSX-T Manager password when the private cloud is created - NsxtPassword *string `json:"nsxtPassword,omitempty"` + NsxtPassword *string // A secondary expressRoute circuit from a separate AZ. Only present in a stretched private cloud - SecondaryCircuit *Circuit `json:"secondaryCircuit,omitempty"` + SecondaryCircuit *Circuit // Optionally, set the vCenter admin password when the private cloud is created - VcenterPassword *string `json:"vcenterPassword,omitempty"` + VcenterPassword *string // READ-ONLY; The endpoints - Endpoints *Endpoints `json:"endpoints,omitempty" azure:"ro"` + Endpoints *Endpoints // READ-ONLY; Array of cloud link IDs from other clouds that connect to this one - ExternalCloudLinks []*string `json:"externalCloudLinks,omitempty" azure:"ro"` + ExternalCloudLinks []*string // READ-ONLY; Network used to access vCenter Server and NSX-T Manager - ManagementNetwork *string `json:"managementNetwork,omitempty" azure:"ro"` + ManagementNetwork *string // READ-ONLY; Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 // to 1024 - NsxPublicIPQuotaRaised *NsxPublicIPQuotaRaisedEnum `json:"nsxPublicIpQuotaRaised,omitempty" azure:"ro"` + NsxPublicIPQuotaRaised *NsxPublicIPQuotaRaisedEnum // READ-ONLY; Thumbprint of the NSX-T Manager SSL certificate - NsxtCertificateThumbprint *string `json:"nsxtCertificateThumbprint,omitempty" azure:"ro"` + NsxtCertificateThumbprint *string // READ-ONLY; Used for virtual machine cold migration, cloning, and snapshot migration - ProvisioningNetwork *string `json:"provisioningNetwork,omitempty" azure:"ro"` + ProvisioningNetwork *string // READ-ONLY; The provisioning state - ProvisioningState *PrivateCloudProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *PrivateCloudProvisioningState // READ-ONLY; Thumbprint of the vCenter Server SSL certificate - VcenterCertificateThumbprint *string `json:"vcenterCertificateThumbprint,omitempty" azure:"ro"` + VcenterCertificateThumbprint *string // READ-ONLY; Used for live migration of virtual machines - VmotionNetwork *string `json:"vmotionNetwork,omitempty" azure:"ro"` + VmotionNetwork *string } // PrivateCloudUpdate - An update to a private cloud resource type PrivateCloudUpdate struct { // The identity of the private cloud, if configured. - Identity *PrivateCloudIdentity `json:"identity,omitempty"` + Identity *PrivateCloudIdentity // The updatable properties of a private cloud resource - Properties *PrivateCloudUpdateProperties `json:"properties,omitempty"` + Properties *PrivateCloudUpdateProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // PrivateCloudUpdateProperties - The properties of a private cloud resource that may be updated type PrivateCloudUpdateProperties struct { // Properties describing how the cloud is distributed across availability zones - Availability *AvailabilityProperties `json:"availability,omitempty"` + Availability *AvailabilityProperties // Customer managed key encryption, can be enabled or disabled - Encryption *Encryption `json:"encryption,omitempty"` + Encryption *Encryption // vCenter Single Sign On Identity Sources - IdentitySources []*IdentitySource `json:"identitySources,omitempty"` + IdentitySources []*IdentitySource // Connectivity to internet is enabled or disabled - Internet *InternetEnum `json:"internet,omitempty"` + Internet *InternetEnum // The default cluster used for management - ManagementCluster *ManagementCluster `json:"managementCluster,omitempty"` + ManagementCluster *ManagementCluster } // PrivateCloudsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateCloudsClient.BeginCreateOrUpdate @@ -1229,67 +1229,67 @@ type PrivateCloudsClientListOptions struct { // ProxyResource - The resource model definition for a ARM proxy resource type ProxyResource struct { // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // Quota - Subscription quotas type Quota struct { // READ-ONLY; Remaining hosts quota by sku type - HostsRemaining map[string]*int32 `json:"hostsRemaining,omitempty" azure:"ro"` + HostsRemaining map[string]*int32 // READ-ONLY; Host quota is active for current subscription - QuotaEnabled *QuotaEnabled `json:"quotaEnabled,omitempty" azure:"ro"` + QuotaEnabled *QuotaEnabled } // Resource - The core properties of ARM resources type Resource struct { // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SKU - The resource model definition representing SKU type SKU struct { // REQUIRED; The name of the SKU. - Name *string `json:"name,omitempty"` + Name *string } // ScriptCmdlet - A cmdlet available for script execution type ScriptCmdlet struct { // The properties of a script cmdlet resource - Properties *ScriptCmdletProperties `json:"properties,omitempty"` + Properties *ScriptCmdletProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ScriptCmdletProperties - Properties of a pre-canned script type ScriptCmdletProperties struct { // READ-ONLY; Description of the scripts functionality - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; Parameters the script will accept - Parameters []*ScriptParameter `json:"parameters,omitempty" azure:"ro"` + Parameters []*ScriptParameter // READ-ONLY; Recommended time limit for execution - Timeout *string `json:"timeout,omitempty" azure:"ro"` + Timeout *string } // ScriptCmdletsClientGetOptions contains the optional parameters for the ScriptCmdletsClient.Get method. @@ -1305,25 +1305,25 @@ type ScriptCmdletsClientListOptions struct { // ScriptCmdletsList - Pageable list of scripts/cmdlets type ScriptCmdletsList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of scripts - Value []*ScriptCmdlet `json:"value,omitempty" azure:"ro"` + Value []*ScriptCmdlet } // ScriptExecution - An instance of a script executed by a user - custom or AVS type ScriptExecution struct { // The properties of a script execution resource - Properties *ScriptExecutionProperties `json:"properties,omitempty"` + Properties *ScriptExecutionProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ScriptExecutionParameterClassification provides polymorphic access to related types. @@ -1338,10 +1338,10 @@ type ScriptExecutionParameterClassification interface { // ScriptExecutionParameter - The arguments passed in to the execution type ScriptExecutionParameter struct { // REQUIRED; The parameter name - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; The type of execution parameter - Type *ScriptExecutionParameterType `json:"type,omitempty"` + Type *ScriptExecutionParameterType } // GetScriptExecutionParameter implements the ScriptExecutionParameterClassification interface for type ScriptExecutionParameter. @@ -1350,49 +1350,49 @@ func (s *ScriptExecutionParameter) GetScriptExecutionParameter() *ScriptExecutio // ScriptExecutionProperties - Properties of a user-invoked script type ScriptExecutionProperties struct { // REQUIRED; Time limit for execution - Timeout *string `json:"timeout,omitempty"` + Timeout *string // Error message if the script was able to run, but if the script itself had errors or powershell threw an exception - FailureReason *string `json:"failureReason,omitempty"` + FailureReason *string // Parameters that will be hidden/not visible to ARM, such as passwords and credentials - HiddenParameters []ScriptExecutionParameterClassification `json:"hiddenParameters,omitempty"` + HiddenParameters []ScriptExecutionParameterClassification // User-defined dictionary. - NamedOutputs map[string]any `json:"namedOutputs,omitempty"` + NamedOutputs map[string]any // Standard output stream from the powershell execution - Output []*string `json:"output,omitempty"` + Output []*string // Parameters the script will accept - Parameters []ScriptExecutionParameterClassification `json:"parameters,omitempty"` + Parameters []ScriptExecutionParameterClassification // Time to live for the resource. If not provided, will be available for 60 days - Retention *string `json:"retention,omitempty"` + Retention *string // A reference to the script cmdlet resource if user is running a AVS script - ScriptCmdletID *string `json:"scriptCmdletId,omitempty"` + ScriptCmdletID *string // READ-ONLY; Standard error output stream from the powershell execution - Errors []*string `json:"errors,omitempty" azure:"ro"` + Errors []*string // READ-ONLY; Time the script execution was finished - FinishedAt *time.Time `json:"finishedAt,omitempty" azure:"ro"` + FinishedAt *time.Time // READ-ONLY; Standard information out stream from the powershell execution - Information []*string `json:"information,omitempty" azure:"ro"` + Information []*string // READ-ONLY; The state of the script execution resource - ProvisioningState *ScriptExecutionProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ScriptExecutionProvisioningState // READ-ONLY; Time the script execution was started - StartedAt *time.Time `json:"startedAt,omitempty" azure:"ro"` + StartedAt *time.Time // READ-ONLY; Time the script execution was submitted - SubmittedAt *time.Time `json:"submittedAt,omitempty" azure:"ro"` + SubmittedAt *time.Time // READ-ONLY; Standard warning out stream from the powershell execution - Warnings []*string `json:"warnings,omitempty" azure:"ro"` + Warnings []*string } // ScriptExecutionsClientBeginCreateOrUpdateOptions contains the optional parameters for the ScriptExecutionsClient.BeginCreateOrUpdate @@ -1428,40 +1428,40 @@ type ScriptExecutionsClientListOptions struct { // ScriptExecutionsList - Pageable list of script executions type ScriptExecutionsList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of scripts - Value []*ScriptExecution `json:"value,omitempty" azure:"ro"` + Value []*ScriptExecution } // ScriptPackage - Script Package resources available for execution type ScriptPackage struct { // ScriptPackage resource properties - Properties *ScriptPackageProperties `json:"properties,omitempty"` + Properties *ScriptPackageProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ScriptPackageProperties - Properties of a Script Package subresource type ScriptPackageProperties struct { // READ-ONLY; Company that created and supports the package - Company *string `json:"company,omitempty" azure:"ro"` + Company *string // READ-ONLY; User friendly description of the package - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; Link to support by the package vendor - URI *string `json:"uri,omitempty" azure:"ro"` + URI *string // READ-ONLY; Module version - Version *string `json:"version,omitempty" azure:"ro"` + Version *string } // ScriptPackagesClientGetOptions contains the optional parameters for the ScriptPackagesClient.Get method. @@ -1477,40 +1477,40 @@ type ScriptPackagesClientListOptions struct { // ScriptPackagesList - A list of the available script packages type ScriptPackagesList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of script package resources - Value []*ScriptPackage `json:"value,omitempty" azure:"ro"` + Value []*ScriptPackage } // ScriptParameter - An parameter that the script will accept type ScriptParameter struct { // The parameter name that the script will expect a parameter value for - Name *string `json:"name,omitempty"` + Name *string // READ-ONLY; User friendly description of the parameter - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; Is this parameter required or optional - Optional *OptionalParamEnum `json:"optional,omitempty" azure:"ro"` + Optional *OptionalParamEnum // READ-ONLY; The type of parameter the script is expecting. psCredential is a PSCredentialObject - Type *ScriptParameterTypes `json:"type,omitempty" azure:"ro"` + Type *ScriptParameterTypes // READ-ONLY; Should this parameter be visible to arm and passed in the parameters argument when executing - Visibility *VisibilityParameterEnum `json:"visibility,omitempty" azure:"ro"` + Visibility *VisibilityParameterEnum } // ScriptSecureStringExecutionParameter - a plain text value execution parameter type ScriptSecureStringExecutionParameter struct { // REQUIRED; The parameter name - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; The type of execution parameter - Type *ScriptExecutionParameterType `json:"type,omitempty"` + Type *ScriptExecutionParameterType // A secure value for the passed parameter, not to be stored in logs - SecureValue *string `json:"secureValue,omitempty"` + SecureValue *string } // GetScriptExecutionParameter implements the ScriptExecutionParameterClassification interface for type ScriptSecureStringExecutionParameter. @@ -1524,13 +1524,13 @@ func (s *ScriptSecureStringExecutionParameter) GetScriptExecutionParameter() *Sc // ScriptStringExecutionParameter - a plain text value execution parameter type ScriptStringExecutionParameter struct { // REQUIRED; The parameter name - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; The type of execution parameter - Type *ScriptExecutionParameterType `json:"type,omitempty"` + Type *ScriptExecutionParameterType // The value for the passed parameter - Value *string `json:"value,omitempty"` + Value *string } // GetScriptExecutionParameter implements the ScriptExecutionParameterClassification interface for type ScriptStringExecutionParameter. @@ -1544,67 +1544,67 @@ func (s *ScriptStringExecutionParameter) GetScriptExecutionParameter() *ScriptEx // ServiceSpecification - Service specification payload type ServiceSpecification struct { // Specifications of the Log for Azure Monitoring - LogSpecifications []*LogSpecification `json:"logSpecifications,omitempty"` + LogSpecifications []*LogSpecification // Specifications of the Metrics for Azure Monitoring - MetricSpecifications []*MetricSpecification `json:"metricSpecifications,omitempty"` + MetricSpecifications []*MetricSpecification } // TrackedResource - The resource model definition for a ARM tracked top level resource type TrackedResource struct { // Resource location - Location *string `json:"location,omitempty"` + Location *string // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // Trial - Subscription trial availability type Trial struct { // READ-ONLY; Number of trial hosts available - AvailableHosts *int32 `json:"availableHosts,omitempty" azure:"ro"` + AvailableHosts *int32 // READ-ONLY; Trial status - Status *TrialStatus `json:"status,omitempty" azure:"ro"` + Status *TrialStatus } // VMHostPlacementPolicyProperties - VM-Host placement policy properties type VMHostPlacementPolicyProperties struct { // REQUIRED; placement policy affinity type - AffinityType *AffinityType `json:"affinityType,omitempty"` + AffinityType *AffinityType // REQUIRED; Host members list - HostMembers []*string `json:"hostMembers,omitempty"` + HostMembers []*string // REQUIRED; placement policy type - Type *PlacementPolicyType `json:"type,omitempty"` + Type *PlacementPolicyType // REQUIRED; Virtual machine members list - VMMembers []*string `json:"vmMembers,omitempty"` + VMMembers []*string // vm-host placement policy affinity strength (should/must) - AffinityStrength *AffinityStrength `json:"affinityStrength,omitempty"` + AffinityStrength *AffinityStrength // placement policy azure hybrid benefit opt-in type - AzureHybridBenefitType *AzureHybridBenefitType `json:"azureHybridBenefitType,omitempty"` + AzureHybridBenefitType *AzureHybridBenefitType // Display name of the placement policy - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Whether the placement policy is enabled or disabled - State *PlacementPolicyState `json:"state,omitempty"` + State *PlacementPolicyState // READ-ONLY; The provisioning state - ProvisioningState *PlacementPolicyProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *PlacementPolicyProvisioningState } // GetPlacementPolicyProperties implements the PlacementPolicyPropertiesClassification interface for type VMHostPlacementPolicyProperties. @@ -1620,22 +1620,22 @@ func (v *VMHostPlacementPolicyProperties) GetPlacementPolicyProperties() *Placem // VMPlacementPolicyProperties - VM-VM placement policy properties type VMPlacementPolicyProperties struct { // REQUIRED; placement policy affinity type - AffinityType *AffinityType `json:"affinityType,omitempty"` + AffinityType *AffinityType // REQUIRED; placement policy type - Type *PlacementPolicyType `json:"type,omitempty"` + Type *PlacementPolicyType // REQUIRED; Virtual machine members list - VMMembers []*string `json:"vmMembers,omitempty"` + VMMembers []*string // Display name of the placement policy - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Whether the placement policy is enabled or disabled - State *PlacementPolicyState `json:"state,omitempty"` + State *PlacementPolicyState // READ-ONLY; The provisioning state - ProvisioningState *PlacementPolicyProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *PlacementPolicyProvisioningState } // GetPlacementPolicyProperties implements the PlacementPolicyPropertiesClassification interface for type VMPlacementPolicyProperties. @@ -1651,37 +1651,37 @@ func (v *VMPlacementPolicyProperties) GetPlacementPolicyProperties() *PlacementP // VirtualMachine - Virtual Machine type VirtualMachine struct { // Virtual machine properties. - Properties *VirtualMachineProperties `json:"properties,omitempty"` + Properties *VirtualMachineProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // VirtualMachineProperties - Virtual Machine Properties type VirtualMachineProperties struct { // READ-ONLY; Display name of the VM. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; Path to virtual machine's folder starting from datacenter virtual machine folder - FolderPath *string `json:"folderPath,omitempty" azure:"ro"` + FolderPath *string // READ-ONLY; Virtual machine managed object reference id - MoRefID *string `json:"moRefId,omitempty" azure:"ro"` + MoRefID *string // READ-ONLY; Whether VM DRS-driven movement is restricted (enabled) or not (disabled) - RestrictMovement *VirtualMachineRestrictMovementState `json:"restrictMovement,omitempty" azure:"ro"` + RestrictMovement *VirtualMachineRestrictMovementState } // VirtualMachineRestrictMovement - Set VM DRS-driven movement to restricted (enabled) or not (disabled) type VirtualMachineRestrictMovement struct { // Whether VM DRS-driven movement is restricted (enabled) or not (disabled) - RestrictMovement *VirtualMachineRestrictMovementState `json:"restrictMovement,omitempty"` + RestrictMovement *VirtualMachineRestrictMovementState } // VirtualMachinesClientBeginRestrictMovementOptions contains the optional parameters for the VirtualMachinesClient.BeginRestrictMovement @@ -1704,136 +1704,136 @@ type VirtualMachinesClientListOptions struct { // VirtualMachinesList - A list of Virtual Machines type VirtualMachinesList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items to be displayed on the page - Value []*VirtualMachine `json:"value,omitempty" azure:"ro"` + Value []*VirtualMachine } // WorkloadNetwork - Workload Network type WorkloadNetwork struct { // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // WorkloadNetworkDNSService - NSX DNS Service type WorkloadNetworkDNSService struct { // DNS Service properties - Properties *WorkloadNetworkDNSServiceProperties `json:"properties,omitempty"` + Properties *WorkloadNetworkDNSServiceProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // WorkloadNetworkDNSServiceProperties - NSX DNS Service Properties type WorkloadNetworkDNSServiceProperties struct { // DNS service IP of the DNS Service. - DNSServiceIP *string `json:"dnsServiceIp,omitempty"` + DNSServiceIP *string // Default DNS zone of the DNS Service. - DefaultDNSZone *string `json:"defaultDnsZone,omitempty"` + DefaultDNSZone *string // Display name of the DNS Service. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // FQDN zones of the DNS Service. - FqdnZones []*string `json:"fqdnZones,omitempty"` + FqdnZones []*string // DNS Service log level. - LogLevel *DNSServiceLogLevelEnum `json:"logLevel,omitempty"` + LogLevel *DNSServiceLogLevelEnum // NSX revision number. - Revision *int64 `json:"revision,omitempty"` + Revision *int64 // READ-ONLY; The provisioning state - ProvisioningState *WorkloadNetworkDNSServiceProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *WorkloadNetworkDNSServiceProvisioningState // READ-ONLY; DNS Service status. - Status *DNSServiceStatusEnum `json:"status,omitempty" azure:"ro"` + Status *DNSServiceStatusEnum } // WorkloadNetworkDNSServicesList - A list of NSX DNS Services type WorkloadNetworkDNSServicesList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on the page - Value []*WorkloadNetworkDNSService `json:"value,omitempty" azure:"ro"` + Value []*WorkloadNetworkDNSService } // WorkloadNetworkDNSZone - NSX DNS Zone type WorkloadNetworkDNSZone struct { // DNS Zone properties - Properties *WorkloadNetworkDNSZoneProperties `json:"properties,omitempty"` + Properties *WorkloadNetworkDNSZoneProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // WorkloadNetworkDNSZoneProperties - NSX DNS Zone Properties type WorkloadNetworkDNSZoneProperties struct { // DNS Server IP array of the DNS Zone. - DNSServerIPs []*string `json:"dnsServerIps,omitempty"` + DNSServerIPs []*string // Number of DNS Services using the DNS zone. - DNSServices *int64 `json:"dnsServices,omitempty"` + DNSServices *int64 // Display name of the DNS Zone. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Domain names of the DNS Zone. - Domain []*string `json:"domain,omitempty"` + Domain []*string // NSX revision number. - Revision *int64 `json:"revision,omitempty"` + Revision *int64 // Source IP of the DNS Zone. - SourceIP *string `json:"sourceIp,omitempty"` + SourceIP *string // READ-ONLY; The provisioning state - ProvisioningState *WorkloadNetworkDNSZoneProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *WorkloadNetworkDNSZoneProvisioningState } // WorkloadNetworkDNSZonesList - A list of NSX DNS Zones type WorkloadNetworkDNSZonesList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on the page - Value []*WorkloadNetworkDNSZone `json:"value,omitempty" azure:"ro"` + Value []*WorkloadNetworkDNSZone } // WorkloadNetworkDhcp - NSX DHCP type WorkloadNetworkDhcp struct { // DHCP properties. - Properties WorkloadNetworkDhcpEntityClassification `json:"properties,omitempty"` + Properties WorkloadNetworkDhcpEntityClassification // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // WorkloadNetworkDhcpEntityClassification provides polymorphic access to related types. @@ -1848,19 +1848,19 @@ type WorkloadNetworkDhcpEntityClassification interface { // WorkloadNetworkDhcpEntity - Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to inherit from type WorkloadNetworkDhcpEntity struct { // REQUIRED; Type of DHCP: SERVER or RELAY. - DhcpType *DhcpTypeEnum `json:"dhcpType,omitempty"` + DhcpType *DhcpTypeEnum // Display name of the DHCP entity. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // NSX revision number. - Revision *int64 `json:"revision,omitempty"` + Revision *int64 // READ-ONLY; The provisioning state - ProvisioningState *WorkloadNetworkDhcpProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *WorkloadNetworkDhcpProvisioningState // READ-ONLY; NSX Segments consuming DHCP. - Segments []*string `json:"segments,omitempty" azure:"ro"` + Segments []*string } // GetWorkloadNetworkDhcpEntity implements the WorkloadNetworkDhcpEntityClassification interface for type WorkloadNetworkDhcpEntity. @@ -1871,31 +1871,31 @@ func (w *WorkloadNetworkDhcpEntity) GetWorkloadNetworkDhcpEntity() *WorkloadNetw // WorkloadNetworkDhcpList - A list of NSX dhcp entities type WorkloadNetworkDhcpList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on the page - Value []*WorkloadNetworkDhcp `json:"value,omitempty" azure:"ro"` + Value []*WorkloadNetworkDhcp } // WorkloadNetworkDhcpRelay - NSX DHCP Relay type WorkloadNetworkDhcpRelay struct { // REQUIRED; Type of DHCP: SERVER or RELAY. - DhcpType *DhcpTypeEnum `json:"dhcpType,omitempty"` + DhcpType *DhcpTypeEnum // Display name of the DHCP entity. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // NSX revision number. - Revision *int64 `json:"revision,omitempty"` + Revision *int64 // DHCP Relay Addresses. Max 3. - ServerAddresses []*string `json:"serverAddresses,omitempty"` + ServerAddresses []*string // READ-ONLY; The provisioning state - ProvisioningState *WorkloadNetworkDhcpProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *WorkloadNetworkDhcpProvisioningState // READ-ONLY; NSX Segments consuming DHCP. - Segments []*string `json:"segments,omitempty" azure:"ro"` + Segments []*string } // GetWorkloadNetworkDhcpEntity implements the WorkloadNetworkDhcpEntityClassification interface for type WorkloadNetworkDhcpRelay. @@ -1912,25 +1912,25 @@ func (w *WorkloadNetworkDhcpRelay) GetWorkloadNetworkDhcpEntity() *WorkloadNetwo // WorkloadNetworkDhcpServer - NSX DHCP Server type WorkloadNetworkDhcpServer struct { // REQUIRED; Type of DHCP: SERVER or RELAY. - DhcpType *DhcpTypeEnum `json:"dhcpType,omitempty"` + DhcpType *DhcpTypeEnum // Display name of the DHCP entity. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // DHCP Server Lease Time. - LeaseTime *int64 `json:"leaseTime,omitempty"` + LeaseTime *int64 // NSX revision number. - Revision *int64 `json:"revision,omitempty"` + Revision *int64 // DHCP Server Address. - ServerAddress *string `json:"serverAddress,omitempty"` + ServerAddress *string // READ-ONLY; The provisioning state - ProvisioningState *WorkloadNetworkDhcpProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *WorkloadNetworkDhcpProvisioningState // READ-ONLY; NSX Segments consuming DHCP. - Segments []*string `json:"segments,omitempty" azure:"ro"` + Segments []*string } // GetWorkloadNetworkDhcpEntity implements the WorkloadNetworkDhcpEntityClassification interface for type WorkloadNetworkDhcpServer. @@ -1947,268 +1947,268 @@ func (w *WorkloadNetworkDhcpServer) GetWorkloadNetworkDhcpEntity() *WorkloadNetw // WorkloadNetworkGateway - NSX Gateway. type WorkloadNetworkGateway struct { // Gateway properties. - Properties *WorkloadNetworkGatewayProperties `json:"properties,omitempty"` + Properties *WorkloadNetworkGatewayProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // WorkloadNetworkGatewayList - A list of NSX Gateways type WorkloadNetworkGatewayList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on the page - Value []*WorkloadNetworkGateway `json:"value,omitempty" azure:"ro"` + Value []*WorkloadNetworkGateway } // WorkloadNetworkGatewayProperties - Properties of a NSX Gateway. type WorkloadNetworkGatewayProperties struct { // Display name of the DHCP entity. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // READ-ONLY; NSX Gateway Path. - Path *string `json:"path,omitempty" azure:"ro"` + Path *string } // WorkloadNetworkList - A list of workload networks type WorkloadNetworkList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on the page - Value []*WorkloadNetwork `json:"value,omitempty" azure:"ro"` + Value []*WorkloadNetwork } // WorkloadNetworkPortMirroring - NSX Port Mirroring type WorkloadNetworkPortMirroring struct { // Port Mirroring Properties. - Properties *WorkloadNetworkPortMirroringProperties `json:"properties,omitempty"` + Properties *WorkloadNetworkPortMirroringProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // WorkloadNetworkPortMirroringList - A list of NSX Port Mirroring type WorkloadNetworkPortMirroringList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on the page - Value []*WorkloadNetworkPortMirroring `json:"value,omitempty" azure:"ro"` + Value []*WorkloadNetworkPortMirroring } // WorkloadNetworkPortMirroringProperties - NSX Port Mirroring Properties type WorkloadNetworkPortMirroringProperties struct { // Destination VM Group. - Destination *string `json:"destination,omitempty"` + Destination *string // Direction of port mirroring profile. - Direction *PortMirroringDirectionEnum `json:"direction,omitempty"` + Direction *PortMirroringDirectionEnum // Display name of the port mirroring profile. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // NSX revision number. - Revision *int64 `json:"revision,omitempty"` + Revision *int64 // Source VM Group. - Source *string `json:"source,omitempty"` + Source *string // READ-ONLY; The provisioning state - ProvisioningState *WorkloadNetworkPortMirroringProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *WorkloadNetworkPortMirroringProvisioningState // READ-ONLY; Port Mirroring Status. - Status *PortMirroringStatusEnum `json:"status,omitempty" azure:"ro"` + Status *PortMirroringStatusEnum } // WorkloadNetworkPublicIP - NSX Public IP Block type WorkloadNetworkPublicIP struct { // Public IP Block properties - Properties *WorkloadNetworkPublicIPProperties `json:"properties,omitempty"` + Properties *WorkloadNetworkPublicIPProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // WorkloadNetworkPublicIPProperties - NSX Public IP Block Properties type WorkloadNetworkPublicIPProperties struct { // Display name of the Public IP Block. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Number of Public IPs requested. - NumberOfPublicIPs *int64 `json:"numberOfPublicIPs,omitempty"` + NumberOfPublicIPs *int64 // READ-ONLY; The provisioning state - ProvisioningState *WorkloadNetworkPublicIPProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *WorkloadNetworkPublicIPProvisioningState // READ-ONLY; CIDR Block of the Public IP Block. - PublicIPBlock *string `json:"publicIPBlock,omitempty" azure:"ro"` + PublicIPBlock *string } // WorkloadNetworkPublicIPsList - A list of NSX Public IP Blocks type WorkloadNetworkPublicIPsList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on the page - Value []*WorkloadNetworkPublicIP `json:"value,omitempty" azure:"ro"` + Value []*WorkloadNetworkPublicIP } // WorkloadNetworkSegment - NSX Segment type WorkloadNetworkSegment struct { // The properties of a Workload Segment proxy resource. - Properties *WorkloadNetworkSegmentProperties `json:"properties,omitempty"` + Properties *WorkloadNetworkSegmentProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // WorkloadNetworkSegmentPortVif - Ports and any VIF attached to segment. type WorkloadNetworkSegmentPortVif struct { // Name of port or VIF attached to segment. - PortName *string `json:"portName,omitempty"` + PortName *string } // WorkloadNetworkSegmentProperties - NSX Segment Properties type WorkloadNetworkSegmentProperties struct { // Gateway which to connect segment to. - ConnectedGateway *string `json:"connectedGateway,omitempty"` + ConnectedGateway *string // Display name of the segment. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // NSX revision number. - Revision *int64 `json:"revision,omitempty"` + Revision *int64 // Subnet which to connect segment to. - Subnet *WorkloadNetworkSegmentSubnet `json:"subnet,omitempty"` + Subnet *WorkloadNetworkSegmentSubnet // READ-ONLY; Port Vif which segment is associated with. - PortVif []*WorkloadNetworkSegmentPortVif `json:"portVif,omitempty" azure:"ro"` + PortVif []*WorkloadNetworkSegmentPortVif // READ-ONLY; The provisioning state - ProvisioningState *WorkloadNetworkSegmentProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *WorkloadNetworkSegmentProvisioningState // READ-ONLY; Segment status. - Status *SegmentStatusEnum `json:"status,omitempty" azure:"ro"` + Status *SegmentStatusEnum } // WorkloadNetworkSegmentSubnet - Subnet configuration for segment type WorkloadNetworkSegmentSubnet struct { // DHCP Range assigned for subnet. - DhcpRanges []*string `json:"dhcpRanges,omitempty"` + DhcpRanges []*string // Gateway address. - GatewayAddress *string `json:"gatewayAddress,omitempty"` + GatewayAddress *string } // WorkloadNetworkSegmentsList - A list of NSX Segments type WorkloadNetworkSegmentsList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on the page - Value []*WorkloadNetworkSegment `json:"value,omitempty" azure:"ro"` + Value []*WorkloadNetworkSegment } // WorkloadNetworkVMGroup - NSX VM Group type WorkloadNetworkVMGroup struct { // VM Group properties. - Properties *WorkloadNetworkVMGroupProperties `json:"properties,omitempty"` + Properties *WorkloadNetworkVMGroupProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // WorkloadNetworkVMGroupProperties - NSX VM Group Properties type WorkloadNetworkVMGroupProperties struct { // Display name of the VM group. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Virtual machine members of this group. - Members []*string `json:"members,omitempty"` + Members []*string // NSX revision number. - Revision *int64 `json:"revision,omitempty"` + Revision *int64 // READ-ONLY; The provisioning state - ProvisioningState *WorkloadNetworkVMGroupProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *WorkloadNetworkVMGroupProvisioningState // READ-ONLY; VM Group status. - Status *VMGroupStatusEnum `json:"status,omitempty" azure:"ro"` + Status *VMGroupStatusEnum } // WorkloadNetworkVMGroupsList - A list of NSX VM Groups type WorkloadNetworkVMGroupsList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on the page - Value []*WorkloadNetworkVMGroup `json:"value,omitempty" azure:"ro"` + Value []*WorkloadNetworkVMGroup } // WorkloadNetworkVirtualMachine - NSX Virtual Machine type WorkloadNetworkVirtualMachine struct { // Virtual machine properties. - Properties *WorkloadNetworkVirtualMachineProperties `json:"properties,omitempty"` + Properties *WorkloadNetworkVirtualMachineProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // WorkloadNetworkVirtualMachineProperties - NSX Virtual Machine Properties type WorkloadNetworkVirtualMachineProperties struct { // Display name of the VM. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // READ-ONLY; Virtual machine type. - VMType *VMTypeEnum `json:"vmType,omitempty" azure:"ro"` + VMType *VMTypeEnum } // WorkloadNetworkVirtualMachinesList - A list of NSX Virtual Machines type WorkloadNetworkVirtualMachinesList struct { // READ-ONLY; URL to get the next page if any - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The items on the page - Value []*WorkloadNetworkVirtualMachine `json:"value,omitempty" azure:"ro"` + Value []*WorkloadNetworkVirtualMachine } // WorkloadNetworksClientBeginCreateDNSServiceOptions contains the optional parameters for the WorkloadNetworksClient.BeginCreateDNSService diff --git a/sdk/resourcemanager/avs/armavs/models_serde.go b/sdk/resourcemanager/avs/armavs/models_serde.go index 623fdad7819d..cccbe4bbe905 100644 --- a/sdk/resourcemanager/avs/armavs/models_serde.go +++ b/sdk/resourcemanager/avs/armavs/models_serde.go @@ -1003,7 +1003,7 @@ func (e *Endpoints) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo. func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "info", &e.Info) + populateAny(objectMap, "info", e.Info) populate(objectMap, "type", e.Type) return json.Marshal(objectMap) } @@ -4578,6 +4578,16 @@ func populate(m map[string]any, k string, v any) { } } +func populateAny(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else { + m[k] = v + } +} + func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil diff --git a/sdk/resourcemanager/azurearcdata/armazurearcdata/CHANGELOG.md b/sdk/resourcemanager/azurearcdata/armazurearcdata/CHANGELOG.md index 539e17de1d6c..14759c10e004 100644 --- a/sdk/resourcemanager/azurearcdata/armazurearcdata/CHANGELOG.md +++ b/sdk/resourcemanager/azurearcdata/armazurearcdata/CHANGELOG.md @@ -1,5 +1,10 @@ # Release History +## 0.6.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + ## 0.6.0 (2023-03-27) ### Features Added diff --git a/sdk/resourcemanager/azurearcdata/armazurearcdata/autorest.md b/sdk/resourcemanager/azurearcdata/armazurearcdata/autorest.md index 4b626a8d8936..942f05bbeb33 100644 --- a/sdk/resourcemanager/azurearcdata/armazurearcdata/autorest.md +++ b/sdk/resourcemanager/azurearcdata/armazurearcdata/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/azurearcdata/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/azurearcdata/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.6.0 +module-version: 0.6.1 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/azurearcdata/armazurearcdata/constants.go b/sdk/resourcemanager/azurearcdata/armazurearcdata/constants.go index 6b2431016adb..51086ece3212 100644 --- a/sdk/resourcemanager/azurearcdata/armazurearcdata/constants.go +++ b/sdk/resourcemanager/azurearcdata/armazurearcdata/constants.go @@ -11,7 +11,7 @@ package armazurearcdata const ( moduleName = "armazurearcdata" - moduleVersion = "v0.6.0" + moduleVersion = "v0.6.1" ) // AccountProvisioningMode - The service account provisioning mode for this Active Directory connector. diff --git a/sdk/resourcemanager/azurearcdata/armazurearcdata/models.go b/sdk/resourcemanager/azurearcdata/armazurearcdata/models.go index 126a64d0345c..41df59d16387 100644 --- a/sdk/resourcemanager/azurearcdata/armazurearcdata/models.go +++ b/sdk/resourcemanager/azurearcdata/armazurearcdata/models.go @@ -14,85 +14,85 @@ import "time" // ActiveDirectoryConnectorDNSDetails - DNS server details type ActiveDirectoryConnectorDNSDetails struct { // REQUIRED; List of Active Directory DNS server IP addresses. - NameserverIPAddresses []*string `json:"nameserverIPAddresses,omitempty"` + NameserverIPAddresses []*string // DNS domain name for which DNS lookups should be forwarded to the Active Directory DNS servers. - DomainName *string `json:"domainName,omitempty"` + DomainName *string // Flag indicating whether to prefer Kubernetes DNS server response over AD DNS server response for IP address lookups. - PreferK8SDNSForPtrLookups *bool `json:"preferK8sDnsForPtrLookups,omitempty"` + PreferK8SDNSForPtrLookups *bool // Replica count for DNS proxy service. Default value is 1. - Replicas *int64 `json:"replicas,omitempty"` + Replicas *int64 } // ActiveDirectoryConnectorDomainDetails - Active Directory domain details type ActiveDirectoryConnectorDomainDetails struct { // REQUIRED; null - DomainControllers *ActiveDirectoryDomainControllers `json:"domainControllers,omitempty"` + DomainControllers *ActiveDirectoryDomainControllers // REQUIRED; Name (uppercase) of the Active Directory domain that this AD connector will be associated with. - Realm *string `json:"realm,omitempty"` + Realm *string // NETBIOS name of the Active Directory domain. - NetbiosDomainName *string `json:"netbiosDomainName,omitempty"` + NetbiosDomainName *string // The distinguished name of the Active Directory Organizational Unit. - OuDistinguishedName *string `json:"ouDistinguishedName,omitempty"` + OuDistinguishedName *string // The service account provisioning mode for this Active Directory connector. - ServiceAccountProvisioning *AccountProvisioningMode `json:"serviceAccountProvisioning,omitempty"` + ServiceAccountProvisioning *AccountProvisioningMode } // ActiveDirectoryConnectorListResult - A list of active directory connectors type ActiveDirectoryConnectorListResult struct { // READ-ONLY; Link to retrieve next page of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; Array of results. - Value []*ActiveDirectoryConnectorResource `json:"value,omitempty" azure:"ro"` + Value []*ActiveDirectoryConnectorResource } // ActiveDirectoryConnectorProperties - The properties of an Active Directory connector resource type ActiveDirectoryConnectorProperties struct { // REQUIRED; null - Spec *ActiveDirectoryConnectorSpec `json:"spec,omitempty"` + Spec *ActiveDirectoryConnectorSpec // Username and password for domain service account authentication. - DomainServiceAccountLoginInformation *BasicLoginInformation `json:"domainServiceAccountLoginInformation,omitempty"` + DomainServiceAccountLoginInformation *BasicLoginInformation // null - Status *ActiveDirectoryConnectorStatus `json:"status,omitempty"` + Status *ActiveDirectoryConnectorStatus // READ-ONLY; The provisioning state of the Active Directory connector resource. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // ActiveDirectoryConnectorResource - Active directory connector resource type ActiveDirectoryConnectorResource struct { // REQUIRED; null - Properties *ActiveDirectoryConnectorProperties `json:"properties,omitempty"` + Properties *ActiveDirectoryConnectorProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ActiveDirectoryConnectorSpec - The specifications of the AD Kubernetes resource. type ActiveDirectoryConnectorSpec struct { // REQUIRED; null - ActiveDirectory *ActiveDirectoryConnectorDomainDetails `json:"activeDirectory,omitempty"` + ActiveDirectory *ActiveDirectoryConnectorDomainDetails // REQUIRED; null - DNS *ActiveDirectoryConnectorDNSDetails `json:"dns,omitempty"` + DNS *ActiveDirectoryConnectorDNSDetails } // ActiveDirectoryConnectorStatus - The status of the Kubernetes custom resource. @@ -101,13 +101,13 @@ type ActiveDirectoryConnectorStatus struct { AdditionalProperties map[string]any // The time that the custom resource was last updated. - LastUpdateTime *string `json:"lastUpdateTime,omitempty"` + LastUpdateTime *string // The version of the replicaSet associated with the AD connector custom resource. - ObservedGeneration *int64 `json:"observedGeneration,omitempty"` + ObservedGeneration *int64 // The state of the AD connector custom resource. - State *string `json:"state,omitempty"` + State *string } // ActiveDirectoryConnectorsClientBeginCreateOptions contains the optional parameters for the ActiveDirectoryConnectorsClient.BeginCreate @@ -139,130 +139,130 @@ type ActiveDirectoryConnectorsClientListOptions struct { // ActiveDirectoryDomainController - Information about a domain controller in the AD domain. type ActiveDirectoryDomainController struct { // REQUIRED; Fully-qualified domain name of a domain controller in the AD domain. - Hostname *string `json:"hostname,omitempty"` + Hostname *string } // ActiveDirectoryDomainControllers - Details about the Active Directory domain controllers associated with this AD connector // instance type ActiveDirectoryDomainControllers struct { // Information about the Primary Domain Controller (PDC) in the AD domain. - PrimaryDomainController *ActiveDirectoryDomainController `json:"primaryDomainController,omitempty"` + PrimaryDomainController *ActiveDirectoryDomainController // null - SecondaryDomainControllers []*ActiveDirectoryDomainController `json:"secondaryDomainControllers,omitempty"` + SecondaryDomainControllers []*ActiveDirectoryDomainController } // ActiveDirectoryInformation - Active Directory information that related to the resource. type ActiveDirectoryInformation struct { // Keytab information that is used for the Sql Managed Instance when Active Directory authentication is used. - KeytabInformation *KeytabInformation `json:"keytabInformation,omitempty"` + KeytabInformation *KeytabInformation } // BasicLoginInformation - Username and password for basic login authentication. type BasicLoginInformation struct { // Login password. - Password *string `json:"password,omitempty"` + Password *string // Login username. - Username *string `json:"username,omitempty"` + Username *string } // CommonSKU - The resource model definition representing SKU for ARM resources type CommonSKU struct { // REQUIRED; The name of the SKU. It is typically a letter+number code - Name *string `json:"name,omitempty"` + Name *string // If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the // resource this may be omitted. - Capacity *int32 `json:"capacity,omitempty"` + Capacity *int32 // Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose. - Dev *bool `json:"dev,omitempty"` + Dev *bool // If the service has different generations of hardware, for the same SKU, then that can be captured here. - Family *string `json:"family,omitempty"` + Family *string // The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. - Size *string `json:"size,omitempty"` + Size *string } // DataControllerProperties - The data controller properties. type DataControllerProperties struct { // Deprecated. Azure Arc Data Services data controller no longer expose any endpoint. All traffic are exposed through Kubernetes // native API. - BasicLoginInformation *BasicLoginInformation `json:"basicLoginInformation,omitempty"` + BasicLoginInformation *BasicLoginInformation // If a CustomLocation is provided, this contains the ARM id of the connected cluster the custom location belongs to. - ClusterID *string `json:"clusterId,omitempty"` + ClusterID *string // If a CustomLocation is provided, this contains the ARM id of the extension the custom location belongs to. - ExtensionID *string `json:"extensionId,omitempty"` + ExtensionID *string // The infrastructure the data controller is running on. - Infrastructure *Infrastructure `json:"infrastructure,omitempty"` + Infrastructure *Infrastructure // The raw kubernetes information - K8SRaw any `json:"k8sRaw,omitempty"` + K8SRaw any // Last uploaded date from Kubernetes cluster. Defaults to current date time - LastUploadedDate *time.Time `json:"lastUploadedDate,omitempty"` + LastUploadedDate *time.Time // Log analytics workspace id and primary key - LogAnalyticsWorkspaceConfig *LogAnalyticsWorkspaceConfig `json:"logAnalyticsWorkspaceConfig,omitempty"` + LogAnalyticsWorkspaceConfig *LogAnalyticsWorkspaceConfig // Login credential for logs dashboard on the Kubernetes cluster. - LogsDashboardCredential *BasicLoginInformation `json:"logsDashboardCredential,omitempty"` + LogsDashboardCredential *BasicLoginInformation // Login credential for metrics dashboard on the Kubernetes cluster. - MetricsDashboardCredential *BasicLoginInformation `json:"metricsDashboardCredential,omitempty"` + MetricsDashboardCredential *BasicLoginInformation // Properties from the Kubernetes data controller - OnPremiseProperty *OnPremiseProperty `json:"onPremiseProperty,omitempty"` + OnPremiseProperty *OnPremiseProperty // Deprecated. Service principal is deprecated in favor of Arc Kubernetes service extension managed identity. - UploadServicePrincipal *UploadServicePrincipal `json:"uploadServicePrincipal,omitempty"` + UploadServicePrincipal *UploadServicePrincipal // Properties on upload watermark. Mostly timestamp for each upload data type - UploadWatermark *UploadWatermark `json:"uploadWatermark,omitempty"` + UploadWatermark *UploadWatermark // READ-ONLY; The provisioning state of the Arc Data Controller resource. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // DataControllerResource - Data controller resource type DataControllerResource struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; The data controller's properties - Properties *DataControllerProperties `json:"properties,omitempty"` + Properties *DataControllerProperties // The extendedLocation of the resource. - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + ExtendedLocation *ExtendedLocation // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // DataControllerUpdate - Used for updating a data controller resource. type DataControllerUpdate struct { // The data controller's properties - Properties *DataControllerProperties `json:"properties,omitempty"` + Properties *DataControllerProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // DataControllersClientBeginDeleteDataControllerOptions contains the optional parameters for the DataControllersClient.BeginDeleteDataController @@ -307,31 +307,31 @@ type DataControllersClientListInSubscriptionOptions struct { // ErrorResponse - An error response from the Azure Data on Azure Arc service. type ErrorResponse struct { // null - Error *ErrorResponseBody `json:"error,omitempty"` + Error *ErrorResponseBody } // ErrorResponseBody - An error response from the Batch service. type ErrorResponseBody struct { // An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - Code *string `json:"code,omitempty"` + Code *string // A list of additional details about the error. - Details []*ErrorResponseBody `json:"details,omitempty"` + Details []*ErrorResponseBody // A message describing the error, intended to be suitable for display in a user interface. - Message *string `json:"message,omitempty"` + Message *string // The target of the particular error. For example, the name of the property in error. - Target *string `json:"target,omitempty"` + Target *string } // ExtendedLocation - The complex type of the extended location. type ExtendedLocation struct { // The name of the extended location. - Name *string `json:"name,omitempty"` + Name *string // The type of the extended location. - Type *ExtendedLocationTypes `json:"type,omitempty"` + Type *ExtendedLocationTypes } // K8SResourceRequirements - The kubernetes resource limits and requests used to restrict or reserve resource usage. @@ -342,12 +342,12 @@ type K8SResourceRequirements struct { // Limits for a kubernetes resource type (e.g 'cpu', 'memory'). The 'cpu' request must be less than or equal to 'cpu' limit. // Default 'cpu' is 2, minimum is 1. Default 'memory' is '4Gi', minimum is '2Gi. // If sku.tier is GeneralPurpose, maximum 'cpu' is 24 and maximum 'memory' is '128Gi'. - Limits map[string]*string `json:"limits,omitempty"` + Limits map[string]*string // Requests for a kubernetes resource type (e.g 'cpu', 'memory'). The 'cpu' request must be less than or equal to 'cpu' limit. // Default 'cpu' is 2, minimum is 1. Default 'memory' is '4Gi', minimum is // '2Gi. If sku.tier is GeneralPurpose, maximum 'cpu' is 24 and maximum 'memory' is '128Gi'. - Requests map[string]*string `json:"requests,omitempty"` + Requests map[string]*string } // K8SScheduling - The kubernetes scheduling information. @@ -357,7 +357,7 @@ type K8SScheduling struct { // The kubernetes scheduling options. It describes restrictions used to help Kubernetes select appropriate nodes to host the // database service - Default *K8SSchedulingOptions `json:"default,omitempty"` + Default *K8SSchedulingOptions } // K8SSchedulingOptions - The kubernetes scheduling options. It describes restrictions used to help Kubernetes select appropriate @@ -367,76 +367,76 @@ type K8SSchedulingOptions struct { AdditionalProperties map[string]any // The kubernetes resource limits and requests used to restrict or reserve resource usage. - Resources *K8SResourceRequirements `json:"resources,omitempty"` + Resources *K8SResourceRequirements } // KeytabInformation - Keytab used for authenticate with Active Directory. type KeytabInformation struct { // A base64-encoded keytab. - Keytab *string `json:"keytab,omitempty"` + Keytab *string } // LogAnalyticsWorkspaceConfig - Log analytics workspace id and primary key type LogAnalyticsWorkspaceConfig struct { // Primary key of the workspace - PrimaryKey *string `json:"primaryKey,omitempty"` + PrimaryKey *string // Azure Log Analytics workspace ID - WorkspaceID *string `json:"workspaceId,omitempty"` + WorkspaceID *string } // OnPremiseProperty - Properties from the Kubernetes data controller type OnPremiseProperty struct { // REQUIRED; A globally unique ID identifying the associated Kubernetes cluster - ID *string `json:"id,omitempty"` + ID *string // REQUIRED; Certificate that contains the Kubernetes cluster public key used to verify signing - PublicSigningKey *string `json:"publicSigningKey,omitempty"` + PublicSigningKey *string // Unique thumbprint returned to customer to verify the certificate being uploaded - SigningCertificateThumbprint *string `json:"signingCertificateThumbprint,omitempty"` + SigningCertificateThumbprint *string } // Operation - Azure Data Services on Azure Arc operation definition. type Operation struct { // REQUIRED; The localized display information for this particular operation / action. - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // REQUIRED; Indicates whether the operation is a data action - IsDataAction *bool `json:"isDataAction,omitempty"` + IsDataAction *bool // REQUIRED; The name of the operation being performed on this particular object. - Name *string `json:"name,omitempty"` + Name *string // READ-ONLY; The intended executor of the operation. - Origin *OperationOrigin `json:"origin,omitempty" azure:"ro"` + Origin *OperationOrigin // READ-ONLY; Additional descriptions for the operation. - Properties map[string]any `json:"properties,omitempty" azure:"ro"` + Properties map[string]any } // OperationDisplay - Display metadata associated with the operation. type OperationDisplay struct { // REQUIRED; The localized friendly description for the operation. - Description *string `json:"description,omitempty"` + Description *string // REQUIRED; The localized friendly name for the operation. - Operation *string `json:"operation,omitempty"` + Operation *string // REQUIRED; The localized friendly form of the resource provider name. - Provider *string `json:"provider,omitempty"` + Provider *string // REQUIRED; The localized friendly form of the resource type related to this action/operation. - Resource *string `json:"resource,omitempty"` + Resource *string } // OperationListResult - Result of the request to list Azure Data Services on Azure Arc operations. type OperationListResult struct { // READ-ONLY; Link to retrieve next page of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; Array of results. - Value []*Operation `json:"value,omitempty" azure:"ro"` + Value []*Operation } // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. @@ -447,101 +447,101 @@ type OperationsClientListOptions struct { // PageOfDataControllerResource - A list of data controllers. type PageOfDataControllerResource struct { // Link to retrieve next page of results. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // Array of results. - Value []*DataControllerResource `json:"value,omitempty"` + Value []*DataControllerResource } // PostgresInstance - A Postgres Instance. type PostgresInstance struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; null - Properties *PostgresInstanceProperties `json:"properties,omitempty"` + Properties *PostgresInstanceProperties // The extendedLocation of the resource. - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + ExtendedLocation *ExtendedLocation // Resource sku. - SKU *PostgresInstanceSKU `json:"sku,omitempty"` + SKU *PostgresInstanceSKU // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PostgresInstanceListResult - A list of PostgresInstance. type PostgresInstanceListResult struct { // READ-ONLY; Link to retrieve next page of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; Array of results. - Value []*PostgresInstance `json:"value,omitempty" azure:"ro"` + Value []*PostgresInstance } // PostgresInstanceProperties - Postgres Instance properties. type PostgresInstanceProperties struct { // The instance admin - Admin *string `json:"admin,omitempty"` + Admin *string // Username and password for basic authentication. - BasicLoginInformation *BasicLoginInformation `json:"basicLoginInformation,omitempty"` + BasicLoginInformation *BasicLoginInformation // The data controller id - DataControllerID *string `json:"dataControllerId,omitempty"` + DataControllerID *string // The raw kubernetes information - K8SRaw any `json:"k8sRaw,omitempty"` + K8SRaw any // Last uploaded date from Kubernetes cluster. Defaults to current date time - LastUploadedDate *time.Time `json:"lastUploadedDate,omitempty"` + LastUploadedDate *time.Time // READ-ONLY; The provisioning state of the Azure Arc-enabled PostgreSQL instance. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // PostgresInstanceSKU - The resource model definition representing SKU for Azure Database for PostgresSQL - Azure Arc type PostgresInstanceSKU struct { // REQUIRED; The name of the SKU. It is typically a letter+number code - Name *string `json:"name,omitempty"` + Name *string // If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the // resource this may be omitted. - Capacity *int32 `json:"capacity,omitempty"` + Capacity *int32 // Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose. - Dev *bool `json:"dev,omitempty"` + Dev *bool // If the service has different generations of hardware, for the same SKU, then that can be captured here. - Family *string `json:"family,omitempty"` + Family *string // The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. - Size *string `json:"size,omitempty"` + Size *string // This field is required to be implemented by the Resource Provider if the service has more than one tier. - Tier *string `json:"tier,omitempty"` + Tier *string } // PostgresInstanceUpdate - An update to a Postgres Instance. type PostgresInstanceUpdate struct { // Postgres Instance properties. - Properties *PostgresInstanceProperties `json:"properties,omitempty"` + Properties *PostgresInstanceProperties // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // PostgresInstancesClientBeginCreateOptions contains the optional parameters for the PostgresInstancesClient.BeginCreate @@ -583,61 +583,61 @@ type PostgresInstancesClientUpdateOptions struct { // location type ProxyResource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // Resource - Common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SQLManagedInstance - A SqlManagedInstance. type SQLManagedInstance struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; null - Properties *SQLManagedInstanceProperties `json:"properties,omitempty"` + Properties *SQLManagedInstanceProperties // The extendedLocation of the resource. - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + ExtendedLocation *ExtendedLocation // Resource sku. - SKU *SQLManagedInstanceSKU `json:"sku,omitempty"` + SKU *SQLManagedInstanceSKU // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SQLManagedInstanceK8SRaw - The raw kubernetes information. @@ -646,7 +646,7 @@ type SQLManagedInstanceK8SRaw struct { AdditionalProperties map[string]any // The kubernetes spec information. - Spec *SQLManagedInstanceK8SSpec `json:"spec,omitempty"` + Spec *SQLManagedInstanceK8SSpec } // SQLManagedInstanceK8SSpec - The kubernetes spec information. @@ -657,86 +657,86 @@ type SQLManagedInstanceK8SSpec struct { // This option specifies the number of SQL Managed Instance replicas that will be deployed in your Kubernetes cluster for // high availability purposes. If sku.tier is BusinessCritical, allowed values are // '2' or '3' with default of '3'. If sku.tier is GeneralPurpose, replicas must be '1'. - Replicas *int32 `json:"replicas,omitempty"` + Replicas *int32 // The kubernetes scheduling information. - Scheduling *K8SScheduling `json:"scheduling,omitempty"` + Scheduling *K8SScheduling } // SQLManagedInstanceListResult - A list of SqlManagedInstance. type SQLManagedInstanceListResult struct { // READ-ONLY; Link to retrieve next page of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; Array of results. - Value []*SQLManagedInstance `json:"value,omitempty" azure:"ro"` + Value []*SQLManagedInstance } // SQLManagedInstanceProperties - Properties of sqlManagedInstance. type SQLManagedInstanceProperties struct { // Active Directory information related to this SQL Managed Instance. - ActiveDirectoryInformation *ActiveDirectoryInformation `json:"activeDirectoryInformation,omitempty"` + ActiveDirectoryInformation *ActiveDirectoryInformation // The instance admin user - Admin *string `json:"admin,omitempty"` + Admin *string // Username and password for basic authentication. - BasicLoginInformation *BasicLoginInformation `json:"basicLoginInformation,omitempty"` + BasicLoginInformation *BasicLoginInformation // If a CustomLocation is provided, this contains the ARM id of the connected cluster the custom location belongs to. - ClusterID *string `json:"clusterId,omitempty"` + ClusterID *string // null - DataControllerID *string `json:"dataControllerId,omitempty"` + DataControllerID *string // The instance end time - EndTime *string `json:"endTime,omitempty"` + EndTime *string // If a CustomLocation is provided, this contains the ARM id of the extension the custom location belongs to. - ExtensionID *string `json:"extensionId,omitempty"` + ExtensionID *string // The raw kubernetes information - K8SRaw *SQLManagedInstanceK8SRaw `json:"k8sRaw,omitempty"` + K8SRaw *SQLManagedInstanceK8SRaw // Last uploaded date from Kubernetes cluster. Defaults to current date time - LastUploadedDate *time.Time `json:"lastUploadedDate,omitempty"` + LastUploadedDate *time.Time // The license type to apply for this managed instance. - LicenseType *ArcSQLManagedInstanceLicenseType `json:"licenseType,omitempty"` + LicenseType *ArcSQLManagedInstanceLicenseType // The instance start time - StartTime *string `json:"startTime,omitempty"` + StartTime *string // READ-ONLY; The provisioning state of the Arc-enabled SQL Managed Instance resource. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // SQLManagedInstanceSKU - The resource model definition representing SKU for Azure Managed Instance - Azure Arc type SQLManagedInstanceSKU struct { // CONSTANT; The name of the SKU. // Field has constant value "vCore", any specified value is ignored. - Name *string `json:"name,omitempty"` + Name *string // The SKU capacity - Capacity *int32 `json:"capacity,omitempty"` + Capacity *int32 // Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose. - Dev *bool `json:"dev,omitempty"` + Dev *bool // The SKU family - Family *string `json:"family,omitempty"` + Family *string // The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. - Size *string `json:"size,omitempty"` + Size *string // The pricing tier for the instance. - Tier *SQLManagedInstanceSKUTier `json:"tier,omitempty"` + Tier *SQLManagedInstanceSKUTier } // SQLManagedInstanceUpdate - An update to a SQL Managed Instance. type SQLManagedInstanceUpdate struct { // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // SQLManagedInstancesClientBeginCreateOptions contains the optional parameters for the SQLManagedInstancesClient.BeginCreate @@ -777,97 +777,97 @@ type SQLManagedInstancesClientUpdateOptions struct { // SQLServerInstance - A SqlServerInstance. type SQLServerInstance struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // null - Properties *SQLServerInstanceProperties `json:"properties,omitempty"` + Properties *SQLServerInstanceProperties // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SQLServerInstanceListResult - A list of SqlServerInstance. type SQLServerInstanceListResult struct { // READ-ONLY; Link to retrieve next page of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; Array of results. - Value []*SQLServerInstance `json:"value,omitempty" azure:"ro"` + Value []*SQLServerInstance } // SQLServerInstanceProperties - Properties of SqlServerInstance. type SQLServerInstanceProperties struct { // REQUIRED; ARM Resource id of the container resource (Azure Arc for Servers). - ContainerResourceID *string `json:"containerResourceId,omitempty"` + ContainerResourceID *string // REQUIRED; The cloud connectivity status. - Status *ConnectionStatus `json:"status,omitempty"` + Status *ConnectionStatus // Status of Azure Defender. - AzureDefenderStatus *DefenderStatus `json:"azureDefenderStatus,omitempty"` + AzureDefenderStatus *DefenderStatus // Timestamp of last Azure Defender status update. - AzureDefenderStatusLastUpdated *time.Time `json:"azureDefenderStatusLastUpdated,omitempty"` + AzureDefenderStatusLastUpdated *time.Time // SQL Server collation. - Collation *string `json:"collation,omitempty"` + Collation *string // SQL Server current version. - CurrentVersion *string `json:"currentVersion,omitempty"` + CurrentVersion *string // SQL Server edition. - Edition *EditionType `json:"edition,omitempty"` + Edition *EditionType // Type of host for Azure Arc SQL Server - HostType *HostType `json:"hostType,omitempty"` + HostType *HostType // SQL Server instance name. - InstanceName *string `json:"instanceName,omitempty"` + InstanceName *string // SQL Server license type. - LicenseType *ArcSQLServerLicenseType `json:"licenseType,omitempty"` + LicenseType *ArcSQLServerLicenseType // SQL Server update level. - PatchLevel *string `json:"patchLevel,omitempty"` + PatchLevel *string // SQL Server product ID. - ProductID *string `json:"productId,omitempty"` + ProductID *string // Dynamic TCP ports used by SQL Server. - TCPDynamicPorts *string `json:"tcpDynamicPorts,omitempty"` + TCPDynamicPorts *string // Static TCP ports used by SQL Server. - TCPStaticPorts *string `json:"tcpStaticPorts,omitempty"` + TCPStaticPorts *string // The number of logical processors used by the SQL Server instance. - VCore *string `json:"vCore,omitempty"` + VCore *string // SQL Server version. - Version *SQLVersion `json:"version,omitempty"` + Version *SQLVersion // READ-ONLY; The time when the resource was created. - CreateTime *string `json:"createTime,omitempty" azure:"ro"` + CreateTime *string // READ-ONLY; The provisioning state of the Arc-enabled SQL Server resource. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // SQLServerInstanceUpdate - An update to a SQL Server Instance. type SQLServerInstanceUpdate struct { // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // SQLServerInstancesClientBeginCreateOptions contains the optional parameters for the SQLServerInstancesClient.BeginCreate @@ -908,69 +908,69 @@ type SQLServerInstancesClientUpdateOptions struct { // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { // The timestamp of resource creation (UTC). - CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAt *time.Time // The identity that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` + CreatedBy *string // The type of identity that created the resource. - CreatedByType *CreatedByType `json:"createdByType,omitempty"` + CreatedByType *CreatedByType // The timestamp of resource last modification (UTC) - LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` + LastModifiedAt *time.Time // The identity that last modified the resource. - LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + LastModifiedBy *string // The type of identity that last modified the resource. - LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` + LastModifiedByType *CreatedByType } // TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' // and a 'location' type TrackedResource struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // UploadServicePrincipal - Service principal for uploading billing, metrics and logs. type UploadServicePrincipal struct { // Authority for the service principal. Example: https://login.microsoftonline.com/ - Authority *string `json:"authority,omitempty"` + Authority *string // Client ID of the service principal for uploading data. - ClientID *string `json:"clientId,omitempty"` + ClientID *string // Secret of the service principal - ClientSecret *string `json:"clientSecret,omitempty"` + ClientSecret *string // Tenant ID of the service principal. - TenantID *string `json:"tenantId,omitempty"` + TenantID *string } // UploadWatermark - Properties on upload watermark. Mostly timestamp for each upload data type type UploadWatermark struct { // Last uploaded date for logs from kubernetes cluster. Defaults to current date time - Logs *time.Time `json:"logs,omitempty"` + Logs *time.Time // Last uploaded date for metrics from kubernetes cluster. Defaults to current date time - Metrics *time.Time `json:"metrics,omitempty"` + Metrics *time.Time // Last uploaded date for usages from kubernetes cluster. Defaults to current date time - Usages *time.Time `json:"usages,omitempty"` + Usages *time.Time } diff --git a/sdk/resourcemanager/azurearcdata/armazurearcdata/models_serde.go b/sdk/resourcemanager/azurearcdata/armazurearcdata/models_serde.go index b101230fc14e..cef3cade467e 100644 --- a/sdk/resourcemanager/azurearcdata/armazurearcdata/models_serde.go +++ b/sdk/resourcemanager/azurearcdata/armazurearcdata/models_serde.go @@ -458,7 +458,7 @@ func (d DataControllerProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "clusterId", d.ClusterID) populate(objectMap, "extensionId", d.ExtensionID) populate(objectMap, "infrastructure", d.Infrastructure) - populate(objectMap, "k8sRaw", &d.K8SRaw) + populateAny(objectMap, "k8sRaw", d.K8SRaw) populateTimeRFC3339(objectMap, "lastUploadedDate", d.LastUploadedDate) populate(objectMap, "logAnalyticsWorkspaceConfig", d.LogAnalyticsWorkspaceConfig) populate(objectMap, "logsDashboardCredential", d.LogsDashboardCredential) @@ -1172,7 +1172,7 @@ func (p PostgresInstanceProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "admin", p.Admin) populate(objectMap, "basicLoginInformation", p.BasicLoginInformation) populate(objectMap, "dataControllerId", p.DataControllerID) - populate(objectMap, "k8sRaw", &p.K8SRaw) + populateAny(objectMap, "k8sRaw", p.K8SRaw) populateTimeRFC3339(objectMap, "lastUploadedDate", p.LastUploadedDate) populate(objectMap, "provisioningState", p.ProvisioningState) return json.Marshal(objectMap) @@ -2074,6 +2074,16 @@ func populate(m map[string]any, k string, v any) { } } +func populateAny(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else { + m[k] = v + } +} + func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil diff --git a/sdk/resourcemanager/azurestackhci/armazurestackhci/CHANGELOG.md b/sdk/resourcemanager/azurestackhci/armazurestackhci/CHANGELOG.md index e445783dadcc..c40d6c19337c 100644 --- a/sdk/resourcemanager/azurestackhci/armazurestackhci/CHANGELOG.md +++ b/sdk/resourcemanager/azurestackhci/armazurestackhci/CHANGELOG.md @@ -1,5 +1,10 @@ # Release History +## 1.1.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + ## 1.1.0 (2023-03-27) ### Features Added diff --git a/sdk/resourcemanager/azurestackhci/armazurestackhci/autorest.md b/sdk/resourcemanager/azurestackhci/armazurestackhci/autorest.md index cb070472bc61..e36159615fc2 100644 --- a/sdk/resourcemanager/azurestackhci/armazurestackhci/autorest.md +++ b/sdk/resourcemanager/azurestackhci/armazurestackhci/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/azurestackhci/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/azurestackhci/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.1.0 +module-version: 1.1.1 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/azurestackhci/armazurestackhci/constants.go b/sdk/resourcemanager/azurestackhci/armazurestackhci/constants.go index 4d5f513e7516..727647d04066 100644 --- a/sdk/resourcemanager/azurestackhci/armazurestackhci/constants.go +++ b/sdk/resourcemanager/azurestackhci/armazurestackhci/constants.go @@ -11,7 +11,7 @@ package armazurestackhci const ( moduleName = "armazurestackhci" - moduleVersion = "v1.1.0" + moduleVersion = "v1.1.1" ) // ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. diff --git a/sdk/resourcemanager/azurestackhci/armazurestackhci/models.go b/sdk/resourcemanager/azurestackhci/armazurestackhci/models.go index c8607365b514..722e8d71fe48 100644 --- a/sdk/resourcemanager/azurestackhci/armazurestackhci/models.go +++ b/sdk/resourcemanager/azurestackhci/armazurestackhci/models.go @@ -14,77 +14,77 @@ import "time" // ArcConnectivityProperties - Connectivity related configuration required by arc server. type ArcConnectivityProperties struct { // True indicates ARC connectivity is enabled - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool } // ArcIdentityResponse - ArcIdentity details. type ArcIdentityResponse struct { // READ-ONLY; ArcIdentity properties. - Properties *ArcIdentityResponseProperties `json:"properties,omitempty" azure:"ro"` + Properties *ArcIdentityResponseProperties } type ArcIdentityResponseProperties struct { - ArcApplicationClientID *string `json:"arcApplicationClientId,omitempty"` - ArcApplicationObjectID *string `json:"arcApplicationObjectId,omitempty"` - ArcApplicationTenantID *string `json:"arcApplicationTenantId,omitempty"` - ArcServicePrincipalObjectID *string `json:"arcServicePrincipalObjectId,omitempty"` + ArcApplicationClientID *string + ArcApplicationObjectID *string + ArcApplicationTenantID *string + ArcServicePrincipalObjectID *string } // ArcSetting details. type ArcSetting struct { // ArcSetting properties. - Properties *ArcSettingProperties `json:"properties,omitempty"` + Properties *ArcSettingProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; System data of ArcSetting resource - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ArcSettingList - List of ArcSetting proxy resources for the HCI cluster. type ArcSettingList struct { // READ-ONLY; Link to the next set of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of ArcSetting proxy resources. - Value []*ArcSetting `json:"value,omitempty" azure:"ro"` + Value []*ArcSetting } // ArcSettingProperties - ArcSetting properties. type ArcSettingProperties struct { // App id of arc AAD identity. - ArcApplicationClientID *string `json:"arcApplicationClientId,omitempty"` + ArcApplicationClientID *string // Object id of arc AAD identity. - ArcApplicationObjectID *string `json:"arcApplicationObjectId,omitempty"` + ArcApplicationObjectID *string // Tenant id of arc AAD identity. - ArcApplicationTenantID *string `json:"arcApplicationTenantId,omitempty"` + ArcApplicationTenantID *string // The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources. - ArcInstanceResourceGroup *string `json:"arcInstanceResourceGroup,omitempty"` + ArcInstanceResourceGroup *string // Object id of arc AAD service principal. - ArcServicePrincipalObjectID *string `json:"arcServicePrincipalObjectId,omitempty"` + ArcServicePrincipalObjectID *string // contains connectivity related configuration for ARC resources - ConnectivityProperties any `json:"connectivityProperties,omitempty"` + ConnectivityProperties any // READ-ONLY; Aggregate state of Arc agent across the nodes in this HCI cluster. - AggregateState *ArcSettingAggregateState `json:"aggregateState,omitempty" azure:"ro"` + AggregateState *ArcSettingAggregateState // READ-ONLY; State of Arc agent in each of the nodes. - PerNodeDetails []*PerNodeState `json:"perNodeDetails,omitempty" azure:"ro"` + PerNodeDetails []*PerNodeState // READ-ONLY; Provisioning state of the ArcSetting proxy resource. - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ProvisioningState } // ArcSettingsClientBeginCreateIdentityOptions contains the optional parameters for the ArcSettingsClient.BeginCreateIdentity @@ -129,203 +129,203 @@ type ArcSettingsClientUpdateOptions struct { // ArcSettingsPatch - ArcSetting details to update. type ArcSettingsPatch struct { // ArcSettings properties. - Properties *ArcSettingsPatchProperties `json:"properties,omitempty"` + Properties *ArcSettingsPatchProperties // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // ArcSettingsPatchProperties - ArcSettings properties. type ArcSettingsPatchProperties struct { // contains connectivity related configuration for ARC resources - ConnectivityProperties any `json:"connectivityProperties,omitempty"` + ConnectivityProperties any } // Cluster details. type Cluster struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // Cluster properties. - Properties *ClusterProperties `json:"properties,omitempty"` + Properties *ClusterProperties // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; System data of Cluster resource - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ClusterDesiredProperties - Desired properties of the cluster. type ClusterDesiredProperties struct { // Desired level of diagnostic data emitted by the cluster. - DiagnosticLevel *DiagnosticLevel `json:"diagnosticLevel,omitempty"` + DiagnosticLevel *DiagnosticLevel // Desired state of Windows Server Subscription. - WindowsServerSubscription *WindowsServerSubscription `json:"windowsServerSubscription,omitempty"` + WindowsServerSubscription *WindowsServerSubscription } // ClusterIdentityResponse - Cluster Identity details. type ClusterIdentityResponse struct { // READ-ONLY; Cluster identity properties. - Properties *ClusterIdentityResponseProperties `json:"properties,omitempty" azure:"ro"` + Properties *ClusterIdentityResponseProperties } type ClusterIdentityResponseProperties struct { - AADApplicationObjectID *string `json:"aadApplicationObjectId,omitempty"` - AADClientID *string `json:"aadClientId,omitempty"` - AADServicePrincipalObjectID *string `json:"aadServicePrincipalObjectId,omitempty"` - AADTenantID *string `json:"aadTenantId,omitempty"` + AADApplicationObjectID *string + AADClientID *string + AADServicePrincipalObjectID *string + AADTenantID *string } // ClusterList - List of clusters. type ClusterList struct { // List of clusters. - Value []*Cluster `json:"value,omitempty"` + Value []*Cluster // READ-ONLY; Link to the next set of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // ClusterNode - Cluster node details. type ClusterNode struct { // READ-ONLY; Number of physical cores on the cluster node. - CoreCount *float32 `json:"coreCount,omitempty" azure:"ro"` + CoreCount *float32 // READ-ONLY; Id of the node in the cluster. - ID *float32 `json:"id,omitempty" azure:"ro"` + ID *float32 // READ-ONLY; Manufacturer of the cluster node hardware. - Manufacturer *string `json:"manufacturer,omitempty" azure:"ro"` + Manufacturer *string // READ-ONLY; Total available memory on the cluster node (in GiB). - MemoryInGiB *float32 `json:"memoryInGiB,omitempty" azure:"ro"` + MemoryInGiB *float32 // READ-ONLY; Model name of the cluster node hardware. - Model *string `json:"model,omitempty" azure:"ro"` + Model *string // READ-ONLY; Name of the cluster node. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Operating system running on the cluster node. - OSName *string `json:"osName,omitempty" azure:"ro"` + OSName *string // READ-ONLY; Version of the operating system running on the cluster node. - OSVersion *string `json:"osVersion,omitempty" azure:"ro"` + OSVersion *string // READ-ONLY; Immutable id of the cluster node. - SerialNumber *string `json:"serialNumber,omitempty" azure:"ro"` + SerialNumber *string // READ-ONLY; State of Windows Server Subscription. - WindowsServerSubscription *WindowsServerSubscription `json:"windowsServerSubscription,omitempty" azure:"ro"` + WindowsServerSubscription *WindowsServerSubscription } // ClusterPatch - Cluster details to update. type ClusterPatch struct { // Cluster properties. - Properties *ClusterPatchProperties `json:"properties,omitempty"` + Properties *ClusterPatchProperties // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // ClusterPatchProperties - Cluster properties. type ClusterPatchProperties struct { // App id of cluster AAD identity. - AADClientID *string `json:"aadClientId,omitempty"` + AADClientID *string // Tenant id of cluster AAD identity. - AADTenantID *string `json:"aadTenantId,omitempty"` + AADTenantID *string // Endpoint configured for management from the Azure portal - CloudManagementEndpoint *string `json:"cloudManagementEndpoint,omitempty"` + CloudManagementEndpoint *string // Desired properties of the cluster. - DesiredProperties *ClusterDesiredProperties `json:"desiredProperties,omitempty"` + DesiredProperties *ClusterDesiredProperties } // ClusterProperties - Cluster properties. type ClusterProperties struct { // Object id of cluster AAD identity. - AADApplicationObjectID *string `json:"aadApplicationObjectId,omitempty"` + AADApplicationObjectID *string // App id of cluster AAD identity. - AADClientID *string `json:"aadClientId,omitempty"` + AADClientID *string // Id of cluster identity service principal. - AADServicePrincipalObjectID *string `json:"aadServicePrincipalObjectId,omitempty"` + AADServicePrincipalObjectID *string // Tenant id of cluster AAD identity. - AADTenantID *string `json:"aadTenantId,omitempty"` + AADTenantID *string // Endpoint configured for management from the Azure portal. - CloudManagementEndpoint *string `json:"cloudManagementEndpoint,omitempty"` + CloudManagementEndpoint *string // Desired properties of the cluster. - DesiredProperties *ClusterDesiredProperties `json:"desiredProperties,omitempty"` + DesiredProperties *ClusterDesiredProperties // READ-ONLY; Type of billing applied to the resource. - BillingModel *string `json:"billingModel,omitempty" azure:"ro"` + BillingModel *string // READ-ONLY; Unique, immutable resource id. - CloudID *string `json:"cloudId,omitempty" azure:"ro"` + CloudID *string // READ-ONLY; Most recent billing meter timestamp. - LastBillingTimestamp *time.Time `json:"lastBillingTimestamp,omitempty" azure:"ro"` + LastBillingTimestamp *time.Time // READ-ONLY; Most recent cluster sync timestamp. - LastSyncTimestamp *time.Time `json:"lastSyncTimestamp,omitempty" azure:"ro"` + LastSyncTimestamp *time.Time // READ-ONLY; Provisioning state. - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ProvisioningState // READ-ONLY; First cluster sync timestamp. - RegistrationTimestamp *time.Time `json:"registrationTimestamp,omitempty" azure:"ro"` + RegistrationTimestamp *time.Time // READ-ONLY; Properties reported by cluster agent. - ReportedProperties *ClusterReportedProperties `json:"reportedProperties,omitempty" azure:"ro"` + ReportedProperties *ClusterReportedProperties // READ-ONLY; Region specific DataPath Endpoint of the cluster. - ServiceEndpoint *string `json:"serviceEndpoint,omitempty" azure:"ro"` + ServiceEndpoint *string // READ-ONLY; Status of the cluster agent. - Status *Status `json:"status,omitempty" azure:"ro"` + Status *Status // READ-ONLY; Number of days remaining in the trial period. - TrialDaysRemaining *float32 `json:"trialDaysRemaining,omitempty" azure:"ro"` + TrialDaysRemaining *float32 } // ClusterReportedProperties - Properties reported by cluster agent. type ClusterReportedProperties struct { // Level of diagnostic data emitted by the cluster. - DiagnosticLevel *DiagnosticLevel `json:"diagnosticLevel,omitempty"` + DiagnosticLevel *DiagnosticLevel // READ-ONLY; Unique id generated by the on-prem cluster. - ClusterID *string `json:"clusterId,omitempty" azure:"ro"` + ClusterID *string // READ-ONLY; Name of the on-prem cluster connected to this resource. - ClusterName *string `json:"clusterName,omitempty" azure:"ro"` + ClusterName *string // READ-ONLY; Version of the cluster software. - ClusterVersion *string `json:"clusterVersion,omitempty" azure:"ro"` + ClusterVersion *string // READ-ONLY; IMDS attestation status of the cluster. - ImdsAttestation *ImdsAttestation `json:"imdsAttestation,omitempty" azure:"ro"` + ImdsAttestation *ImdsAttestation // READ-ONLY; Last time the cluster reported the data. - LastUpdated *time.Time `json:"lastUpdated,omitempty" azure:"ro"` + LastUpdated *time.Time // READ-ONLY; List of nodes reported by the cluster. - Nodes []*ClusterNode `json:"nodes,omitempty" azure:"ro"` + Nodes []*ClusterNode } // ClustersClientBeginCreateIdentityOptions contains the optional parameters for the ClustersClient.BeginCreateIdentity method. @@ -377,62 +377,62 @@ type ClustersClientUpdateOptions struct { // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. - Info any `json:"info,omitempty" azure:"ro"` + Info any // READ-ONLY; The additional info type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ErrorDetail - The error detail. type ErrorDetail struct { // READ-ONLY; The error additional info. - AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` + AdditionalInfo []*ErrorAdditionalInfo // READ-ONLY; The error code. - Code *string `json:"code,omitempty" azure:"ro"` + Code *string // READ-ONLY; The error details. - Details []*ErrorDetail `json:"details,omitempty" azure:"ro"` + Details []*ErrorDetail // READ-ONLY; The error message. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string // READ-ONLY; The error target. - Target *string `json:"target,omitempty" azure:"ro"` + Target *string } // ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. // (This also follows the OData error response format.). type ErrorResponse struct { // The error object. - Error *ErrorDetail `json:"error,omitempty"` + Error *ErrorDetail } // Extension - Details of a particular extension in HCI Cluster. type Extension struct { // Describes Machine Extension Properties. - Properties *ExtensionProperties `json:"properties,omitempty"` + Properties *ExtensionProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; System data of Extension resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ExtensionList - List of Extensions in HCI cluster. type ExtensionList struct { // READ-ONLY; Link to the next set of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of Extensions in HCI cluster. - Value []*Extension `json:"value,omitempty" azure:"ro"` + Value []*Extension } // ExtensionParameters - Describes the properties of a Machine Extension. This object mirrors the definition in HybridCompute. @@ -440,40 +440,40 @@ type ExtensionParameters struct { // Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, // however, the extension will not upgrade minor versions unless redeployed, even // with this property set to true. - AutoUpgradeMinorVersion *bool `json:"autoUpgradeMinorVersion,omitempty"` + AutoUpgradeMinorVersion *bool // How the extension handler should be forced to update even if the extension configuration has not changed. - ForceUpdateTag *string `json:"forceUpdateTag,omitempty"` + ForceUpdateTag *string // Protected settings (may contain secrets). - ProtectedSettings any `json:"protectedSettings,omitempty"` + ProtectedSettings any // The name of the extension handler publisher. - Publisher *string `json:"publisher,omitempty"` + Publisher *string // Json formatted public settings for the extension. - Settings any `json:"settings,omitempty"` + Settings any // Specifies the type of the extension; an example is "CustomScriptExtension". - Type *string `json:"type,omitempty"` + Type *string // Specifies the version of the script handler. - TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"` + TypeHandlerVersion *string } // ExtensionProperties - Status of Arc Extension for a particular node in HCI Cluster. type ExtensionProperties struct { // Parameters specific to this extension type. - ExtensionParameters *ExtensionParameters `json:"extensionParameters,omitempty"` + ExtensionParameters *ExtensionParameters // READ-ONLY; Aggregate state of Arc Extensions across the nodes in this HCI cluster. - AggregateState *ExtensionAggregateState `json:"aggregateState,omitempty" azure:"ro"` + AggregateState *ExtensionAggregateState // READ-ONLY; State of Arc Extension in each of the nodes. - PerNodeExtensionDetails []*PerNodeExtensionState `json:"perNodeExtensionDetails,omitempty" azure:"ro"` + PerNodeExtensionDetails []*PerNodeExtensionState // READ-ONLY; Provisioning state of the Extension proxy resource. - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ProvisioningState } // ExtensionsClientBeginCreateOptions contains the optional parameters for the ExtensionsClient.BeginCreate method. @@ -508,50 +508,50 @@ type ExtensionsClientListByArcSettingOptions struct { // Operation - Details of a REST API operation, returned from the Resource Provider Operations API type Operation struct { // Localized display information for this particular operation. - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - ActionType *ActionType `json:"actionType,omitempty" azure:"ro"` + ActionType *ActionType // READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane // operations. - IsDataAction *bool `json:"isDataAction,omitempty" azure:"ro"` + IsDataAction *bool // READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", // "Microsoft.Compute/virtualMachines/capture/action" - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default // value is "user,system" - Origin *Origin `json:"origin,omitempty" azure:"ro"` + Origin *Origin } // OperationDisplay - Localized display information for this particular operation. type OperationDisplay struct { // READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual // Machine", "Restart Virtual Machine". - Operation *string `json:"operation,omitempty" azure:"ro"` + Operation *string // READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft // Compute". - Provider *string `json:"provider,omitempty" azure:"ro"` + Provider *string // READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job // Schedule Collections". - Resource *string `json:"resource,omitempty" azure:"ro"` + Resource *string } // OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to // get the next set of results. type OperationListResult struct { // READ-ONLY; URL to get the next set of operation list results (if there are any). - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of operations supported by the resource provider - Value []*Operation `json:"value,omitempty" azure:"ro"` + Value []*Operation } // OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. @@ -560,105 +560,105 @@ type OperationsClientListOptions struct { } type PasswordCredential struct { - EndDateTime *time.Time `json:"endDateTime,omitempty"` - KeyID *string `json:"keyId,omitempty"` - SecretText *string `json:"secretText,omitempty"` - StartDateTime *time.Time `json:"startDateTime,omitempty"` + EndDateTime *time.Time + KeyID *string + SecretText *string + StartDateTime *time.Time } // PerNodeExtensionState - Status of Arc Extension for a particular node in HCI Cluster. type PerNodeExtensionState struct { // READ-ONLY; Fully qualified resource ID for the particular Arc Extension on this node. - Extension *string `json:"extension,omitempty" azure:"ro"` + Extension *string // READ-ONLY; Name of the node in HCI Cluster. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; State of Arc Extension in this node. - State *NodeExtensionState `json:"state,omitempty" azure:"ro"` + State *NodeExtensionState } // PerNodeState - Status of Arc agent for a particular node in HCI Cluster. type PerNodeState struct { // READ-ONLY; Fully qualified resource ID for the Arc agent of this node. - ArcInstance *string `json:"arcInstance,omitempty" azure:"ro"` + ArcInstance *string // READ-ONLY; Name of the Node in HCI Cluster - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; State of Arc agent in this node. - State *NodeArcState `json:"state,omitempty" azure:"ro"` + State *NodeArcState } // ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a // location type ProxyResource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } type RawCertificateData struct { - Certificates []*string `json:"certificates,omitempty"` + Certificates []*string } // Resource - Common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { // The timestamp of resource creation (UTC). - CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAt *time.Time // The identity that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` + CreatedBy *string // The type of identity that created the resource. - CreatedByType *CreatedByType `json:"createdByType,omitempty"` + CreatedByType *CreatedByType // The timestamp of resource last modification (UTC) - LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` + LastModifiedAt *time.Time // The identity that last modified the resource. - LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + LastModifiedBy *string // The type of identity that last modified the resource. - LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` + LastModifiedByType *CreatedByType } // TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' // and a 'location' type TrackedResource struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } type UploadCertificateRequest struct { - Properties *RawCertificateData `json:"properties,omitempty"` + Properties *RawCertificateData } diff --git a/sdk/resourcemanager/azurestackhci/armazurestackhci/models_serde.go b/sdk/resourcemanager/azurestackhci/armazurestackhci/models_serde.go index f5c2bffe1c64..9ec0dc773d5d 100644 --- a/sdk/resourcemanager/azurestackhci/armazurestackhci/models_serde.go +++ b/sdk/resourcemanager/azurestackhci/armazurestackhci/models_serde.go @@ -192,7 +192,7 @@ func (a ArcSettingProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "arcApplicationTenantId", a.ArcApplicationTenantID) populate(objectMap, "arcInstanceResourceGroup", a.ArcInstanceResourceGroup) populate(objectMap, "arcServicePrincipalObjectId", a.ArcServicePrincipalObjectID) - populate(objectMap, "connectivityProperties", &a.ConnectivityProperties) + populateAny(objectMap, "connectivityProperties", a.ConnectivityProperties) populate(objectMap, "perNodeDetails", a.PerNodeDetails) populate(objectMap, "provisioningState", a.ProvisioningState) return json.Marshal(objectMap) @@ -276,7 +276,7 @@ func (a *ArcSettingsPatch) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ArcSettingsPatchProperties. func (a ArcSettingsPatchProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "connectivityProperties", &a.ConnectivityProperties) + populateAny(objectMap, "connectivityProperties", a.ConnectivityProperties) return json.Marshal(objectMap) } @@ -753,7 +753,7 @@ func (c *ClusterReportedProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo. func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "info", &e.Info) + populateAny(objectMap, "info", e.Info) populate(objectMap, "type", e.Type) return json.Marshal(objectMap) } @@ -930,9 +930,9 @@ func (e ExtensionParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "autoUpgradeMinorVersion", e.AutoUpgradeMinorVersion) populate(objectMap, "forceUpdateTag", e.ForceUpdateTag) - populate(objectMap, "protectedSettings", &e.ProtectedSettings) + populateAny(objectMap, "protectedSettings", e.ProtectedSettings) populate(objectMap, "publisher", e.Publisher) - populate(objectMap, "settings", &e.Settings) + populateAny(objectMap, "settings", e.Settings) populate(objectMap, "type", e.Type) populate(objectMap, "typeHandlerVersion", e.TypeHandlerVersion) return json.Marshal(objectMap) @@ -1461,6 +1461,16 @@ func populate(m map[string]any, k string, v any) { } } +func populateAny(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else { + m[k] = v + } +} + func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil diff --git a/sdk/resourcemanager/batch/armbatch/CHANGELOG.md b/sdk/resourcemanager/batch/armbatch/CHANGELOG.md index fe6e37e712b1..54a1ab82aec9 100644 --- a/sdk/resourcemanager/batch/armbatch/CHANGELOG.md +++ b/sdk/resourcemanager/batch/armbatch/CHANGELOG.md @@ -1,5 +1,10 @@ # Release History +## 1.2.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + ## 1.2.0 (2023-03-27) ### Features Added diff --git a/sdk/resourcemanager/batch/armbatch/autorest.md b/sdk/resourcemanager/batch/armbatch/autorest.md index ecdada25facf..2c508d269c95 100644 --- a/sdk/resourcemanager/batch/armbatch/autorest.md +++ b/sdk/resourcemanager/batch/armbatch/autorest.md @@ -8,5 +8,5 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/ef6f2f06858cdbec7684968e1a54c7610da97dbb/specification/batch/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.2.0 +module-version: 1.2.1 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/batch/armbatch/constants.go b/sdk/resourcemanager/batch/armbatch/constants.go index 37916aa2a664..a0625d6fffc1 100644 --- a/sdk/resourcemanager/batch/armbatch/constants.go +++ b/sdk/resourcemanager/batch/armbatch/constants.go @@ -11,7 +11,7 @@ package armbatch const ( moduleName = "armbatch" - moduleVersion = "v1.2.0" + moduleVersion = "v1.2.1" ) // AccountKeyType - The type of account key to regenerate. diff --git a/sdk/resourcemanager/batch/armbatch/models.go b/sdk/resourcemanager/batch/armbatch/models.go index e53da083dd01..4f989fde4cf4 100644 --- a/sdk/resourcemanager/batch/armbatch/models.go +++ b/sdk/resourcemanager/batch/armbatch/models.go @@ -14,25 +14,25 @@ import "time" // Account - Contains information about an Azure Batch account. type Account struct { // The identity of the Batch account. - Identity *AccountIdentity `json:"identity,omitempty"` + Identity *AccountIdentity // The properties associated with the account. - Properties *AccountProperties `json:"properties,omitempty"` + Properties *AccountProperties // READ-ONLY; The ID of the resource. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The location of the resource. - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; The name of the resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The tags of the resource. - Tags map[string]*string `json:"tags,omitempty" azure:"ro"` + Tags map[string]*string // READ-ONLY; The type of the resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // AccountClientBeginCreateOptions contains the optional parameters for the AccountClient.BeginCreate method. @@ -103,45 +103,45 @@ type AccountClientUpdateOptions struct { // AccountCreateParameters - Parameters supplied to the Create operation. type AccountCreateParameters struct { // REQUIRED; The region in which to create the account. - Location *string `json:"location,omitempty"` + Location *string // The identity of the Batch account. - Identity *AccountIdentity `json:"identity,omitempty"` + Identity *AccountIdentity // The properties of the Batch account. - Properties *AccountCreateProperties `json:"properties,omitempty"` + Properties *AccountCreateProperties // The user-specified tags associated with the account. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // AccountCreateProperties - The properties of a Batch account. type AccountCreateProperties struct { // List of allowed authentication modes for the Batch account that can be used to authenticate with the data plane. This does // not affect authentication with the control plane. - AllowedAuthenticationModes []*AuthenticationMode `json:"allowedAuthenticationModes,omitempty"` + AllowedAuthenticationModes []*AuthenticationMode // The properties related to the auto-storage account. - AutoStorage *AutoStorageBaseProperties `json:"autoStorage,omitempty"` + AutoStorage *AutoStorageBaseProperties // Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft // managed key. For additional control, a customer-managed key can be used // instead. - Encryption *EncryptionProperties `json:"encryption,omitempty"` + Encryption *EncryptionProperties // A reference to the Azure key vault associated with the Batch account. - KeyVaultReference *KeyVaultReference `json:"keyVaultReference,omitempty"` + KeyVaultReference *KeyVaultReference // The network profile only takes effect when publicNetworkAccess is enabled. - NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"` + NetworkProfile *NetworkProfile // The pool allocation mode also affects how clients may authenticate to the Batch Service API. If the mode is BatchService, // clients may authenticate using access keys or Azure Active Directory. If the // mode is UserSubscription, clients must use Azure Active Directory. The default is BatchService. - PoolAllocationMode *PoolAllocationMode `json:"poolAllocationMode,omitempty"` + PoolAllocationMode *PoolAllocationMode // If not specified, the default value is 'enabled'. - PublicNetworkAccess *PublicNetworkAccessType `json:"publicNetworkAccess,omitempty"` + PublicNetworkAccess *PublicNetworkAccessType } // AccountIdentity - The identity of the Batch account, if configured. This is used when the user specifies 'Microsoft.KeyVault' @@ -149,163 +149,163 @@ type AccountCreateProperties struct { // auto-storage authentication mode. type AccountIdentity struct { // REQUIRED; The type of identity used for the Batch account. - Type *ResourceIdentityType `json:"type,omitempty"` + Type *ResourceIdentityType // The list of user identities associated with the Batch account. - UserAssignedIdentities map[string]*UserAssignedIdentities `json:"userAssignedIdentities,omitempty"` + UserAssignedIdentities map[string]*UserAssignedIdentities // READ-ONLY; The principal id of the Batch account. This property will only be provided for a system assigned identity. - PrincipalID *string `json:"principalId,omitempty" azure:"ro"` + PrincipalID *string // READ-ONLY; The tenant id associated with the Batch account. This property will only be provided for a system assigned identity. - TenantID *string `json:"tenantId,omitempty" azure:"ro"` + TenantID *string } // AccountKeys - A set of Azure Batch account keys. type AccountKeys struct { // READ-ONLY; The Batch account name. - AccountName *string `json:"accountName,omitempty" azure:"ro"` + AccountName *string // READ-ONLY; The primary key associated with the account. - Primary *string `json:"primary,omitempty" azure:"ro"` + Primary *string // READ-ONLY; The secondary key associated with the account. - Secondary *string `json:"secondary,omitempty" azure:"ro"` + Secondary *string } // AccountListResult - Values returned by the List operation. type AccountListResult struct { // The continuation token. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // The collection of Batch accounts returned by the listing operation. - Value []*Account `json:"value,omitempty"` + Value []*Account } // AccountProperties - Account specific properties. type AccountProperties struct { // The network profile only takes effect when publicNetworkAccess is enabled. - NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"` + NetworkProfile *NetworkProfile // If not specified, the default value is 'enabled'. - PublicNetworkAccess *PublicNetworkAccessType `json:"publicNetworkAccess,omitempty"` + PublicNetworkAccess *PublicNetworkAccessType // READ-ONLY; The account endpoint used to interact with the Batch service. - AccountEndpoint *string `json:"accountEndpoint,omitempty" azure:"ro"` + AccountEndpoint *string // READ-ONLY; The active job and job schedule quota for the Batch account. - ActiveJobAndJobScheduleQuota *int32 `json:"activeJobAndJobScheduleQuota,omitempty" azure:"ro"` + ActiveJobAndJobScheduleQuota *int32 // READ-ONLY; List of allowed authentication modes for the Batch account that can be used to authenticate with the data plane. // This does not affect authentication with the control plane. - AllowedAuthenticationModes []*AuthenticationMode `json:"allowedAuthenticationModes,omitempty" azure:"ro"` + AllowedAuthenticationModes []*AuthenticationMode // READ-ONLY; Contains information about the auto-storage account associated with a Batch account. - AutoStorage *AutoStorageProperties `json:"autoStorage,omitempty" azure:"ro"` + AutoStorage *AutoStorageProperties // READ-ONLY; For accounts with PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value // is not returned. - DedicatedCoreQuota *int32 `json:"dedicatedCoreQuota,omitempty" azure:"ro"` + DedicatedCoreQuota *int32 // READ-ONLY; A list of the dedicated core quota per Virtual Machine family for the Batch account. For accounts with PoolAllocationMode // set to UserSubscription, quota is managed on the subscription so this value is // not returned. - DedicatedCoreQuotaPerVMFamily []*VirtualMachineFamilyCoreQuota `json:"dedicatedCoreQuotaPerVMFamily,omitempty" azure:"ro"` + DedicatedCoreQuotaPerVMFamily []*VirtualMachineFamilyCoreQuota // READ-ONLY; If this flag is true, dedicated core quota is enforced via both the dedicatedCoreQuotaPerVMFamily and dedicatedCoreQuota // properties on the account. If this flag is false, dedicated core quota is // enforced only via the dedicatedCoreQuota property on the account and does not consider Virtual Machine family. - DedicatedCoreQuotaPerVMFamilyEnforced *bool `json:"dedicatedCoreQuotaPerVMFamilyEnforced,omitempty" azure:"ro"` + DedicatedCoreQuotaPerVMFamilyEnforced *bool // READ-ONLY; Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using // a Microsoft managed key. For additional control, a customer-managed key can be used // instead. - Encryption *EncryptionProperties `json:"encryption,omitempty" azure:"ro"` + Encryption *EncryptionProperties // READ-ONLY; Identifies the Azure key vault associated with a Batch account. - KeyVaultReference *KeyVaultReference `json:"keyVaultReference,omitempty" azure:"ro"` + KeyVaultReference *KeyVaultReference // READ-ONLY; For accounts with PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value // is not returned. - LowPriorityCoreQuota *int32 `json:"lowPriorityCoreQuota,omitempty" azure:"ro"` + LowPriorityCoreQuota *int32 // READ-ONLY; The endpoint used by compute node to connect to the Batch node management service. - NodeManagementEndpoint *string `json:"nodeManagementEndpoint,omitempty" azure:"ro"` + NodeManagementEndpoint *string // READ-ONLY; The allocation mode for creating pools in the Batch account. - PoolAllocationMode *PoolAllocationMode `json:"poolAllocationMode,omitempty" azure:"ro"` + PoolAllocationMode *PoolAllocationMode // READ-ONLY; The pool quota for the Batch account. - PoolQuota *int32 `json:"poolQuota,omitempty" azure:"ro"` + PoolQuota *int32 // READ-ONLY; List of private endpoint connections associated with the Batch account - PrivateEndpointConnections []*PrivateEndpointConnection `json:"privateEndpointConnections,omitempty" azure:"ro"` + PrivateEndpointConnections []*PrivateEndpointConnection // READ-ONLY; The provisioned state of the resource - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ProvisioningState } // AccountRegenerateKeyParameters - Parameters supplied to the RegenerateKey operation. type AccountRegenerateKeyParameters struct { // REQUIRED; The type of account key to regenerate. - KeyName *AccountKeyType `json:"keyName,omitempty"` + KeyName *AccountKeyType } // AccountUpdateParameters - Parameters for updating an Azure Batch account. type AccountUpdateParameters struct { // The identity of the Batch account. - Identity *AccountIdentity `json:"identity,omitempty"` + Identity *AccountIdentity // The properties of the account. - Properties *AccountUpdateProperties `json:"properties,omitempty"` + Properties *AccountUpdateProperties // The user-specified tags associated with the account. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // AccountUpdateProperties - The properties of a Batch account. type AccountUpdateProperties struct { // List of allowed authentication modes for the Batch account that can be used to authenticate with the data plane. This does // not affect authentication with the control plane. - AllowedAuthenticationModes []*AuthenticationMode `json:"allowedAuthenticationModes,omitempty"` + AllowedAuthenticationModes []*AuthenticationMode // The properties related to the auto-storage account. - AutoStorage *AutoStorageBaseProperties `json:"autoStorage,omitempty"` + AutoStorage *AutoStorageBaseProperties // Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft // managed key. For additional control, a customer-managed key can be used // instead. - Encryption *EncryptionProperties `json:"encryption,omitempty"` + Encryption *EncryptionProperties // The network profile only takes effect when publicNetworkAccess is enabled. - NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"` + NetworkProfile *NetworkProfile // If not specified, the default value is 'enabled'. - PublicNetworkAccess *PublicNetworkAccessType `json:"publicNetworkAccess,omitempty"` + PublicNetworkAccess *PublicNetworkAccessType } // ActivateApplicationPackageParameters - Parameters for an activating an application package. type ActivateApplicationPackageParameters struct { // REQUIRED; The format of the application package binary file. - Format *string `json:"format,omitempty"` + Format *string } // Application - Contains information about an application in a Batch account. type Application struct { // The properties associated with the Application. - Properties *ApplicationProperties `json:"properties,omitempty"` + Properties *ApplicationProperties // READ-ONLY; The ETag of the resource, used for concurrency statements. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The ID of the resource. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ApplicationClientCreateOptions contains the optional parameters for the ApplicationClient.Create method. @@ -338,19 +338,19 @@ type ApplicationClientUpdateOptions struct { // ApplicationPackage - An application package which represents a particular version of an application. type ApplicationPackage struct { // The properties associated with the Application Package. - Properties *ApplicationPackageProperties `json:"properties,omitempty"` + Properties *ApplicationPackageProperties // READ-ONLY; The ETag of the resource, used for concurrency statements. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The ID of the resource. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ApplicationPackageClientActivateOptions contains the optional parameters for the ApplicationPackageClient.Activate method. @@ -383,209 +383,209 @@ type ApplicationPackageClientListOptions struct { // ApplicationPackageProperties - Properties of an application package type ApplicationPackageProperties struct { // READ-ONLY; The format of the application package, if the package is active. - Format *string `json:"format,omitempty" azure:"ro"` + Format *string // READ-ONLY; The time at which the package was last activated, if the package is active. - LastActivationTime *time.Time `json:"lastActivationTime,omitempty" azure:"ro"` + LastActivationTime *time.Time // READ-ONLY; The current state of the application package. - State *PackageState `json:"state,omitempty" azure:"ro"` + State *PackageState // READ-ONLY; The URL for the application package in Azure Storage. - StorageURL *string `json:"storageUrl,omitempty" azure:"ro"` + StorageURL *string // READ-ONLY; The UTC time at which the Azure Storage URL will expire. - StorageURLExpiry *time.Time `json:"storageUrlExpiry,omitempty" azure:"ro"` + StorageURLExpiry *time.Time } // ApplicationPackageReference - Link to an application package inside the batch account type ApplicationPackageReference struct { // REQUIRED; The ID of the application package to install. This must be inside the same batch account as the pool. This can // either be a reference to a specific version or the default version if one exists. - ID *string `json:"id,omitempty"` + ID *string // If this is omitted, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences. // If you are calling the REST API directly, the // HTTP status code is 409. - Version *string `json:"version,omitempty"` + Version *string } // ApplicationProperties - The properties associated with the Application. type ApplicationProperties struct { // A value indicating whether packages within the application may be overwritten using the same version string. - AllowUpdates *bool `json:"allowUpdates,omitempty"` + AllowUpdates *bool // The package to use if a client requests the application but does not specify a version. This property can only be set to // the name of an existing package. - DefaultVersion *string `json:"defaultVersion,omitempty"` + DefaultVersion *string // The display name for the application. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string } // AutoScaleRun - The results and errors from an execution of a pool autoscale formula. type AutoScaleRun struct { // REQUIRED; The time at which the autoscale formula was last evaluated. - EvaluationTime *time.Time `json:"evaluationTime,omitempty"` + EvaluationTime *time.Time // An error that occurred when autoscaling a pool. - Error *AutoScaleRunError `json:"error,omitempty"` + Error *AutoScaleRunError // Each variable value is returned in the form $variable=value, and variables are separated by semicolons. - Results *string `json:"results,omitempty"` + Results *string } // AutoScaleRunError - An error that occurred when autoscaling a pool. type AutoScaleRunError struct { // REQUIRED; An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - Code *string `json:"code,omitempty"` + Code *string // REQUIRED; A message describing the error, intended to be suitable for display in a user interface. - Message *string `json:"message,omitempty"` + Message *string // Additional details about the error. - Details []*AutoScaleRunError `json:"details,omitempty"` + Details []*AutoScaleRunError } // AutoScaleSettings - AutoScale settings for the pool. type AutoScaleSettings struct { // REQUIRED; A formula for the desired number of compute nodes in the pool. - Formula *string `json:"formula,omitempty"` + Formula *string // If omitted, the default value is 15 minutes (PT15M). - EvaluationInterval *string `json:"evaluationInterval,omitempty"` + EvaluationInterval *string } // AutoStorageBaseProperties - The properties related to the auto-storage account. type AutoStorageBaseProperties struct { // REQUIRED; The resource ID of the storage account to be used for auto-storage account. - StorageAccountID *string `json:"storageAccountId,omitempty"` + StorageAccountID *string // The authentication mode which the Batch service will use to manage the auto-storage account. - AuthenticationMode *AutoStorageAuthenticationMode `json:"authenticationMode,omitempty"` + AuthenticationMode *AutoStorageAuthenticationMode // The identity referenced here must be assigned to pools which have compute nodes that need access to auto-storage. - NodeIdentityReference *ComputeNodeIdentityReference `json:"nodeIdentityReference,omitempty"` + NodeIdentityReference *ComputeNodeIdentityReference } // AutoStorageProperties - Contains information about the auto-storage account associated with a Batch account. type AutoStorageProperties struct { // REQUIRED; The UTC time at which storage keys were last synchronized with the Batch account. - LastKeySync *time.Time `json:"lastKeySync,omitempty"` + LastKeySync *time.Time // REQUIRED; The resource ID of the storage account to be used for auto-storage account. - StorageAccountID *string `json:"storageAccountId,omitempty"` + StorageAccountID *string // The authentication mode which the Batch service will use to manage the auto-storage account. - AuthenticationMode *AutoStorageAuthenticationMode `json:"authenticationMode,omitempty"` + AuthenticationMode *AutoStorageAuthenticationMode // The identity referenced here must be assigned to pools which have compute nodes that need access to auto-storage. - NodeIdentityReference *ComputeNodeIdentityReference `json:"nodeIdentityReference,omitempty"` + NodeIdentityReference *ComputeNodeIdentityReference } // AutoUserSpecification - Specifies the parameters for the auto user that runs a task on the Batch service. type AutoUserSpecification struct { // The default value is nonAdmin. - ElevationLevel *ElevationLevel `json:"elevationLevel,omitempty"` + ElevationLevel *ElevationLevel // The default value is Pool. If the pool is running Windows a value of Task should be specified if stricter isolation between // tasks is required. For example, if the task mutates the registry in a way // which could impact other tasks, or if certificates have been specified on the pool which should not be accessible by normal // tasks but should be accessible by start tasks. - Scope *AutoUserScope `json:"scope,omitempty"` + Scope *AutoUserScope } // AzureBlobFileSystemConfiguration - Information used to connect to an Azure Storage Container using Blobfuse. type AzureBlobFileSystemConfiguration struct { // REQUIRED; The Azure Storage Account name. - AccountName *string `json:"accountName,omitempty"` + AccountName *string // REQUIRED; The Azure Blob Storage Container name. - ContainerName *string `json:"containerName,omitempty"` + ContainerName *string // REQUIRED; All file systems are mounted relative to the Batch mounts directory, accessible via the AZBATCHNODEMOUNTSDIR // environment variable. - RelativeMountPath *string `json:"relativeMountPath,omitempty"` + RelativeMountPath *string // This property is mutually exclusive with both sasKey and identity; exactly one must be specified. - AccountKey *string `json:"accountKey,omitempty"` + AccountKey *string // These are 'net use' options in Windows and 'mount' options in Linux. - BlobfuseOptions *string `json:"blobfuseOptions,omitempty"` + BlobfuseOptions *string // This property is mutually exclusive with both accountKey and sasKey; exactly one must be specified. - IdentityReference *ComputeNodeIdentityReference `json:"identityReference,omitempty"` + IdentityReference *ComputeNodeIdentityReference // This property is mutually exclusive with both accountKey and identity; exactly one must be specified. - SasKey *string `json:"sasKey,omitempty"` + SasKey *string } // AzureFileShareConfiguration - Information used to connect to an Azure Fileshare. type AzureFileShareConfiguration struct { // REQUIRED; The Azure Storage account key. - AccountKey *string `json:"accountKey,omitempty"` + AccountKey *string // REQUIRED; The Azure Storage account name. - AccountName *string `json:"accountName,omitempty"` + AccountName *string // REQUIRED; This is of the form 'https://{account}.file.core.windows.net/'. - AzureFileURL *string `json:"azureFileUrl,omitempty"` + AzureFileURL *string // REQUIRED; All file systems are mounted relative to the Batch mounts directory, accessible via the AZBATCHNODEMOUNTSDIR // environment variable. - RelativeMountPath *string `json:"relativeMountPath,omitempty"` + RelativeMountPath *string // These are 'net use' options in Windows and 'mount' options in Linux. - MountOptions *string `json:"mountOptions,omitempty"` + MountOptions *string } // CIFSMountConfiguration - Information used to connect to a CIFS file system. type CIFSMountConfiguration struct { // REQUIRED; The password to use for authentication against the CIFS file system. - Password *string `json:"password,omitempty"` + Password *string // REQUIRED; All file systems are mounted relative to the Batch mounts directory, accessible via the AZBATCHNODEMOUNTSDIR // environment variable. - RelativeMountPath *string `json:"relativeMountPath,omitempty"` + RelativeMountPath *string // REQUIRED; The URI of the file system to mount. - Source *string `json:"source,omitempty"` + Source *string // REQUIRED; The user to use for authentication against the CIFS file system. - Username *string `json:"userName,omitempty"` + Username *string // These are 'net use' options in Windows and 'mount' options in Linux. - MountOptions *string `json:"mountOptions,omitempty"` + MountOptions *string } // Certificate - Contains information about a certificate. type Certificate struct { // The properties associated with the certificate. - Properties *CertificateProperties `json:"properties,omitempty"` + Properties *CertificateProperties // READ-ONLY; The ETag of the resource, used for concurrency statements. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The ID of the resource. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // CertificateBaseProperties - Base certificate properties. type CertificateBaseProperties struct { // The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx. - Format *CertificateFormat `json:"format,omitempty"` + Format *CertificateFormat // This must match the thumbprint from the name. - Thumbprint *string `json:"thumbprint,omitempty"` + Thumbprint *string // This must match the first portion of the certificate name. Currently required to be 'SHA1'. - ThumbprintAlgorithm *string `json:"thumbprintAlgorithm,omitempty"` + ThumbprintAlgorithm *string } // CertificateClientBeginDeleteOptions contains the optional parameters for the CertificateClient.BeginDelete method. @@ -638,67 +638,67 @@ type CertificateClientUpdateOptions struct { // CertificateCreateOrUpdateParameters - Contains information about a certificate. type CertificateCreateOrUpdateParameters struct { // The properties associated with the certificate. - Properties *CertificateCreateOrUpdateProperties `json:"properties,omitempty"` + Properties *CertificateCreateOrUpdateProperties // READ-ONLY; The ETag of the resource, used for concurrency statements. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The ID of the resource. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // CertificateCreateOrUpdateProperties - Certificate properties for create operations type CertificateCreateOrUpdateProperties struct { // REQUIRED; The maximum size is 10KB. - Data *string `json:"data,omitempty"` + Data *string // The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx. - Format *CertificateFormat `json:"format,omitempty"` + Format *CertificateFormat // This must not be specified if the certificate format is Cer. - Password *string `json:"password,omitempty"` + Password *string // This must match the thumbprint from the name. - Thumbprint *string `json:"thumbprint,omitempty"` + Thumbprint *string // This must match the first portion of the certificate name. Currently required to be 'SHA1'. - ThumbprintAlgorithm *string `json:"thumbprintAlgorithm,omitempty"` + ThumbprintAlgorithm *string } // CertificateProperties - Certificate properties. type CertificateProperties struct { // The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx. - Format *CertificateFormat `json:"format,omitempty"` + Format *CertificateFormat // This must match the thumbprint from the name. - Thumbprint *string `json:"thumbprint,omitempty"` + Thumbprint *string // This must match the first portion of the certificate name. Currently required to be 'SHA1'. - ThumbprintAlgorithm *string `json:"thumbprintAlgorithm,omitempty"` + ThumbprintAlgorithm *string // READ-ONLY; This is only returned when the certificate provisioningState is 'Failed'. - DeleteCertificateError *DeleteCertificateError `json:"deleteCertificateError,omitempty" azure:"ro"` + DeleteCertificateError *DeleteCertificateError // READ-ONLY; The previous provisioned state of the resource - PreviousProvisioningState *CertificateProvisioningState `json:"previousProvisioningState,omitempty" azure:"ro"` + PreviousProvisioningState *CertificateProvisioningState // READ-ONLY; The time at which the certificate entered its previous state. - PreviousProvisioningStateTransitionTime *time.Time `json:"previousProvisioningStateTransitionTime,omitempty" azure:"ro"` + PreviousProvisioningStateTransitionTime *time.Time // READ-ONLY - ProvisioningState *CertificateProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *CertificateProvisioningState // READ-ONLY; The time at which the certificate entered its current state. - ProvisioningStateTransitionTime *time.Time `json:"provisioningStateTransitionTime,omitempty" azure:"ro"` + ProvisioningStateTransitionTime *time.Time // READ-ONLY; The public key of the certificate. - PublicData *string `json:"publicData,omitempty" azure:"ro"` + PublicData *string } // CertificateReference - Warning: This object is deprecated and will be removed after February, 2024. Please use the Azure @@ -707,7 +707,7 @@ type CertificateProperties struct { type CertificateReference struct { // REQUIRED; The fully qualified ID of the certificate to install on the pool. This must be inside the same batch account // as the pool. - ID *string `json:"id,omitempty"` + ID *string // The default value is currentUser. This property is applicable only for pools configured with Windows nodes (that is, created // with cloudServiceConfiguration, or with virtualMachineConfiguration using a @@ -716,40 +716,40 @@ type CertificateReference struct { // task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the // user's home directory (e.g., /home/{user-name}/certs) and certificates are // placed in that directory. - StoreLocation *CertificateStoreLocation `json:"storeLocation,omitempty"` + StoreLocation *CertificateStoreLocation // This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, // or with virtualMachineConfiguration using a Windows image reference). Common // store names include: My, Root, CA, Trust, Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any custom // store name can also be used. The default value is My. - StoreName *string `json:"storeName,omitempty"` + StoreName *string // Which user accounts on the compute node should have access to the private data of the certificate. - Visibility []*CertificateVisibility `json:"visibility,omitempty"` + Visibility []*CertificateVisibility } // CheckNameAvailabilityParameters - Parameters for a check name availability request. type CheckNameAvailabilityParameters struct { // REQUIRED; The name to check for availability - Name *string `json:"name,omitempty"` + Name *string // CONSTANT; The resource type. // Field has constant value "Microsoft.Batch/batchAccounts", any specified value is ignored. - Type *string `json:"type,omitempty"` + Type *string } // CheckNameAvailabilityResult - The CheckNameAvailability operation response. type CheckNameAvailabilityResult struct { // READ-ONLY; Gets an error message explaining the Reason value in more detail. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string // READ-ONLY; Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. // If false, the name has already been taken or invalid and cannot be used. - NameAvailable *bool `json:"nameAvailable,omitempty" azure:"ro"` + NameAvailable *bool // READ-ONLY; Gets the reason that a Batch account name could not be used. The Reason element is only returned if NameAvailable // is false. - Reason *NameAvailabilityReason `json:"reason,omitempty" azure:"ro"` + Reason *NameAvailabilityReason } // CloudServiceConfiguration - The configuration for nodes in a pool based on the Azure Cloud Services platform. @@ -759,84 +759,84 @@ type CloudServiceConfiguration struct { // 5, equivalent to Windows Server 2016. 6 - OS Family 6, equivalent to Windows Server 2019. For more information, see Azure // Guest OS Releases // (https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update-matrix/#releases). - OSFamily *string `json:"osFamily,omitempty"` + OSFamily *string // The default value is * which specifies the latest operating system version for the specified OS family. - OSVersion *string `json:"osVersion,omitempty"` + OSVersion *string } // ComputeNodeIdentityReference - The reference to a user assigned identity associated with the Batch pool which a compute // node will use. type ComputeNodeIdentityReference struct { // The ARM resource id of the user assigned identity. - ResourceID *string `json:"resourceId,omitempty"` + ResourceID *string } // ContainerConfiguration - The configuration for container-enabled pools. type ContainerConfiguration struct { // CONSTANT; The container technology to be used. // Field has constant value "DockerCompatible", any specified value is ignored. - Type *string `json:"type,omitempty"` + Type *string // This is the full image reference, as would be specified to "docker pull". An image will be sourced from the default Docker // registry unless the image is fully qualified with an alternative registry. - ContainerImageNames []*string `json:"containerImageNames,omitempty"` + ContainerImageNames []*string // If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided // here. - ContainerRegistries []*ContainerRegistry `json:"containerRegistries,omitempty"` + ContainerRegistries []*ContainerRegistry } // ContainerRegistry - A private container registry. type ContainerRegistry struct { // The reference to a user assigned identity associated with the Batch pool which a compute node will use. - IdentityReference *ComputeNodeIdentityReference `json:"identityReference,omitempty"` + IdentityReference *ComputeNodeIdentityReference // The password to log into the registry server. - Password *string `json:"password,omitempty"` + Password *string // If omitted, the default is "docker.io". - RegistryServer *string `json:"registryServer,omitempty"` + RegistryServer *string // The user name to log into the registry server. - UserName *string `json:"username,omitempty"` + UserName *string } // DataDisk - Settings which will be used by the data disks associated to Compute Nodes in the Pool. When using attached data // disks, you need to mount and format the disks from within a VM to use them. type DataDisk struct { // REQUIRED; The initial disk size in GB when creating new data disk. - DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` + DiskSizeGB *int32 // REQUIRED; The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct // lun. The value must be between 0 and 63, inclusive. - Lun *int32 `json:"lun,omitempty"` + Lun *int32 // Values are: // none - The caching mode for the disk is not enabled. readOnly - The caching mode for the disk is read only. readWrite - // The caching mode for the disk is read and write. // The default value for caching is none. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. - Caching *CachingType `json:"caching,omitempty"` + Caching *CachingType // If omitted, the default is "Standard_LRS". Values are: // StandardLRS - The data disk should use standard locally redundant storage. PremiumLRS - The data disk should use premium // locally redundant storage. - StorageAccountType *StorageAccountType `json:"storageAccountType,omitempty"` + StorageAccountType *StorageAccountType } // DeleteCertificateError - An error response from the Batch service. type DeleteCertificateError struct { // REQUIRED; An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - Code *string `json:"code,omitempty"` + Code *string // REQUIRED; A message describing the error, intended to be suitable for display in a user interface. - Message *string `json:"message,omitempty"` + Message *string // A list of additional details about the error. - Details []*DeleteCertificateError `json:"details,omitempty"` + Details []*DeleteCertificateError // The target of the particular error. For example, the name of the property in error. - Target *string `json:"target,omitempty"` + Target *string } // DeploymentConfiguration - Deployment configuration properties. @@ -844,43 +844,43 @@ type DeploymentConfiguration struct { // This property and virtualMachineConfiguration are mutually exclusive and one of the properties must be specified. This // property cannot be specified if the Batch account was created with its // poolAllocationMode property set to 'UserSubscription'. - CloudServiceConfiguration *CloudServiceConfiguration `json:"cloudServiceConfiguration,omitempty"` + CloudServiceConfiguration *CloudServiceConfiguration // This property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified. - VirtualMachineConfiguration *VirtualMachineConfiguration `json:"virtualMachineConfiguration,omitempty"` + VirtualMachineConfiguration *VirtualMachineConfiguration } // DetectorListResult - Values returned by the List operation. type DetectorListResult struct { // The URL to get the next set of results. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // The collection of Batch account detectors returned by the listing operation. - Value []*DetectorResponse `json:"value,omitempty"` + Value []*DetectorResponse } // DetectorResponse - Contains the information for a detector. type DetectorResponse struct { // The properties associated with the detector. - Properties *DetectorResponseProperties `json:"properties,omitempty"` + Properties *DetectorResponseProperties // READ-ONLY; The ETag of the resource, used for concurrency statements. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The ID of the resource. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // DetectorResponseProperties - Detector response properties. type DetectorResponseProperties struct { // A base64 encoded string that represents the content of a detector. - Value *string `json:"value,omitempty"` + Value *string } // DiffDiskSettings - Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. @@ -890,14 +890,14 @@ type DiffDiskSettings struct { // Ephemeral OS disk size requirements, please refer to Ephemeral OS disk size requirements for Windows VMs at // https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VMs at // https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements. - Placement *string `json:"placement,omitempty"` + Placement *string } // DiskEncryptionConfiguration - The disk encryption configuration applied on compute nodes in the pool. Disk encryption configuration // is not supported on Linux pool created with Virtual Machine Image or Shared Image Gallery Image. type DiskEncryptionConfiguration struct { // On Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and "TemporaryDisk" must be specified. - Targets []*DiskEncryptionTarget `json:"targets,omitempty"` + Targets []*DiskEncryptionTarget } // EncryptionProperties - Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted @@ -905,73 +905,73 @@ type DiskEncryptionConfiguration struct { // instead. type EncryptionProperties struct { // Type of the key source. - KeySource *KeySource `json:"keySource,omitempty"` + KeySource *KeySource // Additional details when using Microsoft.KeyVault - KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"` + KeyVaultProperties *KeyVaultProperties } // EndpointAccessProfile - Network access profile for Batch endpoint. type EndpointAccessProfile struct { // REQUIRED; Default action for endpoint access. It is only applicable when publicNetworkAccess is enabled. - DefaultAction *EndpointAccessDefaultAction `json:"defaultAction,omitempty"` + DefaultAction *EndpointAccessDefaultAction // Array of IP ranges to filter client IP address. - IPRules []*IPRule `json:"ipRules,omitempty"` + IPRules []*IPRule } // EndpointDependency - A domain name and connection details used to access a dependency. type EndpointDependency struct { // READ-ONLY; Human-readable supplemental information about the dependency and when it is applicable. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The domain name of the dependency. Domain names may be fully qualified or may contain a * wildcard. - DomainName *string `json:"domainName,omitempty" azure:"ro"` + DomainName *string // READ-ONLY; The list of connection details for this endpoint. - EndpointDetails []*EndpointDetail `json:"endpointDetails,omitempty" azure:"ro"` + EndpointDetails []*EndpointDetail } // EndpointDetail - Details about the connection between the Batch service and the endpoint. type EndpointDetail struct { // READ-ONLY; The port an endpoint is connected to. - Port *int32 `json:"port,omitempty" azure:"ro"` + Port *int32 } // EnvironmentSetting - An environment variable to be set on a task process. type EnvironmentSetting struct { // REQUIRED; The name of the environment variable. - Name *string `json:"name,omitempty"` + Name *string // The value of the environment variable. - Value *string `json:"value,omitempty"` + Value *string } // FixedScaleSettings - Fixed scale settings for the pool. type FixedScaleSettings struct { // If omitted, the default value is Requeue. - NodeDeallocationOption *ComputeNodeDeallocationOption `json:"nodeDeallocationOption,omitempty"` + NodeDeallocationOption *ComputeNodeDeallocationOption // The default value is 15 minutes. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum // value is 5 minutes. If you specify a value less than 5 minutes, the Batch // service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). - ResizeTimeout *string `json:"resizeTimeout,omitempty"` + ResizeTimeout *string // At least one of targetDedicatedNodes, targetLowPriorityNodes must be set. - TargetDedicatedNodes *int32 `json:"targetDedicatedNodes,omitempty"` + TargetDedicatedNodes *int32 // At least one of targetDedicatedNodes, targetLowPriorityNodes must be set. - TargetLowPriorityNodes *int32 `json:"targetLowPriorityNodes,omitempty"` + TargetLowPriorityNodes *int32 } // IPRule - Rule to filter client IP address. type IPRule struct { // CONSTANT; Action when client IP address is matched. // Field has constant value "Allow", any specified value is ignored. - Action *string `json:"action,omitempty"` + Action *string // REQUIRED; IPv4 address, or IPv4 address range in CIDR format. - Value *string `json:"value,omitempty"` + Value *string } // ImageReference - A reference to an Azure Virtual Machines Marketplace image or the Azure Image resource of a custom Virtual @@ -981,19 +981,19 @@ type ImageReference struct { // This property is mutually exclusive with other properties. The Shared Image Gallery image must have replicas in the same // region as the Azure Batch account. For information about the firewall settings // for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. - ID *string `json:"id,omitempty"` + ID *string // For example, UbuntuServer or WindowsServer. - Offer *string `json:"offer,omitempty"` + Offer *string // For example, Canonical or MicrosoftWindowsServer. - Publisher *string `json:"publisher,omitempty"` + Publisher *string // For example, 18.04-LTS or 2022-datacenter. - SKU *string `json:"sku,omitempty"` + SKU *string // A value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'. - Version *string `json:"version,omitempty"` + Version *string } // InboundNatPool - A inbound NAT pool that can be used to address specific ports on compute nodes in a Batch pool externally. @@ -1001,31 +1001,31 @@ type InboundNatPool struct { // REQUIRED; This must be unique within a Batch pool. Acceptable values are between 1 and 65535 except for 22, 3389, 29876 // and 29877 as these are reserved. If any reserved values are provided the request fails // with HTTP status code 400. - BackendPort *int32 `json:"backendPort,omitempty"` + BackendPort *int32 // REQUIRED; Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved by the Batch // service. All ranges within a pool must be distinct and cannot overlap. If any reserved or // overlapping values are provided the request fails with HTTP status code 400. - FrontendPortRangeEnd *int32 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeEnd *int32 // REQUIRED; Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved. All ranges within // a pool must be distinct and cannot overlap. If any reserved or overlapping values are // provided the request fails with HTTP status code 400. - FrontendPortRangeStart *int32 `json:"frontendPortRangeStart,omitempty"` + FrontendPortRangeStart *int32 // REQUIRED; The name must be unique within a Batch pool, can contain letters, numbers, underscores, periods, and hyphens. // Names must start with a letter or number, must end with a letter, number, or underscore, // and cannot exceed 77 characters. If any invalid values are provided the request fails with HTTP status code 400. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; The protocol of the endpoint. - Protocol *InboundEndpointProtocol `json:"protocol,omitempty"` + Protocol *InboundEndpointProtocol // The maximum number of rules that can be specified across all the endpoints on a Batch pool is 25. If no network security // group rules are specified, a default rule will be created to allow inbound // access to the specified backendPort. If the maximum number of network security group rules is exceeded the request fails // with HTTP status code 400. - NetworkSecurityGroupRules []*NetworkSecurityGroupRule `json:"networkSecurityGroupRules,omitempty"` + NetworkSecurityGroupRules []*NetworkSecurityGroupRule } // KeyVaultProperties - KeyVault configuration when using an encryption KeySource of Microsoft.KeyVault. @@ -1034,88 +1034,88 @@ type KeyVaultProperties struct { // To be usable the following prerequisites must be met: // The Batch Account has a System Assigned identity The account identity has been granted Key/Get, Key/Unwrap and Key/Wrap // permissions The KeyVault has soft-delete and purge protection enabled - KeyIdentifier *string `json:"keyIdentifier,omitempty"` + KeyIdentifier *string } // KeyVaultReference - Identifies the Azure key vault associated with a Batch account. type KeyVaultReference struct { // REQUIRED; The resource ID of the Azure key vault associated with the Batch account. - ID *string `json:"id,omitempty"` + ID *string // REQUIRED; The URL of the Azure key vault associated with the Batch account. - URL *string `json:"url,omitempty"` + URL *string } // LinuxUserConfiguration - Properties used to create a user account on a Linux node. type LinuxUserConfiguration struct { // The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks // the gid. - Gid *int32 `json:"gid,omitempty"` + Gid *int32 // The private key must not be password protected. The private key is used to automatically configure asymmetric-key based // authentication for SSH between nodes in a Linux pool when the pool's // enableInterNodeCommunication property is true (it is ignored if enableInterNodeCommunication is false). It does this by // placing the key pair into the user's .ssh directory. If not specified, // password-less SSH is not configured between nodes (no modification of the user's .ssh directory is done). - SSHPrivateKey *string `json:"sshPrivateKey,omitempty"` + SSHPrivateKey *string // The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks // the uid. - UID *int32 `json:"uid,omitempty"` + UID *int32 } // ListApplicationPackagesResult - The result of performing list application packages. type ListApplicationPackagesResult struct { // The URL to get the next set of results. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // The list of application packages. - Value []*ApplicationPackage `json:"value,omitempty"` + Value []*ApplicationPackage } // ListApplicationsResult - The result of performing list applications. type ListApplicationsResult struct { // The URL to get the next set of results. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // The list of applications. - Value []*Application `json:"value,omitempty"` + Value []*Application } // ListCertificatesResult - Values returned by the List operation. type ListCertificatesResult struct { // The continuation token. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // The collection of returned certificates. - Value []*Certificate `json:"value,omitempty"` + Value []*Certificate } // ListPoolsResult - Values returned by the List operation. type ListPoolsResult struct { // The continuation token. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // The collection of returned pools. - Value []*Pool `json:"value,omitempty"` + Value []*Pool } // ListPrivateEndpointConnectionsResult - Values returned by the List operation. type ListPrivateEndpointConnectionsResult struct { // The continuation token. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // The collection of returned private endpoint connection. - Value []*PrivateEndpointConnection `json:"value,omitempty"` + Value []*PrivateEndpointConnection } // ListPrivateLinkResourcesResult - Values returned by the List operation. type ListPrivateLinkResourcesResult struct { // The continuation token. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // The collection of returned private link resources. - Value []*PrivateLinkResource `json:"value,omitempty"` + Value []*PrivateLinkResource } // LocationClientCheckNameAvailabilityOptions contains the optional parameters for the LocationClient.CheckNameAvailability @@ -1150,56 +1150,56 @@ type LocationClientListSupportedVirtualMachineSKUsOptions struct { // LocationQuota - Quotas associated with a Batch region for a particular subscription. type LocationQuota struct { // READ-ONLY; The number of Batch accounts that may be created under the subscription in the specified region. - AccountQuota *int32 `json:"accountQuota,omitempty" azure:"ro"` + AccountQuota *int32 } // MetadataItem - The Batch service does not assign any meaning to this metadata; it is solely for the use of user code. type MetadataItem struct { // REQUIRED; The name of the metadata item. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; The value of the metadata item. - Value *string `json:"value,omitempty"` + Value *string } // MountConfiguration - The file system to mount on each node. type MountConfiguration struct { // This property is mutually exclusive with all other properties. - AzureBlobFileSystemConfiguration *AzureBlobFileSystemConfiguration `json:"azureBlobFileSystemConfiguration,omitempty"` + AzureBlobFileSystemConfiguration *AzureBlobFileSystemConfiguration // This property is mutually exclusive with all other properties. - AzureFileShareConfiguration *AzureFileShareConfiguration `json:"azureFileShareConfiguration,omitempty"` + AzureFileShareConfiguration *AzureFileShareConfiguration // This property is mutually exclusive with all other properties. - CifsMountConfiguration *CIFSMountConfiguration `json:"cifsMountConfiguration,omitempty"` + CifsMountConfiguration *CIFSMountConfiguration // This property is mutually exclusive with all other properties. - NfsMountConfiguration *NFSMountConfiguration `json:"nfsMountConfiguration,omitempty"` + NfsMountConfiguration *NFSMountConfiguration } // NFSMountConfiguration - Information used to connect to an NFS file system. type NFSMountConfiguration struct { // REQUIRED; All file systems are mounted relative to the Batch mounts directory, accessible via the AZBATCHNODEMOUNTSDIR // environment variable. - RelativeMountPath *string `json:"relativeMountPath,omitempty"` + RelativeMountPath *string // REQUIRED; The URI of the file system to mount. - Source *string `json:"source,omitempty"` + Source *string // These are 'net use' options in Windows and 'mount' options in Linux. - MountOptions *string `json:"mountOptions,omitempty"` + MountOptions *string } // NetworkConfiguration - The network configuration for a pool. type NetworkConfiguration struct { // The scope of dynamic vnet assignment. - DynamicVNetAssignmentScope *DynamicVNetAssignmentScope `json:"dynamicVnetAssignmentScope,omitempty"` + DynamicVNetAssignmentScope *DynamicVNetAssignmentScope // Pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property. - EndpointConfiguration *PoolEndpointConfiguration `json:"endpointConfiguration,omitempty"` + EndpointConfiguration *PoolEndpointConfiguration // This property is only supported on Pools with the virtualMachineConfiguration property. - PublicIPAddressConfiguration *PublicIPAddressConfiguration `json:"publicIPAddressConfiguration,omitempty"` + PublicIPAddressConfiguration *PublicIPAddressConfiguration // The virtual network must be in the same region and subscription as the Azure Batch account. The specified subnet should // have enough free IP addresses to accommodate the number of nodes in the pool. If @@ -1216,94 +1216,94 @@ type NetworkConfiguration struct { // a cloud service configuration, enable ports 10100, 20100, and 30100. Also enable outbound connections to Azure Storage // on port 443. For cloudServiceConfiguration pools, only 'classic' VNETs are // supported. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration - SubnetID *string `json:"subnetId,omitempty"` + SubnetID *string } // NetworkProfile - Network profile for Batch account, which contains network rule settings for each endpoint. type NetworkProfile struct { // Network access profile for batchAccount endpoint (Batch account data plane API). - AccountAccess *EndpointAccessProfile `json:"accountAccess,omitempty"` + AccountAccess *EndpointAccessProfile // Network access profile for nodeManagement endpoint (Batch service managing compute nodes for Batch pools). - NodeManagementAccess *EndpointAccessProfile `json:"nodeManagementAccess,omitempty"` + NodeManagementAccess *EndpointAccessProfile } // NetworkSecurityGroupRule - A network security group rule to apply to an inbound endpoint. type NetworkSecurityGroupRule struct { // REQUIRED; The action that should be taken for a specified IP address, subnet range or tag. - Access *NetworkSecurityGroupRuleAccess `json:"access,omitempty"` + Access *NetworkSecurityGroupRuleAccess // REQUIRED; Priorities within a pool must be unique and are evaluated in order of priority. The lower the number the higher // the priority. For example, rules could be specified with order numbers of 150, 250, and // 350. The rule with the order number of 150 takes precedence over the rule that has an order of 250. Allowed priorities // are 150 to 4096. If any reserved or duplicate values are provided the request // fails with HTTP status code 400. - Priority *int32 `json:"priority,omitempty"` + Priority *int32 // REQUIRED; Valid values are a single IP address (i.e. 10.10.10.10), IP subnet (i.e. 192.168.1.0/24), default tag, or * (for // all addresses). If any other values are provided the request fails with HTTP status // code 400. - SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefix *string // Valid values are '*' (for all ports 0 - 65535) or arrays of ports or port ranges (i.e. 100-200). The ports should in the // range of 0 to 65535 and the port ranges or ports can't overlap. If any other // values are provided the request fails with HTTP status code 400. Default value will be *. - SourcePortRanges []*string `json:"sourcePortRanges,omitempty"` + SourcePortRanges []*string } // NodePlacementConfiguration - Allocation configuration used by Batch Service to provision the nodes. type NodePlacementConfiguration struct { // Allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy. - Policy *NodePlacementPolicyType `json:"policy,omitempty"` + Policy *NodePlacementPolicyType } // OSDisk - Settings for the operating system disk of the virtual machine. type OSDisk struct { // Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. - EphemeralOSDiskSettings *DiffDiskSettings `json:"ephemeralOSDiskSettings,omitempty"` + EphemeralOSDiskSettings *DiffDiskSettings } // Operation - A REST API operation type Operation struct { // The object that describes the operation. - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // Indicates whether the operation is a data action - IsDataAction *bool `json:"isDataAction,omitempty"` + IsDataAction *bool // This is of the format {provider}/{resource}/{operation} - Name *string `json:"name,omitempty"` + Name *string // The intended executor of the operation. - Origin *string `json:"origin,omitempty"` + Origin *string // Properties of the operation. - Properties any `json:"properties,omitempty"` + Properties any } // OperationDisplay - The object that describes the operation. type OperationDisplay struct { // The friendly name of the operation - Description *string `json:"description,omitempty"` + Description *string // For example: read, write, delete, or listKeys/action - Operation *string `json:"operation,omitempty"` + Operation *string // Friendly name of the resource provider. - Provider *string `json:"provider,omitempty"` + Provider *string // The resource type on which the operation is performed. - Resource *string `json:"resource,omitempty"` + Resource *string } // OperationListResult - Result of the request to list REST API operations. It contains a list of operations and a URL nextLink // to get the next set of results. type OperationListResult struct { // The URL to get the next set of operation list results if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // The list of operations supported by the resource provider. - Value []*Operation `json:"value,omitempty"` + Value []*Operation } // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. @@ -1315,40 +1315,40 @@ type OperationsClientListOptions struct { // outbound access. type OutboundEnvironmentEndpoint struct { // READ-ONLY; The type of service that the Batch service connects to. - Category *string `json:"category,omitempty" azure:"ro"` + Category *string // READ-ONLY; The endpoints for this service to which the Batch service makes outbound calls. - Endpoints []*EndpointDependency `json:"endpoints,omitempty" azure:"ro"` + Endpoints []*EndpointDependency } // OutboundEnvironmentEndpointCollection - Values returned by the List operation. type OutboundEnvironmentEndpointCollection struct { // The continuation token. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; The collection of outbound network dependency endpoints returned by the listing operation. - Value []*OutboundEnvironmentEndpoint `json:"value,omitempty" azure:"ro"` + Value []*OutboundEnvironmentEndpoint } // Pool - Contains information about a pool. type Pool struct { // The type of identity used for the Batch Pool. - Identity *PoolIdentity `json:"identity,omitempty"` + Identity *PoolIdentity // The properties associated with the pool. - Properties *PoolProperties `json:"properties,omitempty"` + Properties *PoolProperties // READ-ONLY; The ETag of the resource, used for concurrency statements. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The ID of the resource. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PoolClientBeginDeleteOptions contains the optional parameters for the PoolClient.BeginDelete method. @@ -1406,7 +1406,7 @@ type PoolEndpointConfiguration struct { // REQUIRED; The maximum number of inbound NAT pools per Batch pool is 5. If the maximum number of inbound NAT pools is exceeded // the request fails with HTTP status code 400. This cannot be specified if the // IPAddressProvisioningType is NoPublicIPAddresses. - InboundNatPools []*InboundNatPool `json:"inboundNatPools,omitempty"` + InboundNatPools []*InboundNatPool } // PoolIdentity - The identity of the Batch pool, if configured. If the pool identity is updated during update an existing @@ -1414,22 +1414,22 @@ type PoolEndpointConfiguration struct { // identities type PoolIdentity struct { // REQUIRED; The type of identity used for the Batch Pool. - Type *PoolIdentityType `json:"type,omitempty"` + Type *PoolIdentityType // The list of user identities associated with the Batch pool. - UserAssignedIdentities map[string]*UserAssignedIdentities `json:"userAssignedIdentities,omitempty"` + UserAssignedIdentities map[string]*UserAssignedIdentities } // PoolProperties - Pool properties. type PoolProperties struct { // The list of application licenses must be a subset of available Batch service application licenses. If a license is requested // which is not supported, pool creation will fail. - ApplicationLicenses []*string `json:"applicationLicenses,omitempty"` + ApplicationLicenses []*string // Changes to application package references affect all new compute nodes joining the pool, but do not affect compute nodes // that are already in the pool until they are rebooted or reimaged. There is a // maximum of 10 application package references on any given pool. - ApplicationPackages []*ApplicationPackageReference `json:"applicationPackages,omitempty"` + ApplicationPackages []*ApplicationPackageReference // For Windows compute nodes, the Batch service installs the certificates to the specified certificate store and location. // For Linux compute nodes, the certificates are stored in a directory inside the @@ -1439,48 +1439,48 @@ type PoolProperties struct { // Warning: This property is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension // [https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide] // instead. - Certificates []*CertificateReference `json:"certificates,omitempty"` + Certificates []*CertificateReference // Using CloudServiceConfiguration specifies that the nodes should be creating using Azure Cloud Services (PaaS), while VirtualMachineConfiguration // uses Azure Virtual Machines (IaaS). - DeploymentConfiguration *DeploymentConfiguration `json:"deploymentConfiguration,omitempty"` + DeploymentConfiguration *DeploymentConfiguration // The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // This imposes restrictions on which nodes can be assigned to the pool. Enabling this value can reduce the chance of the // requested number of nodes to be allocated in the pool. If not specified, this // value defaults to 'Disabled'. - InterNodeCommunication *InterNodeCommunicationState `json:"interNodeCommunication,omitempty"` + InterNodeCommunication *InterNodeCommunicationState // The Batch service does not assign any meaning to metadata; it is solely for the use of user code. - Metadata []*MetadataItem `json:"metadata,omitempty"` + Metadata []*MetadataItem // This supports Azure Files, NFS, CIFS/SMB, and Blobfuse. - MountConfiguration []*MountConfiguration `json:"mountConfiguration,omitempty"` + MountConfiguration []*MountConfiguration // The network configuration for a pool. - NetworkConfiguration *NetworkConfiguration `json:"networkConfiguration,omitempty"` + NetworkConfiguration *NetworkConfiguration // Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes is specified, // or 'autoScale' which defines a formula which is periodically reevaluated. // If this property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes. - ScaleSettings *ScaleSettings `json:"scaleSettings,omitempty"` + ScaleSettings *ScaleSettings // In an PATCH (update) operation, this property can be set to an empty object to remove the start task from the pool. - StartTask *StartTask `json:"startTask,omitempty"` + StartTask *StartTask // If omitted, the default value is Default. - TargetNodeCommunicationMode *NodeCommunicationMode `json:"targetNodeCommunicationMode,omitempty"` + TargetNodeCommunicationMode *NodeCommunicationMode // If not specified, the default is spread. - TaskSchedulingPolicy *TaskSchedulingPolicy `json:"taskSchedulingPolicy,omitempty"` + TaskSchedulingPolicy *TaskSchedulingPolicy // The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256. - TaskSlotsPerNode *int32 `json:"taskSlotsPerNode,omitempty"` + TaskSlotsPerNode *int32 // The list of user accounts to be created on each node in the pool. - UserAccounts []*UserAccount `json:"userAccounts,omitempty"` + UserAccounts []*UserAccount // For information about available sizes of virtual machines for Cloud Services pools (pools created with cloudServiceConfiguration), // see Sizes for Cloud Services @@ -1492,66 +1492,66 @@ type PoolProperties struct { // (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports all Azure VM sizes // except STANDARDA0 and those with premium storage (STANDARDGS, STANDARDDS, and // STANDARDDSV2 series). - VMSize *string `json:"vmSize,omitempty"` + VMSize *string // READ-ONLY; Whether the pool is resizing. - AllocationState *AllocationState `json:"allocationState,omitempty" azure:"ro"` + AllocationState *AllocationState // READ-ONLY; The time at which the pool entered its current allocation state. - AllocationStateTransitionTime *time.Time `json:"allocationStateTransitionTime,omitempty" azure:"ro"` + AllocationStateTransitionTime *time.Time // READ-ONLY; This property is set only if the pool automatically scales, i.e. autoScaleSettings are used. - AutoScaleRun *AutoScaleRun `json:"autoScaleRun,omitempty" azure:"ro"` + AutoScaleRun *AutoScaleRun // READ-ONLY; The creation time of the pool. - CreationTime *time.Time `json:"creationTime,omitempty" azure:"ro"` + CreationTime *time.Time // READ-ONLY; The number of dedicated compute nodes currently in the pool. - CurrentDedicatedNodes *int32 `json:"currentDedicatedNodes,omitempty" azure:"ro"` + CurrentDedicatedNodes *int32 // READ-ONLY; The number of Spot/low-priority compute nodes currently in the pool. - CurrentLowPriorityNodes *int32 `json:"currentLowPriorityNodes,omitempty" azure:"ro"` + CurrentLowPriorityNodes *int32 // READ-ONLY; Determines how a pool communicates with the Batch service. - CurrentNodeCommunicationMode *NodeCommunicationMode `json:"currentNodeCommunicationMode,omitempty" azure:"ro"` + CurrentNodeCommunicationMode *NodeCommunicationMode // READ-ONLY; This is the last time at which the pool level data, such as the targetDedicatedNodes or autoScaleSettings, changed. // It does not factor in node-level changes such as a compute node changing state. - LastModified *time.Time `json:"lastModified,omitempty" azure:"ro"` + LastModified *time.Time // READ-ONLY; The current state of the pool. - ProvisioningState *PoolProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *PoolProvisioningState // READ-ONLY; The time at which the pool entered its current state. - ProvisioningStateTransitionTime *time.Time `json:"provisioningStateTransitionTime,omitempty" azure:"ro"` + ProvisioningStateTransitionTime *time.Time // READ-ONLY; Describes either the current operation (if the pool AllocationState is Resizing) or the previously completed // operation (if the AllocationState is Steady). - ResizeOperationStatus *ResizeOperationStatus `json:"resizeOperationStatus,omitempty" azure:"ro"` + ResizeOperationStatus *ResizeOperationStatus } // PrivateEndpoint - The private endpoint of the private endpoint connection. type PrivateEndpoint struct { // READ-ONLY; The ARM resource identifier of the private endpoint. This is of the form /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/privateEndpoints/{privateEndpoint}. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string } // PrivateEndpointConnection - Contains information about a private link resource. type PrivateEndpointConnection struct { // The properties associated with the private endpoint connection. - Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Properties *PrivateEndpointConnectionProperties // READ-ONLY; The ETag of the resource, used for concurrency statements. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The ID of the resource. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PrivateEndpointConnectionClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionClient.BeginDelete @@ -1587,34 +1587,34 @@ type PrivateEndpointConnectionClientListByBatchAccountOptions struct { // PrivateEndpointConnectionProperties - Private endpoint connection properties. type PrivateEndpointConnectionProperties struct { // The private link service connection state of the private endpoint connection - PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState // READ-ONLY; The value has one and only one group id. - GroupIDs []*string `json:"groupIds,omitempty" azure:"ro"` + GroupIDs []*string // READ-ONLY; The private endpoint of the private endpoint connection. - PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty" azure:"ro"` + PrivateEndpoint *PrivateEndpoint // READ-ONLY; The provisioning state of the private endpoint connection. - ProvisioningState *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *PrivateEndpointConnectionProvisioningState } // PrivateLinkResource - Contains information about a private link resource. type PrivateLinkResource struct { // The properties associated with the private link resource. - Properties *PrivateLinkResourceProperties `json:"properties,omitempty"` + Properties *PrivateLinkResourceProperties // READ-ONLY; The ETag of the resource, used for concurrency statements. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The ID of the resource. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PrivateLinkResourceClientGetOptions contains the optional parameters for the PrivateLinkResourceClient.Get method. @@ -1632,40 +1632,40 @@ type PrivateLinkResourceClientListByBatchAccountOptions struct { // PrivateLinkResourceProperties - Private link resource properties. type PrivateLinkResourceProperties struct { // READ-ONLY; The group id is used to establish the private link connection. - GroupID *string `json:"groupId,omitempty" azure:"ro"` + GroupID *string // READ-ONLY; The list of required members that are used to establish the private link connection. - RequiredMembers []*string `json:"requiredMembers,omitempty" azure:"ro"` + RequiredMembers []*string // READ-ONLY; The list of required zone names for the private DNS resource name - RequiredZoneNames []*string `json:"requiredZoneNames,omitempty" azure:"ro"` + RequiredZoneNames []*string } // PrivateLinkServiceConnectionState - The private link service connection state of the private endpoint connection type PrivateLinkServiceConnectionState struct { // REQUIRED; The status of the Batch private endpoint connection - Status *PrivateLinkServiceConnectionStatus `json:"status,omitempty"` + Status *PrivateLinkServiceConnectionStatus // Description of the private Connection state - Description *string `json:"description,omitempty"` + Description *string // READ-ONLY; Action required on the private connection state - ActionRequired *string `json:"actionsRequired,omitempty" azure:"ro"` + ActionRequired *string } // ProxyResource - A definition of an Azure resource. type ProxyResource struct { // READ-ONLY; The ETag of the resource, used for concurrency statements. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The ID of the resource. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PublicIPAddressConfiguration - The public IP Address configuration of the networking configuration of a Pool. @@ -1673,81 +1673,81 @@ type PublicIPAddressConfiguration struct { // The number of IPs specified here limits the maximum size of the Pool - 100 dedicated nodes or 100 Spot/low-priority nodes // can be allocated for each public IP. For example, a pool needing 250 dedicated // VMs would need at least 3 public IPs specified. Each element of this collection is of the form: /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}. - IPAddressIDs []*string `json:"ipAddressIds,omitempty"` + IPAddressIDs []*string // The default value is BatchManaged - Provision *IPAddressProvisioningType `json:"provision,omitempty"` + Provision *IPAddressProvisioningType } // ResizeError - An error that occurred when resizing a pool. type ResizeError struct { // REQUIRED; An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - Code *string `json:"code,omitempty"` + Code *string // REQUIRED; A message describing the error, intended to be suitable for display in a user interface. - Message *string `json:"message,omitempty"` + Message *string // Additional details about the error. - Details []*ResizeError `json:"details,omitempty"` + Details []*ResizeError } // ResizeOperationStatus - Describes either the current operation (if the pool AllocationState is Resizing) or the previously // completed operation (if the AllocationState is Steady). type ResizeOperationStatus struct { // This property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady. - Errors []*ResizeError `json:"errors,omitempty"` + Errors []*ResizeError // The default value is requeue. - NodeDeallocationOption *ComputeNodeDeallocationOption `json:"nodeDeallocationOption,omitempty"` + NodeDeallocationOption *ComputeNodeDeallocationOption // The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch // service returns an error; if you are calling the REST API directly, the HTTP // status code is 400 (Bad Request). - ResizeTimeout *string `json:"resizeTimeout,omitempty"` + ResizeTimeout *string // The time when this resize operation was started. - StartTime *time.Time `json:"startTime,omitempty"` + StartTime *time.Time // The desired number of dedicated compute nodes in the pool. - TargetDedicatedNodes *int32 `json:"targetDedicatedNodes,omitempty"` + TargetDedicatedNodes *int32 // The desired number of Spot/low-priority compute nodes in the pool. - TargetLowPriorityNodes *int32 `json:"targetLowPriorityNodes,omitempty"` + TargetLowPriorityNodes *int32 } // Resource - A definition of an Azure resource. type Resource struct { // READ-ONLY; The ID of the resource. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The location of the resource. - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; The name of the resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The tags of the resource. - Tags map[string]*string `json:"tags,omitempty" azure:"ro"` + Tags map[string]*string // READ-ONLY; The type of the resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ResourceFile - A single file or multiple files to be downloaded to a compute node. type ResourceFile struct { // The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be // specified. - AutoStorageContainerName *string `json:"autoStorageContainerName,omitempty"` + AutoStorageContainerName *string // The property is valid only when autoStorageContainerName or storageContainerUrl is used. This prefix can be a partial filename // or a subdirectory. If a prefix is not specified, all the files in the // container will be downloaded. - BlobPrefix *string `json:"blobPrefix,omitempty"` + BlobPrefix *string // This property applies only to files being downloaded to Linux compute nodes. It will be ignored if it is specified for // a resourceFile which will be downloaded to a Windows node. If this property is // not specified for a Linux node, then a default value of 0770 is applied to the file. - FileMode *string `json:"fileMode,omitempty"` + FileMode *string // If the httpUrl property is specified, the filePath is required and describes the path which the file will be downloaded // to, including the filename. Otherwise, if the autoStorageContainerName or @@ -1756,33 +1756,33 @@ type ResourceFile struct { // associated with the input data will be retained in full and appended to the specified filePath directory. The specified // relative path cannot break out of the task's working directory (for example by // using '..'). - FilePath *string `json:"filePath,omitempty"` + FilePath *string // The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be // specified. If the URL points to Azure Blob Storage, it must be readable from // compute nodes. There are three ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) // granting read permissions on the blob, use a managed identity with read // permission, or set the ACL for the blob or its container to allow public access. - HTTPURL *string `json:"httpUrl,omitempty"` + HTTPURL *string // The reference to a user assigned identity associated with the Batch pool which a compute node will use. - IdentityReference *ComputeNodeIdentityReference `json:"identityReference,omitempty"` + IdentityReference *ComputeNodeIdentityReference // The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be // specified. This URL must be readable and listable from compute nodes. There are // three ways to get such a URL for a container in Azure storage: include a Shared Access Signature (SAS) granting read and // list permissions on the container, use a managed identity with read and list // permissions, or set the ACL for the container to allow public access. - StorageContainerURL *string `json:"storageContainerUrl,omitempty"` + StorageContainerURL *string } // SKUCapability - A SKU capability, such as the number of cores. type SKUCapability struct { // READ-ONLY; The name of the feature. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The value of the feature. - Value *string `json:"value,omitempty" azure:"ro"` + Value *string } // ScaleSettings - Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes @@ -1790,10 +1790,10 @@ type SKUCapability struct { // If this property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes. type ScaleSettings struct { // This property and fixedScale are mutually exclusive and one of the properties must be specified. - AutoScale *AutoScaleSettings `json:"autoScale,omitempty"` + AutoScale *AutoScaleSettings // This property and autoScale are mutually exclusive and one of the properties must be specified. - FixedScale *FixedScaleSettings `json:"fixedScale,omitempty"` + FixedScale *FixedScaleSettings } // StartTask - In some cases the start task may be re-run even though the node was not rebooted. Due to this, start tasks @@ -1806,28 +1806,28 @@ type StartTask struct { // variable expansion. If you want to take advantage of such features, you should // invoke the shell in the command line, for example using "cmd /c MyCommand" in Windows or "/bin/sh -c MyCommand" in Linux. // Required if any other properties of the startTask are specified. - CommandLine *string `json:"commandLine,omitempty"` + CommandLine *string // When this is specified, all directories recursively below the AZBATCHNODEROOTDIR (the root of Azure Batch directories on // the node) are mapped into the container, all task environment variables are // mapped into the container, and the task command line is executed in the container. - ContainerSettings *TaskContainerSettings `json:"containerSettings,omitempty"` + ContainerSettings *TaskContainerSettings // A list of environment variable settings for the start task. - EnvironmentSettings []*EnvironmentSetting `json:"environmentSettings,omitempty"` + EnvironmentSettings []*EnvironmentSetting // The Batch service retries a task if its exit code is nonzero. Note that this value specifically controls the number of // retries. The Batch service will try the task once, and may then retry up to this // limit. For example, if the maximum retry count is 3, Batch tries the task up to 4 times (one initial try and 3 retries). // If the maximum retry count is 0, the Batch service does not retry the task. If // the maximum retry count is -1, the Batch service retries the task without limit. - MaxTaskRetryCount *int32 `json:"maxTaskRetryCount,omitempty"` + MaxTaskRetryCount *int32 // A list of files that the Batch service will download to the compute node before running the command line. - ResourceFiles []*ResourceFile `json:"resourceFiles,omitempty"` + ResourceFiles []*ResourceFile // If omitted, the task runs as a non-administrative user unique to the task. - UserIdentity *UserIdentity `json:"userIdentity,omitempty"` + UserIdentity *UserIdentity // If true and the start task fails on a compute node, the Batch service retries the start task up to its maximum retry count // (maxTaskRetryCount). If the task has still not completed successfully after @@ -1836,119 +1836,119 @@ type StartTask struct { // Batch service will not wait for the start task to complete. In this case, other tasks can start executing on the compute // node while the start task is still running; and even if the start task fails, // new tasks will continue to be scheduled on the node. The default is true. - WaitForSuccess *bool `json:"waitForSuccess,omitempty"` + WaitForSuccess *bool } // SupportedSKU - Describes a Batch supported SKU. type SupportedSKU struct { // READ-ONLY; A collection of capabilities which this SKU supports. - Capabilities []*SKUCapability `json:"capabilities,omitempty" azure:"ro"` + Capabilities []*SKUCapability // READ-ONLY; The family name of the SKU. - FamilyName *string `json:"familyName,omitempty" azure:"ro"` + FamilyName *string // READ-ONLY; The name of the SKU. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string } // SupportedSKUsResult - The Batch List supported SKUs operation response. type SupportedSKUsResult struct { // REQUIRED; The list of SKUs available for the Batch service in the location. - Value []*SupportedSKU `json:"value,omitempty"` + Value []*SupportedSKU // READ-ONLY; The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // TaskContainerSettings - The container settings for a task. type TaskContainerSettings struct { // REQUIRED; This is the full image reference, as would be specified to "docker pull". If no tag is provided as part of the // image name, the tag ":latest" is used as a default. - ImageName *string `json:"imageName,omitempty"` + ImageName *string // These additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the // Batch Service. - ContainerRunOptions *string `json:"containerRunOptions,omitempty"` + ContainerRunOptions *string // This setting can be omitted if was already provided at pool creation. - Registry *ContainerRegistry `json:"registry,omitempty"` + Registry *ContainerRegistry // A flag to indicate where the container task working directory is. The default is 'taskWorkingDirectory'. - WorkingDirectory *ContainerWorkingDirectory `json:"workingDirectory,omitempty"` + WorkingDirectory *ContainerWorkingDirectory } // TaskSchedulingPolicy - Specifies how tasks should be distributed across compute nodes. type TaskSchedulingPolicy struct { // REQUIRED; How tasks should be distributed across compute nodes. - NodeFillType *ComputeNodeFillType `json:"nodeFillType,omitempty"` + NodeFillType *ComputeNodeFillType } // UserAccount - Properties used to create a user on an Azure Batch node. type UserAccount struct { // REQUIRED; The name of the user account. Names can contain any Unicode characters up to a maximum length of 20. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; The password for the user account. - Password *string `json:"password,omitempty"` + Password *string // nonAdmin - The auto user is a standard user without elevated access. admin - The auto user is a user with elevated access // and operates with full Administrator permissions. The default value is // nonAdmin. - ElevationLevel *ElevationLevel `json:"elevationLevel,omitempty"` + ElevationLevel *ElevationLevel // This property is ignored if specified on a Windows pool. If not specified, the user is created with the default options. - LinuxUserConfiguration *LinuxUserConfiguration `json:"linuxUserConfiguration,omitempty"` + LinuxUserConfiguration *LinuxUserConfiguration // This property can only be specified if the user is on a Windows pool. If not specified and on a Windows pool, the user // is created with the default options. - WindowsUserConfiguration *WindowsUserConfiguration `json:"windowsUserConfiguration,omitempty"` + WindowsUserConfiguration *WindowsUserConfiguration } // UserAssignedIdentities - The list of associated user identities. type UserAssignedIdentities struct { // READ-ONLY; The client id of user assigned identity. - ClientID *string `json:"clientId,omitempty" azure:"ro"` + ClientID *string // READ-ONLY; The principal id of user assigned identity. - PrincipalID *string `json:"principalId,omitempty" azure:"ro"` + PrincipalID *string } // UserIdentity - Specify either the userName or autoUser property, but not both. type UserIdentity struct { // The userName and autoUser properties are mutually exclusive; you must specify one but not both. - AutoUser *AutoUserSpecification `json:"autoUser,omitempty"` + AutoUser *AutoUserSpecification // The userName and autoUser properties are mutually exclusive; you must specify one but not both. - UserName *string `json:"userName,omitempty"` + UserName *string } // VMExtension - The configuration for virtual machine extensions. type VMExtension struct { // REQUIRED; The name of the virtual machine extension. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; The name of the extension handler publisher. - Publisher *string `json:"publisher,omitempty"` + Publisher *string // REQUIRED; The type of the extensions. - Type *string `json:"type,omitempty"` + Type *string // Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, // however, the extension will not upgrade minor versions unless redeployed, even // with this property set to true. - AutoUpgradeMinorVersion *bool `json:"autoUpgradeMinorVersion,omitempty"` + AutoUpgradeMinorVersion *bool // The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - ProtectedSettings any `json:"protectedSettings,omitempty"` + ProtectedSettings any // Collection of extension names after which this extension needs to be provisioned. - ProvisionAfterExtensions []*string `json:"provisionAfterExtensions,omitempty"` + ProvisionAfterExtensions []*string // JSON formatted public settings for the extension. - Settings any `json:"settings,omitempty"` + Settings any // The version of script handler. - TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"` + TypeHandlerVersion *string } // VirtualMachineConfiguration - The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure. @@ -1956,63 +1956,63 @@ type VirtualMachineConfiguration struct { // REQUIRED; A reference to an Azure Virtual Machines Marketplace image or the Azure Image resource of a custom Virtual Machine. // To get the list of all imageReferences verified by Azure Batch, see the 'List // supported node agent SKUs' operation. - ImageReference *ImageReference `json:"imageReference,omitempty"` + ImageReference *ImageReference // REQUIRED; The Batch node agent is a program that runs on each node in the pool, and provides the command-and-control interface // between the node and the Batch service. There are different implementations of the // node agent, known as SKUs, for different operating systems. You must specify a node agent SKU which matches the selected // image reference. To get the list of supported node agent SKUs along with their // list of verified image references, see the 'List supported node agent SKUs' operation. - NodeAgentSKUID *string `json:"nodeAgentSkuId,omitempty"` + NodeAgentSKUID *string // If specified, setup is performed on each node in the pool to allow tasks to run in containers. All regular tasks and job // manager tasks run on this pool must specify the containerSettings property, and // all other tasks may specify it. - ContainerConfiguration *ContainerConfiguration `json:"containerConfiguration,omitempty"` + ContainerConfiguration *ContainerConfiguration // This property must be specified if the compute nodes in the pool need to have empty data disks attached to them. - DataDisks []*DataDisk `json:"dataDisks,omitempty"` + DataDisks []*DataDisk // If specified, encryption is performed on each node in the pool during node provisioning. - DiskEncryptionConfiguration *DiskEncryptionConfiguration `json:"diskEncryptionConfiguration,omitempty"` + DiskEncryptionConfiguration *DiskEncryptionConfiguration // If specified, the extensions mentioned in this configuration will be installed on each node. - Extensions []*VMExtension `json:"extensions,omitempty"` + Extensions []*VMExtension // This only applies to images that contain the Windows operating system, and should only be used when you hold valid on-premises // licenses for the nodes which will be deployed. If omitted, no on-premises // licensing discount is applied. Values are: // WindowsServer - The on-premises license is for Windows Server. WindowsClient - The on-premises license is for Windows Client. - LicenseType *string `json:"licenseType,omitempty"` + LicenseType *string // This configuration will specify rules on how nodes in the pool will be physically allocated. - NodePlacementConfiguration *NodePlacementConfiguration `json:"nodePlacementConfiguration,omitempty"` + NodePlacementConfiguration *NodePlacementConfiguration // Contains configuration for ephemeral OSDisk settings. - OSDisk *OSDisk `json:"osDisk,omitempty"` + OSDisk *OSDisk // This property must not be specified if the imageReference specifies a Linux OS image. - WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"` + WindowsConfiguration *WindowsConfiguration } // VirtualMachineFamilyCoreQuota - A VM Family and its associated core quota for the Batch account. type VirtualMachineFamilyCoreQuota struct { // READ-ONLY; The core quota for the VM family for the Batch account. - CoreQuota *int32 `json:"coreQuota,omitempty" azure:"ro"` + CoreQuota *int32 // READ-ONLY; The Virtual Machine family name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string } // WindowsConfiguration - Windows operating system settings to apply to the virtual machine. type WindowsConfiguration struct { // If omitted, the default value is true. - EnableAutomaticUpdates *bool `json:"enableAutomaticUpdates,omitempty"` + EnableAutomaticUpdates *bool } // WindowsUserConfiguration - Properties used to create a user account on a Windows node. type WindowsUserConfiguration struct { // Specifies login mode for the user. The default value for VirtualMachineConfiguration pools is interactive mode and for // CloudServiceConfiguration pools is batch mode. - LoginMode *LoginMode `json:"loginMode,omitempty"` + LoginMode *LoginMode } diff --git a/sdk/resourcemanager/batch/armbatch/models_serde.go b/sdk/resourcemanager/batch/armbatch/models_serde.go index 55d4cf76f663..7926e00e5bbd 100644 --- a/sdk/resourcemanager/batch/armbatch/models_serde.go +++ b/sdk/resourcemanager/batch/armbatch/models_serde.go @@ -2643,7 +2643,7 @@ func (o Operation) MarshalJSON() ([]byte, error) { populate(objectMap, "isDataAction", o.IsDataAction) populate(objectMap, "name", o.Name) populate(objectMap, "origin", o.Origin) - populate(objectMap, "properties", &o.Properties) + populateAny(objectMap, "properties", o.Properties) return json.Marshal(objectMap) } @@ -3870,10 +3870,10 @@ func (v VMExtension) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "autoUpgradeMinorVersion", v.AutoUpgradeMinorVersion) populate(objectMap, "name", v.Name) - populate(objectMap, "protectedSettings", &v.ProtectedSettings) + populateAny(objectMap, "protectedSettings", v.ProtectedSettings) populate(objectMap, "provisionAfterExtensions", v.ProvisionAfterExtensions) populate(objectMap, "publisher", v.Publisher) - populate(objectMap, "settings", &v.Settings) + populateAny(objectMap, "settings", v.Settings) populate(objectMap, "type", v.Type) populate(objectMap, "typeHandlerVersion", v.TypeHandlerVersion) return json.Marshal(objectMap) @@ -4078,6 +4078,16 @@ func populate(m map[string]any, k string, v any) { } } +func populateAny(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else { + m[k] = v + } +} + func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil diff --git a/sdk/resourcemanager/blueprint/armblueprint/CHANGELOG.md b/sdk/resourcemanager/blueprint/armblueprint/CHANGELOG.md index 3fe46bb74d72..1cafd3d701ba 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/CHANGELOG.md +++ b/sdk/resourcemanager/blueprint/armblueprint/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 0.6.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + + ## 0.6.0 (2023-04-03) ### Features Added diff --git a/sdk/resourcemanager/blueprint/armblueprint/autorest.md b/sdk/resourcemanager/blueprint/armblueprint/autorest.md index 30d01c8ce36a..a20acd4071ca 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/autorest.md +++ b/sdk/resourcemanager/blueprint/armblueprint/autorest.md @@ -8,5 +8,5 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/f790e624d0d080b89d962a3bd19c65bc6a6b2f5e/specification/blueprint/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/f790e624d0d080b89d962a3bd19c65bc6a6b2f5e/specification/blueprint/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.6.0 +module-version: 0.6.1 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/blueprint/armblueprint/constants.go b/sdk/resourcemanager/blueprint/armblueprint/constants.go index 9ce88f13ae06..3da7ac888744 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/constants.go +++ b/sdk/resourcemanager/blueprint/armblueprint/constants.go @@ -11,7 +11,7 @@ package armblueprint const ( moduleName = "armblueprint" - moduleVersion = "v0.6.0" + moduleVersion = "v0.6.1" ) // ArtifactKind - Specifies the kind of blueprint artifact. diff --git a/sdk/resourcemanager/blueprint/armblueprint/models.go b/sdk/resourcemanager/blueprint/armblueprint/models.go index 181ff2e96506..fc48e8276b1f 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/models.go +++ b/sdk/resourcemanager/blueprint/armblueprint/models.go @@ -23,16 +23,16 @@ type ArtifactClassification interface { // Artifact - Represents a blueprint artifact. type Artifact struct { // REQUIRED; Specifies the kind of blueprint artifact. - Kind *ArtifactKind `json:"kind,omitempty"` + Kind *ArtifactKind // READ-ONLY; String Id used to locate any resource on Azure. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Name of this resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GetArtifact implements the ArtifactClassification interface for type Artifact. @@ -41,10 +41,10 @@ func (a *Artifact) GetArtifact() *Artifact { return a } // ArtifactList - List of blueprint artifacts. type ArtifactList struct { // List of blueprint artifacts. - Value []ArtifactClassification `json:"value,omitempty"` + Value []ArtifactClassification // READ-ONLY; Link to the next page of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // ArtifactsClientCreateOrUpdateOptions contains the optional parameters for the ArtifactsClient.CreateOrUpdate method. @@ -70,79 +70,79 @@ type ArtifactsClientListOptions struct { // Assignment - Represents a blueprint assignment. type Assignment struct { // REQUIRED; Managed identity for this blueprint assignment. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` + Identity *ManagedServiceIdentity // REQUIRED; The location of this blueprint assignment. - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; Properties for blueprint assignment object. - Properties *AssignmentProperties `json:"properties,omitempty"` + Properties *AssignmentProperties // READ-ONLY; String Id used to locate any resource on Azure. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Name of this resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // AssignmentDeploymentJob - Represents individual job in given blueprint assignment operation. type AssignmentDeploymentJob struct { // Name of the action performed in this job. - Action *string `json:"action,omitempty"` + Action *string // Result of this deployment job for each retry. - History []*AssignmentDeploymentJobResult `json:"history,omitempty"` + History []*AssignmentDeploymentJobResult // Id of this job. - JobID *string `json:"jobId,omitempty"` + JobID *string // State of this job. - JobState *string `json:"jobState,omitempty"` + JobState *string // Kind of job. - Kind *string `json:"kind,omitempty"` + Kind *string // Reference to deployment job resource id. - RequestURI *string `json:"requestUri,omitempty"` + RequestURI *string // Deployment job result. - Result *AssignmentDeploymentJobResult `json:"result,omitempty"` + Result *AssignmentDeploymentJobResult } // AssignmentDeploymentJobResult - Result of each individual deployment in a blueprint assignment. type AssignmentDeploymentJobResult struct { // Contains error details if deployment job failed. - Error *AzureResourceManagerError `json:"error,omitempty"` + Error *AzureResourceManagerError // Resources created as result of the deployment job. - Resources []*AssignmentJobCreatedResource `json:"resources,omitempty"` + Resources []*AssignmentJobCreatedResource } // AssignmentJobCreatedResource - Azure resource created from deployment job. type AssignmentJobCreatedResource struct { // Additional properties in a dictionary. - Properties map[string]*string `json:"properties,omitempty"` + Properties map[string]*string // READ-ONLY; String Id used to locate any resource on Azure. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Name of this resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // AssignmentList - List of blueprint assignments type AssignmentList struct { // List of blueprint assignments. - Value []*Assignment `json:"value,omitempty"` + Value []*Assignment // READ-ONLY; Link to the next page of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // AssignmentLockSettings - Defines how resources deployed by a blueprint assignment are locked. @@ -153,58 +153,58 @@ type AssignmentLockSettings struct { // If the lock mode is set to 'AllResourcesDoNotDelete', then // the following actions are automatically appended to 'excludedActions': 'Microsoft.Authorization/locks/delete'. Duplicate // actions will get removed. - ExcludedActions []*string `json:"excludedActions,omitempty"` + ExcludedActions []*string // List of AAD principals excluded from blueprint locks. Up to 5 principals are permitted. - ExcludedPrincipals []*string `json:"excludedPrincipals,omitempty"` + ExcludedPrincipals []*string // Lock mode. - Mode *AssignmentLockMode `json:"mode,omitempty"` + Mode *AssignmentLockMode } // AssignmentOperation - Represents underlying deployment detail for each update to the blueprint assignment. type AssignmentOperation struct { // Properties for AssignmentOperation. - Properties *AssignmentOperationProperties `json:"properties,omitempty"` + Properties *AssignmentOperationProperties // READ-ONLY; String Id used to locate any resource on Azure. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Name of this resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // AssignmentOperationList - List of AssignmentOperation. type AssignmentOperationList struct { // List of AssignmentOperation. - Value []*AssignmentOperation `json:"value,omitempty"` + Value []*AssignmentOperation // READ-ONLY; Link to the next page of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // AssignmentOperationProperties - Properties of AssignmentOperation. type AssignmentOperationProperties struct { // State of this blueprint assignment operation. - AssignmentState *string `json:"assignmentState,omitempty"` + AssignmentState *string // The published version of the blueprint definition used for the blueprint assignment operation. - BlueprintVersion *string `json:"blueprintVersion,omitempty"` + BlueprintVersion *string // List of jobs in this blueprint assignment operation. - Deployments []*AssignmentDeploymentJob `json:"deployments,omitempty"` + Deployments []*AssignmentDeploymentJob // Create time of this blueprint assignment operation. - TimeCreated *string `json:"timeCreated,omitempty"` + TimeCreated *string // Finish time of the overall underlying deployments. - TimeFinished *string `json:"timeFinished,omitempty"` + TimeFinished *string // Start time of the underlying deployment. - TimeStarted *string `json:"timeStarted,omitempty"` + TimeStarted *string } // AssignmentOperationsClientGetOptions contains the optional parameters for the AssignmentOperationsClient.Get method. @@ -221,44 +221,44 @@ type AssignmentOperationsClientListOptions struct { // AssignmentProperties - Detailed properties for a blueprint assignment. type AssignmentProperties struct { // REQUIRED; Blueprint assignment parameter values. - Parameters map[string]*ParameterValue `json:"parameters,omitempty"` + Parameters map[string]*ParameterValue // REQUIRED; Names and locations of resource group placeholders. - ResourceGroups map[string]*ResourceGroupValue `json:"resourceGroups,omitempty"` + ResourceGroups map[string]*ResourceGroupValue // ID of the published version of a blueprint definition. - BlueprintID *string `json:"blueprintId,omitempty"` + BlueprintID *string // Multi-line explain this resource. - Description *string `json:"description,omitempty"` + Description *string // One-liner string explain this resource. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Defines how resources deployed by a blueprint assignment are locked. - Locks *AssignmentLockSettings `json:"locks,omitempty"` + Locks *AssignmentLockSettings // The target subscription scope of the blueprint assignment (format: '/subscriptions/{subscriptionId}'). For management group // level assignments, the property is required. - Scope *string `json:"scope,omitempty"` + Scope *string // READ-ONLY; State of the blueprint assignment. - ProvisioningState *AssignmentProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *AssignmentProvisioningState // READ-ONLY; Status of blueprint assignment. This field is readonly. - Status *AssignmentStatus `json:"status,omitempty" azure:"ro"` + Status *AssignmentStatus } // AssignmentStatus - The status of a blueprint assignment. This field is readonly. type AssignmentStatus struct { // READ-ONLY; Last modified time of this blueprint definition. - LastModified *time.Time `json:"lastModified,omitempty" azure:"ro"` + LastModified *time.Time // READ-ONLY; List of resources that were created by the blueprint assignment. - ManagedResources []*string `json:"managedResources,omitempty" azure:"ro"` + ManagedResources []*string // READ-ONLY; Creation time of this blueprint definition. - TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"` + TimeCreated *time.Time } // AssignmentsClientCreateOrUpdateOptions contains the optional parameters for the AssignmentsClient.CreateOrUpdate method. @@ -290,37 +290,37 @@ type AssignmentsClientWhoIsBlueprintOptions struct { // AzureResourceBase - Common properties for all Azure resources. type AzureResourceBase struct { // READ-ONLY; String Id used to locate any resource on Azure. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Name of this resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // AzureResourceManagerError - Error code and message type AzureResourceManagerError struct { // Error code. - Code *string `json:"code,omitempty"` + Code *string // Error message. - Message *string `json:"message,omitempty"` + Message *string } // Blueprint - Represents a Blueprint definition. type Blueprint struct { // REQUIRED; Detailed properties for blueprint definition. - Properties *Properties `json:"properties,omitempty"` + Properties *Properties // READ-ONLY; String Id used to locate any resource on Azure. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Name of this resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // BlueprintsClientCreateOrUpdateOptions contains the optional parameters for the BlueprintsClient.CreateOrUpdate method. @@ -346,115 +346,115 @@ type BlueprintsClientListOptions struct { // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. - Info any `json:"info,omitempty" azure:"ro"` + Info any // READ-ONLY; The additional info type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. // (This also follows the OData error response format.) type ErrorResponse struct { // READ-ONLY; The error additional info. - AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` + AdditionalInfo []*ErrorAdditionalInfo // READ-ONLY; The error code. - Code *string `json:"code,omitempty" azure:"ro"` + Code *string // READ-ONLY; The error details. - Details []*ErrorResponse `json:"details,omitempty" azure:"ro"` + Details []*ErrorResponse // READ-ONLY; The error message. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string // READ-ONLY; The error target. - Target *string `json:"target,omitempty" azure:"ro"` + Target *string } // KeyVaultReference - Specifies the link to a Key Vault. type KeyVaultReference struct { // REQUIRED; Azure resource ID of the Key Vault. - ID *string `json:"id,omitempty"` + ID *string } // List of blueprint definitions. type List struct { // List of blueprint definitions. - Value []*Blueprint `json:"value,omitempty"` + Value []*Blueprint // READ-ONLY; Link to the next page of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // ManagedServiceIdentity - Managed identity generic object. type ManagedServiceIdentity struct { // REQUIRED; Type of the managed identity. - Type *ManagedServiceIdentityType `json:"type,omitempty"` + Type *ManagedServiceIdentityType // Azure Active Directory principal ID associated with this Identity. - PrincipalID *string `json:"principalId,omitempty"` + PrincipalID *string // ID of the Azure Active Directory. - TenantID *string `json:"tenantId,omitempty"` + TenantID *string // The list of user-assigned managed identities associated with the resource. Key is the Azure resource Id of the managed // identity. - UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities,omitempty"` + UserAssignedIdentities map[string]*UserAssignedIdentity } // ParameterDefinition - Represent a parameter with constrains and metadata. type ParameterDefinition struct { // REQUIRED; Allowed data types for Resource Manager template parameters. - Type *TemplateParameterType `json:"type,omitempty"` + Type *TemplateParameterType // Array of allowed values for this parameter. - AllowedValues []any `json:"allowedValues,omitempty"` + AllowedValues []any // Default Value for this parameter. - DefaultValue any `json:"defaultValue,omitempty"` + DefaultValue any // User-friendly properties for this parameter. - Metadata *ParameterDefinitionMetadata `json:"metadata,omitempty"` + Metadata *ParameterDefinitionMetadata } // ParameterDefinitionMetadata - User-friendly properties for this parameter. type ParameterDefinitionMetadata struct { // Description of this parameter/resourceGroup. - Description *string `json:"description,omitempty"` + Description *string // DisplayName of this parameter/resourceGroup. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // StrongType for UI to render rich experience during blueprint assignment. Supported strong types are resourceType, principalId // and location. - StrongType *string `json:"strongType,omitempty"` + StrongType *string } // ParameterValue - Value for the specified parameter. Can be either 'value' or 'reference' but not both. type ParameterValue struct { // Parameter value as reference type. - Reference *SecretValueReference `json:"reference,omitempty"` + Reference *SecretValueReference // Parameter value. Any valid JSON value is allowed including objects, arrays, strings, numbers and booleans. - Value any `json:"value,omitempty"` + Value any } // PolicyAssignmentArtifact - Blueprint artifact that applies a Policy assignment. type PolicyAssignmentArtifact struct { // REQUIRED; Specifies the kind of blueprint artifact. - Kind *ArtifactKind `json:"kind,omitempty"` + Kind *ArtifactKind // REQUIRED; properties for policyAssignment Artifact - Properties *PolicyAssignmentArtifactProperties `json:"properties,omitempty"` + Properties *PolicyAssignmentArtifactProperties // READ-ONLY; String Id used to locate any resource on Azure. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Name of this resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GetArtifact implements the ArtifactClassification interface for type PolicyAssignmentArtifact. @@ -470,49 +470,49 @@ func (p *PolicyAssignmentArtifact) GetArtifact() *Artifact { // PolicyAssignmentArtifactProperties - Properties of a Policy assignment blueprint artifact. type PolicyAssignmentArtifactProperties struct { // REQUIRED; Parameter values for the policy definition. - Parameters map[string]*ParameterValue `json:"parameters,omitempty"` + Parameters map[string]*ParameterValue // REQUIRED; Azure resource ID of the policy definition. - PolicyDefinitionID *string `json:"policyDefinitionId,omitempty"` + PolicyDefinitionID *string // Artifacts which need to be deployed before the specified artifact. - DependsOn []*string `json:"dependsOn,omitempty"` + DependsOn []*string // Multi-line explain this resource. - Description *string `json:"description,omitempty"` + Description *string // One-liner string explain this resource. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Name of the resource group placeholder to which the policy will be assigned. - ResourceGroup *string `json:"resourceGroup,omitempty"` + ResourceGroup *string } // Properties - Schema for blueprint definition properties. type Properties struct { // Multi-line explain this resource. - Description *string `json:"description,omitempty"` + Description *string // One-liner string explain this resource. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Parameters required by this blueprint definition. - Parameters map[string]*ParameterDefinition `json:"parameters,omitempty"` + Parameters map[string]*ParameterDefinition // Resource group placeholders defined by this blueprint definition. - ResourceGroups map[string]*ResourceGroupDefinition `json:"resourceGroups,omitempty"` + ResourceGroups map[string]*ResourceGroupDefinition // The scope where this blueprint definition can be assigned. - TargetScope *BlueprintTargetScope `json:"targetScope,omitempty"` + TargetScope *BlueprintTargetScope // Published versions of this blueprint definition. - Versions any `json:"versions,omitempty"` + Versions any // READ-ONLY; Layout view of the blueprint definition for UI reference. - Layout any `json:"layout,omitempty" azure:"ro"` + Layout any // READ-ONLY; Status of the blueprint. This field is readonly. - Status *Status `json:"status,omitempty" azure:"ro"` + Status *Status } // PublishedArtifactsClientGetOptions contains the optional parameters for the PublishedArtifactsClient.Get method. @@ -528,52 +528,52 @@ type PublishedArtifactsClientListOptions struct { // PublishedBlueprint - Represents a published blueprint. type PublishedBlueprint struct { // REQUIRED; Detailed properties for published blueprint. - Properties *PublishedBlueprintProperties `json:"properties,omitempty"` + Properties *PublishedBlueprintProperties // READ-ONLY; String Id used to locate any resource on Azure. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Name of this resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PublishedBlueprintList - List of published blueprint definitions. type PublishedBlueprintList struct { // List of published blueprint definitions. - Value []*PublishedBlueprint `json:"value,omitempty"` + Value []*PublishedBlueprint // READ-ONLY; Link to the next page of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // PublishedBlueprintProperties - Schema for published blueprint definition properties. type PublishedBlueprintProperties struct { // Name of the published blueprint definition. - BlueprintName *string `json:"blueprintName,omitempty"` + BlueprintName *string // Version-specific change notes. - ChangeNotes *string `json:"changeNotes,omitempty"` + ChangeNotes *string // Multi-line explain this resource. - Description *string `json:"description,omitempty"` + Description *string // One-liner string explain this resource. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Parameters required by this blueprint definition. - Parameters map[string]*ParameterDefinition `json:"parameters,omitempty"` + Parameters map[string]*ParameterDefinition // Resource group placeholders defined by this blueprint definition. - ResourceGroups map[string]*ResourceGroupDefinition `json:"resourceGroups,omitempty"` + ResourceGroups map[string]*ResourceGroupDefinition // The scope where this blueprint definition can be assigned. - TargetScope *BlueprintTargetScope `json:"targetScope,omitempty"` + TargetScope *BlueprintTargetScope // READ-ONLY; Status of the blueprint. This field is readonly. - Status *Status `json:"status,omitempty" azure:"ro"` + Status *Status } // PublishedBlueprintsClientCreateOptions contains the optional parameters for the PublishedBlueprintsClient.Create method. @@ -600,85 +600,85 @@ type PublishedBlueprintsClientListOptions struct { // ResourceGroupDefinition - Represents an Azure resource group in a blueprint definition. type ResourceGroupDefinition struct { // Artifacts which need to be deployed before this resource group. - DependsOn []*string `json:"dependsOn,omitempty"` + DependsOn []*string // Location of this resourceGroup. Leave empty if the resource group location will be specified during the blueprint assignment. - Location *string `json:"location,omitempty"` + Location *string // User-friendly properties for this resource group. - Metadata *ParameterDefinitionMetadata `json:"metadata,omitempty"` + Metadata *ParameterDefinitionMetadata // Name of this resourceGroup. Leave empty if the resource group name will be specified during the blueprint assignment. - Name *string `json:"name,omitempty"` + Name *string // Tags to be assigned to this resource group. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // ResourceGroupValue - Represents an Azure resource group. type ResourceGroupValue struct { // Location of the resource group. - Location *string `json:"location,omitempty"` + Location *string // Name of the resource group. - Name *string `json:"name,omitempty"` + Name *string } // ResourceProviderOperation - Supported operations of this resource provider. type ResourceProviderOperation struct { // Display metadata associated with the operation. - Display *ResourceProviderOperationDisplay `json:"display,omitempty"` + Display *ResourceProviderOperationDisplay // Operation name, in format of {provider}/{resource}/{operation} - Name *string `json:"name,omitempty"` + Name *string } // ResourceProviderOperationDisplay - Display metadata associated with the operation. type ResourceProviderOperationDisplay struct { // Description of this operation. - Description *string `json:"description,omitempty"` + Description *string // Type of operation: get, read, delete, etc. - Operation *string `json:"operation,omitempty"` + Operation *string // Resource provider: Microsoft Blueprint. - Provider *string `json:"provider,omitempty"` + Provider *string // Resource on which the operation is performed. - Resource *string `json:"resource,omitempty"` + Resource *string } // ResourceProviderOperationList - Results of the request to list operations. type ResourceProviderOperationList struct { // List of operations supported by this resource provider. - Value []*ResourceProviderOperation `json:"value,omitempty"` + Value []*ResourceProviderOperation } // ResourceStatusBase - Shared status properties between all blueprint resources. type ResourceStatusBase struct { // READ-ONLY; Last modified time of this blueprint definition. - LastModified *time.Time `json:"lastModified,omitempty" azure:"ro"` + LastModified *time.Time // READ-ONLY; Creation time of this blueprint definition. - TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"` + TimeCreated *time.Time } // RoleAssignmentArtifact - Blueprint artifact that applies a Role assignment. type RoleAssignmentArtifact struct { // REQUIRED; Specifies the kind of blueprint artifact. - Kind *ArtifactKind `json:"kind,omitempty"` + Kind *ArtifactKind // REQUIRED; Properties for a Role assignment blueprint artifact. - Properties *RoleAssignmentArtifactProperties `json:"properties,omitempty"` + Properties *RoleAssignmentArtifactProperties // READ-ONLY; String Id used to locate any resource on Azure. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Name of this resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GetArtifact implements the ArtifactClassification interface for type RoleAssignmentArtifact. @@ -694,61 +694,61 @@ func (r *RoleAssignmentArtifact) GetArtifact() *Artifact { // RoleAssignmentArtifactProperties - Properties of a Role assignment blueprint artifact. type RoleAssignmentArtifactProperties struct { // REQUIRED; Array of user or group identities in Azure Active Directory. The roleDefinition will apply to each identity. - PrincipalIDs any `json:"principalIds,omitempty"` + PrincipalIDs any // REQUIRED; Azure resource ID of the RoleDefinition. - RoleDefinitionID *string `json:"roleDefinitionId,omitempty"` + RoleDefinitionID *string // Artifacts which need to be deployed before the specified artifact. - DependsOn []*string `json:"dependsOn,omitempty"` + DependsOn []*string // Multi-line explain this resource. - Description *string `json:"description,omitempty"` + Description *string // One-liner string explain this resource. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // RoleAssignment will be scope to this resourceGroup. If empty, it scopes to the subscription. - ResourceGroup *string `json:"resourceGroup,omitempty"` + ResourceGroup *string } // SecretValueReference - Reference to a Key Vault secret. type SecretValueReference struct { // REQUIRED; Specifies the reference to a given Azure Key Vault. - KeyVault *KeyVaultReference `json:"keyVault,omitempty"` + KeyVault *KeyVaultReference // REQUIRED; Name of the secret. - SecretName *string `json:"secretName,omitempty"` + SecretName *string // The version of the secret to use. If left blank, the latest version of the secret is used. - SecretVersion *string `json:"secretVersion,omitempty"` + SecretVersion *string } // Status - The status of the blueprint. This field is readonly. type Status struct { // READ-ONLY; Last modified time of this blueprint definition. - LastModified *time.Time `json:"lastModified,omitempty" azure:"ro"` + LastModified *time.Time // READ-ONLY; Creation time of this blueprint definition. - TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"` + TimeCreated *time.Time } // TemplateArtifact - Blueprint artifact that deploys a Resource Manager template. type TemplateArtifact struct { // REQUIRED; Specifies the kind of blueprint artifact. - Kind *ArtifactKind `json:"kind,omitempty"` + Kind *ArtifactKind // REQUIRED; Properties for a Resource Manager template blueprint artifact. - Properties *TemplateArtifactProperties `json:"properties,omitempty"` + Properties *TemplateArtifactProperties // READ-ONLY; String Id used to locate any resource on Azure. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Name of this resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GetArtifact implements the ArtifactClassification interface for type TemplateArtifact. @@ -764,51 +764,51 @@ func (t *TemplateArtifact) GetArtifact() *Artifact { // TemplateArtifactProperties - Properties of a Resource Manager template blueprint artifact. type TemplateArtifactProperties struct { // REQUIRED; Resource Manager template blueprint artifact parameter values. - Parameters map[string]*ParameterValue `json:"parameters,omitempty"` + Parameters map[string]*ParameterValue // REQUIRED; The Resource Manager template blueprint artifact body. - Template any `json:"template,omitempty"` + Template any // Artifacts which need to be deployed before the specified artifact. - DependsOn []*string `json:"dependsOn,omitempty"` + DependsOn []*string // Multi-line explain this resource. - Description *string `json:"description,omitempty"` + Description *string // One-liner string explain this resource. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // If applicable, the name of the resource group placeholder to which the Resource Manager template blueprint artifact will // be deployed. - ResourceGroup *string `json:"resourceGroup,omitempty"` + ResourceGroup *string } // TrackedResource - Common properties for all Azure tracked resources. type TrackedResource struct { // REQUIRED; The location of this blueprint assignment. - Location *string `json:"location,omitempty"` + Location *string // READ-ONLY; String Id used to locate any resource on Azure. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Name of this resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // UserAssignedIdentity - User-assigned managed identity. type UserAssignedIdentity struct { // Client App Id associated with this identity. - ClientID *string `json:"clientId,omitempty"` + ClientID *string // Azure Active Directory principal ID associated with this Identity. - PrincipalID *string `json:"principalId,omitempty"` + PrincipalID *string } // WhoIsBlueprintContract - Response schema for querying the Azure Blueprints service principal in the tenant. type WhoIsBlueprintContract struct { // AAD object Id of the Azure Blueprints service principal in the tenant. - ObjectID *string `json:"objectId,omitempty"` + ObjectID *string } diff --git a/sdk/resourcemanager/blueprint/armblueprint/models_serde.go b/sdk/resourcemanager/blueprint/armblueprint/models_serde.go index a3f57e2561dd..4c96c76d8767 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/models_serde.go +++ b/sdk/resourcemanager/blueprint/armblueprint/models_serde.go @@ -639,7 +639,7 @@ func (b *Blueprint) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo. func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "info", &e.Info) + populateAny(objectMap, "info", e.Info) populate(objectMap, "type", e.Type) return json.Marshal(objectMap) } @@ -811,7 +811,7 @@ func (m *ManagedServiceIdentity) UnmarshalJSON(data []byte) error { func (p ParameterDefinition) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "allowedValues", p.AllowedValues) - populate(objectMap, "defaultValue", &p.DefaultValue) + populateAny(objectMap, "defaultValue", p.DefaultValue) populate(objectMap, "metadata", p.Metadata) populate(objectMap, "type", p.Type) return json.Marshal(objectMap) @@ -885,7 +885,7 @@ func (p *ParameterDefinitionMetadata) UnmarshalJSON(data []byte) error { func (p ParameterValue) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "reference", p.Reference) - populate(objectMap, "value", &p.Value) + populateAny(objectMap, "value", p.Value) return json.Marshal(objectMap) } @@ -1007,12 +1007,12 @@ func (p Properties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "description", p.Description) populate(objectMap, "displayName", p.DisplayName) - populate(objectMap, "layout", &p.Layout) + populateAny(objectMap, "layout", p.Layout) populate(objectMap, "parameters", p.Parameters) populate(objectMap, "resourceGroups", p.ResourceGroups) populate(objectMap, "status", p.Status) populate(objectMap, "targetScope", p.TargetScope) - populate(objectMap, "versions", &p.Versions) + populateAny(objectMap, "versions", p.Versions) return json.Marshal(objectMap) } @@ -1433,7 +1433,7 @@ func (r RoleAssignmentArtifactProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "dependsOn", r.DependsOn) populate(objectMap, "description", r.Description) populate(objectMap, "displayName", r.DisplayName) - populate(objectMap, "principalIds", &r.PrincipalIDs) + populateAny(objectMap, "principalIds", r.PrincipalIDs) populate(objectMap, "resourceGroup", r.ResourceGroup) populate(objectMap, "roleDefinitionId", r.RoleDefinitionID) return json.Marshal(objectMap) @@ -1591,7 +1591,7 @@ func (t TemplateArtifactProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "displayName", t.DisplayName) populate(objectMap, "parameters", t.Parameters) populate(objectMap, "resourceGroup", t.ResourceGroup) - populate(objectMap, "template", &t.Template) + populateAny(objectMap, "template", t.Template) return json.Marshal(objectMap) } @@ -1737,6 +1737,16 @@ func populate(m map[string]any, k string, v any) { } } +func populateAny(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else { + m[k] = v + } +} + func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil diff --git a/sdk/resourcemanager/botservice/armbotservice/CHANGELOG.md b/sdk/resourcemanager/botservice/armbotservice/CHANGELOG.md index 0e7020269ca6..0aaa02914b99 100644 --- a/sdk/resourcemanager/botservice/armbotservice/CHANGELOG.md +++ b/sdk/resourcemanager/botservice/armbotservice/CHANGELOG.md @@ -1,5 +1,10 @@ # Release History +## 1.1.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + ## 1.1.0 (2023-03-28) ### Features Added diff --git a/sdk/resourcemanager/botservice/armbotservice/autorest.md b/sdk/resourcemanager/botservice/armbotservice/autorest.md index a71eb972cb6f..40bc96e36b06 100644 --- a/sdk/resourcemanager/botservice/armbotservice/autorest.md +++ b/sdk/resourcemanager/botservice/armbotservice/autorest.md @@ -8,5 +8,5 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/e7bf3adfa2d5e5cdbb804eec35279501794f461c/specification/botservice/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/e7bf3adfa2d5e5cdbb804eec35279501794f461c/specification/botservice/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.1.0 +module-version: 1.1.1 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/botservice/armbotservice/constants.go b/sdk/resourcemanager/botservice/armbotservice/constants.go index 54b40004ba12..91ad5970b3d9 100644 --- a/sdk/resourcemanager/botservice/armbotservice/constants.go +++ b/sdk/resourcemanager/botservice/armbotservice/constants.go @@ -11,7 +11,7 @@ package armbotservice const ( moduleName = "armbotservice" - moduleVersion = "v1.1.0" + moduleVersion = "v1.1.1" ) type ChannelName string diff --git a/sdk/resourcemanager/botservice/armbotservice/models.go b/sdk/resourcemanager/botservice/armbotservice/models.go index a9d81ca2d98b..a73b60f4cce6 100644 --- a/sdk/resourcemanager/botservice/armbotservice/models.go +++ b/sdk/resourcemanager/botservice/armbotservice/models.go @@ -14,16 +14,16 @@ import "time" // AcsChatChannel - AcsChat channel definition type AcsChatChannel struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type AcsChatChannel. @@ -39,19 +39,19 @@ func (a *AcsChatChannel) GetChannel() *Channel { // AlexaChannel - Alexa channel definition type AlexaChannel struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to Alexa channel resource - Properties *AlexaChannelProperties `json:"properties,omitempty"` + Properties *AlexaChannelProperties // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type AlexaChannel. @@ -67,82 +67,82 @@ func (a *AlexaChannel) GetChannel() *Channel { // AlexaChannelProperties - The parameters to provide for the Alexa channel. type AlexaChannelProperties struct { // REQUIRED; The Alexa skill Id - AlexaSkillID *string `json:"alexaSkillId,omitempty"` + AlexaSkillID *string // REQUIRED; Whether this channel is enabled for the bot - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // READ-ONLY; Full Uri used to configured the skill in Alexa - ServiceEndpointURI *string `json:"serviceEndpointUri,omitempty" azure:"ro"` + ServiceEndpointURI *string // READ-ONLY; Url fragment used in part of the Uri configured in Alexa - URLFragment *string `json:"urlFragment,omitempty" azure:"ro"` + URLFragment *string } // Bot resource definition type Bot struct { // Entity Tag - Etag *string `json:"etag,omitempty"` + Etag *string // Required. Gets or sets the Kind of the resource. - Kind *Kind `json:"kind,omitempty"` + Kind *Kind // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to bot resource - Properties *BotProperties `json:"properties,omitempty"` + Properties *BotProperties // Gets or sets the SKU of the resource. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Contains resource tags defined as key/value pairs. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Specifies the resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Specifies the name of the resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Specifies the type of the resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string // READ-ONLY; Entity zones - Zones []*string `json:"zones,omitempty" azure:"ro"` + Zones []*string } // BotChannel - Bot channel resource definition type BotChannel struct { // Entity Tag - Etag *string `json:"etag,omitempty"` + Etag *string // Required. Gets or sets the Kind of the resource. - Kind *Kind `json:"kind,omitempty"` + Kind *Kind // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to bot channel resource - Properties ChannelClassification `json:"properties,omitempty"` + Properties ChannelClassification // Gets or sets the SKU of the resource. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Contains resource tags defined as key/value pairs. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Specifies the resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Specifies the name of the resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Specifies the type of the resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string // READ-ONLY; Entity zones - Zones []*string `json:"zones,omitempty" azure:"ro"` + Zones []*string } // BotConnectionClientCreateOptions contains the optional parameters for the BotConnectionClient.Create method. @@ -186,118 +186,118 @@ type BotConnectionClientUpdateOptions struct { // BotProperties - The parameters to provide for the Bot. type BotProperties struct { // REQUIRED; The Name of the bot - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // REQUIRED; The bot's endpoint - Endpoint *string `json:"endpoint,omitempty"` + Endpoint *string // REQUIRED; Microsoft App Id for the bot - MsaAppID *string `json:"msaAppId,omitempty"` + MsaAppID *string // Contains resource all settings defined as key/value pairs. - AllSettings map[string]*string `json:"allSettings,omitempty"` + AllSettings map[string]*string // The hint (e.g. keyVault secret resourceId) on how to fetch the app secret - AppPasswordHint *string `json:"appPasswordHint,omitempty"` + AppPasswordHint *string // The CMK Url - CmekKeyVaultURL *string `json:"cmekKeyVaultUrl,omitempty"` + CmekKeyVaultURL *string // The description of the bot - Description *string `json:"description,omitempty"` + Description *string // The Application Insights key - DeveloperAppInsightKey *string `json:"developerAppInsightKey,omitempty"` + DeveloperAppInsightKey *string // The Application Insights Api Key - DeveloperAppInsightsAPIKey *string `json:"developerAppInsightsApiKey,omitempty"` + DeveloperAppInsightsAPIKey *string // The Application Insights App Id - DeveloperAppInsightsApplicationID *string `json:"developerAppInsightsApplicationId,omitempty"` + DeveloperAppInsightsApplicationID *string // Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication. - DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` + DisableLocalAuth *bool // The Icon Url of the bot - IconURL *string `json:"iconUrl,omitempty"` + IconURL *string // Whether Cmek is enabled - IsCmekEnabled *bool `json:"isCmekEnabled,omitempty"` + IsCmekEnabled *bool // Whether the bot is streaming supported - IsStreamingSupported *bool `json:"isStreamingSupported,omitempty"` + IsStreamingSupported *bool // Collection of LUIS App Ids - LuisAppIDs []*string `json:"luisAppIds,omitempty"` + LuisAppIDs []*string // The LUIS Key - LuisKey *string `json:"luisKey,omitempty"` + LuisKey *string // The bot's manifest url - ManifestURL *string `json:"manifestUrl,omitempty"` + ManifestURL *string // Microsoft App Managed Identity Resource Id for the bot - MsaAppMSIResourceID *string `json:"msaAppMSIResourceId,omitempty"` + MsaAppMSIResourceID *string // Microsoft App Tenant Id for the bot - MsaAppTenantID *string `json:"msaAppTenantId,omitempty"` + MsaAppTenantID *string // Microsoft App Type for the bot - MsaAppType *MsaAppType `json:"msaAppType,omitempty"` + MsaAppType *MsaAppType // The hint to browser (e.g. protocol handler) on how to open the bot for authoring - OpenWithHint *string `json:"openWithHint,omitempty"` + OpenWithHint *string // Contains resource parameters defined as key/value pairs. - Parameters map[string]*string `json:"parameters,omitempty"` + Parameters map[string]*string // Whether the bot is in an isolated network - PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + PublicNetworkAccess *PublicNetworkAccess // Publishing credentials of the resource - PublishingCredentials *string `json:"publishingCredentials,omitempty"` + PublishingCredentials *string // The channel schema transformation version for the bot - SchemaTransformationVersion *string `json:"schemaTransformationVersion,omitempty"` + SchemaTransformationVersion *string // The storage resourceId for the bot - StorageResourceID *string `json:"storageResourceId,omitempty"` + StorageResourceID *string // The Tenant Id for the bot - TenantID *string `json:"tenantId,omitempty"` + TenantID *string // READ-ONLY; The CMK encryption status - CmekEncryptionStatus *string `json:"cmekEncryptionStatus,omitempty" azure:"ro"` + CmekEncryptionStatus *string // READ-ONLY; Collection of channels for which the bot is configured - ConfiguredChannels []*string `json:"configuredChannels,omitempty" azure:"ro"` + ConfiguredChannels []*string // READ-ONLY; Collection of channels for which the bot is enabled - EnabledChannels []*string `json:"enabledChannels,omitempty" azure:"ro"` + EnabledChannels []*string // READ-ONLY; The bot's endpoint version - EndpointVersion *string `json:"endpointVersion,omitempty" azure:"ro"` + EndpointVersion *string // READ-ONLY; Whether the bot is developerAppInsightsApiKey set - IsDeveloperAppInsightsAPIKeySet *bool `json:"isDeveloperAppInsightsApiKeySet,omitempty" azure:"ro"` + IsDeveloperAppInsightsAPIKeySet *bool // READ-ONLY; Token used to migrate non Azure bot to azure subscription - MigrationToken *string `json:"migrationToken,omitempty" azure:"ro"` + MigrationToken *string // READ-ONLY; List of Private Endpoint Connections configured for the bot - PrivateEndpointConnections []*PrivateEndpointConnection `json:"privateEndpointConnections,omitempty" azure:"ro"` + PrivateEndpointConnections []*PrivateEndpointConnection // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // BotResponseList - The list of bot service operation response. type BotResponseList struct { // The link used to get the next page of bot service resources. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; Gets the list of bot service results and their properties. - Value []*Bot `json:"value,omitempty" azure:"ro"` + Value []*Bot } // BotsClientCreateOptions contains the optional parameters for the BotsClient.Create method. @@ -350,16 +350,16 @@ type ChannelClassification interface { // Channel definition type Channel struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type Channel. @@ -368,43 +368,43 @@ func (c *Channel) GetChannel() *Channel { return c } // ChannelResponseList - The list of bot service channel operation response. type ChannelResponseList struct { // The link used to get the next page of bot service channel resources. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; Gets the list of bot service channel results and their properties. - Value []*BotChannel `json:"value,omitempty" azure:"ro"` + Value []*BotChannel } // ChannelSettings - Channel settings definition type ChannelSettings struct { // The bot id - BotID *string `json:"botId,omitempty"` + BotID *string // The bot icon url - BotIconURL *string `json:"botIconUrl,omitempty"` + BotIconURL *string // The channel display name - ChannelDisplayName *string `json:"channelDisplayName,omitempty"` + ChannelDisplayName *string // The channel id - ChannelID *string `json:"channelId,omitempty"` + ChannelID *string // Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication. - DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` + DisableLocalAuth *bool // The extensionKey1 - ExtensionKey1 *string `json:"extensionKey1,omitempty"` + ExtensionKey1 *string // The extensionKey2 - ExtensionKey2 *string `json:"extensionKey2,omitempty"` + ExtensionKey2 *string // Whether this channel is enabled for the bot - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // Whether customer needs to agree to new terms. - RequireTermsAgreement *bool `json:"requireTermsAgreement,omitempty"` + RequireTermsAgreement *bool // The list of sites - Sites []*Site `json:"sites,omitempty"` + Sites []*Site } // ChannelsClientCreateOptions contains the optional parameters for the ChannelsClient.Create method. @@ -442,143 +442,143 @@ type ChannelsClientUpdateOptions struct { // bot name. type CheckNameAvailabilityRequestBody struct { // the name of the bot for which availability needs to be checked. - Name *string `json:"name,omitempty"` + Name *string // the type of the bot for which availability needs to be checked - Type *string `json:"type,omitempty"` + Type *string } // CheckNameAvailabilityResponseBody - The response body returned for a request to Bot Service Management to check availability // of a bot name. type CheckNameAvailabilityResponseBody struct { // response code from ABS - AbsCode *string `json:"absCode,omitempty"` + AbsCode *string // additional message from the bot management api showing why a bot name is not available - Message *string `json:"message,omitempty"` + Message *string // indicates if the bot name is valid. - Valid *bool `json:"valid,omitempty"` + Valid *bool } // ConnectionItemName - The display name of a connection Item Setting registered with the Bot type ConnectionItemName struct { // READ-ONLY; Connection Item name that has been added in the API - Name *string `json:"name,omitempty" azure:"ro"` + Name *string } // ConnectionSetting - Bot channel resource definition type ConnectionSetting struct { // Entity Tag - Etag *string `json:"etag,omitempty"` + Etag *string // Required. Gets or sets the Kind of the resource. - Kind *Kind `json:"kind,omitempty"` + Kind *Kind // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to bot channel resource - Properties *ConnectionSettingProperties `json:"properties,omitempty"` + Properties *ConnectionSettingProperties // Gets or sets the SKU of the resource. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Contains resource tags defined as key/value pairs. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Specifies the resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Specifies the name of the resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Specifies the type of the resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string // READ-ONLY; Entity zones - Zones []*string `json:"zones,omitempty" azure:"ro"` + Zones []*string } // ConnectionSettingParameter - Extra Parameter in a Connection Setting Properties to indicate service provider specific properties type ConnectionSettingParameter struct { // Key for the Connection Setting Parameter. - Key *string `json:"key,omitempty"` + Key *string // Value associated with the Connection Setting Parameter. - Value *string `json:"value,omitempty"` + Value *string } // ConnectionSettingProperties - Properties for a Connection Setting Item type ConnectionSettingProperties struct { // Client Id associated with the Connection Setting. - ClientID *string `json:"clientId,omitempty"` + ClientID *string // Client Secret associated with the Connection Setting - ClientSecret *string `json:"clientSecret,omitempty"` + ClientSecret *string // Service Provider Parameters associated with the Connection Setting - Parameters []*ConnectionSettingParameter `json:"parameters,omitempty"` + Parameters []*ConnectionSettingParameter // Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty"` + ProvisioningState *string // Scopes associated with the Connection Setting - Scopes *string `json:"scopes,omitempty"` + Scopes *string // Service Provider Display Name associated with the Connection Setting - ServiceProviderDisplayName *string `json:"serviceProviderDisplayName,omitempty"` + ServiceProviderDisplayName *string // Service Provider Id associated with the Connection Setting - ServiceProviderID *string `json:"serviceProviderId,omitempty"` + ServiceProviderID *string // READ-ONLY; Setting Id set by the service for the Connection Setting. - SettingID *string `json:"settingId,omitempty" azure:"ro"` + SettingID *string } // ConnectionSettingResponseList - The list of bot service connection settings response. type ConnectionSettingResponseList struct { // The link used to get the next page of bot service connection setting resources. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; Gets the list of bot service connection settings and their properties. - Value []*ConnectionSetting `json:"value,omitempty" azure:"ro"` + Value []*ConnectionSetting } // CreateEmailSignInURLResponse - The ARM create email sign in url operation response. type CreateEmailSignInURLResponse struct { // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to sign in url - Properties *CreateEmailSignInURLResponseProperties `json:"properties,omitempty"` + Properties *CreateEmailSignInURLResponseProperties // READ-ONLY; Specifies the resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string } // CreateEmailSignInURLResponseProperties - The set of properties specific to sign in url type CreateEmailSignInURLResponseProperties struct { // Sign in url. - URL *string `json:"url,omitempty"` + URL *string } // DirectLineChannel - Direct Line channel definition type DirectLineChannel struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to Direct Line channel resource - Properties *DirectLineChannelProperties `json:"properties,omitempty"` + Properties *DirectLineChannelProperties // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type DirectLineChannel. @@ -594,16 +594,16 @@ func (d *DirectLineChannel) GetChannel() *Channel { // DirectLineChannelProperties - The parameters to provide for the Direct Line channel. type DirectLineChannelProperties struct { // Direct Line embed code of the resource - DirectLineEmbedCode *string `json:"DirectLineEmbedCode,omitempty"` + DirectLineEmbedCode *string // The extensionKey1 - ExtensionKey1 *string `json:"extensionKey1,omitempty"` + ExtensionKey1 *string // The extensionKey2 - ExtensionKey2 *string `json:"extensionKey2,omitempty"` + ExtensionKey2 *string // The list of Direct Line sites - Sites []*DirectLineSite `json:"sites,omitempty"` + Sites []*DirectLineSite } // DirectLineClientRegenerateKeysOptions contains the optional parameters for the DirectLineClient.RegenerateKeys method. @@ -614,79 +614,79 @@ type DirectLineClientRegenerateKeysOptions struct { // DirectLineSite - A site for the Direct Line channel type DirectLineSite struct { // REQUIRED; Whether this site is enabled for DirectLine channel - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; Site name - SiteName *string `json:"siteName,omitempty"` + SiteName *string // DirectLine application id - AppID *string `json:"appId,omitempty"` + AppID *string // Entity Tag - ETag *string `json:"eTag,omitempty"` + ETag *string // Whether this site is enabled for block user upload. - IsBlockUserUploadEnabled *bool `json:"isBlockUserUploadEnabled,omitempty"` + IsBlockUserUploadEnabled *bool // Whether this site is disabled detailed logging for - IsDetailedLoggingEnabled *bool `json:"isDetailedLoggingEnabled,omitempty"` + IsDetailedLoggingEnabled *bool // Whether this site is EndpointParameters enabled for channel - IsEndpointParametersEnabled *bool `json:"isEndpointParametersEnabled,omitempty"` + IsEndpointParametersEnabled *bool // Whether this no-storage site is disabled detailed logging for - IsNoStorageEnabled *bool `json:"isNoStorageEnabled,omitempty"` + IsNoStorageEnabled *bool // Whether this site is enabled for authentication with Bot Framework. - IsSecureSiteEnabled *bool `json:"isSecureSiteEnabled,omitempty"` + IsSecureSiteEnabled *bool // Whether this site is enabled for Bot Framework V1 protocol. - IsV1Enabled *bool `json:"isV1Enabled,omitempty"` + IsV1Enabled *bool // Whether this site is enabled for Bot Framework V3 protocol. - IsV3Enabled *bool `json:"isV3Enabled,omitempty"` + IsV3Enabled *bool // Whether this site is enabled for Webchat Speech - IsWebChatSpeechEnabled *bool `json:"isWebChatSpeechEnabled,omitempty"` + IsWebChatSpeechEnabled *bool // Whether this site is enabled for preview versions of Webchat - IsWebchatPreviewEnabled *bool `json:"isWebchatPreviewEnabled,omitempty"` + IsWebchatPreviewEnabled *bool // Tenant Id - TenantID *string `json:"tenantId,omitempty"` + TenantID *string // List of Trusted Origin URLs for this site. This field is applicable only if isSecureSiteEnabled is True. - TrustedOrigins []*string `json:"trustedOrigins,omitempty"` + TrustedOrigins []*string // READ-ONLY; Whether this site is token enabled for channel - IsTokenEnabled *bool `json:"isTokenEnabled,omitempty" azure:"ro"` + IsTokenEnabled *bool // READ-ONLY; Primary key. Value only returned through POST to the action Channel List API, otherwise empty. - Key *string `json:"key,omitempty" azure:"ro"` + Key *string // READ-ONLY; Secondary key. Value only returned through POST to the action Channel List API, otherwise empty. - Key2 *string `json:"key2,omitempty" azure:"ro"` + Key2 *string // READ-ONLY; Site Id - SiteID *string `json:"siteId,omitempty" azure:"ro"` + SiteID *string } // DirectLineSpeechChannel - DirectLine Speech channel definition type DirectLineSpeechChannel struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to DirectLine Speech channel resource - Properties *DirectLineSpeechChannelProperties `json:"properties,omitempty"` + Properties *DirectLineSpeechChannelProperties // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type DirectLineSpeechChannel. @@ -702,43 +702,43 @@ func (d *DirectLineSpeechChannel) GetChannel() *Channel { // DirectLineSpeechChannelProperties - The parameters to provide for the DirectLine Speech channel. type DirectLineSpeechChannelProperties struct { // The cognitive service region with this channel registration. - CognitiveServiceRegion *string `json:"cognitiveServiceRegion,omitempty"` + CognitiveServiceRegion *string // The cognitive service id with this channel registration. - CognitiveServiceResourceID *string `json:"cognitiveServiceResourceId,omitempty"` + CognitiveServiceResourceID *string // The cognitive service subscription key to use with this channel registration. - CognitiveServiceSubscriptionKey *string `json:"cognitiveServiceSubscriptionKey,omitempty"` + CognitiveServiceSubscriptionKey *string // Custom voice deployment id (optional). - CustomSpeechModelID *string `json:"customSpeechModelId,omitempty"` + CustomSpeechModelID *string // Custom speech model id (optional). - CustomVoiceDeploymentID *string `json:"customVoiceDeploymentId,omitempty"` + CustomVoiceDeploymentID *string // Make this a default bot for chosen cognitive service account. - IsDefaultBotForCogSvcAccount *bool `json:"isDefaultBotForCogSvcAccount,omitempty"` + IsDefaultBotForCogSvcAccount *bool // Whether this channel is enabled or not. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool } // EmailChannel - Email channel definition type EmailChannel struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to email channel resource - Properties *EmailChannelProperties `json:"properties,omitempty"` + Properties *EmailChannelProperties // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type EmailChannel. @@ -754,19 +754,19 @@ func (e *EmailChannel) GetChannel() *Channel { // EmailChannelProperties - The parameters to provide for the Email channel. type EmailChannelProperties struct { // REQUIRED; The email address - EmailAddress *string `json:"emailAddress,omitempty"` + EmailAddress *string // REQUIRED; Whether this channel is enabled for the bot - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // Email channel auth method. 0 Password (Default); 1 Graph. - AuthMethod *EmailChannelAuthMethod `json:"authMethod,omitempty"` + AuthMethod *EmailChannelAuthMethod // The magic code for setting up the modern authentication. - MagicCode *string `json:"magicCode,omitempty"` + MagicCode *string // The password for the email address. Value only returned through POST to the action Channel List API, otherwise empty. - Password *string `json:"password,omitempty"` + Password *string } // EmailClientCreateSignInURLOptions contains the optional parameters for the EmailClient.CreateSignInURL method. @@ -777,34 +777,34 @@ type EmailClientCreateSignInURLOptions struct { // Error - Bot Service error object. type Error struct { // The error body. - Error *ErrorBody `json:"error,omitempty"` + Error *ErrorBody } // ErrorBody - Bot Service error body. type ErrorBody struct { // REQUIRED; error code - Code *string `json:"code,omitempty"` + Code *string // REQUIRED; error message - Message *string `json:"message,omitempty"` + Message *string } // FacebookChannel - Facebook channel definition type FacebookChannel struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to bot facebook channel - Properties *FacebookChannelProperties `json:"properties,omitempty"` + Properties *FacebookChannelProperties // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type FacebookChannel. @@ -820,31 +820,31 @@ func (f *FacebookChannel) GetChannel() *Channel { // FacebookChannelProperties - The parameters to provide for the Facebook channel. type FacebookChannelProperties struct { // REQUIRED; Facebook application id - AppID *string `json:"appId,omitempty"` + AppID *string // REQUIRED; Whether this channel is enabled for the bot - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // Facebook application secret. Value only returned through POST to the action Channel List API, otherwise empty. - AppSecret *string `json:"appSecret,omitempty"` + AppSecret *string // The list of Facebook pages - Pages []*FacebookPage `json:"pages,omitempty"` + Pages []*FacebookPage // READ-ONLY; Callback Url - CallbackURL *string `json:"callbackUrl,omitempty" azure:"ro"` + CallbackURL *string // READ-ONLY; Verify token. Value only returned through POST to the action Channel List API, otherwise empty. - VerifyToken *string `json:"verifyToken,omitempty" azure:"ro"` + VerifyToken *string } // FacebookPage - A Facebook page for Facebook channel registration type FacebookPage struct { // REQUIRED; Page id - ID *string `json:"id,omitempty"` + ID *string // Facebook application access token. Value only returned through POST to the action Channel List API, otherwise empty. - AccessToken *string `json:"accessToken,omitempty"` + AccessToken *string } // HostSettingsClientGetOptions contains the optional parameters for the HostSettingsClient.Get method. @@ -855,46 +855,46 @@ type HostSettingsClientGetOptions struct { // HostSettingsResponse - The response body returned for a request to Bot Service Management to check per subscription hostSettings type HostSettingsResponse struct { // Same as toBotFromChannelOpenIdMetadataUrl, used by SDK < v4.12 - BotOpenIDMetadata *string `json:"BotOpenIdMetadata,omitempty"` + BotOpenIDMetadata *string // For in-conversation bot user authentication - OAuthURL *string `json:"OAuthUrl,omitempty"` + OAuthURL *string // For verifying incoming tokens from the channels - ToBotFromChannelOpenIDMetadataURL *string `json:"ToBotFromChannelOpenIdMetadataUrl,omitempty"` + ToBotFromChannelOpenIDMetadataURL *string // For verifying incoming tokens from the channels - ToBotFromChannelTokenIssuer *string `json:"ToBotFromChannelTokenIssuer,omitempty"` + ToBotFromChannelTokenIssuer *string // For verifying incoming tokens from bot emulator - ToBotFromEmulatorOpenIDMetadataURL *string `json:"ToBotFromEmulatorOpenIdMetadataUrl,omitempty"` + ToBotFromEmulatorOpenIDMetadataURL *string // For getting access token to channels from bot host - ToChannelFromBotLoginURL *string `json:"ToChannelFromBotLoginUrl,omitempty"` + ToChannelFromBotLoginURL *string // For getting access token to channels from bot host - ToChannelFromBotOAuthScope *string `json:"ToChannelFromBotOAuthScope,omitempty"` + ToChannelFromBotOAuthScope *string // Per cloud OAuth setting on whether authority is validated - ValidateAuthority *bool `json:"ValidateAuthority,omitempty"` + ValidateAuthority *bool } // KikChannel - Kik channel definition type KikChannel struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to Kik channel resource - Properties *KikChannelProperties `json:"properties,omitempty"` + Properties *KikChannelProperties // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type KikChannel. @@ -910,34 +910,34 @@ func (k *KikChannel) GetChannel() *Channel { // KikChannelProperties - The parameters to provide for the Kik channel. type KikChannelProperties struct { // REQUIRED; Whether this channel is enabled for the bot - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The Kik user name - UserName *string `json:"userName,omitempty"` + UserName *string // Kik API key. Value only returned through POST to the action Channel List API, otherwise empty. - APIKey *string `json:"apiKey,omitempty"` + APIKey *string // Whether this channel is validated for the bot - IsValidated *bool `json:"isValidated,omitempty"` + IsValidated *bool } // LineChannel - Line channel definition type LineChannel struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to line channel resource - Properties *LineChannelProperties `json:"properties,omitempty"` + Properties *LineChannelProperties // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type LineChannel. @@ -953,88 +953,88 @@ func (l *LineChannel) GetChannel() *Channel { // LineChannelProperties - The parameters to provide for the Line channel. type LineChannelProperties struct { // REQUIRED; The list of line channel registrations - LineRegistrations []*LineRegistration `json:"lineRegistrations,omitempty"` + LineRegistrations []*LineRegistration // READ-ONLY; Callback Url to enter in line registration. - CallbackURL *string `json:"callbackUrl,omitempty" azure:"ro"` + CallbackURL *string // READ-ONLY; Whether this channel is validated for the bot - IsValidated *bool `json:"isValidated,omitempty" azure:"ro"` + IsValidated *bool } // LineRegistration - The properties corresponding to a line channel registration type LineRegistration struct { // Access token for the line channel registration - ChannelAccessToken *string `json:"channelAccessToken,omitempty"` + ChannelAccessToken *string // Secret for the line channel registration - ChannelSecret *string `json:"channelSecret,omitempty"` + ChannelSecret *string // READ-ONLY; Id generated for the line channel registration - GeneratedID *string `json:"generatedId,omitempty" azure:"ro"` + GeneratedID *string } // ListChannelWithKeysResponse - The ARM channel of list channel with keys operation response. type ListChannelWithKeysResponse struct { // Changed time of the resource - ChangedTime *string `json:"changedTime,omitempty"` + ChangedTime *string // Entity tag of the resource - EntityTag *string `json:"entityTag,omitempty"` + EntityTag *string // Entity Tag - Etag *string `json:"etag,omitempty"` + Etag *string // Required. Gets or sets the Kind of the resource. - Kind *Kind `json:"kind,omitempty"` + Kind *Kind // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to bot channel resource - Properties ChannelClassification `json:"properties,omitempty"` + Properties ChannelClassification // Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty"` + ProvisioningState *string // The set of properties specific to bot channel resource - Resource ChannelClassification `json:"resource,omitempty"` + Resource ChannelClassification // Gets or sets the SKU of the resource. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Channel settings - Setting *ChannelSettings `json:"setting,omitempty"` + Setting *ChannelSettings // Contains resource tags defined as key/value pairs. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Specifies the resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Specifies the name of the resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Specifies the type of the resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string // READ-ONLY; Entity zones - Zones []*string `json:"zones,omitempty" azure:"ro"` + Zones []*string } // M365Extensions - M365 Extensions definition type M365Extensions struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type M365Extensions. @@ -1050,19 +1050,19 @@ func (m *M365Extensions) GetChannel() *Channel { // MsTeamsChannel - Microsoft Teams channel definition type MsTeamsChannel struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to Microsoft Teams channel resource - Properties *MsTeamsChannelProperties `json:"properties,omitempty"` + Properties *MsTeamsChannelProperties // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type MsTeamsChannel. @@ -1078,37 +1078,37 @@ func (m *MsTeamsChannel) GetChannel() *Channel { // MsTeamsChannelProperties - The parameters to provide for the Microsoft Teams channel. type MsTeamsChannelProperties struct { // REQUIRED; Whether this channel is enabled for the bot - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // Whether this channel accepted terms - AcceptedTerms *bool `json:"acceptedTerms,omitempty"` + AcceptedTerms *bool // Webhook for Microsoft Teams channel calls - CallingWebhook *string `json:"callingWebhook,omitempty"` + CallingWebhook *string // Deployment environment for Microsoft Teams channel calls - DeploymentEnvironment *string `json:"deploymentEnvironment,omitempty"` + DeploymentEnvironment *string // Enable calling for Microsoft Teams channel - EnableCalling *bool `json:"enableCalling,omitempty"` + EnableCalling *bool // Webhook for Microsoft Teams channel calls - IncomingCallRoute *string `json:"incomingCallRoute,omitempty"` + IncomingCallRoute *string } // Omnichannel channel definition type Omnichannel struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type Omnichannel. @@ -1124,40 +1124,40 @@ func (o *Omnichannel) GetChannel() *Channel { // OperationDisplayInfo - The operation supported by Bot Service Management. type OperationDisplayInfo struct { // The description of the operation. - Description *string `json:"description,omitempty"` + Description *string // The action that users can perform, based on their permission level. - Operation *string `json:"operation,omitempty"` + Operation *string // Service provider: Microsoft Bot Service. - Provider *string `json:"provider,omitempty"` + Provider *string // Resource on which the operation is performed. - Resource *string `json:"resource,omitempty"` + Resource *string } // OperationEntity - The operations supported by Bot Service Management. type OperationEntity struct { // The operation supported by Bot Service Management. - Display *OperationDisplayInfo `json:"display,omitempty"` + Display *OperationDisplayInfo // Operation name: {provider}/{resource}/{operation}. - Name *string `json:"name,omitempty"` + Name *string // The origin of the operation. - Origin *string `json:"origin,omitempty"` + Origin *string // Additional properties. - Properties any `json:"properties,omitempty"` + Properties any } // OperationEntityListResult - The list of bot service operation response. type OperationEntityListResult struct { // The link used to get the next page of operations. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // The list of operations. - Value []*OperationEntity `json:"value,omitempty"` + Value []*OperationEntity } // OperationResultsClientBeginGetOptions contains the optional parameters for the OperationResultsClient.BeginGet method. @@ -1169,16 +1169,16 @@ type OperationResultsClientBeginGetOptions struct { // OperationResultsDescription - The properties indicating the operation result of an operation on a service. type OperationResultsDescription struct { // READ-ONLY; The ID of the operation returned. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the operation result. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The time that the operation was started. - StartTime *time.Time `json:"startTime,omitempty" azure:"ro"` + StartTime *time.Time // READ-ONLY; The status of the operation being performed. - Status *OperationResultStatus `json:"status,omitempty" azure:"ro"` + Status *OperationResultStatus } // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. @@ -1189,16 +1189,16 @@ type OperationsClientListOptions struct { // OutlookChannel - Outlook channel definition type OutlookChannel struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type OutlookChannel. @@ -1214,43 +1214,43 @@ func (o *OutlookChannel) GetChannel() *Channel { // PrivateEndpoint - The Private Endpoint resource. type PrivateEndpoint struct { // READ-ONLY; The ARM identifier for Private Endpoint - ID *string `json:"id,omitempty" azure:"ro"` + ID *string } // PrivateEndpointConnection - The Private Endpoint Connection resource. type PrivateEndpointConnection struct { // Resource properties. - Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Properties *PrivateEndpointConnectionProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PrivateEndpointConnectionListResult - List of private endpoint connection associated with the specified storage account type PrivateEndpointConnectionListResult struct { // Array of private endpoint connections - Value []*PrivateEndpointConnection `json:"value,omitempty"` + Value []*PrivateEndpointConnection } // PrivateEndpointConnectionProperties - Properties of the PrivateEndpointConnectProperties. type PrivateEndpointConnectionProperties struct { // REQUIRED; A collection of information about the state of the connection between service consumer and provider. - PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState // Group ids - GroupIDs []*string `json:"groupIds,omitempty"` + GroupIDs []*string // The resource of private end point. - PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpoint *PrivateEndpoint // READ-ONLY; The provisioning state of the private endpoint connection resource. - ProvisioningState *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *PrivateEndpointConnectionProvisioningState } // PrivateEndpointConnectionsClientCreateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Create @@ -1280,46 +1280,46 @@ type PrivateEndpointConnectionsClientListOptions struct { // PrivateLinkResource - A private link resource type PrivateLinkResource struct { // Resource properties. - Properties *PrivateLinkResourceProperties `json:"properties,omitempty"` + Properties *PrivateLinkResourceProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PrivateLinkResourceBase - Common fields that are returned in the response for all BotService Private Link Resources type PrivateLinkResourceBase struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PrivateLinkResourceListResult - A list of private link resources type PrivateLinkResourceListResult struct { // Array of private link resources - Value []*PrivateLinkResource `json:"value,omitempty"` + Value []*PrivateLinkResource } // PrivateLinkResourceProperties - Properties of a private link resource. type PrivateLinkResourceProperties struct { // The private link resource Private link DNS zone name. - RequiredZoneNames []*string `json:"requiredZoneNames,omitempty"` + RequiredZoneNames []*string // READ-ONLY; The private link resource group id. - GroupID *string `json:"groupId,omitempty" azure:"ro"` + GroupID *string // READ-ONLY; The private link resource required member names. - RequiredMembers []*string `json:"requiredMembers,omitempty" azure:"ro"` + RequiredMembers []*string } // PrivateLinkResourcesClientListByBotResourceOptions contains the optional parameters for the PrivateLinkResourcesClient.ListByBotResource @@ -1332,13 +1332,13 @@ type PrivateLinkResourcesClientListByBotResourceOptions struct { // and provider. type PrivateLinkServiceConnectionState struct { // A message indicating if changes on the service provider require any updates on the consumer. - ActionsRequired *string `json:"actionsRequired,omitempty"` + ActionsRequired *string // The reason for approval/rejection of the connection. - Description *string `json:"description,omitempty"` + Description *string // Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. - Status *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` + Status *PrivateEndpointServiceConnectionStatus } // QnAMakerEndpointKeysClientGetOptions contains the optional parameters for the QnAMakerEndpointKeysClient.Get method. @@ -1349,79 +1349,79 @@ type QnAMakerEndpointKeysClientGetOptions struct { // QnAMakerEndpointKeysRequestBody - The request body for a request to Bot Service Management to list QnA Maker endpoint keys. type QnAMakerEndpointKeysRequestBody struct { // Subscription key which provides access to this API. - Authkey *string `json:"authkey,omitempty"` + Authkey *string // the host name of the QnA Maker endpoint - Hostname *string `json:"hostname,omitempty"` + Hostname *string } // QnAMakerEndpointKeysResponse - Schema for EndpointKeys generate/refresh operations. type QnAMakerEndpointKeysResponse struct { // Current version of runtime. - InstalledVersion *string `json:"installedVersion,omitempty"` + InstalledVersion *string // Latest version of runtime. - LastStableVersion *string `json:"lastStableVersion,omitempty"` + LastStableVersion *string // Primary Access Key. - PrimaryEndpointKey *string `json:"primaryEndpointKey,omitempty"` + PrimaryEndpointKey *string // Secondary Access Key. - SecondaryEndpointKey *string `json:"secondaryEndpointKey,omitempty"` + SecondaryEndpointKey *string } // Resource - Azure resource type Resource struct { // Entity Tag - Etag *string `json:"etag,omitempty"` + Etag *string // Required. Gets or sets the Kind of the resource. - Kind *Kind `json:"kind,omitempty"` + Kind *Kind // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // Gets or sets the SKU of the resource. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Contains resource tags defined as key/value pairs. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Specifies the resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Specifies the name of the resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Specifies the type of the resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string // READ-ONLY; Entity zones - Zones []*string `json:"zones,omitempty" azure:"ro"` + Zones []*string } // SKU - The SKU of the cognitive services account. type SKU struct { // REQUIRED; The sku name - Name *SKUName `json:"name,omitempty"` + Name *SKUName // READ-ONLY; Gets the sku tier. This is based on the SKU name. - Tier *SKUTier `json:"tier,omitempty" azure:"ro"` + Tier *SKUTier } // SearchAssistant definition type SearchAssistant struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type SearchAssistant. @@ -1437,160 +1437,160 @@ func (s *SearchAssistant) GetChannel() *Channel { // ServiceProvider - Service Provider Definition type ServiceProvider struct { // The Properties of a Service Provider Object - Properties *ServiceProviderProperties `json:"properties,omitempty"` + Properties *ServiceProviderProperties } // ServiceProviderParameter - Extra Parameters specific to each Service Provider type ServiceProviderParameter struct { // READ-ONLY; Default Name for the Service Provider - Default *string `json:"default,omitempty" azure:"ro"` + Default *string // READ-ONLY; Description of the Service Provider - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; Display Name of the Service Provider - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; Help Url for the Service Provider - HelpURL *string `json:"helpUrl,omitempty" azure:"ro"` + HelpURL *string // READ-ONLY; Meta data for the Service Provider - Metadata *ServiceProviderParameterMetadata `json:"metadata,omitempty" azure:"ro"` + Metadata *ServiceProviderParameterMetadata // READ-ONLY; Name of the Service Provider - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Type of the Service Provider - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ServiceProviderParameterMetadata - Meta data for the Service Provider type ServiceProviderParameterMetadata struct { // the constraints of the bot meta data. - Constraints *ServiceProviderParameterMetadataConstraints `json:"constraints,omitempty"` + Constraints *ServiceProviderParameterMetadataConstraints } // ServiceProviderParameterMetadataConstraints - the constraints of the bot meta data. type ServiceProviderParameterMetadataConstraints struct { // Whether required the constraints of the bot meta data. - Required *bool `json:"required,omitempty"` + Required *bool } // ServiceProviderProperties - The Object used to describe a Service Provider supported by Bot Service type ServiceProviderProperties struct { // The URL of icon - IconURL *string `json:"iconUrl,omitempty"` + IconURL *string // The list of parameters for the Service Provider - Parameters []*ServiceProviderParameter `json:"parameters,omitempty"` + Parameters []*ServiceProviderParameter // READ-ONLY; URL of Dev Portal - DevPortalURL *string `json:"devPortalUrl,omitempty" azure:"ro"` + DevPortalURL *string // READ-ONLY; Display Name of the Service Provider - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; Id for Service Provider - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Name of the Service Provider - ServiceProviderName *string `json:"serviceProviderName,omitempty" azure:"ro"` + ServiceProviderName *string } // ServiceProviderResponseList - The list of bot service providers response. type ServiceProviderResponseList struct { // The link used to get the next page of bot service providers. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; Gets the list of bot service providers and their properties. - Value []*ServiceProvider `json:"value,omitempty" azure:"ro"` + Value []*ServiceProvider } // Site - A site for the channel type Site struct { // REQUIRED; Whether this site is enabled for DirectLine channel - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; Site name - SiteName *string `json:"siteName,omitempty"` + SiteName *string // DirectLine application id - AppID *string `json:"appId,omitempty"` + AppID *string // Entity Tag - ETag *string `json:"eTag,omitempty"` + ETag *string // Whether this site is enabled for block user upload. - IsBlockUserUploadEnabled *bool `json:"isBlockUserUploadEnabled,omitempty"` + IsBlockUserUploadEnabled *bool // Whether this site is disabled detailed logging for - IsDetailedLoggingEnabled *bool `json:"isDetailedLoggingEnabled,omitempty"` + IsDetailedLoggingEnabled *bool // Whether this site is EndpointParameters enabled for channel - IsEndpointParametersEnabled *bool `json:"isEndpointParametersEnabled,omitempty"` + IsEndpointParametersEnabled *bool // Whether this no-storage site is disabled detailed logging for - IsNoStorageEnabled *bool `json:"isNoStorageEnabled,omitempty"` + IsNoStorageEnabled *bool // Whether this site is enabled for authentication with Bot Framework. - IsSecureSiteEnabled *bool `json:"isSecureSiteEnabled,omitempty"` + IsSecureSiteEnabled *bool // Whether this site is enabled for Bot Framework V1 protocol. - IsV1Enabled *bool `json:"isV1Enabled,omitempty"` + IsV1Enabled *bool // Whether this site is enabled for Bot Framework V3 protocol. - IsV3Enabled *bool `json:"isV3Enabled,omitempty"` + IsV3Enabled *bool // Whether this site is enabled for Webchat Speech - IsWebChatSpeechEnabled *bool `json:"isWebChatSpeechEnabled,omitempty"` + IsWebChatSpeechEnabled *bool // Whether this site is enabled for preview versions of Webchat - IsWebchatPreviewEnabled *bool `json:"isWebchatPreviewEnabled,omitempty"` + IsWebchatPreviewEnabled *bool // Tenant Id - TenantID *string `json:"tenantId,omitempty"` + TenantID *string // List of Trusted Origin URLs for this site. This field is applicable only if isSecureSiteEnabled is True. - TrustedOrigins []*string `json:"trustedOrigins,omitempty"` + TrustedOrigins []*string // READ-ONLY; Whether this site is token enabled for channel - IsTokenEnabled *bool `json:"isTokenEnabled,omitempty" azure:"ro"` + IsTokenEnabled *bool // READ-ONLY; Primary key. Value only returned through POST to the action Channel List API, otherwise empty. - Key *string `json:"key,omitempty" azure:"ro"` + Key *string // READ-ONLY; Secondary key. Value only returned through POST to the action Channel List API, otherwise empty. - Key2 *string `json:"key2,omitempty" azure:"ro"` + Key2 *string // READ-ONLY; Site Id - SiteID *string `json:"siteId,omitempty" azure:"ro"` + SiteID *string } // SiteInfo - Site information for WebChat or DirectLine Channels to identify which site to regenerate keys for. type SiteInfo struct { // REQUIRED; Determines which key is to be regenerated - Key *Key `json:"key,omitempty"` + Key *Key // REQUIRED; The site name - SiteName *string `json:"siteName,omitempty"` + SiteName *string } // SkypeChannel - Skype channel definition type SkypeChannel struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to Skype channel resource - Properties *SkypeChannelProperties `json:"properties,omitempty"` + Properties *SkypeChannelProperties // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type SkypeChannel. @@ -1606,52 +1606,52 @@ func (s *SkypeChannel) GetChannel() *Channel { // SkypeChannelProperties - The parameters to provide for the Microsoft Teams channel. type SkypeChannelProperties struct { // REQUIRED; Whether this channel is enabled for the bot - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // Calling web hook for Skype channel - CallingWebHook *string `json:"callingWebHook,omitempty"` + CallingWebHook *string // Enable calling for Skype channel - EnableCalling *bool `json:"enableCalling,omitempty"` + EnableCalling *bool // Enable groups for Skype channel - EnableGroups *bool `json:"enableGroups,omitempty"` + EnableGroups *bool // Enable media cards for Skype channel - EnableMediaCards *bool `json:"enableMediaCards,omitempty"` + EnableMediaCards *bool // Enable messaging for Skype channel - EnableMessaging *bool `json:"enableMessaging,omitempty"` + EnableMessaging *bool // Enable screen sharing for Skype channel - EnableScreenSharing *bool `json:"enableScreenSharing,omitempty"` + EnableScreenSharing *bool // Enable video for Skype channel - EnableVideo *bool `json:"enableVideo,omitempty"` + EnableVideo *bool // Group mode for Skype channel - GroupsMode *string `json:"groupsMode,omitempty"` + GroupsMode *string // Incoming call route for Skype channel - IncomingCallRoute *string `json:"incomingCallRoute,omitempty"` + IncomingCallRoute *string } // SlackChannel - Slack channel definition type SlackChannel struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to Slack channel resource - Properties *SlackChannelProperties `json:"properties,omitempty"` + Properties *SlackChannelProperties // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type SlackChannel. @@ -1667,55 +1667,55 @@ func (s *SlackChannel) GetChannel() *Channel { // SlackChannelProperties - The parameters to provide for the Slack channel. type SlackChannelProperties struct { // REQUIRED; Whether this channel is enabled for the bot - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // The Slack client id - ClientID *string `json:"clientId,omitempty"` + ClientID *string // The Slack client secret. Value only returned through POST to the action Channel List API, otherwise empty. - ClientSecret *string `json:"clientSecret,omitempty"` + ClientSecret *string // The Slack landing page Url - LandingPageURL *string `json:"landingPageUrl,omitempty"` + LandingPageURL *string // Whether to register the settings before OAuth validation is performed. Recommended to True. - RegisterBeforeOAuthFlow *bool `json:"registerBeforeOAuthFlow,omitempty"` + RegisterBeforeOAuthFlow *bool // The Slack permission scopes. - Scopes *string `json:"scopes,omitempty"` + Scopes *string // The Slack signing secret. - SigningSecret *string `json:"signingSecret,omitempty"` + SigningSecret *string // The Slack verification token. Value only returned through POST to the action Channel List API, otherwise empty. - VerificationToken *string `json:"verificationToken,omitempty"` + VerificationToken *string // READ-ONLY; Whether this channel is validated for the bot - IsValidated *bool `json:"IsValidated,omitempty" azure:"ro"` + IsValidated *bool // READ-ONLY; The Sms auth token - LastSubmissionID *string `json:"lastSubmissionId,omitempty" azure:"ro"` + LastSubmissionID *string // READ-ONLY; The Slack redirect action - RedirectAction *string `json:"redirectAction,omitempty" azure:"ro"` + RedirectAction *string } // SmsChannel - Sms channel definition type SmsChannel struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to Sms channel resource - Properties *SmsChannelProperties `json:"properties,omitempty"` + Properties *SmsChannelProperties // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type SmsChannel. @@ -1731,37 +1731,37 @@ func (s *SmsChannel) GetChannel() *Channel { // SmsChannelProperties - The parameters to provide for the Sms channel. type SmsChannelProperties struct { // REQUIRED; The Sms account SID. Value only returned through POST to the action Channel List API, otherwise empty. - AccountSID *string `json:"accountSID,omitempty"` + AccountSID *string // REQUIRED; Whether this channel is enabled for the bot - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The Sms phone - Phone *string `json:"phone,omitempty"` + Phone *string // The Sms auth token. Value only returned through POST to the action Channel List API, otherwise empty. - AuthToken *string `json:"authToken,omitempty"` + AuthToken *string // Whether this channel is validated for the bot - IsValidated *bool `json:"isValidated,omitempty"` + IsValidated *bool } // TelegramChannel - Telegram channel definition type TelegramChannel struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to Telegram channel resource - Properties *TelegramChannelProperties `json:"properties,omitempty"` + Properties *TelegramChannelProperties // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type TelegramChannel. @@ -1777,31 +1777,31 @@ func (t *TelegramChannel) GetChannel() *Channel { // TelegramChannelProperties - The parameters to provide for the Telegram channel. type TelegramChannelProperties struct { // REQUIRED; Whether this channel is enabled for the bot - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // The Telegram access token. Value only returned through POST to the action Channel List API, otherwise empty. - AccessToken *string `json:"accessToken,omitempty"` + AccessToken *string // Whether this channel is validated for the bot - IsValidated *bool `json:"isValidated,omitempty"` + IsValidated *bool } // TelephonyChannel - Telephony channel definition type TelephonyChannel struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to Telephony channel resource - Properties *TelephonyChannelProperties `json:"properties,omitempty"` + Properties *TelephonyChannelProperties // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type TelephonyChannel. @@ -1817,97 +1817,97 @@ func (t *TelephonyChannel) GetChannel() *Channel { // TelephonyChannelProperties - The parameters to provide for the Direct Line channel. type TelephonyChannelProperties struct { // The list of Telephony api configuration - APIConfigurations []*TelephonyChannelResourceAPIConfiguration `json:"apiConfigurations,omitempty"` + APIConfigurations []*TelephonyChannelResourceAPIConfiguration // The extensionKey2 - CognitiveServiceRegion *string `json:"cognitiveServiceRegion,omitempty"` + CognitiveServiceRegion *string // The extensionKey1 - CognitiveServiceSubscriptionKey *string `json:"cognitiveServiceSubscriptionKey,omitempty"` + CognitiveServiceSubscriptionKey *string // The default locale of the channel - DefaultLocale *string `json:"defaultLocale,omitempty"` + DefaultLocale *string // Whether the channel is enabled - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // The list of Telephony phone numbers - PhoneNumbers []*TelephonyPhoneNumbers `json:"phoneNumbers,omitempty"` + PhoneNumbers []*TelephonyPhoneNumbers // The premium SKU applied to the channel - PremiumSKU *string `json:"premiumSKU,omitempty"` + PremiumSKU *string } // TelephonyChannelResourceAPIConfiguration - A resource Api configuration for the Telephony channel type TelephonyChannelResourceAPIConfiguration struct { // The cognitive service region. - CognitiveServiceRegion *string `json:"cognitiveServiceRegion,omitempty"` + CognitiveServiceRegion *string // The cognitive service resourceId. - CognitiveServiceResourceID *string `json:"cognitiveServiceResourceId,omitempty"` + CognitiveServiceResourceID *string // The cognitive service subscription key. - CognitiveServiceSubscriptionKey *string `json:"cognitiveServiceSubscriptionKey,omitempty"` + CognitiveServiceSubscriptionKey *string // The default locale. - DefaultLocale *string `json:"defaultLocale,omitempty"` + DefaultLocale *string // The id of config. - ID *string `json:"id,omitempty"` + ID *string // The provider name. - ProviderName *string `json:"providerName,omitempty"` + ProviderName *string } // TelephonyPhoneNumbers - A telephone number for the Telephony channel type TelephonyPhoneNumbers struct { // The endpoint of ACS. - AcsEndpoint *string `json:"acsEndpoint,omitempty"` + AcsEndpoint *string // The resource id of ACS. - AcsResourceID *string `json:"acsResourceId,omitempty"` + AcsResourceID *string // The secret of ACS. - AcsSecret *string `json:"acsSecret,omitempty"` + AcsSecret *string // The service region of cognitive service. - CognitiveServiceRegion *string `json:"cognitiveServiceRegion,omitempty"` + CognitiveServiceRegion *string // The resource id of cognitive service. - CognitiveServiceResourceID *string `json:"cognitiveServiceResourceId,omitempty"` + CognitiveServiceResourceID *string // The subscription key of cognitive service. - CognitiveServiceSubscriptionKey *string `json:"cognitiveServiceSubscriptionKey,omitempty"` + CognitiveServiceSubscriptionKey *string // The default locale of the phone number. - DefaultLocale *string `json:"defaultLocale,omitempty"` + DefaultLocale *string // The element id. - ID *string `json:"id,omitempty"` + ID *string // Optional Property that will determine the offering type of the phone. - OfferType *string `json:"offerType,omitempty"` + OfferType *string // The phone number. - PhoneNumber *string `json:"phoneNumber,omitempty"` + PhoneNumber *string } // WebChatChannel - Web Chat channel definition type WebChatChannel struct { // REQUIRED; The channel name - ChannelName *string `json:"channelName,omitempty"` + ChannelName *string // Entity Tag of the resource - Etag *string `json:"etag,omitempty"` + Etag *string // Specifies the location of the resource. - Location *string `json:"location,omitempty"` + Location *string // The set of properties specific to Web Chat channel resource - Properties *WebChatChannelProperties `json:"properties,omitempty"` + Properties *WebChatChannelProperties // READ-ONLY; Provisioning state of the resource - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetChannel implements the ChannelClassification interface for type WebChatChannel. @@ -1923,68 +1923,68 @@ func (w *WebChatChannel) GetChannel() *Channel { // WebChatChannelProperties - The parameters to provide for the Web Chat channel. type WebChatChannelProperties struct { // The list of Web Chat sites - Sites []*WebChatSite `json:"sites,omitempty"` + Sites []*WebChatSite // READ-ONLY; Web chat control embed code - WebChatEmbedCode *string `json:"webChatEmbedCode,omitempty" azure:"ro"` + WebChatEmbedCode *string } // WebChatSite - A site for the Webchat channel type WebChatSite struct { // REQUIRED; Whether this site is enabled for DirectLine channel - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; Site name - SiteName *string `json:"siteName,omitempty"` + SiteName *string // DirectLine application id - AppID *string `json:"appId,omitempty"` + AppID *string // Entity Tag - ETag *string `json:"eTag,omitempty"` + ETag *string // Whether this site is enabled for block user upload. - IsBlockUserUploadEnabled *bool `json:"isBlockUserUploadEnabled,omitempty"` + IsBlockUserUploadEnabled *bool // Whether this site is disabled detailed logging for - IsDetailedLoggingEnabled *bool `json:"isDetailedLoggingEnabled,omitempty"` + IsDetailedLoggingEnabled *bool // Whether this site is EndpointParameters enabled for channel - IsEndpointParametersEnabled *bool `json:"isEndpointParametersEnabled,omitempty"` + IsEndpointParametersEnabled *bool // Whether this no-storage site is disabled detailed logging for - IsNoStorageEnabled *bool `json:"isNoStorageEnabled,omitempty"` + IsNoStorageEnabled *bool // Whether this site is enabled for authentication with Bot Framework. - IsSecureSiteEnabled *bool `json:"isSecureSiteEnabled,omitempty"` + IsSecureSiteEnabled *bool // Whether this site is enabled for Bot Framework V1 protocol. - IsV1Enabled *bool `json:"isV1Enabled,omitempty"` + IsV1Enabled *bool // Whether this site is enabled for Bot Framework V3 protocol. - IsV3Enabled *bool `json:"isV3Enabled,omitempty"` + IsV3Enabled *bool // Whether this site is enabled for Webchat Speech - IsWebChatSpeechEnabled *bool `json:"isWebChatSpeechEnabled,omitempty"` + IsWebChatSpeechEnabled *bool // Whether this site is enabled for preview versions of Webchat - IsWebchatPreviewEnabled *bool `json:"isWebchatPreviewEnabled,omitempty"` + IsWebchatPreviewEnabled *bool // Tenant Id - TenantID *string `json:"tenantId,omitempty"` + TenantID *string // List of Trusted Origin URLs for this site. This field is applicable only if isSecureSiteEnabled is True. - TrustedOrigins []*string `json:"trustedOrigins,omitempty"` + TrustedOrigins []*string // READ-ONLY; Whether this site is token enabled for channel - IsTokenEnabled *bool `json:"isTokenEnabled,omitempty" azure:"ro"` + IsTokenEnabled *bool // READ-ONLY; Primary key. Value only returned through POST to the action Channel List API, otherwise empty. - Key *string `json:"key,omitempty" azure:"ro"` + Key *string // READ-ONLY; Secondary key. Value only returned through POST to the action Channel List API, otherwise empty. - Key2 *string `json:"key2,omitempty" azure:"ro"` + Key2 *string // READ-ONLY; Site Id - SiteID *string `json:"siteId,omitempty" azure:"ro"` + SiteID *string } diff --git a/sdk/resourcemanager/botservice/armbotservice/models_serde.go b/sdk/resourcemanager/botservice/armbotservice/models_serde.go index 7759ee2876e8..5fa264122148 100644 --- a/sdk/resourcemanager/botservice/armbotservice/models_serde.go +++ b/sdk/resourcemanager/botservice/armbotservice/models_serde.go @@ -2011,7 +2011,7 @@ func (o OperationEntity) MarshalJSON() ([]byte, error) { populate(objectMap, "display", o.Display) populate(objectMap, "name", o.Name) populate(objectMap, "origin", o.Origin) - populate(objectMap, "properties", &o.Properties) + populateAny(objectMap, "properties", o.Properties) return json.Marshal(objectMap) } @@ -3762,6 +3762,16 @@ func populate(m map[string]any, k string, v any) { } } +func populateAny(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else { + m[k] = v + } +} + func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil diff --git a/sdk/resourcemanager/cdn/armcdn/CHANGELOG.md b/sdk/resourcemanager/cdn/armcdn/CHANGELOG.md index 9649f35a6976..2336cde1b867 100644 --- a/sdk/resourcemanager/cdn/armcdn/CHANGELOG.md +++ b/sdk/resourcemanager/cdn/armcdn/CHANGELOG.md @@ -1,5 +1,10 @@ # Release History +## 1.1.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + ## 1.1.0 (2023-03-27) ### Features Added diff --git a/sdk/resourcemanager/cdn/armcdn/autorest.md b/sdk/resourcemanager/cdn/armcdn/autorest.md index 7b079e2251a6..e880e960bbc8 100644 --- a/sdk/resourcemanager/cdn/armcdn/autorest.md +++ b/sdk/resourcemanager/cdn/armcdn/autorest.md @@ -8,7 +8,7 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/cdn/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/cdn/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.1.0 +module-version: 1.1.1 modelerfour: lenient-model-deduplication: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/cdn/armcdn/constants.go b/sdk/resourcemanager/cdn/armcdn/constants.go index 07dc47e7a7f1..90e18a3fba63 100644 --- a/sdk/resourcemanager/cdn/armcdn/constants.go +++ b/sdk/resourcemanager/cdn/armcdn/constants.go @@ -11,7 +11,7 @@ package armcdn const ( moduleName = "armcdn" - moduleVersion = "v1.1.0" + moduleVersion = "v1.1.1" ) // AFDEndpointProtocols - Supported protocols for the customer's endpoint. diff --git a/sdk/resourcemanager/cdn/armcdn/models.go b/sdk/resourcemanager/cdn/armcdn/models.go index 6302424bf9bd..af7f280b9822 100644 --- a/sdk/resourcemanager/cdn/armcdn/models.go +++ b/sdk/resourcemanager/cdn/armcdn/models.go @@ -51,97 +51,97 @@ type AFDCustomDomainsClientListByProfileOptions struct { // www.contoso.com. type AFDDomain struct { // The JSON object that contains the properties of the domain to create. - Properties *AFDDomainProperties `json:"properties,omitempty"` + Properties *AFDDomainProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // AFDDomainHTTPSParameters - The JSON object that contains the properties to secure a domain. type AFDDomainHTTPSParameters struct { // REQUIRED; Defines the source of the SSL certificate. - CertificateType *AfdCertificateType `json:"certificateType,omitempty"` + CertificateType *AfdCertificateType // TLS protocol version that will be used for Https - MinimumTLSVersion *AfdMinimumTLSVersion `json:"minimumTlsVersion,omitempty"` + MinimumTLSVersion *AfdMinimumTLSVersion // Resource reference to the secret. ie. subs/rg/profile/secret - Secret *ResourceReference `json:"secret,omitempty"` + Secret *ResourceReference } // AFDDomainListResult - Result of the request to list domains. It contains a list of domain objects and a URL link to get // the next set of results. type AFDDomainListResult struct { // URL to get the next set of domain objects if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; List of AzureFrontDoor domains within a profile. - Value []*AFDDomain `json:"value,omitempty" azure:"ro"` + Value []*AFDDomain } // AFDDomainProperties - The JSON object that contains the properties of the domain to create. type AFDDomainProperties struct { // REQUIRED; The host name of the domain. Must be a domain name. - HostName *string `json:"hostName,omitempty"` + HostName *string // Resource reference to the Azure DNS zone - AzureDNSZone *ResourceReference `json:"azureDnsZone,omitempty"` + AzureDNSZone *ResourceReference // Resource reference to the Azure resource where custom domain ownership was prevalidated - PreValidatedCustomDomainResourceID *ResourceReference `json:"preValidatedCustomDomainResourceId,omitempty"` + PreValidatedCustomDomainResourceID *ResourceReference // The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own // certificate. If not specified, enabling ssl uses AzureFrontDoor managed // certificate by default. - TLSSettings *AFDDomainHTTPSParameters `json:"tlsSettings,omitempty"` + TLSSettings *AFDDomainHTTPSParameters // READ-ONLY - DeploymentStatus *DeploymentStatus `json:"deploymentStatus,omitempty" azure:"ro"` + DeploymentStatus *DeploymentStatus // READ-ONLY; Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. DCV stands // for DomainControlValidation. - DomainValidationState *DomainValidationState `json:"domainValidationState,omitempty" azure:"ro"` + DomainValidationState *DomainValidationState // READ-ONLY; The name of the profile which holds the domain. - ProfileName *string `json:"profileName,omitempty" azure:"ro"` + ProfileName *string // READ-ONLY; Provisioning status - ProvisioningState *AfdProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *AfdProvisioningState // READ-ONLY; Values the customer needs to validate domain ownership - ValidationProperties *DomainValidationProperties `json:"validationProperties,omitempty" azure:"ro"` + ValidationProperties *DomainValidationProperties } // AFDDomainUpdateParameters - The domain JSON object required for domain creation or update. type AFDDomainUpdateParameters struct { // The JSON object that contains the properties of the domain to create. - Properties *AFDDomainUpdatePropertiesParameters `json:"properties,omitempty"` + Properties *AFDDomainUpdatePropertiesParameters } // AFDDomainUpdatePropertiesParameters - The JSON object that contains the properties of the domain to create. type AFDDomainUpdatePropertiesParameters struct { // Resource reference to the Azure DNS zone - AzureDNSZone *ResourceReference `json:"azureDnsZone,omitempty"` + AzureDNSZone *ResourceReference // Resource reference to the Azure resource where custom domain ownership was prevalidated - PreValidatedCustomDomainResourceID *ResourceReference `json:"preValidatedCustomDomainResourceId,omitempty"` + PreValidatedCustomDomainResourceID *ResourceReference // The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own // certificate. If not specified, enabling ssl uses AzureFrontDoor managed // certificate by default. - TLSSettings *AFDDomainHTTPSParameters `json:"tlsSettings,omitempty"` + TLSSettings *AFDDomainHTTPSParameters // READ-ONLY; The name of the profile which holds the domain. - ProfileName *string `json:"profileName,omitempty" azure:"ro"` + ProfileName *string } // AFDEndpoint - CDN endpoint is the entity within a CDN profile containing configuration information such as origin, protocol, @@ -149,74 +149,74 @@ type AFDDomainUpdatePropertiesParameters struct { // .azureedge.net. type AFDEndpoint struct { // REQUIRED; Resource location. - Location *string `json:"location,omitempty"` + Location *string // The JSON object that contains the properties required to create an endpoint. - Properties *AFDEndpointProperties `json:"properties,omitempty"` + Properties *AFDEndpointProperties // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // AFDEndpointListResult - Result of the request to list endpoints. It contains a list of endpoint objects and a URL link // to get the next set of results. type AFDEndpointListResult struct { // URL to get the next set of endpoint objects if there is any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; List of AzureFrontDoor endpoints within a profile - Value []*AFDEndpoint `json:"value,omitempty" azure:"ro"` + Value []*AFDEndpoint } // AFDEndpointProperties - The JSON object that contains the properties required to create an endpoint. type AFDEndpointProperties struct { // Indicates the endpoint name reuse scope. The default value is TenantReuse. - AutoGeneratedDomainNameLabelScope *AutoGeneratedDomainNameLabelScope `json:"autoGeneratedDomainNameLabelScope,omitempty"` + AutoGeneratedDomainNameLabelScope *AutoGeneratedDomainNameLabelScope // Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - EnabledState *EnabledState `json:"enabledState,omitempty"` + EnabledState *EnabledState // READ-ONLY - DeploymentStatus *DeploymentStatus `json:"deploymentStatus,omitempty" azure:"ro"` + DeploymentStatus *DeploymentStatus // READ-ONLY; The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net - HostName *string `json:"hostName,omitempty" azure:"ro"` + HostName *string // READ-ONLY; The name of the profile which holds the endpoint. - ProfileName *string `json:"profileName,omitempty" azure:"ro"` + ProfileName *string // READ-ONLY; Provisioning status - ProvisioningState *AfdProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *AfdProvisioningState } // AFDEndpointPropertiesUpdateParameters - The JSON object containing endpoint update parameters. type AFDEndpointPropertiesUpdateParameters struct { // Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - EnabledState *EnabledState `json:"enabledState,omitempty"` + EnabledState *EnabledState // READ-ONLY; The name of the profile which holds the endpoint. - ProfileName *string `json:"profileName,omitempty" azure:"ro"` + ProfileName *string } // AFDEndpointUpdateParameters - Properties required to create or update an endpoint. type AFDEndpointUpdateParameters struct { // The JSON object containing endpoint update parameters. - Properties *AFDEndpointPropertiesUpdateParameters `json:"properties,omitempty"` + Properties *AFDEndpointPropertiesUpdateParameters // Endpoint tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // AFDEndpointsClientBeginCreateOptions contains the optional parameters for the AFDEndpointsClient.BeginCreate method. @@ -272,98 +272,98 @@ type AFDEndpointsClientValidateCustomDomainOptions struct { // the configured origins. type AFDOrigin struct { // The JSON object that contains the properties of the origin. - Properties *AFDOriginProperties `json:"properties,omitempty"` + Properties *AFDOriginProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // AFDOriginGroup - AFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be // served from CDN. type AFDOriginGroup struct { // The JSON object that contains the properties of the origin group. - Properties *AFDOriginGroupProperties `json:"properties,omitempty"` + Properties *AFDOriginGroupProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // AFDOriginGroupListResult - Result of the request to list origin groups. It contains a list of origin groups objects and // a URL link to get the next set of results. type AFDOriginGroupListResult struct { // URL to get the next set of origin objects if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; List of CDN origin groups within an endpoint - Value []*AFDOriginGroup `json:"value,omitempty" azure:"ro"` + Value []*AFDOriginGroup } // AFDOriginGroupProperties - The JSON object that contains the properties of the origin group. type AFDOriginGroupProperties struct { // Health probe settings to the origin that is used to determine the health of the origin. - HealthProbeSettings *HealthProbeParameters `json:"healthProbeSettings,omitempty"` + HealthProbeSettings *HealthProbeParameters // Load balancing settings for a backend pool - LoadBalancingSettings *LoadBalancingSettingsParameters `json:"loadBalancingSettings,omitempty"` + LoadBalancingSettings *LoadBalancingSettingsParameters // Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - SessionAffinityState *EnabledState `json:"sessionAffinityState,omitempty"` + SessionAffinityState *EnabledState // Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint // is added. Default is 10 mins. This property is currently not supported. - TrafficRestorationTimeToHealedOrNewEndpointsInMinutes *int32 `json:"trafficRestorationTimeToHealedOrNewEndpointsInMinutes,omitempty"` + TrafficRestorationTimeToHealedOrNewEndpointsInMinutes *int32 // READ-ONLY - DeploymentStatus *DeploymentStatus `json:"deploymentStatus,omitempty" azure:"ro"` + DeploymentStatus *DeploymentStatus // READ-ONLY; The name of the profile which holds the origin group. - ProfileName *string `json:"profileName,omitempty" azure:"ro"` + ProfileName *string // READ-ONLY; Provisioning status - ProvisioningState *AfdProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *AfdProvisioningState } // AFDOriginGroupUpdateParameters - AFDOrigin group properties needed for origin group creation or update. type AFDOriginGroupUpdateParameters struct { // The JSON object that contains the properties of the origin group. - Properties *AFDOriginGroupUpdatePropertiesParameters `json:"properties,omitempty"` + Properties *AFDOriginGroupUpdatePropertiesParameters } // AFDOriginGroupUpdatePropertiesParameters - The JSON object that contains the properties of the origin group. type AFDOriginGroupUpdatePropertiesParameters struct { // Health probe settings to the origin that is used to determine the health of the origin. - HealthProbeSettings *HealthProbeParameters `json:"healthProbeSettings,omitempty"` + HealthProbeSettings *HealthProbeParameters // Load balancing settings for a backend pool - LoadBalancingSettings *LoadBalancingSettingsParameters `json:"loadBalancingSettings,omitempty"` + LoadBalancingSettings *LoadBalancingSettingsParameters // Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' - SessionAffinityState *EnabledState `json:"sessionAffinityState,omitempty"` + SessionAffinityState *EnabledState // Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint // is added. Default is 10 mins. This property is currently not supported. - TrafficRestorationTimeToHealedOrNewEndpointsInMinutes *int32 `json:"trafficRestorationTimeToHealedOrNewEndpointsInMinutes,omitempty"` + TrafficRestorationTimeToHealedOrNewEndpointsInMinutes *int32 // READ-ONLY; The name of the profile which holds the origin group. - ProfileName *string `json:"profileName,omitempty" azure:"ro"` + ProfileName *string } // AFDOriginGroupsClientBeginCreateOptions contains the optional parameters for the AFDOriginGroupsClient.BeginCreate method. @@ -405,104 +405,104 @@ type AFDOriginGroupsClientListResourceUsageOptions struct { // the next set of results. type AFDOriginListResult struct { // URL to get the next set of origin objects if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; List of CDN origins within an endpoint - Value []*AFDOrigin `json:"value,omitempty" azure:"ro"` + Value []*AFDOrigin } // AFDOriginProperties - The JSON object that contains the properties of the origin. type AFDOriginProperties struct { // Resource reference to the Azure origin resource. - AzureOrigin *ResourceReference `json:"azureOrigin,omitempty"` + AzureOrigin *ResourceReference // Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled // if there is a single enabled backend in single enabled backend pool. - EnabledState *EnabledState `json:"enabledState,omitempty"` + EnabledState *EnabledState // Whether to enable certificate name check at origin level - EnforceCertificateNameCheck *bool `json:"enforceCertificateNameCheck,omitempty"` + EnforceCertificateNameCheck *bool // The value of the HTTP port. Must be between 1 and 65535. - HTTPPort *int32 `json:"httpPort,omitempty"` + HTTPPort *int32 // The value of the HTTPS port. Must be between 1 and 65535. - HTTPSPort *int32 `json:"httpsPort,omitempty"` + HTTPSPort *int32 // The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across // all origins in an endpoint. - HostName *string `json:"hostName,omitempty"` + HostName *string // The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this // value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services // require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint - OriginHostHeader *string `json:"originHostHeader,omitempty"` + OriginHostHeader *string // Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any // lower priority origin is healthy.Must be between 1 and 5 - Priority *int32 `json:"priority,omitempty"` + Priority *int32 // The properties of the private link resource for private origin. - SharedPrivateLinkResource *SharedPrivateLinkResourceProperties `json:"sharedPrivateLinkResource,omitempty"` + SharedPrivateLinkResource *SharedPrivateLinkResourceProperties // Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 - Weight *int32 `json:"weight,omitempty"` + Weight *int32 // READ-ONLY - DeploymentStatus *DeploymentStatus `json:"deploymentStatus,omitempty" azure:"ro"` + DeploymentStatus *DeploymentStatus // READ-ONLY; The name of the origin group which contains this origin. - OriginGroupName *string `json:"originGroupName,omitempty" azure:"ro"` + OriginGroupName *string // READ-ONLY; Provisioning status - ProvisioningState *AfdProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *AfdProvisioningState } // AFDOriginUpdateParameters - AFDOrigin properties needed for origin update. type AFDOriginUpdateParameters struct { // The JSON object that contains the properties of the origin. - Properties *AFDOriginUpdatePropertiesParameters `json:"properties,omitempty"` + Properties *AFDOriginUpdatePropertiesParameters } // AFDOriginUpdatePropertiesParameters - The JSON object that contains the properties of the origin. type AFDOriginUpdatePropertiesParameters struct { // Resource reference to the Azure origin resource. - AzureOrigin *ResourceReference `json:"azureOrigin,omitempty"` + AzureOrigin *ResourceReference // Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled // if there is a single enabled backend in single enabled backend pool. - EnabledState *EnabledState `json:"enabledState,omitempty"` + EnabledState *EnabledState // Whether to enable certificate name check at origin level - EnforceCertificateNameCheck *bool `json:"enforceCertificateNameCheck,omitempty"` + EnforceCertificateNameCheck *bool // The value of the HTTP port. Must be between 1 and 65535. - HTTPPort *int32 `json:"httpPort,omitempty"` + HTTPPort *int32 // The value of the HTTPS port. Must be between 1 and 65535. - HTTPSPort *int32 `json:"httpsPort,omitempty"` + HTTPSPort *int32 // The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across // all origins in an endpoint. - HostName *string `json:"hostName,omitempty"` + HostName *string // The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this // value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services // require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint - OriginHostHeader *string `json:"originHostHeader,omitempty"` + OriginHostHeader *string // Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any // lower priority origin is healthy.Must be between 1 and 5 - Priority *int32 `json:"priority,omitempty"` + Priority *int32 // The properties of the private link resource for private origin. - SharedPrivateLinkResource *SharedPrivateLinkResourceProperties `json:"sharedPrivateLinkResource,omitempty"` + SharedPrivateLinkResource *SharedPrivateLinkResourceProperties // Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 - Weight *int32 `json:"weight,omitempty"` + Weight *int32 // READ-ONLY; The name of the origin group which contains this origin. - OriginGroupName *string `json:"originGroupName,omitempty" azure:"ro"` + OriginGroupName *string } // AFDOriginsClientBeginCreateOptions contains the optional parameters for the AFDOriginsClient.BeginCreate method. @@ -549,70 +549,70 @@ type AFDProfilesClientListResourceUsageOptions struct { // AFDStateProperties - The tracking states for afd resources. type AFDStateProperties struct { // READ-ONLY - DeploymentStatus *DeploymentStatus `json:"deploymentStatus,omitempty" azure:"ro"` + DeploymentStatus *DeploymentStatus // READ-ONLY; Provisioning status - ProvisioningState *AfdProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *AfdProvisioningState } // ActivatedResourceReference - Reference to another resource along with its state. type ActivatedResourceReference struct { // Resource ID. - ID *string `json:"id,omitempty"` + ID *string // READ-ONLY; Whether the resource is active or inactive - IsActive *bool `json:"isActive,omitempty" azure:"ro"` + IsActive *bool } // AfdErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. // (This also follows the OData error response format.). type AfdErrorResponse struct { // The error object. - Error *ErrorDetail `json:"error,omitempty"` + Error *ErrorDetail } // AfdPurgeParameters - Parameters required for content purge. type AfdPurgeParameters struct { // REQUIRED; The path to the content to be purged. Can describe a file path or a wild card directory. - ContentPaths []*string `json:"contentPaths,omitempty"` + ContentPaths []*string // List of domains. - Domains []*string `json:"domains,omitempty"` + Domains []*string } // AfdRouteCacheConfiguration - Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration // object. type AfdRouteCacheConfiguration struct { // compression settings. - CompressionSettings *CompressionSettings `json:"compressionSettings,omitempty"` + CompressionSettings *CompressionSettings // query parameters to include or exclude (comma separated). - QueryParameters *string `json:"queryParameters,omitempty"` + QueryParameters *string // Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore // specific query strings, cache every request with a unique URL, or cache specific // query strings. - QueryStringCachingBehavior *AfdQueryStringCachingBehavior `json:"queryStringCachingBehavior,omitempty"` + QueryStringCachingBehavior *AfdQueryStringCachingBehavior } // AzureFirstPartyManagedCertificate - Azure FirstParty Managed Certificate provided by other first party resource providers // to enable HTTPS. type AzureFirstPartyManagedCertificate struct { // The type of the secret resource. - Type *SecretType `json:"type,omitempty"` + Type *SecretType // READ-ONLY; Certificate expiration date. - ExpirationDate *string `json:"expirationDate,omitempty" azure:"ro"` + ExpirationDate *string // READ-ONLY; Subject name in the certificate. - Subject *string `json:"subject,omitempty" azure:"ro"` + Subject *string } // AzureFirstPartyManagedCertificateParameters - Azure FirstParty Managed Certificate provided by other first party resource // providers to enable HTTPS. type AzureFirstPartyManagedCertificateParameters struct { // REQUIRED; The type of the secret resource. - Type *SecretType `json:"type,omitempty"` + Type *SecretType } // GetSecretParameters implements the SecretParametersClassification interface for type AzureFirstPartyManagedCertificateParameters. @@ -626,235 +626,235 @@ func (a *AzureFirstPartyManagedCertificateParameters) GetSecretParameters() *Sec // object. type CacheConfiguration struct { // Caching behavior for the requests - CacheBehavior *RuleCacheBehavior `json:"cacheBehavior,omitempty"` + CacheBehavior *RuleCacheBehavior // The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss - CacheDuration *string `json:"cacheDuration,omitempty"` + CacheDuration *string // Indicates whether content compression is enabled. If compression is enabled, content will be served as compressed if user // requests for a compressed version. Content won't be compressed on // AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB. - IsCompressionEnabled *RuleIsCompressionEnabled `json:"isCompressionEnabled,omitempty"` + IsCompressionEnabled *RuleIsCompressionEnabled // query parameters to include or exclude (comma separated). - QueryParameters *string `json:"queryParameters,omitempty"` + QueryParameters *string // Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore // specific query strings, cache every request with a unique URL, or cache specific // query strings. - QueryStringCachingBehavior *RuleQueryStringCachingBehavior `json:"queryStringCachingBehavior,omitempty"` + QueryStringCachingBehavior *RuleQueryStringCachingBehavior } // CacheExpirationActionParameters - Defines the parameters for the cache expiration action. type CacheExpirationActionParameters struct { // REQUIRED; Caching behavior for the requests - CacheBehavior *CacheBehavior `json:"cacheBehavior,omitempty"` + CacheBehavior *CacheBehavior // REQUIRED; The level at which the content needs to be cached. - CacheType *CacheType `json:"cacheType,omitempty"` + CacheType *CacheType // REQUIRED - TypeName *CacheExpirationActionParametersTypeName `json:"typeName,omitempty"` + TypeName *CacheExpirationActionParametersTypeName // The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss - CacheDuration *string `json:"cacheDuration,omitempty"` + CacheDuration *string } // CacheKeyQueryStringActionParameters - Defines the parameters for the cache-key query string action. type CacheKeyQueryStringActionParameters struct { // REQUIRED; Caching behavior for the requests - QueryStringBehavior *QueryStringBehavior `json:"queryStringBehavior,omitempty"` + QueryStringBehavior *QueryStringBehavior // REQUIRED - TypeName *CacheKeyQueryStringActionParametersTypeName `json:"typeName,omitempty"` + TypeName *CacheKeyQueryStringActionParametersTypeName // query parameters to include or exclude (comma separated). - QueryParameters *string `json:"queryParameters,omitempty"` + QueryParameters *string } // Certificate used for https type Certificate struct { // The type of the secret resource. - Type *SecretType `json:"type,omitempty"` + Type *SecretType // READ-ONLY; Certificate expiration date. - ExpirationDate *string `json:"expirationDate,omitempty" azure:"ro"` + ExpirationDate *string // READ-ONLY; Subject name in the certificate. - Subject *string `json:"subject,omitempty" azure:"ro"` + Subject *string } // CertificateSourceParameters - Defines the parameters for using CDN managed certificate for securing custom domain. type CertificateSourceParameters struct { // REQUIRED; Type of certificate used - CertificateType *CertificateType `json:"certificateType,omitempty"` + CertificateType *CertificateType // REQUIRED - TypeName *CdnCertificateSourceParametersTypeName `json:"typeName,omitempty"` + TypeName *CdnCertificateSourceParametersTypeName } // CheckEndpointNameAvailabilityInput - Input of CheckNameAvailability API. type CheckEndpointNameAvailabilityInput struct { // REQUIRED; The resource name to validate. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; The type of the resource whose name is to be validated. - Type *ResourceType `json:"type,omitempty"` + Type *ResourceType // Indicates the endpoint name reuse scope. The default value is TenantReuse. - AutoGeneratedDomainNameLabelScope *AutoGeneratedDomainNameLabelScope `json:"autoGeneratedDomainNameLabelScope,omitempty"` + AutoGeneratedDomainNameLabelScope *AutoGeneratedDomainNameLabelScope } // CheckEndpointNameAvailabilityOutput - Output of check name availability API. type CheckEndpointNameAvailabilityOutput struct { // READ-ONLY; Returns the available hostname generated based on the AutoGeneratedDomainNameLabelScope when the name is available, // otherwise it returns empty string - AvailableHostname *string `json:"availableHostname,omitempty" azure:"ro"` + AvailableHostname *string // READ-ONLY; The detailed error message describing why the name is not available. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string // READ-ONLY; Indicates whether the name is available. - NameAvailable *bool `json:"nameAvailable,omitempty" azure:"ro"` + NameAvailable *bool // READ-ONLY; The reason why the name is not available. - Reason *string `json:"reason,omitempty" azure:"ro"` + Reason *string } // CheckHostNameAvailabilityInput - Input of CheckHostNameAvailability API. type CheckHostNameAvailabilityInput struct { // REQUIRED; The host name to validate. - HostName *string `json:"hostName,omitempty"` + HostName *string } // CheckNameAvailabilityInput - Input of CheckNameAvailability API. type CheckNameAvailabilityInput struct { // REQUIRED; The resource name to validate. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; The type of the resource whose name is to be validated. - Type *ResourceType `json:"type,omitempty"` + Type *ResourceType } // CheckNameAvailabilityOutput - Output of check name availability API. type CheckNameAvailabilityOutput struct { // READ-ONLY; The detailed error message describing why the name is not available. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string // READ-ONLY; Indicates whether the name is available. - NameAvailable *bool `json:"nameAvailable,omitempty" azure:"ro"` + NameAvailable *bool // READ-ONLY; The reason why the name is not available. - Reason *string `json:"reason,omitempty" azure:"ro"` + Reason *string } // CidrIPAddress - CIDR Ip address type CidrIPAddress struct { // Ip address itself. - BaseIPAddress *string `json:"baseIpAddress,omitempty"` + BaseIPAddress *string // The length of the prefix of the ip address. - PrefixLength *int32 `json:"prefixLength,omitempty"` + PrefixLength *int32 } // ClientPortMatchConditionParameters - Defines the parameters for ClientPort match conditions type ClientPortMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *ClientPortOperator `json:"operator,omitempty"` + Operator *ClientPortOperator // REQUIRED - TypeName *ClientPortMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *ClientPortMatchConditionParametersTypeName // The match value for the condition of the delivery rule - MatchValues []*string `json:"matchValues,omitempty"` + MatchValues []*string // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } type Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems struct { - DateTime *time.Time `json:"dateTime,omitempty"` - Value *float32 `json:"value,omitempty"` + DateTime *time.Time + Value *float32 } type Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems struct { - DateTime *time.Time `json:"dateTime,omitempty"` - Value *float32 `json:"value,omitempty"` + DateTime *time.Time + Value *float32 } type ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems struct { - Metric *string `json:"metric,omitempty"` - Percentage *float64 `json:"percentage,omitempty"` - Value *int64 `json:"value,omitempty"` + Metric *string + Percentage *float64 + Value *int64 } // CompressionSettings - settings for compression. type CompressionSettings struct { // List of content types on which compression applies. The value should be a valid MIME type. - ContentTypesToCompress []*string `json:"contentTypesToCompress,omitempty"` + ContentTypesToCompress []*string // Indicates whether content compression is enabled on AzureFrontDoor. Default value is false. If compression is enabled, // content will be served as compressed if user requests for a compressed version. // Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB. - IsCompressionEnabled *bool `json:"isCompressionEnabled,omitempty"` + IsCompressionEnabled *bool } // ContinentsResponse - Continents Response type ContinentsResponse struct { - Continents []*ContinentsResponseContinentsItem `json:"continents,omitempty"` - CountryOrRegions []*ContinentsResponseCountryOrRegionsItem `json:"countryOrRegions,omitempty"` + Continents []*ContinentsResponseContinentsItem + CountryOrRegions []*ContinentsResponseCountryOrRegionsItem } type ContinentsResponseContinentsItem struct { - ID *string `json:"id,omitempty"` + ID *string } type ContinentsResponseCountryOrRegionsItem struct { - ContinentID *string `json:"continentId,omitempty"` - ID *string `json:"id,omitempty"` + ContinentID *string + ID *string } // CookiesMatchConditionParameters - Defines the parameters for Cookies match conditions type CookiesMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *CookiesOperator `json:"operator,omitempty"` + Operator *CookiesOperator // REQUIRED - TypeName *CookiesMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *CookiesMatchConditionParametersTypeName // The match value for the condition of the delivery rule - MatchValues []*string `json:"matchValues,omitempty"` + MatchValues []*string // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // Name of Cookies to be matched - Selector *string `json:"selector,omitempty"` + Selector *string // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } // CustomDomain - Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, // e.g. www.contoso.com. type CustomDomain struct { // The JSON object that contains the properties of the custom domain to create. - Properties *CustomDomainProperties `json:"properties,omitempty"` + Properties *CustomDomainProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // CustomDomainHTTPSParametersClassification provides polymorphic access to related types. @@ -869,13 +869,13 @@ type CustomDomainHTTPSParametersClassification interface { // CustomDomainHTTPSParameters - The JSON object that contains the properties to secure a custom domain. type CustomDomainHTTPSParameters struct { // REQUIRED; Defines the source of the SSL certificate. - CertificateSource *CertificateSource `json:"certificateSource,omitempty"` + CertificateSource *CertificateSource // REQUIRED; Defines the TLS extension protocol that is used for secure delivery. - ProtocolType *ProtocolType `json:"protocolType,omitempty"` + ProtocolType *ProtocolType // TLS protocol version that will be used for Https - MinimumTLSVersion *MinimumTLSVersion `json:"minimumTlsVersion,omitempty"` + MinimumTLSVersion *MinimumTLSVersion } // GetCustomDomainHTTPSParameters implements the CustomDomainHTTPSParametersClassification interface for type CustomDomainHTTPSParameters. @@ -887,47 +887,47 @@ func (c *CustomDomainHTTPSParameters) GetCustomDomainHTTPSParameters() *CustomDo // a URL link to get the next set of results. type CustomDomainListResult struct { // URL to get the next set of custom domain objects if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; List of CDN CustomDomains within an endpoint. - Value []*CustomDomain `json:"value,omitempty" azure:"ro"` + Value []*CustomDomain } // CustomDomainParameters - The customDomain JSON object required for custom domain creation or update. type CustomDomainParameters struct { // The JSON object that contains the properties of the custom domain to create. - Properties *CustomDomainPropertiesParameters `json:"properties,omitempty"` + Properties *CustomDomainPropertiesParameters } // CustomDomainProperties - The JSON object that contains the properties of the custom domain to create. type CustomDomainProperties struct { // REQUIRED; The host name of the custom domain. Must be a domain name. - HostName *string `json:"hostName,omitempty"` + HostName *string // Certificate parameters for securing custom HTTPS - CustomHTTPSParameters CustomDomainHTTPSParametersClassification `json:"customHttpsParameters,omitempty"` + CustomHTTPSParameters CustomDomainHTTPSParametersClassification // Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP // license number of a custom domain is required to deliver content in China. - ValidationData *string `json:"validationData,omitempty"` + ValidationData *string // READ-ONLY; Provisioning status of the custom domain. - CustomHTTPSProvisioningState *CustomHTTPSProvisioningState `json:"customHttpsProvisioningState,omitempty" azure:"ro"` + CustomHTTPSProvisioningState *CustomHTTPSProvisioningState // READ-ONLY; Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. - CustomHTTPSProvisioningSubstate *CustomHTTPSProvisioningSubstate `json:"customHttpsProvisioningSubstate,omitempty" azure:"ro"` + CustomHTTPSProvisioningSubstate *CustomHTTPSProvisioningSubstate // READ-ONLY; Provisioning status of Custom Https of the custom domain. - ProvisioningState *CustomHTTPSProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *CustomHTTPSProvisioningState // READ-ONLY; Resource status of the custom domain. - ResourceState *CustomDomainResourceState `json:"resourceState,omitempty" azure:"ro"` + ResourceState *CustomDomainResourceState } // CustomDomainPropertiesParameters - The JSON object that contains the properties of the custom domain to create. type CustomDomainPropertiesParameters struct { // REQUIRED; The host name of the custom domain. Must be a domain name. - HostName *string `json:"hostName,omitempty"` + HostName *string } // CustomDomainsClientBeginCreateOptions contains the optional parameters for the CustomDomainsClient.BeginCreate method. @@ -971,87 +971,87 @@ type CustomDomainsClientListByEndpointOptions struct { // CustomRule - Defines the common attributes for a custom rule that can be included in a waf policy type CustomRule struct { // REQUIRED; Describes what action to be applied when rule matches - Action *ActionType `json:"action,omitempty"` + Action *ActionType // REQUIRED; List of match conditions. - MatchConditions []*MatchCondition `json:"matchConditions,omitempty"` + MatchConditions []*MatchCondition // REQUIRED; Defines the name of the custom rule - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Defines in what order this rule be evaluated in the overall list of custom rules - Priority *int32 `json:"priority,omitempty"` + Priority *int32 // Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - EnabledState *CustomRuleEnabledState `json:"enabledState,omitempty"` + EnabledState *CustomRuleEnabledState } // CustomRuleList - Defines contents of custom rules type CustomRuleList struct { // List of rules - Rules []*CustomRule `json:"rules,omitempty"` + Rules []*CustomRule } // CustomerCertificate - Customer Certificate used for https type CustomerCertificate struct { // Resource reference to the Azure Key Vault certificate. Expected to be in format of // /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{certificateName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ - SecretSource *ResourceReference `json:"secretSource,omitempty"` + SecretSource *ResourceReference // Certificate version. - SecretVersion *string `json:"secretVersion,omitempty"` + SecretVersion *string // The list of SANs. - SubjectAlternativeNames []*string `json:"subjectAlternativeNames,omitempty"` + SubjectAlternativeNames []*string // The type of the secret resource. - Type *SecretType `json:"type,omitempty"` + Type *SecretType // Whether to use the latest version for the certificate - UseLatestVersion *bool `json:"useLatestVersion,omitempty"` + UseLatestVersion *bool // READ-ONLY; Certificate issuing authority. - CertificateAuthority *string `json:"certificateAuthority,omitempty" azure:"ro"` + CertificateAuthority *string // READ-ONLY; Certificate expiration date. - ExpirationDate *string `json:"expirationDate,omitempty" azure:"ro"` + ExpirationDate *string // READ-ONLY; Subject name in the certificate. - Subject *string `json:"subject,omitempty" azure:"ro"` + Subject *string // READ-ONLY; Certificate thumbprint. - Thumbprint *string `json:"thumbprint,omitempty" azure:"ro"` + Thumbprint *string } // CustomerCertificateParameters - Customer Certificate used for https type CustomerCertificateParameters struct { // REQUIRED; Resource reference to the Azure Key Vault certificate. Expected to be in format of // /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{certificateName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ - SecretSource *ResourceReference `json:"secretSource,omitempty"` + SecretSource *ResourceReference // REQUIRED; The type of the secret resource. - Type *SecretType `json:"type,omitempty"` + Type *SecretType // Version of the secret to be used - SecretVersion *string `json:"secretVersion,omitempty"` + SecretVersion *string // The list of SANs. - SubjectAlternativeNames []*string `json:"subjectAlternativeNames,omitempty"` + SubjectAlternativeNames []*string // Whether to use the latest version for the certificate - UseLatestVersion *bool `json:"useLatestVersion,omitempty"` + UseLatestVersion *bool // READ-ONLY; Certificate issuing authority. - CertificateAuthority *string `json:"certificateAuthority,omitempty" azure:"ro"` + CertificateAuthority *string // READ-ONLY; Certificate expiration date. - ExpirationDate *string `json:"expirationDate,omitempty" azure:"ro"` + ExpirationDate *string // READ-ONLY; Subject name in the certificate. - Subject *string `json:"subject,omitempty" azure:"ro"` + Subject *string // READ-ONLY; Certificate thumbprint. - Thumbprint *string `json:"thumbprint,omitempty" azure:"ro"` + Thumbprint *string } // GetSecretParameters implements the SecretParametersClassification interface for type CustomerCertificateParameters. @@ -1064,97 +1064,97 @@ func (c *CustomerCertificateParameters) GetSecretParameters() *SecretParameters // DeepCreatedOrigin - The main origin of CDN content which is added when creating a CDN endpoint. type DeepCreatedOrigin struct { // REQUIRED; Origin name which must be unique within the endpoint. - Name *string `json:"name,omitempty"` + Name *string // Properties of the origin created on the CDN endpoint. - Properties *DeepCreatedOriginProperties `json:"properties,omitempty"` + Properties *DeepCreatedOriginProperties } // DeepCreatedOriginGroup - The origin group for CDN content which is added when creating a CDN endpoint. Traffic is sent // to the origins within the origin group based on origin health. type DeepCreatedOriginGroup struct { // REQUIRED; Origin group name which must be unique within the endpoint. - Name *string `json:"name,omitempty"` + Name *string // Properties of the origin group created on the CDN endpoint. - Properties *DeepCreatedOriginGroupProperties `json:"properties,omitempty"` + Properties *DeepCreatedOriginGroupProperties } // DeepCreatedOriginGroupProperties - Properties of the origin group created on the CDN endpoint. type DeepCreatedOriginGroupProperties struct { // REQUIRED; The source of the content being delivered via CDN within given origin group. - Origins []*ResourceReference `json:"origins,omitempty"` + Origins []*ResourceReference // Health probe settings to the origin that is used to determine the health of the origin. - HealthProbeSettings *HealthProbeParameters `json:"healthProbeSettings,omitempty"` + HealthProbeSettings *HealthProbeParameters // The JSON object that contains the properties to determine origin health using real requests/responses.This property is // currently not supported. - ResponseBasedOriginErrorDetectionSettings *ResponseBasedOriginErrorDetectionParameters `json:"responseBasedOriginErrorDetectionSettings,omitempty"` + ResponseBasedOriginErrorDetectionSettings *ResponseBasedOriginErrorDetectionParameters // Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint // is added. Default is 10 mins. This property is currently not supported. - TrafficRestorationTimeToHealedOrNewEndpointsInMinutes *int32 `json:"trafficRestorationTimeToHealedOrNewEndpointsInMinutes,omitempty"` + TrafficRestorationTimeToHealedOrNewEndpointsInMinutes *int32 } // DeepCreatedOriginProperties - Properties of the origin created on the CDN endpoint. type DeepCreatedOriginProperties struct { // REQUIRED; The address of the origin. It can be a domain name, IPv4 address, or IPv6 address. This should be unique across // all origins in an endpoint. - HostName *string `json:"hostName,omitempty"` + HostName *string // Origin is enabled for load balancing or not. By default, origin is always enabled. - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool // The value of the HTTP port. Must be between 1 and 65535. - HTTPPort *int32 `json:"httpPort,omitempty"` + HTTPPort *int32 // The value of the HTTPS port. Must be between 1 and 65535. - HTTPSPort *int32 `json:"httpsPort,omitempty"` + HTTPSPort *int32 // The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this // value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services // require this host header value to match the origin hostname by default. - OriginHostHeader *string `json:"originHostHeader,omitempty"` + OriginHostHeader *string // Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any // lower priority origin is healthy.Must be between 1 and 5. - Priority *int32 `json:"priority,omitempty"` + Priority *int32 // The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private' - PrivateLinkAlias *string `json:"privateLinkAlias,omitempty"` + PrivateLinkAlias *string // A custom message to be included in the approval request to connect to the Private Link. - PrivateLinkApprovalMessage *string `json:"privateLinkApprovalMessage,omitempty"` + PrivateLinkApprovalMessage *string // The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - PrivateLinkLocation *string `json:"privateLinkLocation,omitempty"` + PrivateLinkLocation *string // The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - PrivateLinkResourceID *string `json:"privateLinkResourceId,omitempty"` + PrivateLinkResourceID *string // Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 - Weight *int32 `json:"weight,omitempty"` + Weight *int32 // READ-ONLY; The approval status for the connection to the Private Link - PrivateEndpointStatus *PrivateEndpointStatus `json:"privateEndpointStatus,omitempty" azure:"ro"` + PrivateEndpointStatus *PrivateEndpointStatus } // DeliveryRule - A rule that specifies a set of actions and conditions type DeliveryRule struct { // REQUIRED; A list of actions that are executed when all the conditions of a rule are satisfied. - Actions []DeliveryRuleActionAutoGeneratedClassification `json:"actions,omitempty"` + Actions []DeliveryRuleActionAutoGeneratedClassification // REQUIRED; The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser // order will be applied before a rule with a greater order. Rule with order 0 is a special // rule. It does not require any condition and actions listed in it will always be applied. - Order *int32 `json:"order,omitempty"` + Order *int32 // A list of conditions that must be matched for the actions to be executed - Conditions []DeliveryRuleConditionClassification `json:"conditions,omitempty"` + Conditions []DeliveryRuleConditionClassification // Name of the rule - Name *string `json:"name,omitempty"` + Name *string } // DeliveryRuleActionAutoGeneratedClassification provides polymorphic access to related types. @@ -1171,7 +1171,7 @@ type DeliveryRuleActionAutoGeneratedClassification interface { // DeliveryRuleActionAutoGenerated - An action for the delivery rule. type DeliveryRuleActionAutoGenerated struct { // REQUIRED; The name of the action for the delivery rule. - Name *DeliveryRuleAction `json:"name,omitempty"` + Name *DeliveryRuleAction } // GetDeliveryRuleActionAutoGenerated implements the DeliveryRuleActionAutoGeneratedClassification interface for type DeliveryRuleActionAutoGenerated. @@ -1182,10 +1182,10 @@ func (d *DeliveryRuleActionAutoGenerated) GetDeliveryRuleActionAutoGenerated() * // DeliveryRuleCacheExpirationAction - Defines the cache expiration action for the delivery rule. type DeliveryRuleCacheExpirationAction struct { // REQUIRED; The name of the action for the delivery rule. - Name *DeliveryRuleAction `json:"name,omitempty"` + Name *DeliveryRuleAction // REQUIRED; Defines the parameters for the action. - Parameters *CacheExpirationActionParameters `json:"parameters,omitempty"` + Parameters *CacheExpirationActionParameters } // GetDeliveryRuleActionAutoGenerated implements the DeliveryRuleActionAutoGeneratedClassification interface for type DeliveryRuleCacheExpirationAction. @@ -1198,10 +1198,10 @@ func (d *DeliveryRuleCacheExpirationAction) GetDeliveryRuleActionAutoGenerated() // DeliveryRuleCacheKeyQueryStringAction - Defines the cache-key query string action for the delivery rule. type DeliveryRuleCacheKeyQueryStringAction struct { // REQUIRED; The name of the action for the delivery rule. - Name *DeliveryRuleAction `json:"name,omitempty"` + Name *DeliveryRuleAction // REQUIRED; Defines the parameters for the action. - Parameters *CacheKeyQueryStringActionParameters `json:"parameters,omitempty"` + Parameters *CacheKeyQueryStringActionParameters } // GetDeliveryRuleActionAutoGenerated implements the DeliveryRuleActionAutoGeneratedClassification interface for type DeliveryRuleCacheKeyQueryStringAction. @@ -1214,10 +1214,10 @@ func (d *DeliveryRuleCacheKeyQueryStringAction) GetDeliveryRuleActionAutoGenerat // DeliveryRuleClientPortCondition - Defines the ClientPort condition for the delivery rule. type DeliveryRuleClientPortCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *ClientPortMatchConditionParameters `json:"parameters,omitempty"` + Parameters *ClientPortMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleClientPortCondition. @@ -1243,7 +1243,7 @@ type DeliveryRuleConditionClassification interface { // DeliveryRuleCondition - A condition for the delivery rule. type DeliveryRuleCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleCondition. @@ -1252,10 +1252,10 @@ func (d *DeliveryRuleCondition) GetDeliveryRuleCondition() *DeliveryRuleConditio // DeliveryRuleCookiesCondition - Defines the Cookies condition for the delivery rule. type DeliveryRuleCookiesCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *CookiesMatchConditionParameters `json:"parameters,omitempty"` + Parameters *CookiesMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleCookiesCondition. @@ -1268,10 +1268,10 @@ func (d *DeliveryRuleCookiesCondition) GetDeliveryRuleCondition() *DeliveryRuleC // DeliveryRuleHTTPVersionCondition - Defines the HttpVersion condition for the delivery rule. type DeliveryRuleHTTPVersionCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *HTTPVersionMatchConditionParameters `json:"parameters,omitempty"` + Parameters *HTTPVersionMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleHTTPVersionCondition. @@ -1284,10 +1284,10 @@ func (d *DeliveryRuleHTTPVersionCondition) GetDeliveryRuleCondition() *DeliveryR // DeliveryRuleHostNameCondition - Defines the HostName condition for the delivery rule. type DeliveryRuleHostNameCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *HostNameMatchConditionParameters `json:"parameters,omitempty"` + Parameters *HostNameMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleHostNameCondition. @@ -1300,10 +1300,10 @@ func (d *DeliveryRuleHostNameCondition) GetDeliveryRuleCondition() *DeliveryRule // DeliveryRuleIsDeviceCondition - Defines the IsDevice condition for the delivery rule. type DeliveryRuleIsDeviceCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *IsDeviceMatchConditionParameters `json:"parameters,omitempty"` + Parameters *IsDeviceMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleIsDeviceCondition. @@ -1316,10 +1316,10 @@ func (d *DeliveryRuleIsDeviceCondition) GetDeliveryRuleCondition() *DeliveryRule // DeliveryRulePostArgsCondition - Defines the PostArgs condition for the delivery rule. type DeliveryRulePostArgsCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *PostArgsMatchConditionParameters `json:"parameters,omitempty"` + Parameters *PostArgsMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRulePostArgsCondition. @@ -1332,10 +1332,10 @@ func (d *DeliveryRulePostArgsCondition) GetDeliveryRuleCondition() *DeliveryRule // DeliveryRuleQueryStringCondition - Defines the QueryString condition for the delivery rule. type DeliveryRuleQueryStringCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *QueryStringMatchConditionParameters `json:"parameters,omitempty"` + Parameters *QueryStringMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleQueryStringCondition. @@ -1348,10 +1348,10 @@ func (d *DeliveryRuleQueryStringCondition) GetDeliveryRuleCondition() *DeliveryR // DeliveryRuleRemoteAddressCondition - Defines the RemoteAddress condition for the delivery rule. type DeliveryRuleRemoteAddressCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *RemoteAddressMatchConditionParameters `json:"parameters,omitempty"` + Parameters *RemoteAddressMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleRemoteAddressCondition. @@ -1364,10 +1364,10 @@ func (d *DeliveryRuleRemoteAddressCondition) GetDeliveryRuleCondition() *Deliver // DeliveryRuleRequestBodyCondition - Defines the RequestBody condition for the delivery rule. type DeliveryRuleRequestBodyCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *RequestBodyMatchConditionParameters `json:"parameters,omitempty"` + Parameters *RequestBodyMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleRequestBodyCondition. @@ -1380,10 +1380,10 @@ func (d *DeliveryRuleRequestBodyCondition) GetDeliveryRuleCondition() *DeliveryR // DeliveryRuleRequestHeaderAction - Defines the request header action for the delivery rule. type DeliveryRuleRequestHeaderAction struct { // REQUIRED; The name of the action for the delivery rule. - Name *DeliveryRuleAction `json:"name,omitempty"` + Name *DeliveryRuleAction // REQUIRED; Defines the parameters for the action. - Parameters *HeaderActionParameters `json:"parameters,omitempty"` + Parameters *HeaderActionParameters } // GetDeliveryRuleActionAutoGenerated implements the DeliveryRuleActionAutoGeneratedClassification interface for type DeliveryRuleRequestHeaderAction. @@ -1396,10 +1396,10 @@ func (d *DeliveryRuleRequestHeaderAction) GetDeliveryRuleActionAutoGenerated() * // DeliveryRuleRequestHeaderCondition - Defines the RequestHeader condition for the delivery rule. type DeliveryRuleRequestHeaderCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *RequestHeaderMatchConditionParameters `json:"parameters,omitempty"` + Parameters *RequestHeaderMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleRequestHeaderCondition. @@ -1412,10 +1412,10 @@ func (d *DeliveryRuleRequestHeaderCondition) GetDeliveryRuleCondition() *Deliver // DeliveryRuleRequestMethodCondition - Defines the RequestMethod condition for the delivery rule. type DeliveryRuleRequestMethodCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *RequestMethodMatchConditionParameters `json:"parameters,omitempty"` + Parameters *RequestMethodMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleRequestMethodCondition. @@ -1428,10 +1428,10 @@ func (d *DeliveryRuleRequestMethodCondition) GetDeliveryRuleCondition() *Deliver // DeliveryRuleRequestSchemeCondition - Defines the RequestScheme condition for the delivery rule. type DeliveryRuleRequestSchemeCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *RequestSchemeMatchConditionParameters `json:"parameters,omitempty"` + Parameters *RequestSchemeMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleRequestSchemeCondition. @@ -1444,10 +1444,10 @@ func (d *DeliveryRuleRequestSchemeCondition) GetDeliveryRuleCondition() *Deliver // DeliveryRuleRequestURICondition - Defines the RequestUri condition for the delivery rule. type DeliveryRuleRequestURICondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *RequestURIMatchConditionParameters `json:"parameters,omitempty"` + Parameters *RequestURIMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleRequestURICondition. @@ -1460,10 +1460,10 @@ func (d *DeliveryRuleRequestURICondition) GetDeliveryRuleCondition() *DeliveryRu // DeliveryRuleResponseHeaderAction - Defines the response header action for the delivery rule. type DeliveryRuleResponseHeaderAction struct { // REQUIRED; The name of the action for the delivery rule. - Name *DeliveryRuleAction `json:"name,omitempty"` + Name *DeliveryRuleAction // REQUIRED; Defines the parameters for the action. - Parameters *HeaderActionParameters `json:"parameters,omitempty"` + Parameters *HeaderActionParameters } // GetDeliveryRuleActionAutoGenerated implements the DeliveryRuleActionAutoGeneratedClassification interface for type DeliveryRuleResponseHeaderAction. @@ -1477,10 +1477,10 @@ func (d *DeliveryRuleResponseHeaderAction) GetDeliveryRuleActionAutoGenerated() // applicable to Frontdoor Standard/Premium Profiles. type DeliveryRuleRouteConfigurationOverrideAction struct { // REQUIRED; The name of the action for the delivery rule. - Name *DeliveryRuleAction `json:"name,omitempty"` + Name *DeliveryRuleAction // REQUIRED; Defines the parameters for the action. - Parameters *RouteConfigurationOverrideActionParameters `json:"parameters,omitempty"` + Parameters *RouteConfigurationOverrideActionParameters } // GetDeliveryRuleActionAutoGenerated implements the DeliveryRuleActionAutoGeneratedClassification interface for type DeliveryRuleRouteConfigurationOverrideAction. @@ -1493,10 +1493,10 @@ func (d *DeliveryRuleRouteConfigurationOverrideAction) GetDeliveryRuleActionAuto // DeliveryRuleSSLProtocolCondition - Defines the SslProtocol condition for the delivery rule. type DeliveryRuleSSLProtocolCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *SSLProtocolMatchConditionParameters `json:"parameters,omitempty"` + Parameters *SSLProtocolMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleSSLProtocolCondition. @@ -1509,10 +1509,10 @@ func (d *DeliveryRuleSSLProtocolCondition) GetDeliveryRuleCondition() *DeliveryR // DeliveryRuleServerPortCondition - Defines the ServerPort condition for the delivery rule. type DeliveryRuleServerPortCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *ServerPortMatchConditionParameters `json:"parameters,omitempty"` + Parameters *ServerPortMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleServerPortCondition. @@ -1525,10 +1525,10 @@ func (d *DeliveryRuleServerPortCondition) GetDeliveryRuleCondition() *DeliveryRu // DeliveryRuleSocketAddrCondition - Defines the SocketAddress condition for the delivery rule. type DeliveryRuleSocketAddrCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *SocketAddrMatchConditionParameters `json:"parameters,omitempty"` + Parameters *SocketAddrMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleSocketAddrCondition. @@ -1541,10 +1541,10 @@ func (d *DeliveryRuleSocketAddrCondition) GetDeliveryRuleCondition() *DeliveryRu // DeliveryRuleURLFileExtensionCondition - Defines the UrlFileExtension condition for the delivery rule. type DeliveryRuleURLFileExtensionCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *URLFileExtensionMatchConditionParameters `json:"parameters,omitempty"` + Parameters *URLFileExtensionMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleURLFileExtensionCondition. @@ -1557,10 +1557,10 @@ func (d *DeliveryRuleURLFileExtensionCondition) GetDeliveryRuleCondition() *Deli // DeliveryRuleURLFileNameCondition - Defines the UrlFileName condition for the delivery rule. type DeliveryRuleURLFileNameCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *URLFileNameMatchConditionParameters `json:"parameters,omitempty"` + Parameters *URLFileNameMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleURLFileNameCondition. @@ -1573,10 +1573,10 @@ func (d *DeliveryRuleURLFileNameCondition) GetDeliveryRuleCondition() *DeliveryR // DeliveryRuleURLPathCondition - Defines the UrlPath condition for the delivery rule. type DeliveryRuleURLPathCondition struct { // REQUIRED; The name of the condition for the delivery rule. - Name *MatchVariable `json:"name,omitempty"` + Name *MatchVariable // REQUIRED; Defines the parameters for the condition. - Parameters *URLPathMatchConditionParameters `json:"parameters,omitempty"` + Parameters *URLPathMatchConditionParameters } // GetDeliveryRuleCondition implements the DeliveryRuleConditionClassification interface for type DeliveryRuleURLPathCondition. @@ -1589,46 +1589,46 @@ func (d *DeliveryRuleURLPathCondition) GetDeliveryRuleCondition() *DeliveryRuleC // DimensionProperties - Type of operation: get, read, delete, etc. type DimensionProperties struct { // Display name of dimension. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Internal name of dimension. - InternalName *string `json:"internalName,omitempty"` + InternalName *string // Name of dimension. - Name *string `json:"name,omitempty"` + Name *string } // DomainValidationProperties - The JSON object that contains the properties to validate a domain. type DomainValidationProperties struct { // READ-ONLY; The date time that the token expires - ExpirationDate *string `json:"expirationDate,omitempty" azure:"ro"` + ExpirationDate *string // READ-ONLY; Challenge used for DNS TXT record or file based validation - ValidationToken *string `json:"validationToken,omitempty" azure:"ro"` + ValidationToken *string } // EdgeNode - Edgenode is a global Point of Presence (POP) location used to deliver CDN content to end users. type EdgeNode struct { // The JSON object that contains the properties required to create an edgenode. - Properties *EdgeNodeProperties `json:"properties,omitempty"` + Properties *EdgeNodeProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // EdgeNodeProperties - The JSON object that contains the properties required to create an edgenode. type EdgeNodeProperties struct { // REQUIRED; List of ip address groups. - IPAddressGroups []*IPAddressGroup `json:"ipAddressGroups,omitempty"` + IPAddressGroups []*IPAddressGroup } // EdgeNodesClientListOptions contains the optional parameters for the EdgeNodesClient.NewListPager method. @@ -1640,10 +1640,10 @@ type EdgeNodesClientListOptions struct { // get the next set of results. type EdgenodeResult struct { // URL to get the next set of edgenode list results if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; Edge node of CDN service. - Value []*EdgeNode `json:"value,omitempty" azure:"ro"` + Value []*EdgeNode } // Endpoint - CDN endpoint is the entity within a CDN profile containing configuration information such as origin, protocol, @@ -1651,196 +1651,196 @@ type EdgenodeResult struct { // .azureedge.net. type Endpoint struct { // REQUIRED; Resource location. - Location *string `json:"location,omitempty"` + Location *string // The JSON object that contains the properties required to create an endpoint. - Properties *EndpointProperties `json:"properties,omitempty"` + Properties *EndpointProperties // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // EndpointListResult - Result of the request to list endpoints. It contains a list of endpoint objects and a URL link to // get the next set of results. type EndpointListResult struct { // URL to get the next set of endpoint objects if there is any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; List of CDN endpoints within a profile - Value []*Endpoint `json:"value,omitempty" azure:"ro"` + Value []*Endpoint } // EndpointProperties - The JSON object that contains the properties required to create an endpoint. type EndpointProperties struct { // REQUIRED; The source of the content being delivered via CDN. - Origins []*DeepCreatedOrigin `json:"origins,omitempty"` + Origins []*DeepCreatedOrigin // List of content types on which compression applies. The value should be a valid MIME type. - ContentTypesToCompress []*string `json:"contentTypesToCompress,omitempty"` + ContentTypesToCompress []*string // A reference to the origin group. - DefaultOriginGroup *ResourceReference `json:"defaultOriginGroup,omitempty"` + DefaultOriginGroup *ResourceReference // A policy that specifies the delivery rules to be used for an endpoint. - DeliveryPolicy *EndpointPropertiesUpdateParametersDeliveryPolicy `json:"deliveryPolicy,omitempty"` + DeliveryPolicy *EndpointPropertiesUpdateParametersDeliveryPolicy // List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified // path or content, e.g. block APAC for path /pictures/ - GeoFilters []*GeoFilter `json:"geoFilters,omitempty"` + GeoFilters []*GeoFilter // Indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will // be served as compressed if user requests for a compressed version. Content // won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB. - IsCompressionEnabled *bool `json:"isCompressionEnabled,omitempty"` + IsCompressionEnabled *bool // Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) // must be allowed. - IsHTTPAllowed *bool `json:"isHttpAllowed,omitempty"` + IsHTTPAllowed *bool // Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) // must be allowed. - IsHTTPSAllowed *bool `json:"isHttpsAllowed,omitempty"` + IsHTTPSAllowed *bool // Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this // information, CDN can apply scenario driven optimization. - OptimizationType *OptimizationType `json:"optimizationType,omitempty"` + OptimizationType *OptimizationType // The origin groups comprising of origins that are used for load balancing the traffic based on availability. - OriginGroups []*DeepCreatedOriginGroup `json:"originGroups,omitempty"` + OriginGroups []*DeepCreatedOriginGroup // The host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses // single origin and can be overridden by the same property specified at origin.If // you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and // Cloud Services require this host header value to match the origin hostname by // default. - OriginHostHeader *string `json:"originHostHeader,omitempty"` + OriginHostHeader *string // A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. - OriginPath *string `json:"originPath,omitempty"` + OriginPath *string // Path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal // routes for the CDN. This is relative to the origin path. This property is only // relevant when using a single origin. - ProbePath *string `json:"probePath,omitempty"` + ProbePath *string // Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching // to prevent requests that contain query strings from being cached, or cache // every request with a unique URL. - QueryStringCachingBehavior *QueryStringCachingBehavior `json:"queryStringCachingBehavior,omitempty"` + QueryStringCachingBehavior *QueryStringCachingBehavior // List of keys used to validate the signed URL hashes. - URLSigningKeys []*URLSigningKey `json:"urlSigningKeys,omitempty"` + URLSigningKeys []*URLSigningKey // Defines the Web Application Firewall policy for the endpoint (if applicable) - WebApplicationFirewallPolicyLink *EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink `json:"webApplicationFirewallPolicyLink,omitempty"` + WebApplicationFirewallPolicyLink *EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink // READ-ONLY; The custom domains under the endpoint. - CustomDomains []*CustomDomain `json:"customDomains,omitempty" azure:"ro"` + CustomDomains []*CustomDomain // READ-ONLY; The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net - HostName *string `json:"hostName,omitempty" azure:"ro"` + HostName *string // READ-ONLY; Provisioning status of the endpoint. - ProvisioningState *EndpointProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *EndpointProvisioningState // READ-ONLY; Resource status of the endpoint. - ResourceState *EndpointResourceState `json:"resourceState,omitempty" azure:"ro"` + ResourceState *EndpointResourceState } // EndpointPropertiesUpdateParameters - The JSON object containing endpoint update parameters. type EndpointPropertiesUpdateParameters struct { // List of content types on which compression applies. The value should be a valid MIME type. - ContentTypesToCompress []*string `json:"contentTypesToCompress,omitempty"` + ContentTypesToCompress []*string // A reference to the origin group. - DefaultOriginGroup *ResourceReference `json:"defaultOriginGroup,omitempty"` + DefaultOriginGroup *ResourceReference // A policy that specifies the delivery rules to be used for an endpoint. - DeliveryPolicy *EndpointPropertiesUpdateParametersDeliveryPolicy `json:"deliveryPolicy,omitempty"` + DeliveryPolicy *EndpointPropertiesUpdateParametersDeliveryPolicy // List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified // path or content, e.g. block APAC for path /pictures/ - GeoFilters []*GeoFilter `json:"geoFilters,omitempty"` + GeoFilters []*GeoFilter // Indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will // be served as compressed if user requests for a compressed version. Content // won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB. - IsCompressionEnabled *bool `json:"isCompressionEnabled,omitempty"` + IsCompressionEnabled *bool // Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) // must be allowed. - IsHTTPAllowed *bool `json:"isHttpAllowed,omitempty"` + IsHTTPAllowed *bool // Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) // must be allowed. - IsHTTPSAllowed *bool `json:"isHttpsAllowed,omitempty"` + IsHTTPSAllowed *bool // Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this // information, CDN can apply scenario driven optimization. - OptimizationType *OptimizationType `json:"optimizationType,omitempty"` + OptimizationType *OptimizationType // The host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses // single origin and can be overridden by the same property specified at origin.If // you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and // Cloud Services require this host header value to match the origin hostname by // default. - OriginHostHeader *string `json:"originHostHeader,omitempty"` + OriginHostHeader *string // A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. - OriginPath *string `json:"originPath,omitempty"` + OriginPath *string // Path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal // routes for the CDN. This is relative to the origin path. This property is only // relevant when using a single origin. - ProbePath *string `json:"probePath,omitempty"` + ProbePath *string // Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching // to prevent requests that contain query strings from being cached, or cache // every request with a unique URL. - QueryStringCachingBehavior *QueryStringCachingBehavior `json:"queryStringCachingBehavior,omitempty"` + QueryStringCachingBehavior *QueryStringCachingBehavior // List of keys used to validate the signed URL hashes. - URLSigningKeys []*URLSigningKey `json:"urlSigningKeys,omitempty"` + URLSigningKeys []*URLSigningKey // Defines the Web Application Firewall policy for the endpoint (if applicable) - WebApplicationFirewallPolicyLink *EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink `json:"webApplicationFirewallPolicyLink,omitempty"` + WebApplicationFirewallPolicyLink *EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink } // EndpointPropertiesUpdateParametersDeliveryPolicy - A policy that specifies the delivery rules to be used for an endpoint. type EndpointPropertiesUpdateParametersDeliveryPolicy struct { // REQUIRED; A list of the delivery rules. - Rules []*DeliveryRule `json:"rules,omitempty"` + Rules []*DeliveryRule // User-friendly description of the policy. - Description *string `json:"description,omitempty"` + Description *string } // EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink - Defines the Web Application Firewall policy for the // endpoint (if applicable) type EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink struct { // Resource ID. - ID *string `json:"id,omitempty"` + ID *string } // EndpointUpdateParameters - Properties required to create or update an endpoint. type EndpointUpdateParameters struct { // The JSON object containing endpoint update parameters. - Properties *EndpointPropertiesUpdateParameters `json:"properties,omitempty"` + Properties *EndpointPropertiesUpdateParameters // Endpoint tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // EndpointsClientBeginCreateOptions contains the optional parameters for the EndpointsClient.BeginCreate method. @@ -1910,225 +1910,225 @@ type EndpointsClientValidateCustomDomainOptions struct { // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. - Info any `json:"info,omitempty" azure:"ro"` + Info any // READ-ONLY; The additional info type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ErrorDetail - The error detail. type ErrorDetail struct { // READ-ONLY; The error additional info. - AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` + AdditionalInfo []*ErrorAdditionalInfo // READ-ONLY; The error code. - Code *string `json:"code,omitempty" azure:"ro"` + Code *string // READ-ONLY; The error details. - Details []*ErrorDetail `json:"details,omitempty" azure:"ro"` + Details []*ErrorDetail // READ-ONLY; The error message. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string // READ-ONLY; The error target. - Target *string `json:"target,omitempty" azure:"ro"` + Target *string } // ErrorResponse - Error response indicates Azure Front Door Standard or Azure Front Door Premium or CDN service is not able // to process the incoming request. The reason is provided in the error message. type ErrorResponse struct { // The error object. - Error *ErrorDetail `json:"error,omitempty"` + Error *ErrorDetail } // GeoFilter - Rules defining user's geo access within a CDN endpoint. type GeoFilter struct { // REQUIRED; Action of the geo filter, i.e. allow or block access. - Action *GeoFilterActions `json:"action,omitempty"` + Action *GeoFilterActions // REQUIRED; Two letter country or region codes defining user country or region access in a geo filter, e.g. AU, MX, US. - CountryCodes []*string `json:"countryCodes,omitempty"` + CountryCodes []*string // REQUIRED; Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.) - RelativePath *string `json:"relativePath,omitempty"` + RelativePath *string } // HTTPErrorRangeParameters - The JSON object that represents the range for http status codes type HTTPErrorRangeParameters struct { // The inclusive start of the http status code range. - Begin *int32 `json:"begin,omitempty"` + Begin *int32 // The inclusive end of the http status code range. - End *int32 `json:"end,omitempty"` + End *int32 } // HTTPVersionMatchConditionParameters - Defines the parameters for HttpVersion match conditions type HTTPVersionMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *HTTPVersionOperator `json:"operator,omitempty"` + Operator *HTTPVersionOperator // REQUIRED - TypeName *HTTPVersionMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *HTTPVersionMatchConditionParametersTypeName // The match value for the condition of the delivery rule - MatchValues []*string `json:"matchValues,omitempty"` + MatchValues []*string // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } // HeaderActionParameters - Defines the parameters for the request header action. type HeaderActionParameters struct { // REQUIRED; Action to perform - HeaderAction *HeaderAction `json:"headerAction,omitempty"` + HeaderAction *HeaderAction // REQUIRED; Name of the header to modify - HeaderName *string `json:"headerName,omitempty"` + HeaderName *string // REQUIRED - TypeName *HeaderActionParametersTypeName `json:"typeName,omitempty"` + TypeName *HeaderActionParametersTypeName // Value for the specified action - Value *string `json:"value,omitempty"` + Value *string } // HealthProbeParameters - The JSON object that contains the properties to send health probes to origin. type HealthProbeParameters struct { // The number of seconds between health probes.Default is 240sec. - ProbeIntervalInSeconds *int32 `json:"probeIntervalInSeconds,omitempty"` + ProbeIntervalInSeconds *int32 // The path relative to the origin that is used to determine the health of the origin. - ProbePath *string `json:"probePath,omitempty"` + ProbePath *string // Protocol to use for health probe. - ProbeProtocol *ProbeProtocol `json:"probeProtocol,omitempty"` + ProbeProtocol *ProbeProtocol // The type of health probe request that is made. - ProbeRequestType *HealthProbeRequestType `json:"probeRequestType,omitempty"` + ProbeRequestType *HealthProbeRequestType } // HostNameMatchConditionParameters - Defines the parameters for HostName match conditions type HostNameMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *HostNameOperator `json:"operator,omitempty"` + Operator *HostNameOperator // REQUIRED - TypeName *HostNameMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *HostNameMatchConditionParametersTypeName // The match value for the condition of the delivery rule - MatchValues []*string `json:"matchValues,omitempty"` + MatchValues []*string // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } // IPAddressGroup - CDN Ip address group type IPAddressGroup struct { // The delivery region of the ip address group - DeliveryRegion *string `json:"deliveryRegion,omitempty"` + DeliveryRegion *string // The list of ip v4 addresses. - IPv4Addresses []*CidrIPAddress `json:"ipv4Addresses,omitempty"` + IPv4Addresses []*CidrIPAddress // The list of ip v6 addresses. - IPv6Addresses []*CidrIPAddress `json:"ipv6Addresses,omitempty"` + IPv6Addresses []*CidrIPAddress } // IsDeviceMatchConditionParameters - Defines the parameters for IsDevice match conditions type IsDeviceMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *IsDeviceOperator `json:"operator,omitempty"` + Operator *IsDeviceOperator // REQUIRED - TypeName *IsDeviceMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *IsDeviceMatchConditionParametersTypeName // The match value for the condition of the delivery rule - MatchValues []*IsDeviceMatchConditionParametersMatchValuesItem `json:"matchValues,omitempty"` + MatchValues []*IsDeviceMatchConditionParametersMatchValuesItem // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } // KeyVaultCertificateSourceParameters - Describes the parameters for using a user's KeyVault certificate for securing custom // domain. type KeyVaultCertificateSourceParameters struct { // REQUIRED; Describes the action that shall be taken when the certificate is removed from Key Vault. - DeleteRule *DeleteRule `json:"deleteRule,omitempty"` + DeleteRule *DeleteRule // REQUIRED; Resource group of the user's Key Vault containing the SSL certificate - ResourceGroupName *string `json:"resourceGroupName,omitempty"` + ResourceGroupName *string // REQUIRED; The name of Key Vault Secret (representing the full certificate PFX) in Key Vault. - SecretName *string `json:"secretName,omitempty"` + SecretName *string // REQUIRED; Subscription Id of the user's Key Vault containing the SSL certificate - SubscriptionID *string `json:"subscriptionId,omitempty"` + SubscriptionID *string // REQUIRED - TypeName *KeyVaultCertificateSourceParametersTypeName `json:"typeName,omitempty"` + TypeName *KeyVaultCertificateSourceParametersTypeName // REQUIRED; Describes the action that shall be taken when the certificate is updated in Key Vault. - UpdateRule *UpdateRule `json:"updateRule,omitempty"` + UpdateRule *UpdateRule // REQUIRED; The name of the user's Key Vault containing the SSL certificate - VaultName *string `json:"vaultName,omitempty"` + VaultName *string // The version(GUID) of Key Vault Secret in Key Vault. - SecretVersion *string `json:"secretVersion,omitempty"` + SecretVersion *string } // KeyVaultSigningKeyParameters - Describes the parameters for using a user's KeyVault for URL Signing Key. type KeyVaultSigningKeyParameters struct { // REQUIRED; Resource group of the user's Key Vault containing the secret - ResourceGroupName *string `json:"resourceGroupName,omitempty"` + ResourceGroupName *string // REQUIRED; The name of secret in Key Vault. - SecretName *string `json:"secretName,omitempty"` + SecretName *string // REQUIRED; The version(GUID) of secret in Key Vault. - SecretVersion *string `json:"secretVersion,omitempty"` + SecretVersion *string // REQUIRED; Subscription Id of the user's Key Vault containing the secret - SubscriptionID *string `json:"subscriptionId,omitempty"` + SubscriptionID *string // REQUIRED - TypeName *KeyVaultSigningKeyParametersTypeName `json:"typeName,omitempty"` + TypeName *KeyVaultSigningKeyParametersTypeName // REQUIRED; The name of the user's Key Vault containing the secret - VaultName *string `json:"vaultName,omitempty"` + VaultName *string } // LinkedEndpoint - Defines the ARM Resource ID for the linked endpoints type LinkedEndpoint struct { // ARM Resource ID string. - ID *string `json:"id,omitempty"` + ID *string } // LoadBalancingSettingsParameters - Round-Robin load balancing settings for a backend pool type LoadBalancingSettingsParameters struct { // The additional latency in milliseconds for probes to fall into the lowest latency bucket - AdditionalLatencyInMilliseconds *int32 `json:"additionalLatencyInMilliseconds,omitempty"` + AdditionalLatencyInMilliseconds *int32 // The number of samples to consider for load balancing decisions - SampleSize *int32 `json:"sampleSize,omitempty"` + SampleSize *int32 // The number of samples within the sample period that must succeed - SuccessfulSamplesRequired *int32 `json:"successfulSamplesRequired,omitempty"` + SuccessfulSamplesRequired *int32 } // LoadParameters - Parameters required for content load. type LoadParameters struct { // REQUIRED; The path to the content to be loaded. Path should be a relative file URL of the origin. - ContentPaths []*string `json:"contentPaths,omitempty"` + ContentPaths []*string } // LogAnalyticsClientGetLogAnalyticsLocationsOptions contains the optional parameters for the LogAnalyticsClient.GetLogAnalyticsLocations @@ -2175,40 +2175,40 @@ type LogAnalyticsClientGetWafLogAnalyticsRankingsOptions struct { // LogSpecification - Log specification of operation. type LogSpecification struct { // Blob duration of specification. - BlobDuration *string `json:"blobDuration,omitempty"` + BlobDuration *string // Display name of log specification. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Pattern to filter based on name - LogFilterPattern *string `json:"logFilterPattern,omitempty"` + LogFilterPattern *string // Name of log specification. - Name *string `json:"name,omitempty"` + Name *string } // ManagedCertificate - Managed Certificate used for https type ManagedCertificate struct { // The type of the secret resource. - Type *SecretType `json:"type,omitempty"` + Type *SecretType // READ-ONLY; Certificate expiration date. - ExpirationDate *string `json:"expirationDate,omitempty" azure:"ro"` + ExpirationDate *string // READ-ONLY; Subject name in the certificate. - Subject *string `json:"subject,omitempty" azure:"ro"` + Subject *string } // ManagedCertificateParameters - Managed Certificate used for https type ManagedCertificateParameters struct { // REQUIRED; The type of the secret resource. - Type *SecretType `json:"type,omitempty"` + Type *SecretType // READ-ONLY; Certificate expiration date. - ExpirationDate *string `json:"expirationDate,omitempty" azure:"ro"` + ExpirationDate *string // READ-ONLY; Subject name in the certificate. - Subject *string `json:"subject,omitempty" azure:"ro"` + Subject *string } // GetSecretParameters implements the SecretParametersClassification interface for type ManagedCertificateParameters. @@ -2221,16 +2221,16 @@ func (m *ManagedCertificateParameters) GetSecretParameters() *SecretParameters { // ManagedHTTPSParameters - Defines the certificate source parameters using CDN managed certificate for enabling SSL. type ManagedHTTPSParameters struct { // REQUIRED; Defines the source of the SSL certificate. - CertificateSource *CertificateSource `json:"certificateSource,omitempty"` + CertificateSource *CertificateSource // REQUIRED; Defines the certificate source parameters using CDN managed certificate for enabling SSL. - CertificateSourceParameters *CertificateSourceParameters `json:"certificateSourceParameters,omitempty"` + CertificateSourceParameters *CertificateSourceParameters // REQUIRED; Defines the TLS extension protocol that is used for secure delivery. - ProtocolType *ProtocolType `json:"protocolType,omitempty"` + ProtocolType *ProtocolType // TLS protocol version that will be used for Https - MinimumTLSVersion *MinimumTLSVersion `json:"minimumTlsVersion,omitempty"` + MinimumTLSVersion *MinimumTLSVersion } // GetCustomDomainHTTPSParameters implements the CustomDomainHTTPSParametersClassification interface for type ManagedHTTPSParameters. @@ -2245,109 +2245,109 @@ func (m *ManagedHTTPSParameters) GetCustomDomainHTTPSParameters() *CustomDomainH // ManagedRuleDefinition - Describes a managed rule definition. type ManagedRuleDefinition struct { // READ-ONLY; Describes the functionality of the managed rule. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; Identifier for the managed rule. - RuleID *string `json:"ruleId,omitempty" azure:"ro"` + RuleID *string } // ManagedRuleGroupDefinition - Describes a managed rule group. type ManagedRuleGroupDefinition struct { // READ-ONLY; Description of the managed rule group. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; Name of the managed rule group. - RuleGroupName *string `json:"ruleGroupName,omitempty" azure:"ro"` + RuleGroupName *string // READ-ONLY; List of rules within the managed rule group. - Rules []*ManagedRuleDefinition `json:"rules,omitempty" azure:"ro"` + Rules []*ManagedRuleDefinition } // ManagedRuleGroupOverride - Defines a managed rule group override setting. type ManagedRuleGroupOverride struct { // REQUIRED; Describes the managed rule group within the rule set to override - RuleGroupName *string `json:"ruleGroupName,omitempty"` + RuleGroupName *string // List of rules that will be disabled. If none specified, all rules in the group will be disabled. - Rules []*ManagedRuleOverride `json:"rules,omitempty"` + Rules []*ManagedRuleOverride } // ManagedRuleOverride - Defines a managed rule group override setting. type ManagedRuleOverride struct { // REQUIRED; Identifier for the managed rule. - RuleID *string `json:"ruleId,omitempty"` + RuleID *string // Describes the override action to be applied when rule matches. - Action *ActionType `json:"action,omitempty"` + Action *ActionType // Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - EnabledState *ManagedRuleEnabledState `json:"enabledState,omitempty"` + EnabledState *ManagedRuleEnabledState } // ManagedRuleSet - Defines a managed rule set. type ManagedRuleSet struct { // REQUIRED; Defines the rule set type to use. - RuleSetType *string `json:"ruleSetType,omitempty"` + RuleSetType *string // REQUIRED; Defines the version of the rule set to use. - RuleSetVersion *string `json:"ruleSetVersion,omitempty"` + RuleSetVersion *string // Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests. - AnomalyScore *int32 `json:"anomalyScore,omitempty"` + AnomalyScore *int32 // Defines the rule overrides to apply to the rule set. - RuleGroupOverrides []*ManagedRuleGroupOverride `json:"ruleGroupOverrides,omitempty"` + RuleGroupOverrides []*ManagedRuleGroupOverride } // ManagedRuleSetDefinition - Describes a managed rule set definition. type ManagedRuleSetDefinition struct { // Describes managed rule set definition properties. - Properties *ManagedRuleSetDefinitionProperties `json:"properties,omitempty"` + Properties *ManagedRuleSetDefinitionProperties // The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ManagedRuleSetDefinitionList - List of managed rule set definitions available for use in a policy. type ManagedRuleSetDefinitionList struct { // URL to retrieve next set of managed rule set definitions. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; List of managed rule set definitions. - Value []*ManagedRuleSetDefinition `json:"value,omitempty" azure:"ro"` + Value []*ManagedRuleSetDefinition } // ManagedRuleSetDefinitionProperties - Properties for a managed rule set definition. type ManagedRuleSetDefinitionProperties struct { // READ-ONLY; Provisioning state of the managed rule set. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; Rule groups of the managed rule set. - RuleGroups []*ManagedRuleGroupDefinition `json:"ruleGroups,omitempty" azure:"ro"` + RuleGroups []*ManagedRuleGroupDefinition // READ-ONLY; Type of the managed rule set. - RuleSetType *string `json:"ruleSetType,omitempty" azure:"ro"` + RuleSetType *string // READ-ONLY; Version of the managed rule set type. - RuleSetVersion *string `json:"ruleSetVersion,omitempty" azure:"ro"` + RuleSetVersion *string } // ManagedRuleSetList - Defines the list of managed rule sets for the policy. type ManagedRuleSetList struct { // List of rule sets. - ManagedRuleSets []*ManagedRuleSet `json:"managedRuleSets,omitempty"` + ManagedRuleSets []*ManagedRuleSet } // ManagedRuleSetsClientListOptions contains the optional parameters for the ManagedRuleSetsClient.NewListPager method. @@ -2381,123 +2381,123 @@ type ManagementClientValidateProbeOptions struct { // MatchCondition - Define match conditions type MatchCondition struct { // REQUIRED; List of possible match values. - MatchValue []*string `json:"matchValue,omitempty"` + MatchValue []*string // REQUIRED; Match variable to compare against. - MatchVariable *WafMatchVariable `json:"matchVariable,omitempty"` + MatchVariable *WafMatchVariable // REQUIRED; Describes operator to be matched - Operator *Operator `json:"operator,omitempty"` + Operator *Operator // Describes if the result of this condition should be negated. - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs. - Selector *string `json:"selector,omitempty"` + Selector *string // List of transforms. - Transforms []*TransformType `json:"transforms,omitempty"` + Transforms []*TransformType } // MetricAvailability - Retention policy of a resource metric. type MetricAvailability struct { - BlobDuration *string `json:"blobDuration,omitempty"` - TimeGrain *string `json:"timeGrain,omitempty"` + BlobDuration *string + TimeGrain *string } // MetricSpecification - Metric specification of operation. type MetricSpecification struct { // The metric aggregation type. Possible values include: 'Average', 'Count', 'Total'. - AggregationType *string `json:"aggregationType,omitempty"` + AggregationType *string // Retention policies of a resource metric. - Availabilities []*MetricAvailability `json:"availabilities,omitempty"` + Availabilities []*MetricAvailability // The dimensions of metric - Dimensions []*DimensionProperties `json:"dimensions,omitempty"` + Dimensions []*DimensionProperties // Display description of metric specification. - DisplayDescription *string `json:"displayDescription,omitempty"` + DisplayDescription *string // Display name of metric specification. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Property to specify whether to fill gap with zero. - FillGapWithZero *bool `json:"fillGapWithZero,omitempty"` + FillGapWithZero *bool // Property to specify metric is internal or not. - IsInternal *bool `json:"isInternal,omitempty"` + IsInternal *bool // Pattern to filter based on name - MetricFilterPattern *string `json:"metricFilterPattern,omitempty"` + MetricFilterPattern *string // Name of metric specification. - Name *string `json:"name,omitempty"` + Name *string // The supported time grain types for the metrics. - SupportedTimeGrainTypes []*string `json:"supportedTimeGrainTypes,omitempty"` + SupportedTimeGrainTypes []*string // The metric unit. Possible values include: 'Bytes', 'Count', 'Milliseconds'. - Unit *string `json:"unit,omitempty"` + Unit *string } // MetricsResponse - Metrics Response type MetricsResponse struct { - DateTimeBegin *time.Time `json:"dateTimeBegin,omitempty"` - DateTimeEnd *time.Time `json:"dateTimeEnd,omitempty"` - Granularity *MetricsResponseGranularity `json:"granularity,omitempty"` - Series []*MetricsResponseSeriesItem `json:"series,omitempty"` + DateTimeBegin *time.Time + DateTimeEnd *time.Time + Granularity *MetricsResponseGranularity + Series []*MetricsResponseSeriesItem } type MetricsResponseSeriesItem struct { - Data []*Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems `json:"data,omitempty"` - Groups []*MetricsResponseSeriesPropertiesItemsItem `json:"groups,omitempty"` - Metric *string `json:"metric,omitempty"` - Unit *MetricsResponseSeriesItemUnit `json:"unit,omitempty"` + Data []*Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems + Groups []*MetricsResponseSeriesPropertiesItemsItem + Metric *string + Unit *MetricsResponseSeriesItemUnit } type MetricsResponseSeriesPropertiesItemsItem struct { - Name *string `json:"name,omitempty"` - Value *string `json:"value,omitempty"` + Name *string + Value *string } // Operation - CDN REST API operation type Operation struct { // The object that represents the operation. - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // Indicates whether the operation is a data action - IsDataAction *bool `json:"isDataAction,omitempty"` + IsDataAction *bool // Properties of operation, include metric specifications. - OperationProperties *OperationProperties `json:"properties,omitempty"` + OperationProperties *OperationProperties // READ-ONLY; Operation name: {provider}/{resource}/{operation} - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The origin of operations. - Origin *string `json:"origin,omitempty" azure:"ro"` + Origin *string } // OperationDisplay - The object that represents the operation. type OperationDisplay struct { // READ-ONLY; Description of operation. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; Operation type: Read, write, delete, etc. - Operation *string `json:"operation,omitempty" azure:"ro"` + Operation *string // READ-ONLY; Service provider: Microsoft.Cdn - Provider *string `json:"provider,omitempty" azure:"ro"` + Provider *string // READ-ONLY; Resource on which the operation is performed: Profile, endpoint, etc. - Resource *string `json:"resource,omitempty" azure:"ro"` + Resource *string } // OperationProperties - Properties of operation, include metric specifications. type OperationProperties struct { // One property of operation, include metric specifications. - ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` + ServiceSpecification *ServiceSpecification } // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. @@ -2509,10 +2509,10 @@ type OperationsClientListOptions struct { // get the next set of results. type OperationsListResult struct { // URL to get the next set of operation list results if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // List of CDN operations supported by the CDN resource provider. - Value []*Operation `json:"value,omitempty"` + Value []*Operation } // Origin - CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint @@ -2520,66 +2520,66 @@ type OperationsListResult struct { // the configured origins. type Origin struct { // The JSON object that contains the properties of the origin. - Properties *OriginProperties `json:"properties,omitempty"` + Properties *OriginProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // OriginGroup - Origin group comprising of origins is used for load balancing to origins when the content cannot be served // from CDN. type OriginGroup struct { // The JSON object that contains the properties of the origin group. - Properties *OriginGroupProperties `json:"properties,omitempty"` + Properties *OriginGroupProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // OriginGroupListResult - Result of the request to list origin groups. It contains a list of origin groups objects and a // URL link to get the next set of results. type OriginGroupListResult struct { // URL to get the next set of origin objects if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; List of CDN origin groups within an endpoint - Value []*OriginGroup `json:"value,omitempty" azure:"ro"` + Value []*OriginGroup } // OriginGroupOverride - Defines the parameters for the origin group override configuration. type OriginGroupOverride struct { // Protocol this rule will use when forwarding traffic to backends. - ForwardingProtocol *ForwardingProtocol `json:"forwardingProtocol,omitempty"` + ForwardingProtocol *ForwardingProtocol // defines the OriginGroup that would override the DefaultOriginGroup on route. - OriginGroup *ResourceReference `json:"originGroup,omitempty"` + OriginGroup *ResourceReference } // OriginGroupOverrideAction - Defines the origin group override action for the delivery rule. type OriginGroupOverrideAction struct { // REQUIRED; The name of the action for the delivery rule. - Name *DeliveryRuleAction `json:"name,omitempty"` + Name *DeliveryRuleAction // REQUIRED; Defines the parameters for the action. - Parameters *OriginGroupOverrideActionParameters `json:"parameters,omitempty"` + Parameters *OriginGroupOverrideActionParameters } // GetDeliveryRuleActionAutoGenerated implements the DeliveryRuleActionAutoGeneratedClassification interface for type OriginGroupOverrideAction. @@ -2592,56 +2592,56 @@ func (o *OriginGroupOverrideAction) GetDeliveryRuleActionAutoGenerated() *Delive // OriginGroupOverrideActionParameters - Defines the parameters for the origin group override action. type OriginGroupOverrideActionParameters struct { // REQUIRED; defines the OriginGroup that would override the DefaultOriginGroup. - OriginGroup *ResourceReference `json:"originGroup,omitempty"` + OriginGroup *ResourceReference // REQUIRED - TypeName *OriginGroupOverrideActionParametersTypeName `json:"typeName,omitempty"` + TypeName *OriginGroupOverrideActionParametersTypeName } // OriginGroupProperties - The JSON object that contains the properties of the origin group. type OriginGroupProperties struct { // Health probe settings to the origin that is used to determine the health of the origin. - HealthProbeSettings *HealthProbeParameters `json:"healthProbeSettings,omitempty"` + HealthProbeSettings *HealthProbeParameters // The source of the content being delivered via CDN within given origin group. - Origins []*ResourceReference `json:"origins,omitempty"` + Origins []*ResourceReference // The JSON object that contains the properties to determine origin health using real requests/responses. This property is // currently not supported. - ResponseBasedOriginErrorDetectionSettings *ResponseBasedOriginErrorDetectionParameters `json:"responseBasedOriginErrorDetectionSettings,omitempty"` + ResponseBasedOriginErrorDetectionSettings *ResponseBasedOriginErrorDetectionParameters // Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint // is added. Default is 10 mins. This property is currently not supported. - TrafficRestorationTimeToHealedOrNewEndpointsInMinutes *int32 `json:"trafficRestorationTimeToHealedOrNewEndpointsInMinutes,omitempty"` + TrafficRestorationTimeToHealedOrNewEndpointsInMinutes *int32 // READ-ONLY; Provisioning status of the origin group. - ProvisioningState *OriginGroupProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *OriginGroupProvisioningState // READ-ONLY; Resource status of the origin group. - ResourceState *OriginGroupResourceState `json:"resourceState,omitempty" azure:"ro"` + ResourceState *OriginGroupResourceState } // OriginGroupUpdateParameters - Origin group properties needed for origin group creation or update. type OriginGroupUpdateParameters struct { // The JSON object that contains the properties of the origin group. - Properties *OriginGroupUpdatePropertiesParameters `json:"properties,omitempty"` + Properties *OriginGroupUpdatePropertiesParameters } // OriginGroupUpdatePropertiesParameters - The JSON object that contains the properties of the origin group. type OriginGroupUpdatePropertiesParameters struct { // Health probe settings to the origin that is used to determine the health of the origin. - HealthProbeSettings *HealthProbeParameters `json:"healthProbeSettings,omitempty"` + HealthProbeSettings *HealthProbeParameters // The source of the content being delivered via CDN within given origin group. - Origins []*ResourceReference `json:"origins,omitempty"` + Origins []*ResourceReference // The JSON object that contains the properties to determine origin health using real requests/responses. This property is // currently not supported. - ResponseBasedOriginErrorDetectionSettings *ResponseBasedOriginErrorDetectionParameters `json:"responseBasedOriginErrorDetectionSettings,omitempty"` + ResponseBasedOriginErrorDetectionSettings *ResponseBasedOriginErrorDetectionParameters // Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint // is added. Default is 10 mins. This property is currently not supported. - TrafficRestorationTimeToHealedOrNewEndpointsInMinutes *int32 `json:"trafficRestorationTimeToHealedOrNewEndpointsInMinutes,omitempty"` + TrafficRestorationTimeToHealedOrNewEndpointsInMinutes *int32 } // OriginGroupsClientBeginCreateOptions contains the optional parameters for the OriginGroupsClient.BeginCreate method. @@ -2677,105 +2677,105 @@ type OriginGroupsClientListByEndpointOptions struct { // next set of results. type OriginListResult struct { // URL to get the next set of origin objects if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; List of CDN origins within an endpoint - Value []*Origin `json:"value,omitempty" azure:"ro"` + Value []*Origin } // OriginProperties - The JSON object that contains the properties of the origin. type OriginProperties struct { // Origin is enabled for load balancing or not - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool // The value of the HTTP port. Must be between 1 and 65535. - HTTPPort *int32 `json:"httpPort,omitempty"` + HTTPPort *int32 // The value of the HTTPS port. Must be between 1 and 65535. - HTTPSPort *int32 `json:"httpsPort,omitempty"` + HTTPSPort *int32 // The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across // all origins in an endpoint. - HostName *string `json:"hostName,omitempty"` + HostName *string // The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this // value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services // require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint - OriginHostHeader *string `json:"originHostHeader,omitempty"` + OriginHostHeader *string // Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any // lower priority origin is healthy.Must be between 1 and 5 - Priority *int32 `json:"priority,omitempty"` + Priority *int32 // The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private' - PrivateLinkAlias *string `json:"privateLinkAlias,omitempty"` + PrivateLinkAlias *string // A custom message to be included in the approval request to connect to the Private Link. - PrivateLinkApprovalMessage *string `json:"privateLinkApprovalMessage,omitempty"` + PrivateLinkApprovalMessage *string // The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - PrivateLinkLocation *string `json:"privateLinkLocation,omitempty"` + PrivateLinkLocation *string // The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - PrivateLinkResourceID *string `json:"privateLinkResourceId,omitempty"` + PrivateLinkResourceID *string // Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 - Weight *int32 `json:"weight,omitempty"` + Weight *int32 // READ-ONLY; The approval status for the connection to the Private Link - PrivateEndpointStatus *PrivateEndpointStatus `json:"privateEndpointStatus,omitempty" azure:"ro"` + PrivateEndpointStatus *PrivateEndpointStatus // READ-ONLY; Provisioning status of the origin. - ProvisioningState *OriginProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *OriginProvisioningState // READ-ONLY; Resource status of the origin. - ResourceState *OriginResourceState `json:"resourceState,omitempty" azure:"ro"` + ResourceState *OriginResourceState } // OriginUpdateParameters - Origin properties needed for origin update. type OriginUpdateParameters struct { // The JSON object that contains the properties of the origin. - Properties *OriginUpdatePropertiesParameters `json:"properties,omitempty"` + Properties *OriginUpdatePropertiesParameters } // OriginUpdatePropertiesParameters - The JSON object that contains the properties of the origin. type OriginUpdatePropertiesParameters struct { // Origin is enabled for load balancing or not - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool // The value of the HTTP port. Must be between 1 and 65535. - HTTPPort *int32 `json:"httpPort,omitempty"` + HTTPPort *int32 // The value of the HTTPS port. Must be between 1 and 65535. - HTTPSPort *int32 `json:"httpsPort,omitempty"` + HTTPSPort *int32 // The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across // all origins in an endpoint. - HostName *string `json:"hostName,omitempty"` + HostName *string // The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this // value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services // require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint - OriginHostHeader *string `json:"originHostHeader,omitempty"` + OriginHostHeader *string // Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any // lower priority origin is healthy.Must be between 1 and 5 - Priority *int32 `json:"priority,omitempty"` + Priority *int32 // The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private' - PrivateLinkAlias *string `json:"privateLinkAlias,omitempty"` + PrivateLinkAlias *string // A custom message to be included in the approval request to connect to the Private Link. - PrivateLinkApprovalMessage *string `json:"privateLinkApprovalMessage,omitempty"` + PrivateLinkApprovalMessage *string // The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - PrivateLinkLocation *string `json:"privateLinkLocation,omitempty"` + PrivateLinkLocation *string // The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - PrivateLinkResourceID *string `json:"privateLinkResourceId,omitempty"` + PrivateLinkResourceID *string // Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 - Weight *int32 `json:"weight,omitempty"` + Weight *int32 } // OriginsClientBeginCreateOptions contains the optional parameters for the OriginsClient.BeginCreate method. @@ -2836,111 +2836,111 @@ type PoliciesClientListOptions struct { // PolicySettings - Defines contents of a web application firewall global configuration type PolicySettings struct { // If the action type is block, customer can override the response body. The body must be specified in base64 encoding. - DefaultCustomBlockResponseBody *string `json:"defaultCustomBlockResponseBody,omitempty"` + DefaultCustomBlockResponseBody *string // If the action type is block, this field defines the default customer overridable http response status code. - DefaultCustomBlockResponseStatusCode *PolicySettingsDefaultCustomBlockResponseStatusCode `json:"defaultCustomBlockResponseStatusCode,omitempty"` + DefaultCustomBlockResponseStatusCode *PolicySettingsDefaultCustomBlockResponseStatusCode // If action type is redirect, this field represents the default redirect URL for the client. - DefaultRedirectURL *string `json:"defaultRedirectUrl,omitempty"` + DefaultRedirectURL *string // describes if the policy is in enabled state or disabled state - EnabledState *PolicyEnabledState `json:"enabledState,omitempty"` + EnabledState *PolicyEnabledState // Describes if it is in detection mode or prevention mode at policy level. - Mode *PolicyMode `json:"mode,omitempty"` + Mode *PolicyMode } // PostArgsMatchConditionParameters - Defines the parameters for PostArgs match conditions type PostArgsMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *PostArgsOperator `json:"operator,omitempty"` + Operator *PostArgsOperator // REQUIRED - TypeName *PostArgsMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *PostArgsMatchConditionParametersTypeName // The match value for the condition of the delivery rule - MatchValues []*string `json:"matchValues,omitempty"` + MatchValues []*string // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // Name of PostArg to be matched - Selector *string `json:"selector,omitempty"` + Selector *string // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } // Profile - A profile is a logical grouping of endpoints that share the same settings. type Profile struct { // REQUIRED; Resource location. - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; The pricing tier (defines Azure Front Door Standard or Premium or a CDN provider, feature list and rate) of the // profile. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // The JSON object that contains the properties required to create a profile. - Properties *ProfileProperties `json:"properties,omitempty"` + Properties *ProfileProperties // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Kind of the profile. Used by portal to differentiate traditional CDN profile and new AFD profile. - Kind *string `json:"kind,omitempty" azure:"ro"` + Kind *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ProfileListResult - Result of the request to list profiles. It contains a list of profile objects and a URL link to get // the next set of results. type ProfileListResult struct { // URL to get the next set of profile objects if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; List of CDN profiles within a resource group. - Value []*Profile `json:"value,omitempty" azure:"ro"` + Value []*Profile } // ProfileProperties - The JSON object that contains the properties required to create a profile. type ProfileProperties struct { // Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns. - OriginResponseTimeoutSeconds *int32 `json:"originResponseTimeoutSeconds,omitempty"` + OriginResponseTimeoutSeconds *int32 // READ-ONLY; The Id of the frontdoor. - FrontDoorID *string `json:"frontDoorId,omitempty" azure:"ro"` + FrontDoorID *string // READ-ONLY; Provisioning status of the profile. - ProvisioningState *ProfileProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ProfileProvisioningState // READ-ONLY; Resource status of the profile. - ResourceState *ProfileResourceState `json:"resourceState,omitempty" azure:"ro"` + ResourceState *ProfileResourceState } // ProfilePropertiesUpdateParameters - The JSON object containing profile update parameters. type ProfilePropertiesUpdateParameters struct { // Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns. - OriginResponseTimeoutSeconds *int32 `json:"originResponseTimeoutSeconds,omitempty"` + OriginResponseTimeoutSeconds *int32 } // ProfileUpdateParameters - Properties required to update a profile. type ProfileUpdateParameters struct { // The JSON object containing profile update parameters. - Properties *ProfilePropertiesUpdateParameters `json:"properties,omitempty"` + Properties *ProfilePropertiesUpdateParameters // Profile tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // ProfilesClientBeginCreateOptions contains the optional parameters for the ProfilesClient.BeginCreate method. @@ -2998,241 +2998,241 @@ type ProfilesClientListSupportedOptimizationTypesOptions struct { // and tags type ProxyResource struct { // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PurgeParameters - Parameters required for content purge. type PurgeParameters struct { // REQUIRED; The path to the content to be purged. Can describe a file path or a wild card directory. - ContentPaths []*string `json:"contentPaths,omitempty"` + ContentPaths []*string } // QueryStringMatchConditionParameters - Defines the parameters for QueryString match conditions type QueryStringMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *QueryStringOperator `json:"operator,omitempty"` + Operator *QueryStringOperator // REQUIRED - TypeName *QueryStringMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *QueryStringMatchConditionParametersTypeName // The match value for the condition of the delivery rule - MatchValues []*string `json:"matchValues,omitempty"` + MatchValues []*string // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } // RankingsResponse - Rankings Response type RankingsResponse struct { - DateTimeBegin *time.Time `json:"dateTimeBegin,omitempty"` - DateTimeEnd *time.Time `json:"dateTimeEnd,omitempty"` - Tables []*RankingsResponseTablesItem `json:"tables,omitempty"` + DateTimeBegin *time.Time + DateTimeEnd *time.Time + Tables []*RankingsResponseTablesItem } type RankingsResponseTablesItem struct { - Data []*RankingsResponseTablesPropertiesItemsItem `json:"data,omitempty"` - Ranking *string `json:"ranking,omitempty"` + Data []*RankingsResponseTablesPropertiesItemsItem + Ranking *string } type RankingsResponseTablesPropertiesItemsItem struct { - Metrics []*RankingsResponseTablesPropertiesItemsMetricsItem `json:"metrics,omitempty"` - Name *string `json:"name,omitempty"` + Metrics []*RankingsResponseTablesPropertiesItemsMetricsItem + Name *string } type RankingsResponseTablesPropertiesItemsMetricsItem struct { - Metric *string `json:"metric,omitempty"` - Percentage *float32 `json:"percentage,omitempty"` - Value *int64 `json:"value,omitempty"` + Metric *string + Percentage *float32 + Value *int64 } // RateLimitRule - Defines a rate limiting rule that can be included in a waf policy type RateLimitRule struct { // REQUIRED; Describes what action to be applied when rule matches - Action *ActionType `json:"action,omitempty"` + Action *ActionType // REQUIRED; List of match conditions. - MatchConditions []*MatchCondition `json:"matchConditions,omitempty"` + MatchConditions []*MatchCondition // REQUIRED; Defines the name of the custom rule - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Defines in what order this rule be evaluated in the overall list of custom rules - Priority *int32 `json:"priority,omitempty"` + Priority *int32 // REQUIRED; Defines rate limit duration. Default is 1 minute. - RateLimitDurationInMinutes *int32 `json:"rateLimitDurationInMinutes,omitempty"` + RateLimitDurationInMinutes *int32 // REQUIRED; Defines rate limit threshold. - RateLimitThreshold *int32 `json:"rateLimitThreshold,omitempty"` + RateLimitThreshold *int32 // Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - EnabledState *CustomRuleEnabledState `json:"enabledState,omitempty"` + EnabledState *CustomRuleEnabledState } // RateLimitRuleList - Defines contents of rate limit rules type RateLimitRuleList struct { // List of rules - Rules []*RateLimitRule `json:"rules,omitempty"` + Rules []*RateLimitRule } // RemoteAddressMatchConditionParameters - Defines the parameters for RemoteAddress match conditions type RemoteAddressMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *RemoteAddressOperator `json:"operator,omitempty"` + Operator *RemoteAddressOperator // REQUIRED - TypeName *RemoteAddressMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *RemoteAddressMatchConditionParametersTypeName // Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the // variable with the given operator this match condition is considered a match. - MatchValues []*string `json:"matchValues,omitempty"` + MatchValues []*string // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } // RequestBodyMatchConditionParameters - Defines the parameters for RequestBody match conditions type RequestBodyMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *RequestBodyOperator `json:"operator,omitempty"` + Operator *RequestBodyOperator // REQUIRED - TypeName *RequestBodyMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *RequestBodyMatchConditionParametersTypeName // The match value for the condition of the delivery rule - MatchValues []*string `json:"matchValues,omitempty"` + MatchValues []*string // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } // RequestHeaderMatchConditionParameters - Defines the parameters for RequestHeader match conditions type RequestHeaderMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *RequestHeaderOperator `json:"operator,omitempty"` + Operator *RequestHeaderOperator // REQUIRED - TypeName *RequestHeaderMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *RequestHeaderMatchConditionParametersTypeName // The match value for the condition of the delivery rule - MatchValues []*string `json:"matchValues,omitempty"` + MatchValues []*string // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // Name of Header to be matched - Selector *string `json:"selector,omitempty"` + Selector *string // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } // RequestMethodMatchConditionParameters - Defines the parameters for RequestMethod match conditions type RequestMethodMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *RequestMethodOperator `json:"operator,omitempty"` + Operator *RequestMethodOperator // REQUIRED - TypeName *RequestMethodMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *RequestMethodMatchConditionParametersTypeName // The match value for the condition of the delivery rule - MatchValues []*RequestMethodMatchConditionParametersMatchValuesItem `json:"matchValues,omitempty"` + MatchValues []*RequestMethodMatchConditionParametersMatchValuesItem // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } // RequestSchemeMatchConditionParameters - Defines the parameters for RequestScheme match conditions type RequestSchemeMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *RequestSchemeMatchConditionParametersOperator `json:"operator,omitempty"` + Operator *RequestSchemeMatchConditionParametersOperator // REQUIRED - TypeName *RequestSchemeMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *RequestSchemeMatchConditionParametersTypeName // The match value for the condition of the delivery rule - MatchValues []*RequestSchemeMatchConditionParametersMatchValuesItem `json:"matchValues,omitempty"` + MatchValues []*RequestSchemeMatchConditionParametersMatchValuesItem // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } // RequestURIMatchConditionParameters - Defines the parameters for RequestUri match conditions type RequestURIMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *RequestURIOperator `json:"operator,omitempty"` + Operator *RequestURIOperator // REQUIRED - TypeName *RequestURIMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *RequestURIMatchConditionParametersTypeName // The match value for the condition of the delivery rule - MatchValues []*string `json:"matchValues,omitempty"` + MatchValues []*string // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } // Resource - The core properties of ARM resources type Resource struct { // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ResourceReference - Reference to another resource. type ResourceReference struct { // Resource ID. - ID *string `json:"id,omitempty"` + ID *string } // ResourceUsage - Output of check resource usage API. type ResourceUsage struct { // READ-ONLY; Actual value of usage on the specified resource type. - CurrentValue *int32 `json:"currentValue,omitempty" azure:"ro"` + CurrentValue *int32 // READ-ONLY; Quota of the specified resource type. - Limit *int32 `json:"limit,omitempty" azure:"ro"` + Limit *int32 // READ-ONLY; Resource type for which the usage is provided. - ResourceType *string `json:"resourceType,omitempty" azure:"ro"` + ResourceType *string // READ-ONLY; Unit of the usage. e.g. count. - Unit *ResourceUsageUnit `json:"unit,omitempty" azure:"ro"` + Unit *ResourceUsageUnit } // ResourceUsageClientListOptions contains the optional parameters for the ResourceUsageClient.NewListPager method. @@ -3243,182 +3243,182 @@ type ResourceUsageClientListOptions struct { // ResourceUsageListResult - Output of check resource usage API. type ResourceUsageListResult struct { // URL to get the next set of custom domain objects if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; List of resource usages. - Value []*ResourceUsage `json:"value,omitempty" azure:"ro"` + Value []*ResourceUsage } // ResourcesResponse - Resources Response type ResourcesResponse struct { - CustomDomains []*ResourcesResponseCustomDomainsItem `json:"customDomains,omitempty"` - Endpoints []*ResourcesResponseEndpointsItem `json:"endpoints,omitempty"` + CustomDomains []*ResourcesResponseCustomDomainsItem + Endpoints []*ResourcesResponseEndpointsItem } type ResourcesResponseCustomDomainsItem struct { - EndpointID *string `json:"endpointId,omitempty"` - History *bool `json:"history,omitempty"` - ID *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` + EndpointID *string + History *bool + ID *string + Name *string } type ResourcesResponseEndpointsItem struct { - CustomDomains []*ResourcesResponseEndpointsPropertiesItemsItem `json:"customDomains,omitempty"` - History *bool `json:"history,omitempty"` - ID *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` + CustomDomains []*ResourcesResponseEndpointsPropertiesItemsItem + History *bool + ID *string + Name *string } type ResourcesResponseEndpointsPropertiesItemsItem struct { - EndpointID *string `json:"endpointId,omitempty"` - History *bool `json:"history,omitempty"` - ID *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` + EndpointID *string + History *bool + ID *string + Name *string } // ResponseBasedOriginErrorDetectionParameters - The JSON object that contains the properties to determine origin health using // real requests/responses. type ResponseBasedOriginErrorDetectionParameters struct { // The list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy. - HTTPErrorRanges []*HTTPErrorRangeParameters `json:"httpErrorRanges,omitempty"` + HTTPErrorRanges []*HTTPErrorRangeParameters // Type of response errors for real user requests for which origin will be deemed unhealthy - ResponseBasedDetectedErrorTypes *ResponseBasedDetectedErrorTypes `json:"responseBasedDetectedErrorTypes,omitempty"` + ResponseBasedDetectedErrorTypes *ResponseBasedDetectedErrorTypes // The percentage of failed requests in the sample where failover should trigger. - ResponseBasedFailoverThresholdPercentage *int32 `json:"responseBasedFailoverThresholdPercentage,omitempty"` + ResponseBasedFailoverThresholdPercentage *int32 } // Route - Friendly Routes name mapping to the any Routes or secret related information. type Route struct { // The JSON object that contains the properties of the Routes to create. - Properties *RouteProperties `json:"properties,omitempty"` + Properties *RouteProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // RouteConfigurationOverrideActionParameters - Defines the parameters for the route configuration override action. type RouteConfigurationOverrideActionParameters struct { // REQUIRED - TypeName *RouteConfigurationOverrideActionParametersTypeName `json:"typeName,omitempty"` + TypeName *RouteConfigurationOverrideActionParametersTypeName // The caching configuration associated with this rule. To disable caching, do not provide a cacheConfiguration object. - CacheConfiguration *CacheConfiguration `json:"cacheConfiguration,omitempty"` + CacheConfiguration *CacheConfiguration // A reference to the origin group override configuration. Leave empty to use the default origin group on route. - OriginGroupOverride *OriginGroupOverride `json:"originGroupOverride,omitempty"` + OriginGroupOverride *OriginGroupOverride } // RouteListResult - Result of the request to list routes. It contains a list of route objects and a URL link to get the next // set of results. type RouteListResult struct { // URL to get the next set of route objects if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; List of AzureFrontDoor routes within a profile. - Value []*Route `json:"value,omitempty" azure:"ro"` + Value []*Route } // RouteProperties - The JSON object that contains the properties of the Routes to create. type RouteProperties struct { // The caching configuration for this route. To disable caching, do not provide a cacheConfiguration object. - CacheConfiguration *AfdRouteCacheConfiguration `json:"cacheConfiguration,omitempty"` + CacheConfiguration *AfdRouteCacheConfiguration // Domains referenced by this endpoint. - CustomDomains []*ActivatedResourceReference `json:"customDomains,omitempty"` + CustomDomains []*ActivatedResourceReference // Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - EnabledState *EnabledState `json:"enabledState,omitempty"` + EnabledState *EnabledState // Protocol this rule will use when forwarding traffic to backends. - ForwardingProtocol *ForwardingProtocol `json:"forwardingProtocol,omitempty"` + ForwardingProtocol *ForwardingProtocol // Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it // will be the first rule that gets executed. - HTTPSRedirect *HTTPSRedirect `json:"httpsRedirect,omitempty"` + HTTPSRedirect *HTTPSRedirect // whether this route will be linked to the default endpoint domain. - LinkToDefaultDomain *LinkToDefaultDomain `json:"linkToDefaultDomain,omitempty"` + LinkToDefaultDomain *LinkToDefaultDomain // A reference to the origin group. - OriginGroup *ResourceReference `json:"originGroup,omitempty"` + OriginGroup *ResourceReference // A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. - OriginPath *string `json:"originPath,omitempty"` + OriginPath *string // The route patterns of the rule. - PatternsToMatch []*string `json:"patternsToMatch,omitempty"` + PatternsToMatch []*string // rule sets referenced by this endpoint. - RuleSets []*ResourceReference `json:"ruleSets,omitempty"` + RuleSets []*ResourceReference // List of supported protocols for this route. - SupportedProtocols []*AFDEndpointProtocols `json:"supportedProtocols,omitempty"` + SupportedProtocols []*AFDEndpointProtocols // READ-ONLY - DeploymentStatus *DeploymentStatus `json:"deploymentStatus,omitempty" azure:"ro"` + DeploymentStatus *DeploymentStatus // READ-ONLY; The name of the endpoint which holds the route. - EndpointName *string `json:"endpointName,omitempty" azure:"ro"` + EndpointName *string // READ-ONLY; Provisioning status - ProvisioningState *AfdProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *AfdProvisioningState } // RouteUpdateParameters - The domain JSON object required for domain creation or update. type RouteUpdateParameters struct { // The JSON object that contains the properties of the domain to create. - Properties *RouteUpdatePropertiesParameters `json:"properties,omitempty"` + Properties *RouteUpdatePropertiesParameters } // RouteUpdatePropertiesParameters - The JSON object that contains the properties of the domain to create. type RouteUpdatePropertiesParameters struct { // The caching configuration for this route. To disable caching, do not provide a cacheConfiguration object. - CacheConfiguration *AfdRouteCacheConfiguration `json:"cacheConfiguration,omitempty"` + CacheConfiguration *AfdRouteCacheConfiguration // Domains referenced by this endpoint. - CustomDomains []*ActivatedResourceReference `json:"customDomains,omitempty"` + CustomDomains []*ActivatedResourceReference // Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' - EnabledState *EnabledState `json:"enabledState,omitempty"` + EnabledState *EnabledState // Protocol this rule will use when forwarding traffic to backends. - ForwardingProtocol *ForwardingProtocol `json:"forwardingProtocol,omitempty"` + ForwardingProtocol *ForwardingProtocol // Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it // will be the first rule that gets executed. - HTTPSRedirect *HTTPSRedirect `json:"httpsRedirect,omitempty"` + HTTPSRedirect *HTTPSRedirect // whether this route will be linked to the default endpoint domain. - LinkToDefaultDomain *LinkToDefaultDomain `json:"linkToDefaultDomain,omitempty"` + LinkToDefaultDomain *LinkToDefaultDomain // A reference to the origin group. - OriginGroup *ResourceReference `json:"originGroup,omitempty"` + OriginGroup *ResourceReference // A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. - OriginPath *string `json:"originPath,omitempty"` + OriginPath *string // The route patterns of the rule. - PatternsToMatch []*string `json:"patternsToMatch,omitempty"` + PatternsToMatch []*string // rule sets referenced by this endpoint. - RuleSets []*ResourceReference `json:"ruleSets,omitempty"` + RuleSets []*ResourceReference // List of supported protocols for this route. - SupportedProtocols []*AFDEndpointProtocols `json:"supportedProtocols,omitempty"` + SupportedProtocols []*AFDEndpointProtocols // READ-ONLY; The name of the endpoint which holds the route. - EndpointName *string `json:"endpointName,omitempty" azure:"ro"` + EndpointName *string } // RoutesClientBeginCreateOptions contains the optional parameters for the RoutesClient.BeginCreate method. @@ -3452,96 +3452,96 @@ type RoutesClientListByEndpointOptions struct { // Rule - Friendly Rules name mapping to the any Rules or secret related information. type Rule struct { // The JSON object that contains the properties of the Rules to create. - Properties *RuleProperties `json:"properties,omitempty"` + Properties *RuleProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // RuleListResult - Result of the request to list rules. It contains a list of rule objects and a URL link to get the next // set of results. type RuleListResult struct { // URL to get the next set of rule objects if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; List of AzureFrontDoor rules within a rule set. - Value []*Rule `json:"value,omitempty" azure:"ro"` + Value []*Rule } // RuleProperties - The JSON object that contains the properties of the Rules to create. type RuleProperties struct { // A list of actions that are executed when all the conditions of a rule are satisfied. - Actions []DeliveryRuleActionAutoGeneratedClassification `json:"actions,omitempty"` + Actions []DeliveryRuleActionAutoGeneratedClassification // A list of conditions that must be matched for the actions to be executed - Conditions []DeliveryRuleConditionClassification `json:"conditions,omitempty"` + Conditions []DeliveryRuleConditionClassification // If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults // to Continue. - MatchProcessingBehavior *MatchProcessingBehavior `json:"matchProcessingBehavior,omitempty"` + MatchProcessingBehavior *MatchProcessingBehavior // The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will // be applied before a rule with a greater order. Rule with order 0 is a special // rule. It does not require any condition and actions listed in it will always be applied. - Order *int32 `json:"order,omitempty"` + Order *int32 // READ-ONLY - DeploymentStatus *DeploymentStatus `json:"deploymentStatus,omitempty" azure:"ro"` + DeploymentStatus *DeploymentStatus // READ-ONLY; Provisioning status - ProvisioningState *AfdProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *AfdProvisioningState // READ-ONLY; The name of the rule set containing the rule. - RuleSetName *string `json:"ruleSetName,omitempty" azure:"ro"` + RuleSetName *string } // RuleSet - Friendly RuleSet name mapping to the any RuleSet or secret related information. type RuleSet struct { // The JSON object that contains the properties of the Rule Set to create. - Properties *RuleSetProperties `json:"properties,omitempty"` + Properties *RuleSetProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // RuleSetListResult - Result of the request to list rule sets. It contains a list of rule set objects and a URL link to get // the next set of results. type RuleSetListResult struct { // URL to get the next set of rule set objects if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; List of AzureFrontDoor rule sets within a profile. - Value []*RuleSet `json:"value,omitempty" azure:"ro"` + Value []*RuleSet } // RuleSetProperties - The JSON object that contains the properties of the Rule Set to create. type RuleSetProperties struct { // READ-ONLY - DeploymentStatus *DeploymentStatus `json:"deploymentStatus,omitempty" azure:"ro"` + DeploymentStatus *DeploymentStatus // READ-ONLY; The name of the profile which holds the rule set. - ProfileName *string `json:"profileName,omitempty" azure:"ro"` + ProfileName *string // READ-ONLY; Provisioning status - ProvisioningState *AfdProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *AfdProvisioningState } // RuleSetsClientBeginDeleteOptions contains the optional parameters for the RuleSetsClient.BeginDelete method. @@ -3574,28 +3574,28 @@ type RuleSetsClientListResourceUsageOptions struct { // RuleUpdateParameters - The domain JSON object required for domain creation or update. type RuleUpdateParameters struct { // The JSON object that contains the properties of the rule to update. - Properties *RuleUpdatePropertiesParameters `json:"properties,omitempty"` + Properties *RuleUpdatePropertiesParameters } // RuleUpdatePropertiesParameters - The JSON object that contains the properties of the rule to update. type RuleUpdatePropertiesParameters struct { // A list of actions that are executed when all the conditions of a rule are satisfied. - Actions []DeliveryRuleActionAutoGeneratedClassification `json:"actions,omitempty"` + Actions []DeliveryRuleActionAutoGeneratedClassification // A list of conditions that must be matched for the actions to be executed - Conditions []DeliveryRuleConditionClassification `json:"conditions,omitempty"` + Conditions []DeliveryRuleConditionClassification // If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults // to Continue. - MatchProcessingBehavior *MatchProcessingBehavior `json:"matchProcessingBehavior,omitempty"` + MatchProcessingBehavior *MatchProcessingBehavior // The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will // be applied before a rule with a greater order. Rule with order 0 is a special // rule. It does not require any condition and actions listed in it will always be applied. - Order *int32 `json:"order,omitempty"` + Order *int32 // READ-ONLY; The name of the rule set containing the rule. - RuleSetName *string `json:"ruleSetName,omitempty" azure:"ro"` + RuleSetName *string } // RulesClientBeginCreateOptions contains the optional parameters for the RulesClient.BeginCreate method. @@ -3641,53 +3641,53 @@ type RulesClientListByRuleSetOptions struct { // for a China CDN live-streaming profile using monthly average peak bandwidth billing model. type SKU struct { // Name of the pricing tier. - Name *SKUName `json:"name,omitempty"` + Name *SKUName } // SSLProtocolMatchConditionParameters - Defines the parameters for SslProtocol match conditions type SSLProtocolMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *SSLProtocolOperator `json:"operator,omitempty"` + Operator *SSLProtocolOperator // REQUIRED - TypeName *SSLProtocolMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *SSLProtocolMatchConditionParametersTypeName // The match value for the condition of the delivery rule - MatchValues []*SSLProtocol `json:"matchValues,omitempty"` + MatchValues []*SSLProtocol // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } // Secret - Friendly Secret name mapping to the any Secret or secret related information. type Secret struct { // The JSON object that contains the properties of the Secret to create. - Properties *SecretProperties `json:"properties,omitempty"` + Properties *SecretProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SecretListResult - Result of the request to list secrets. It contains a list of Secret objects and a URL link to get the // next set of results. type SecretListResult struct { // URL to get the next set of Secret objects if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; List of AzureFrontDoor secrets within a profile. - Value []*Secret `json:"value,omitempty" azure:"ro"` + Value []*Secret } // SecretParametersClassification provides polymorphic access to related types. @@ -3703,7 +3703,7 @@ type SecretParametersClassification interface { // SecretParameters - The json object containing secret parameters type SecretParameters struct { // REQUIRED; The type of the secret resource. - Type *SecretType `json:"type,omitempty"` + Type *SecretType } // GetSecretParameters implements the SecretParametersClassification interface for type SecretParameters. @@ -3712,16 +3712,16 @@ func (s *SecretParameters) GetSecretParameters() *SecretParameters { return s } // SecretProperties - The JSON object that contains the properties of the Secret to create. type SecretProperties struct { // object which contains secret parameters - Parameters SecretParametersClassification `json:"parameters,omitempty"` + Parameters SecretParametersClassification // READ-ONLY - DeploymentStatus *DeploymentStatus `json:"deploymentStatus,omitempty" azure:"ro"` + DeploymentStatus *DeploymentStatus // READ-ONLY; The name of the profile which holds the secret. - ProfileName *string `json:"profileName,omitempty" azure:"ro"` + ProfileName *string // READ-ONLY; Provisioning status - ProvisioningState *AfdProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *AfdProvisioningState } // SecretsClientBeginCreateOptions contains the optional parameters for the SecretsClient.BeginCreate method. @@ -3778,44 +3778,44 @@ type SecurityPoliciesClientListByProfileOptions struct { // SecurityPolicy association for AzureFrontDoor profile type SecurityPolicy struct { // The json object that contains properties required to create a security policy - Properties *SecurityPolicyProperties `json:"properties,omitempty"` + Properties *SecurityPolicyProperties // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SecurityPolicyListResult - Result of the request to list security policies. It contains a list of security policy objects // and a URL link to get the next set of results. type SecurityPolicyListResult struct { // URL to get the next set of security policy objects if there is any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; List of Security policies within a profile - Value []*SecurityPolicy `json:"value,omitempty" azure:"ro"` + Value []*SecurityPolicy } // SecurityPolicyProperties - The json object that contains properties required to create a security policy type SecurityPolicyProperties struct { // object which contains security policy parameters - Parameters SecurityPolicyPropertiesParametersClassification `json:"parameters,omitempty"` + Parameters SecurityPolicyPropertiesParametersClassification // READ-ONLY - DeploymentStatus *DeploymentStatus `json:"deploymentStatus,omitempty" azure:"ro"` + DeploymentStatus *DeploymentStatus // READ-ONLY; The name of the profile which holds the security policy. - ProfileName *string `json:"profileName,omitempty" azure:"ro"` + ProfileName *string // READ-ONLY; Provisioning status - ProvisioningState *AfdProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *AfdProvisioningState } // SecurityPolicyPropertiesParametersClassification provides polymorphic access to related types. @@ -3830,7 +3830,7 @@ type SecurityPolicyPropertiesParametersClassification interface { // SecurityPolicyPropertiesParameters - The json object containing security policy parameters type SecurityPolicyPropertiesParameters struct { // REQUIRED; The type of the Security policy to create. - Type *SecurityPolicyType `json:"type,omitempty"` + Type *SecurityPolicyType } // GetSecurityPolicyPropertiesParameters implements the SecurityPolicyPropertiesParametersClassification interface for type @@ -3842,34 +3842,34 @@ func (s *SecurityPolicyPropertiesParameters) GetSecurityPolicyPropertiesParamete // SecurityPolicyUpdateParameters - The JSON object containing security policy update parameters. type SecurityPolicyUpdateParameters struct { // The json object that contains properties required to update a security policy - Properties *SecurityPolicyUpdateProperties `json:"properties,omitempty"` + Properties *SecurityPolicyUpdateProperties } // SecurityPolicyUpdateProperties - The json object that contains properties required to update a security policy type SecurityPolicyUpdateProperties struct { // object which contains security policy parameters - Parameters SecurityPolicyPropertiesParametersClassification `json:"parameters,omitempty"` + Parameters SecurityPolicyPropertiesParametersClassification } // SecurityPolicyWebApplicationFirewallAssociation - settings for security policy patterns to match type SecurityPolicyWebApplicationFirewallAssociation struct { // List of domains. - Domains []*ActivatedResourceReference `json:"domains,omitempty"` + Domains []*ActivatedResourceReference // List of paths - PatternsToMatch []*string `json:"patternsToMatch,omitempty"` + PatternsToMatch []*string } // SecurityPolicyWebApplicationFirewallParameters - The json object containing security policy waf parameters type SecurityPolicyWebApplicationFirewallParameters struct { // REQUIRED; The type of the Security policy to create. - Type *SecurityPolicyType `json:"type,omitempty"` + Type *SecurityPolicyType // Waf associations - Associations []*SecurityPolicyWebApplicationFirewallAssociation `json:"associations,omitempty"` + Associations []*SecurityPolicyWebApplicationFirewallAssociation // Resource ID. - WafPolicy *ResourceReference `json:"wafPolicy,omitempty"` + WafPolicy *ResourceReference } // GetSecurityPolicyPropertiesParameters implements the SecurityPolicyPropertiesParametersClassification interface for type @@ -3883,182 +3883,182 @@ func (s *SecurityPolicyWebApplicationFirewallParameters) GetSecurityPolicyProper // ServerPortMatchConditionParameters - Defines the parameters for ServerPort match conditions type ServerPortMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *ServerPortOperator `json:"operator,omitempty"` + Operator *ServerPortOperator // REQUIRED - TypeName *ServerPortMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *ServerPortMatchConditionParametersTypeName // The match value for the condition of the delivery rule - MatchValues []*string `json:"matchValues,omitempty"` + MatchValues []*string // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } // ServiceSpecification - One property of operation, include log specifications. type ServiceSpecification struct { // Log specifications of operation. - LogSpecifications []*LogSpecification `json:"logSpecifications,omitempty"` + LogSpecifications []*LogSpecification // Metric specifications of operation. - MetricSpecifications []*MetricSpecification `json:"metricSpecifications,omitempty"` + MetricSpecifications []*MetricSpecification } // SharedPrivateLinkResourceProperties - Describes the properties of an existing Shared Private Link Resource to use when // connecting to a private origin. type SharedPrivateLinkResourceProperties struct { // The group id from the provider of resource the shared private link resource is for. - GroupID *string `json:"groupId,omitempty"` + GroupID *string // The resource id of the resource the shared private link resource is for. - PrivateLink *ResourceReference `json:"privateLink,omitempty"` + PrivateLink *ResourceReference // The location of the shared private link resource - PrivateLinkLocation *string `json:"privateLinkLocation,omitempty"` + PrivateLinkLocation *string // The request message for requesting approval of the shared private link resource. - RequestMessage *string `json:"requestMessage,omitempty"` + RequestMessage *string // Status of the shared private link resource. Can be Pending, Approved, Rejected, Disconnected, or Timeout. - Status *SharedPrivateLinkResourceStatus `json:"status,omitempty"` + Status *SharedPrivateLinkResourceStatus } // SocketAddrMatchConditionParameters - Defines the parameters for SocketAddress match conditions type SocketAddrMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *SocketAddrOperator `json:"operator,omitempty"` + Operator *SocketAddrOperator // REQUIRED - TypeName *SocketAddrMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *SocketAddrMatchConditionParametersTypeName // The match value for the condition of the delivery rule - MatchValues []*string `json:"matchValues,omitempty"` + MatchValues []*string // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } // SsoURI - The URI required to login to the supplemental portal from the Azure portal. type SsoURI struct { // READ-ONLY; The URI used to login to the supplemental portal. - SsoURIValue *string `json:"ssoUriValue,omitempty" azure:"ro"` + SsoURIValue *string } // SupportedOptimizationTypesListResult - The result of the GetSupportedOptimizationTypes API type SupportedOptimizationTypesListResult struct { // READ-ONLY; Supported optimization types for a profile. - SupportedOptimizationTypes []*OptimizationType `json:"supportedOptimizationTypes,omitempty" azure:"ro"` + SupportedOptimizationTypes []*OptimizationType } // SystemData - Read only system data type SystemData struct { // The timestamp of resource creation (UTC) - CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAt *time.Time // An identifier for the identity that created the resource - CreatedBy *string `json:"createdBy,omitempty"` + CreatedBy *string // The type of identity that created the resource - CreatedByType *IdentityType `json:"createdByType,omitempty"` + CreatedByType *IdentityType // The timestamp of resource last modification (UTC) - LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` + LastModifiedAt *time.Time // An identifier for the identity that last modified the resource - LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + LastModifiedBy *string // The type of identity that last modified the resource - LastModifiedByType *IdentityType `json:"lastModifiedByType,omitempty"` + LastModifiedByType *IdentityType } // TrackedResource - The resource model definition for a ARM tracked top level resource. type TrackedResource struct { // REQUIRED; Resource location. - Location *string `json:"location,omitempty"` + Location *string // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // URLFileExtensionMatchConditionParameters - Defines the parameters for UrlFileExtension match conditions type URLFileExtensionMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *URLFileExtensionOperator `json:"operator,omitempty"` + Operator *URLFileExtensionOperator // REQUIRED - TypeName *URLFileExtensionMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *URLFileExtensionMatchConditionParametersTypeName // The match value for the condition of the delivery rule - MatchValues []*string `json:"matchValues,omitempty"` + MatchValues []*string // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } // URLFileNameMatchConditionParameters - Defines the parameters for UrlFilename match conditions type URLFileNameMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *URLFileNameOperator `json:"operator,omitempty"` + Operator *URLFileNameOperator // REQUIRED - TypeName *URLFileNameMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *URLFileNameMatchConditionParametersTypeName // The match value for the condition of the delivery rule - MatchValues []*string `json:"matchValues,omitempty"` + MatchValues []*string // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } // URLPathMatchConditionParameters - Defines the parameters for UrlPath match conditions type URLPathMatchConditionParameters struct { // REQUIRED; Describes operator to be matched - Operator *URLPathOperator `json:"operator,omitempty"` + Operator *URLPathOperator // REQUIRED - TypeName *URLPathMatchConditionParametersTypeName `json:"typeName,omitempty"` + TypeName *URLPathMatchConditionParametersTypeName // The match value for the condition of the delivery rule - MatchValues []*string `json:"matchValues,omitempty"` + MatchValues []*string // Describes if this is negate condition or not - NegateCondition *bool `json:"negateCondition,omitempty"` + NegateCondition *bool // List of transforms - Transforms []*Transform `json:"transforms,omitempty"` + Transforms []*Transform } // URLRedirectAction - Defines the url redirect action for the delivery rule. type URLRedirectAction struct { // REQUIRED; The name of the action for the delivery rule. - Name *DeliveryRuleAction `json:"name,omitempty"` + Name *DeliveryRuleAction // REQUIRED; Defines the parameters for the action. - Parameters *URLRedirectActionParameters `json:"parameters,omitempty"` + Parameters *URLRedirectActionParameters } // GetDeliveryRuleActionAutoGenerated implements the DeliveryRuleActionAutoGeneratedClassification interface for type URLRedirectAction. @@ -4071,37 +4071,37 @@ func (u *URLRedirectAction) GetDeliveryRuleActionAutoGenerated() *DeliveryRuleAc // URLRedirectActionParameters - Defines the parameters for the url redirect action. type URLRedirectActionParameters struct { // REQUIRED; The redirect type the rule will use when redirecting traffic. - RedirectType *RedirectType `json:"redirectType,omitempty"` + RedirectType *RedirectType // REQUIRED - TypeName *URLRedirectActionParametersTypeName `json:"typeName,omitempty"` + TypeName *URLRedirectActionParametersTypeName // Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #. - CustomFragment *string `json:"customFragment,omitempty"` + CustomFragment *string // Host to redirect. Leave empty to use the incoming host as the destination host. - CustomHostname *string `json:"customHostname,omitempty"` + CustomHostname *string // The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination // path. - CustomPath *string `json:"customPath,omitempty"` + CustomPath *string // The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; // leave empty to preserve the incoming query string. Query string must be in = // format. ? and & will be added automatically so do not include them. - CustomQueryString *string `json:"customQueryString,omitempty"` + CustomQueryString *string // Protocol to use for the redirect. The default value is MatchRequest - DestinationProtocol *DestinationProtocol `json:"destinationProtocol,omitempty"` + DestinationProtocol *DestinationProtocol } // URLRewriteAction - Defines the url rewrite action for the delivery rule. type URLRewriteAction struct { // REQUIRED; The name of the action for the delivery rule. - Name *DeliveryRuleAction `json:"name,omitempty"` + Name *DeliveryRuleAction // REQUIRED; Defines the parameters for the action. - Parameters *URLRewriteActionParameters `json:"parameters,omitempty"` + Parameters *URLRewriteActionParameters } // GetDeliveryRuleActionAutoGenerated implements the DeliveryRuleActionAutoGeneratedClassification interface for type URLRewriteAction. @@ -4114,26 +4114,26 @@ func (u *URLRewriteAction) GetDeliveryRuleActionAutoGenerated() *DeliveryRuleAct // URLRewriteActionParameters - Defines the parameters for the url rewrite action. type URLRewriteActionParameters struct { // REQUIRED; Define the relative URL to which the above requests will be rewritten by. - Destination *string `json:"destination,omitempty"` + Destination *string // REQUIRED; define a request URI pattern that identifies the type of requests that may be rewritten. If value is blank, all // strings are matched. - SourcePattern *string `json:"sourcePattern,omitempty"` + SourcePattern *string // REQUIRED - TypeName *URLRewriteActionParametersTypeName `json:"typeName,omitempty"` + TypeName *URLRewriteActionParametersTypeName // Whether to preserve unmatched path. Default value is true. - PreserveUnmatchedPath *bool `json:"preserveUnmatchedPath,omitempty"` + PreserveUnmatchedPath *bool } // URLSigningAction - Defines the url signing action for the delivery rule. type URLSigningAction struct { // REQUIRED; The name of the action for the delivery rule. - Name *DeliveryRuleAction `json:"name,omitempty"` + Name *DeliveryRuleAction // REQUIRED; Defines the parameters for the action. - Parameters *URLSigningActionParameters `json:"parameters,omitempty"` + Parameters *URLSigningActionParameters } // GetDeliveryRuleActionAutoGenerated implements the DeliveryRuleActionAutoGeneratedClassification interface for type URLSigningAction. @@ -4146,40 +4146,40 @@ func (u *URLSigningAction) GetDeliveryRuleActionAutoGenerated() *DeliveryRuleAct // URLSigningActionParameters - Defines the parameters for the Url Signing action. type URLSigningActionParameters struct { // REQUIRED - TypeName *URLSigningActionParametersTypeName `json:"typeName,omitempty"` + TypeName *URLSigningActionParametersTypeName // Algorithm to use for URL signing - Algorithm *Algorithm `json:"algorithm,omitempty"` + Algorithm *Algorithm // Defines which query string parameters in the url to be considered for expires, key id etc. - ParameterNameOverride []*URLSigningParamIdentifier `json:"parameterNameOverride,omitempty"` + ParameterNameOverride []*URLSigningParamIdentifier } // URLSigningKey - Url signing key type URLSigningKey struct { // REQUIRED; Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form // the hash. - KeyID *string `json:"keyId,omitempty"` + KeyID *string // REQUIRED; Defines the parameters for using customer key vault for Url Signing Key. - KeySourceParameters *KeyVaultSigningKeyParameters `json:"keySourceParameters,omitempty"` + KeySourceParameters *KeyVaultSigningKeyParameters } // URLSigningKeyParameters - Url signing key parameters type URLSigningKeyParameters struct { // REQUIRED; Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form // the hash. - KeyID *string `json:"keyId,omitempty"` + KeyID *string // REQUIRED; Resource reference to the Azure Key Vault secret. Expected to be in format of // /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{secretName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ - SecretSource *ResourceReference `json:"secretSource,omitempty"` + SecretSource *ResourceReference // REQUIRED; The type of the secret resource. - Type *SecretType `json:"type,omitempty"` + Type *SecretType // Version of the secret to be used - SecretVersion *string `json:"secretVersion,omitempty"` + SecretVersion *string } // GetSecretParameters implements the SecretParametersClassification interface for type URLSigningKeyParameters. @@ -4192,61 +4192,61 @@ func (u *URLSigningKeyParameters) GetSecretParameters() *SecretParameters { // URLSigningParamIdentifier - Defines how to identify a parameter for a specific purpose e.g. expires type URLSigningParamIdentifier struct { // REQUIRED; Indicates the purpose of the parameter - ParamIndicator *ParamIndicator `json:"paramIndicator,omitempty"` + ParamIndicator *ParamIndicator // REQUIRED; Parameter name - ParamName *string `json:"paramName,omitempty"` + ParamName *string } // Usage - Describes resource usage. type Usage struct { // REQUIRED; The current value of the usage. - CurrentValue *int64 `json:"currentValue,omitempty"` + CurrentValue *int64 // REQUIRED; The limit of usage. - Limit *int64 `json:"limit,omitempty"` + Limit *int64 // REQUIRED; The name of the type of usage. - Name *UsageName `json:"name,omitempty"` + Name *UsageName // REQUIRED; An enum describing the unit of measurement. - Unit *UsageUnit `json:"unit,omitempty"` + Unit *UsageUnit // READ-ONLY; Resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string } // UsageName - The usage names. type UsageName struct { // A localized string describing the resource name. - LocalizedValue *string `json:"localizedValue,omitempty"` + LocalizedValue *string // A string describing the resource name. - Value *string `json:"value,omitempty"` + Value *string } // UsagesListResult - The list usages operation response. type UsagesListResult struct { // URL to get the next set of results. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // The list of resource usages. - Value []*Usage `json:"value,omitempty"` + Value []*Usage } // UserManagedHTTPSParameters - Defines the certificate source parameters using user's keyvault certificate for enabling SSL. type UserManagedHTTPSParameters struct { // REQUIRED; Defines the source of the SSL certificate. - CertificateSource *CertificateSource `json:"certificateSource,omitempty"` + CertificateSource *CertificateSource // REQUIRED; Defines the certificate source parameters using user's keyvault certificate for enabling SSL. - CertificateSourceParameters *KeyVaultCertificateSourceParameters `json:"certificateSourceParameters,omitempty"` + CertificateSourceParameters *KeyVaultCertificateSourceParameters // REQUIRED; Defines the TLS extension protocol that is used for secure delivery. - ProtocolType *ProtocolType `json:"protocolType,omitempty"` + ProtocolType *ProtocolType // TLS protocol version that will be used for Https - MinimumTLSVersion *MinimumTLSVersion `json:"minimumTlsVersion,omitempty"` + MinimumTLSVersion *MinimumTLSVersion } // GetCustomDomainHTTPSParameters implements the CustomDomainHTTPSParametersClassification interface for type UserManagedHTTPSParameters. @@ -4266,166 +4266,166 @@ type ValidateClientSecretOptions struct { // ValidateCustomDomainInput - Input of the custom domain to be validated for DNS mapping. type ValidateCustomDomainInput struct { // REQUIRED; The host name of the custom domain. Must be a domain name. - HostName *string `json:"hostName,omitempty"` + HostName *string } // ValidateCustomDomainOutput - Output of custom domain validation. type ValidateCustomDomainOutput struct { // READ-ONLY; Indicates whether the custom domain is valid or not. - CustomDomainValidated *bool `json:"customDomainValidated,omitempty" azure:"ro"` + CustomDomainValidated *bool // READ-ONLY; Error message describing why the custom domain is not valid. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string // READ-ONLY; The reason why the custom domain is not valid. - Reason *string `json:"reason,omitempty" azure:"ro"` + Reason *string } // ValidateProbeInput - Input of the validate probe API. type ValidateProbeInput struct { // REQUIRED; The probe URL to validate. - ProbeURL *string `json:"probeURL,omitempty"` + ProbeURL *string } // ValidateProbeOutput - Output of the validate probe API. type ValidateProbeOutput struct { // READ-ONLY; Specifies the error code when the probe url is not accepted. - ErrorCode *string `json:"errorCode,omitempty" azure:"ro"` + ErrorCode *string // READ-ONLY; Indicates whether the probe URL is accepted or not. - IsValid *bool `json:"isValid,omitempty" azure:"ro"` + IsValid *bool // READ-ONLY; The detailed error message describing why the probe URL is not accepted. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string } // ValidateSecretInput - Input of the secret to be validated. type ValidateSecretInput struct { // REQUIRED; Resource reference to the Azure Key Vault secret. Expected to be in format of // /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{secretName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ - SecretSource *ResourceReference `json:"secretSource,omitempty"` + SecretSource *ResourceReference // REQUIRED; The secret type. - SecretType *SecretType `json:"secretType,omitempty"` + SecretType *SecretType // Secret version, if customer is using a specific version. - SecretVersion *string `json:"secretVersion,omitempty"` + SecretVersion *string } // ValidateSecretOutput - Output of the validated secret. type ValidateSecretOutput struct { // Detailed error message - Message *string `json:"message,omitempty"` + Message *string // The validation status. - Status *Status `json:"status,omitempty"` + Status *Status } // ValidationToken - The validation token. type ValidationToken struct { // READ-ONLY - Token *string `json:"token,omitempty" azure:"ro"` + Token *string } // WafMetricsResponse - Waf Metrics Response type WafMetricsResponse struct { - DateTimeBegin *time.Time `json:"dateTimeBegin,omitempty"` - DateTimeEnd *time.Time `json:"dateTimeEnd,omitempty"` - Granularity *WafMetricsResponseGranularity `json:"granularity,omitempty"` - Series []*WafMetricsResponseSeriesItem `json:"series,omitempty"` + DateTimeBegin *time.Time + DateTimeEnd *time.Time + Granularity *WafMetricsResponseGranularity + Series []*WafMetricsResponseSeriesItem } type WafMetricsResponseSeriesItem struct { - Data []*Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems `json:"data,omitempty"` - Groups []*WafMetricsResponseSeriesPropertiesItemsItem `json:"groups,omitempty"` - Metric *string `json:"metric,omitempty"` - Unit *WafMetricsResponseSeriesItemUnit `json:"unit,omitempty"` + Data []*Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems + Groups []*WafMetricsResponseSeriesPropertiesItemsItem + Metric *string + Unit *WafMetricsResponseSeriesItemUnit } type WafMetricsResponseSeriesPropertiesItemsItem struct { - Name *string `json:"name,omitempty"` - Value *string `json:"value,omitempty"` + Name *string + Value *string } // WafRankingsResponse - Waf Rankings Response type WafRankingsResponse struct { - Data []*WafRankingsResponseDataItem `json:"data,omitempty"` - DateTimeBegin *time.Time `json:"dateTimeBegin,omitempty"` - DateTimeEnd *time.Time `json:"dateTimeEnd,omitempty"` - Groups []*string `json:"groups,omitempty"` + Data []*WafRankingsResponseDataItem + DateTimeBegin *time.Time + DateTimeEnd *time.Time + Groups []*string } type WafRankingsResponseDataItem struct { - GroupValues []*string `json:"groupValues,omitempty"` - Metrics []*ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems `json:"metrics,omitempty"` + GroupValues []*string + Metrics []*ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems } // WebApplicationFirewallPolicy - Defines web application firewall policy for Azure CDN. type WebApplicationFirewallPolicy struct { // REQUIRED; Resource location. - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Gets a unique read-only string that changes whenever the resource is updated. - Etag *string `json:"etag,omitempty"` + Etag *string // Properties of the web application firewall policy. - Properties *WebApplicationFirewallPolicyProperties `json:"properties,omitempty"` + Properties *WebApplicationFirewallPolicyProperties // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Read only system data - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // WebApplicationFirewallPolicyList - Defines a list of WebApplicationFirewallPolicies for Azure CDN. It contains a list of // WebApplicationFirewallPolicy objects and a URL link to get the next set of results. type WebApplicationFirewallPolicyList struct { // URL to get the next set of WebApplicationFirewallPolicy objects if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; List of Azure CDN WebApplicationFirewallPolicies within a resource group. - Value []*WebApplicationFirewallPolicy `json:"value,omitempty" azure:"ro"` + Value []*WebApplicationFirewallPolicy } // WebApplicationFirewallPolicyPatchParameters - Properties required to update a CdnWebApplicationFirewallPolicy. type WebApplicationFirewallPolicyPatchParameters struct { // CdnWebApplicationFirewallPolicy tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // WebApplicationFirewallPolicyProperties - Defines CDN web application firewall policy properties. type WebApplicationFirewallPolicyProperties struct { // Describes custom rules inside the policy. - CustomRules *CustomRuleList `json:"customRules,omitempty"` + CustomRules *CustomRuleList // Describes managed rules inside the policy. - ManagedRules *ManagedRuleSetList `json:"managedRules,omitempty"` + ManagedRules *ManagedRuleSetList // Describes policySettings for policy - PolicySettings *PolicySettings `json:"policySettings,omitempty"` + PolicySettings *PolicySettings // Describes rate limit rules inside the policy. - RateLimitRules *RateLimitRuleList `json:"rateLimitRules,omitempty"` + RateLimitRules *RateLimitRuleList // READ-ONLY; Describes Azure CDN endpoints associated with this Web Application Firewall policy. - EndpointLinks []*LinkedEndpoint `json:"endpointLinks,omitempty" azure:"ro"` + EndpointLinks []*LinkedEndpoint // READ-ONLY; Provisioning state of the WebApplicationFirewallPolicy. - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ProvisioningState // READ-ONLY; Resource status of the policy. - ResourceState *PolicyResourceState `json:"resourceState,omitempty" azure:"ro"` + ResourceState *PolicyResourceState } diff --git a/sdk/resourcemanager/cdn/armcdn/models_serde.go b/sdk/resourcemanager/cdn/armcdn/models_serde.go index f2a35a6b8c6c..d7e5cd48fe9e 100644 --- a/sdk/resourcemanager/cdn/armcdn/models_serde.go +++ b/sdk/resourcemanager/cdn/armcdn/models_serde.go @@ -3718,7 +3718,7 @@ func (e *EndpointUpdateParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo. func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "info", &e.Info) + populateAny(objectMap, "info", e.Info) populate(objectMap, "type", e.Type) return json.Marshal(objectMap) } @@ -9410,6 +9410,16 @@ func populate(m map[string]any, k string, v any) { } } +func populateAny(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else { + m[k] = v + } +} + func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/CHANGELOG.md b/sdk/resourcemanager/changeanalysis/armchangeanalysis/CHANGELOG.md index 997fb077fcc3..c2d2ca7cdc76 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/CHANGELOG.md +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/CHANGELOG.md @@ -1,5 +1,10 @@ # Release History +## 1.1.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + ## 1.1.0 (2023-03-28) ### Features Added diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/autorest.md b/sdk/resourcemanager/changeanalysis/armchangeanalysis/autorest.md index e1b0c6dc7b73..480493fafb5e 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/autorest.md +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/autorest.md @@ -8,5 +8,5 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/changeanalysis/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/changeanalysis/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.1.0 +module-version: 1.1.1 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/constants.go b/sdk/resourcemanager/changeanalysis/armchangeanalysis/constants.go index c21838924225..04f196423f7e 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/constants.go +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/constants.go @@ -11,7 +11,7 @@ package armchangeanalysis const ( moduleName = "armchangeanalysis" - moduleVersion = "v1.1.0" + moduleVersion = "v1.1.1" ) // ChangeCategory - The change category. diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/models.go b/sdk/resourcemanager/changeanalysis/armchangeanalysis/models.go index 6e05d541fbd2..159ec87f7fe0 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/models.go +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/models.go @@ -14,44 +14,44 @@ import "time" // Change - The detected change. type Change struct { // The properties of a change. - Properties *ChangeProperties `json:"properties,omitempty"` + Properties *ChangeProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ChangeList - The list of detected changes. type ChangeList struct { // The URI that can be used to request the next page of changes. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // The list of changes. - Value []*Change `json:"value,omitempty"` + Value []*Change } // ChangeProperties - The properties of a change. type ChangeProperties struct { // The type of the change. - ChangeType *ChangeType `json:"changeType,omitempty"` + ChangeType *ChangeType // The list of identities who might initiated the change. The identity could be user name (email address) or the object ID // of the Service Principal. - InitiatedByList []*string `json:"initiatedByList,omitempty"` + InitiatedByList []*string // The list of detailed changes at json property level. - PropertyChanges []*PropertyChange `json:"propertyChanges,omitempty"` + PropertyChanges []*PropertyChange // The resource id that the change is attached to. - ResourceID *string `json:"resourceId,omitempty"` + ResourceID *string // The time when the change is detected. - TimeStamp *time.Time `json:"timeStamp,omitempty"` + TimeStamp *time.Time } // ChangesClientListChangesByResourceGroupOptions contains the optional parameters for the ChangesClient.NewListChangesByResourceGroupPager @@ -75,35 +75,35 @@ type ChangesClientListChangesBySubscriptionOptions struct { // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. - Info any `json:"info,omitempty" azure:"ro"` + Info any // READ-ONLY; The additional info type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ErrorDetail - The error detail. type ErrorDetail struct { // READ-ONLY; The error additional info. - AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` + AdditionalInfo []*ErrorAdditionalInfo // READ-ONLY; The error code. - Code *string `json:"code,omitempty" azure:"ro"` + Code *string // READ-ONLY; The error details. - Details []*ErrorDetail `json:"details,omitempty" azure:"ro"` + Details []*ErrorDetail // READ-ONLY; The error message. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string // READ-ONLY; The error target. - Target *string `json:"target,omitempty" azure:"ro"` + Target *string } // ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. // (This also follows the OData error response format.). type ErrorResponse struct { // The error object. - Error *ErrorDetail `json:"error,omitempty"` + Error *ErrorDetail } // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. @@ -117,56 +117,56 @@ type OperationsClientListOptions struct { // PropertyChange - Data of a property change. type PropertyChange struct { // The change category. - ChangeCategory *ChangeCategory `json:"changeCategory,omitempty"` + ChangeCategory *ChangeCategory // The type of the change. - ChangeType *ChangeType `json:"changeType,omitempty"` + ChangeType *ChangeType // The description of the changed property. - Description *string `json:"description,omitempty"` + Description *string // The enhanced display name of the json path. E.g., the json path value[0].properties will be translated to something meaningful // like slots["Staging"].properties. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // The boolean indicating whether the oldValue and newValue are masked. The values are masked if it contains sensitive information // that the user doesn't have access to. - IsDataMasked *bool `json:"isDataMasked,omitempty"` + IsDataMasked *bool // The json path of the changed property. - JSONPath *string `json:"jsonPath,omitempty"` - Level *Level `json:"level,omitempty"` + JSONPath *string + Level *Level // The value of the property after the change. - NewValue *string `json:"newValue,omitempty"` + NewValue *string // The value of the property before the change. - OldValue *string `json:"oldValue,omitempty"` + OldValue *string } // ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a // location type ProxyResource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // Resource - Common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ResourceChangesClientListOptions contains the optional parameters for the ResourceChangesClient.NewListPager method. @@ -180,32 +180,32 @@ type ResourceChangesClientListOptions struct { // ResourceProviderOperationDefinition - The resource provider operation definition. type ResourceProviderOperationDefinition struct { // The resource provider operation details. - Display *ResourceProviderOperationDisplay `json:"display,omitempty"` + Display *ResourceProviderOperationDisplay // The resource provider operation name. - Name *string `json:"name,omitempty"` + Name *string } // ResourceProviderOperationDisplay - The resource provider operation details. type ResourceProviderOperationDisplay struct { // Description of the resource provider operation. - Description *string `json:"description,omitempty"` + Description *string // Name of the resource provider operation. - Operation *string `json:"operation,omitempty"` + Operation *string // Name of the resource provider. - Provider *string `json:"provider,omitempty"` + Provider *string // Name of the resource type. - Resource *string `json:"resource,omitempty"` + Resource *string } // ResourceProviderOperationList - The resource provider operation list. type ResourceProviderOperationList struct { // The URI that can be used to request the next page for list of Azure operations. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // Resource provider operations list. - Value []*ResourceProviderOperationDefinition `json:"value,omitempty"` + Value []*ResourceProviderOperationDefinition } diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/models_serde.go b/sdk/resourcemanager/changeanalysis/armchangeanalysis/models_serde.go index 46ed03577ac9..9a1c42cadab6 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/models_serde.go +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/models_serde.go @@ -132,7 +132,7 @@ func (c *ChangeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo. func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "info", &e.Info) + populateAny(objectMap, "info", e.Info) populate(objectMap, "type", e.Type) return json.Marshal(objectMap) } @@ -470,6 +470,16 @@ func populate(m map[string]any, k string, v any) { } } +func populateAny(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else { + m[k] = v + } +} + func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil diff --git a/sdk/resourcemanager/chaos/armchaos/CHANGELOG.md b/sdk/resourcemanager/chaos/armchaos/CHANGELOG.md index fe5e0fe4ba82..d2f75242146e 100644 --- a/sdk/resourcemanager/chaos/armchaos/CHANGELOG.md +++ b/sdk/resourcemanager/chaos/armchaos/CHANGELOG.md @@ -1,5 +1,10 @@ # Release History +## 0.6.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + ## 0.6.0 (2023-03-28) ### Features Added diff --git a/sdk/resourcemanager/chaos/armchaos/autorest.md b/sdk/resourcemanager/chaos/armchaos/autorest.md index 6f8e67488a1e..a6210fb05cba 100644 --- a/sdk/resourcemanager/chaos/armchaos/autorest.md +++ b/sdk/resourcemanager/chaos/armchaos/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/chaos/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/chaos/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.6.0 +module-version: 0.6.1 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/chaos/armchaos/constants.go b/sdk/resourcemanager/chaos/armchaos/constants.go index 8188d10cfcec..51225832e1c7 100644 --- a/sdk/resourcemanager/chaos/armchaos/constants.go +++ b/sdk/resourcemanager/chaos/armchaos/constants.go @@ -11,7 +11,7 @@ package armchaos const ( moduleName = "armchaos" - moduleVersion = "v0.6.0" + moduleVersion = "v0.6.1" ) // ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. diff --git a/sdk/resourcemanager/chaos/armchaos/models.go b/sdk/resourcemanager/chaos/armchaos/models.go index 10369e57efd6..e36eeae6c093 100644 --- a/sdk/resourcemanager/chaos/armchaos/models.go +++ b/sdk/resourcemanager/chaos/armchaos/models.go @@ -23,10 +23,10 @@ type ActionClassification interface { // Action - Model that represents the base action model. type Action struct { // REQUIRED; String that represents a Capability URN. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Enum that discriminates between action models. - Type *string `json:"type,omitempty"` + Type *string } // GetAction implements the ActionClassification interface for type Action. @@ -35,46 +35,46 @@ func (a *Action) GetAction() *Action { return a } // ActionStatus - Model that represents the an action and its status. type ActionStatus struct { // READ-ONLY; The id of the action status. - ActionID *string `json:"actionId,omitempty" azure:"ro"` + ActionID *string // READ-ONLY; The name of the action status. - ActionName *string `json:"actionName,omitempty" azure:"ro"` + ActionName *string // READ-ONLY; String that represents the end time of the action. - EndTime *time.Time `json:"endTime,omitempty" azure:"ro"` + EndTime *time.Time // READ-ONLY; String that represents the start time of the action. - StartTime *time.Time `json:"startTime,omitempty" azure:"ro"` + StartTime *time.Time // READ-ONLY; The status of the action. - Status *string `json:"status,omitempty" azure:"ro"` + Status *string // READ-ONLY; The array of targets. - Targets []*ExperimentExecutionActionTargetDetailsProperties `json:"targets,omitempty" azure:"ro"` + Targets []*ExperimentExecutionActionTargetDetailsProperties } // Branch - Model that represents a branch in the step. type Branch struct { // REQUIRED; List of actions. - Actions []ActionClassification `json:"actions,omitempty"` + Actions []ActionClassification // REQUIRED; String of the branch name. - Name *string `json:"name,omitempty"` + Name *string } // BranchStatus - Model that represents the a list of actions and action statuses. type BranchStatus struct { // READ-ONLY; The array of actions. - Actions []*ActionStatus `json:"actions,omitempty" azure:"ro"` + Actions []*ActionStatus // READ-ONLY; The id of the branch status. - BranchID *string `json:"branchId,omitempty" azure:"ro"` + BranchID *string // READ-ONLY; The name of the branch status. - BranchName *string `json:"branchName,omitempty" azure:"ro"` + BranchName *string // READ-ONLY; The status of the branch. - Status *string `json:"status,omitempty" azure:"ro"` + Status *string } // CapabilitiesClientCreateOrUpdateOptions contains the optional parameters for the CapabilitiesClient.CreateOrUpdate method. @@ -101,97 +101,97 @@ type CapabilitiesClientListOptions struct { // Capability - Model that represents a Capability resource. type Capability struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The properties of a capability resource. - Properties *CapabilityProperties `json:"properties,omitempty" azure:"ro"` + Properties *CapabilityProperties // READ-ONLY; The standard system metadata of a resource type. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // CapabilityListResult - Model that represents a list of Capability resources and a link for pagination. type CapabilityListResult struct { // READ-ONLY; URL to retrieve the next page of Capability resources. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of Capability resources. - Value []*Capability `json:"value,omitempty" azure:"ro"` + Value []*Capability } // CapabilityProperties - Model that represents the Capability properties model. type CapabilityProperties struct { // READ-ONLY; Localized string of the description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; URL to retrieve JSON schema of the Capability parameters. - ParametersSchema *string `json:"parametersSchema,omitempty" azure:"ro"` + ParametersSchema *string // READ-ONLY; String of the Publisher that this Capability extends. - Publisher *string `json:"publisher,omitempty" azure:"ro"` + Publisher *string // READ-ONLY; String of the Target Type that this Capability extends. - TargetType *string `json:"targetType,omitempty" azure:"ro"` + TargetType *string // READ-ONLY; String of the URN for this Capability Type. - Urn *string `json:"urn,omitempty" azure:"ro"` + Urn *string } // CapabilityType - Model that represents a Capability Type resource. type CapabilityType struct { // Location of the Capability Type resource. - Location *string `json:"location,omitempty"` + Location *string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The properties of the capability type resource. - Properties *CapabilityTypeProperties `json:"properties,omitempty" azure:"ro"` + Properties *CapabilityTypeProperties // READ-ONLY; The system metadata properties of the capability type resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // CapabilityTypeListResult - Model that represents a list of Capability Type resources and a link for pagination. type CapabilityTypeListResult struct { // READ-ONLY; URL to retrieve the next page of Capability Type resources. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of Capability Type resources. - Value []*CapabilityType `json:"value,omitempty" azure:"ro"` + Value []*CapabilityType } // CapabilityTypeProperties - Model that represents the Capability Type properties model. type CapabilityTypeProperties struct { // READ-ONLY; Localized string of the description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; Localized string of the display name. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; URL to retrieve JSON schema of the Capability Type parameters. - ParametersSchema *string `json:"parametersSchema,omitempty" azure:"ro"` + ParametersSchema *string // READ-ONLY; String of the Publisher that this Capability Type extends. - Publisher *string `json:"publisher,omitempty" azure:"ro"` + Publisher *string // READ-ONLY; String of the Target Type that this Capability Type extends. - TargetType *string `json:"targetType,omitempty" azure:"ro"` + TargetType *string // READ-ONLY; String of the URN for this Capability Type. - Urn *string `json:"urn,omitempty" azure:"ro"` + Urn *string } // CapabilityTypesClientGetOptions contains the optional parameters for the CapabilityTypesClient.Get method. @@ -208,19 +208,19 @@ type CapabilityTypesClientListOptions struct { // ContinuousAction - Model that represents a continuous action. type ContinuousAction struct { // REQUIRED; ISO8601 formatted string that represents a duration. - Duration *string `json:"duration,omitempty"` + Duration *string // REQUIRED; String that represents a Capability URN. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; List of key value pairs. - Parameters []*KeyValuePair `json:"parameters,omitempty"` + Parameters []*KeyValuePair // REQUIRED; String that represents a selector. - SelectorID *string `json:"selectorId,omitempty"` + SelectorID *string // REQUIRED; Enum that discriminates between action models. - Type *string `json:"type,omitempty"` + Type *string } // GetAction implements the ActionClassification interface for type ContinuousAction. @@ -234,13 +234,13 @@ func (c *ContinuousAction) GetAction() *Action { // DelayAction - Model that represents a delay action. type DelayAction struct { // REQUIRED; ISO8601 formatted string that represents a duration. - Duration *string `json:"duration,omitempty"` + Duration *string // REQUIRED; String that represents a Capability URN. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Enum that discriminates between action models. - Type *string `json:"type,omitempty"` + Type *string } // GetAction implements the ActionClassification interface for type DelayAction. @@ -254,16 +254,16 @@ func (d *DelayAction) GetAction() *Action { // DiscreteAction - Model that represents a discrete action. type DiscreteAction struct { // REQUIRED; String that represents a Capability URN. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; List of key value pairs. - Parameters []*KeyValuePair `json:"parameters,omitempty"` + Parameters []*KeyValuePair // REQUIRED; String that represents a selector. - SelectorID *string `json:"selectorId,omitempty"` + SelectorID *string // REQUIRED; Enum that discriminates between action models. - Type *string `json:"type,omitempty"` + Type *string } // GetAction implements the ActionClassification interface for type DiscreteAction. @@ -277,222 +277,222 @@ func (d *DiscreteAction) GetAction() *Action { // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. - Info any `json:"info,omitempty" azure:"ro"` + Info any // READ-ONLY; The additional info type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ErrorDetail - The error detail. type ErrorDetail struct { // READ-ONLY; The error additional info. - AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` + AdditionalInfo []*ErrorAdditionalInfo // READ-ONLY; The error code. - Code *string `json:"code,omitempty" azure:"ro"` + Code *string // READ-ONLY; The error details. - Details []*ErrorDetail `json:"details,omitempty" azure:"ro"` + Details []*ErrorDetail // READ-ONLY; The error message. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string // READ-ONLY; The error target. - Target *string `json:"target,omitempty" azure:"ro"` + Target *string } // ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. // (This also follows the OData error response format.). type ErrorResponse struct { // The error object. - Error *ErrorDetail `json:"error,omitempty"` + Error *ErrorDetail } // Experiment - Model that represents a Experiment resource. type Experiment struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; The properties of the experiment resource. - Properties *ExperimentProperties `json:"properties,omitempty"` + Properties *ExperimentProperties // The identity of the experiment resource. - Identity *ResourceIdentity `json:"identity,omitempty"` + Identity *ResourceIdentity // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The system metadata of the experiment resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ExperimentCancelOperationResult - Model that represents the result of a cancel Experiment operation. type ExperimentCancelOperationResult struct { // READ-ONLY; String of the Experiment name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; URL to retrieve the Experiment status. - StatusURL *string `json:"statusUrl,omitempty" azure:"ro"` + StatusURL *string } // ExperimentExecutionActionTargetDetailsError - Model that represents the Experiment action target details error model. type ExperimentExecutionActionTargetDetailsError struct { // READ-ONLY; The error code. - Code *string `json:"code,omitempty" azure:"ro"` + Code *string // READ-ONLY; The error message - Message *string `json:"message,omitempty" azure:"ro"` + Message *string } // ExperimentExecutionActionTargetDetailsProperties - Model that represents the Experiment action target details properties // model. type ExperimentExecutionActionTargetDetailsProperties struct { // READ-ONLY; The error of the action. - Error *ExperimentExecutionActionTargetDetailsError `json:"error,omitempty" azure:"ro"` + Error *ExperimentExecutionActionTargetDetailsError // READ-ONLY; The status of the execution. - Status *string `json:"status,omitempty" azure:"ro"` + Status *string // READ-ONLY; The target for the action. - Target *string `json:"target,omitempty" azure:"ro"` + Target *string // READ-ONLY; String that represents the completed date time. - TargetCompletedTime *time.Time `json:"targetCompletedTime,omitempty" azure:"ro"` + TargetCompletedTime *time.Time // READ-ONLY; String that represents the failed date time. - TargetFailedTime *time.Time `json:"targetFailedTime,omitempty" azure:"ro"` + TargetFailedTime *time.Time } // ExperimentExecutionDetails - Model that represents the execution details of a Experiment. type ExperimentExecutionDetails struct { // READ-ONLY; String of the fully qualified resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; String of the resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The properties of the experiment execution details. - Properties *ExperimentExecutionDetailsProperties `json:"properties,omitempty" azure:"ro"` + Properties *ExperimentExecutionDetailsProperties // READ-ONLY; String of the resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ExperimentExecutionDetailsListResult - Model that represents a list of Experiment execution details and a link for pagination. type ExperimentExecutionDetailsListResult struct { // READ-ONLY; URL to retrieve the next page of Experiment execution details. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of Experiment execution details. - Value []*ExperimentExecutionDetails `json:"value,omitempty" azure:"ro"` + Value []*ExperimentExecutionDetails } // ExperimentExecutionDetailsProperties - Model that represents the Experiment execution details properties model. type ExperimentExecutionDetailsProperties struct { // READ-ONLY; String that represents the created date time. - CreatedDateTime *time.Time `json:"createdDateTime,omitempty" azure:"ro"` + CreatedDateTime *time.Time // READ-ONLY; The id of the experiment. - ExperimentID *string `json:"experimentId,omitempty" azure:"ro"` + ExperimentID *string // READ-ONLY; The reason why the execution failed. - FailureReason *string `json:"failureReason,omitempty" azure:"ro"` + FailureReason *string // READ-ONLY; String that represents the last action date time. - LastActionDateTime *time.Time `json:"lastActionDateTime,omitempty" azure:"ro"` + LastActionDateTime *time.Time // READ-ONLY; The information of the experiment run. - RunInformation *ExperimentExecutionDetailsPropertiesRunInformation `json:"runInformation,omitempty" azure:"ro"` + RunInformation *ExperimentExecutionDetailsPropertiesRunInformation // READ-ONLY; String that represents the start date time. - StartDateTime *time.Time `json:"startDateTime,omitempty" azure:"ro"` + StartDateTime *time.Time // READ-ONLY; The value of the status of the experiment execution. - Status *string `json:"status,omitempty" azure:"ro"` + Status *string // READ-ONLY; String that represents the stop date time. - StopDateTime *time.Time `json:"stopDateTime,omitempty" azure:"ro"` + StopDateTime *time.Time } // ExperimentExecutionDetailsPropertiesRunInformation - The information of the experiment run. type ExperimentExecutionDetailsPropertiesRunInformation struct { // READ-ONLY; The steps of the experiment run. - Steps []*StepStatus `json:"steps,omitempty" azure:"ro"` + Steps []*StepStatus } // ExperimentListResult - Model that represents a list of Experiment resources and a link for pagination. type ExperimentListResult struct { // READ-ONLY; URL to retrieve the next page of Experiment resources. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of Experiment resources. - Value []*Experiment `json:"value,omitempty" azure:"ro"` + Value []*Experiment } // ExperimentProperties - Model that represents the Experiment properties model. type ExperimentProperties struct { // REQUIRED; List of selectors. - Selectors []*Selector `json:"selectors,omitempty"` + Selectors []*Selector // REQUIRED; List of steps. - Steps []*Step `json:"steps,omitempty"` + Steps []*Step // A boolean value that indicates if experiment should be started on creation or not. - StartOnCreation *bool `json:"startOnCreation,omitempty"` + StartOnCreation *bool } // ExperimentStartOperationResult - Model that represents the result of a start Experiment operation. type ExperimentStartOperationResult struct { // READ-ONLY; String of the Experiment name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; URL to retrieve the Experiment status. - StatusURL *string `json:"statusUrl,omitempty" azure:"ro"` + StatusURL *string } // ExperimentStatus - Model that represents the status of a Experiment. type ExperimentStatus struct { // The properties of experiment execution status. - Properties *ExperimentStatusProperties `json:"properties,omitempty"` + Properties *ExperimentStatusProperties // READ-ONLY; String of the fully qualified resource ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; String of the resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; String of the resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ExperimentStatusListResult - Model that represents a list of Experiment statuses and a link for pagination. type ExperimentStatusListResult struct { // READ-ONLY; URL to retrieve the next page of Experiment statuses. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of Experiment statuses. - Value []*ExperimentStatus `json:"value,omitempty" azure:"ro"` + Value []*ExperimentStatus } // ExperimentStatusProperties - Model that represents the Experiment status properties model. type ExperimentStatusProperties struct { // READ-ONLY; String that represents the created date time of a Experiment. - CreatedDateUTC *time.Time `json:"createdDateUtc,omitempty" azure:"ro"` + CreatedDateUTC *time.Time // READ-ONLY; String that represents the end date time of a Experiment. - EndDateUTC *time.Time `json:"endDateUtc,omitempty" azure:"ro"` + EndDateUTC *time.Time // READ-ONLY; String that represents the status of a Experiment. - Status *string `json:"status,omitempty" azure:"ro"` + Status *string } // ExperimentsClientBeginCancelOptions contains the optional parameters for the ExperimentsClient.BeginCancel method. @@ -567,59 +567,59 @@ type ExperimentsClientStartOptions struct { // KeyValuePair - A map to describe the settings of an action. type KeyValuePair struct { // REQUIRED; The name of the setting for the action. - Key *string `json:"key,omitempty"` + Key *string // REQUIRED; The value of the setting for the action. - Value *string `json:"value,omitempty"` + Value *string } // Operation - Details of a REST API operation, returned from the Resource Provider Operations API type Operation struct { // Localized display information for this particular operation. - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - ActionType *ActionType `json:"actionType,omitempty" azure:"ro"` + ActionType *ActionType // READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane // operations. - IsDataAction *bool `json:"isDataAction,omitempty" azure:"ro"` + IsDataAction *bool // READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", // "Microsoft.Compute/virtualMachines/capture/action" - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default // value is "user,system" - Origin *Origin `json:"origin,omitempty" azure:"ro"` + Origin *Origin } // OperationDisplay - Localized display information for this particular operation. type OperationDisplay struct { // READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual // Machine", "Restart Virtual Machine". - Operation *string `json:"operation,omitempty" azure:"ro"` + Operation *string // READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft // Compute". - Provider *string `json:"provider,omitempty" azure:"ro"` + Provider *string // READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job // Schedule Collections". - Resource *string `json:"resource,omitempty" azure:"ro"` + Resource *string } // OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to // get the next set of results. type OperationListResult struct { // READ-ONLY; URL to get the next set of operation list results (if there are any). - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of operations supported by the resource provider - Value []*Operation `json:"value,omitempty" azure:"ro"` + Value []*Operation } // OperationsClientListAllOptions contains the optional parameters for the OperationsClient.NewListAllPager method. @@ -630,167 +630,167 @@ type OperationsClientListAllOptions struct { // Resource - Common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ResourceIdentity - The managed identity of a resource. type ResourceIdentity struct { // REQUIRED; String of the resource identity type. - Type *ResourceIdentityType `json:"type,omitempty"` + Type *ResourceIdentityType // READ-ONLY; GUID that represents the principal ID of this resource identity. - PrincipalID *string `json:"principalId,omitempty" azure:"ro"` + PrincipalID *string // READ-ONLY; GUID that represents the tenant ID of this resource identity. - TenantID *string `json:"tenantId,omitempty" azure:"ro"` + TenantID *string } // Selector - Model that represents a selector in the Experiment resource. type Selector struct { // REQUIRED; String of the selector ID. - ID *string `json:"id,omitempty"` + ID *string // REQUIRED; List of Target references. - Targets []*TargetReference `json:"targets,omitempty"` + Targets []*TargetReference // REQUIRED; Enum of the selector type. - Type *SelectorType `json:"type,omitempty"` + Type *SelectorType } // Step - Model that represents a step in the Experiment resource. type Step struct { // REQUIRED; List of branches. - Branches []*Branch `json:"branches,omitempty"` + Branches []*Branch // REQUIRED; String of the step name. - Name *string `json:"name,omitempty"` + Name *string } // StepStatus - Model that represents the a list of branches and branch statuses. type StepStatus struct { // READ-ONLY; The array of branches. - Branches []*BranchStatus `json:"branches,omitempty" azure:"ro"` + Branches []*BranchStatus // READ-ONLY; The value of the status of the step. - Status *string `json:"status,omitempty" azure:"ro"` + Status *string // READ-ONLY; The id of the step. - StepID *string `json:"stepId,omitempty" azure:"ro"` + StepID *string // READ-ONLY; The name of the step. - StepName *string `json:"stepName,omitempty" azure:"ro"` + StepName *string } // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { // The timestamp of resource creation (UTC). - CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAt *time.Time // The identity that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` + CreatedBy *string // The type of identity that created the resource. - CreatedByType *CreatedByType `json:"createdByType,omitempty"` + CreatedByType *CreatedByType // The timestamp of resource last modification (UTC) - LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` + LastModifiedAt *time.Time // The identity that last modified the resource. - LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + LastModifiedBy *string // The type of identity that last modified the resource. - LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` + LastModifiedByType *CreatedByType } // Target - Model that represents a Target resource. type Target struct { // REQUIRED; The properties of the target resource. - Properties map[string]any `json:"properties,omitempty"` + Properties map[string]any // Location of the target resource. - Location *string `json:"location,omitempty"` + Location *string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The system metadata of the target resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // TargetListResult - Model that represents a list of Target resources and a link for pagination. type TargetListResult struct { // READ-ONLY; URL to retrieve the next page of Target resources. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of Target resources. - Value []*Target `json:"value,omitempty" azure:"ro"` + Value []*Target } // TargetReference - Model that represents a reference to a Target in the selector. type TargetReference struct { // REQUIRED; String of the resource ID of a Target resource. - ID *string `json:"id,omitempty"` + ID *string // CONSTANT; Enum of the Target reference type. // Field has constant value "ChaosTarget", any specified value is ignored. - Type *string `json:"type,omitempty"` + Type *string } // TargetType - Model that represents a Target Type resource. type TargetType struct { // REQUIRED; The properties of the target type resource. - Properties *TargetTypeProperties `json:"properties,omitempty"` + Properties *TargetTypeProperties // Location of the Target Type resource. - Location *string `json:"location,omitempty"` + Location *string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The system metadata properties of the target type resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // TargetTypeListResult - Model that represents a list of Target Type resources and a link for pagination. type TargetTypeListResult struct { // READ-ONLY; URL to retrieve the next page of Target Type resources. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of Target Type resources. - Value []*TargetType `json:"value,omitempty" azure:"ro"` + Value []*TargetType } // TargetTypeProperties - Model that represents the base Target Type properties model. type TargetTypeProperties struct { // READ-ONLY; Localized string of the description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; Localized string of the display name. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; URL to retrieve JSON schema of the Target Type properties. - PropertiesSchema *string `json:"propertiesSchema,omitempty" azure:"ro"` + PropertiesSchema *string // READ-ONLY; List of resource types this Target Type can extend. - ResourceTypes []*string `json:"resourceTypes,omitempty" azure:"ro"` + ResourceTypes []*string } // TargetTypesClientGetOptions contains the optional parameters for the TargetTypesClient.Get method. @@ -829,17 +829,17 @@ type TargetsClientListOptions struct { // and a 'location' type TrackedResource struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } diff --git a/sdk/resourcemanager/chaos/armchaos/models_serde.go b/sdk/resourcemanager/chaos/armchaos/models_serde.go index 68cfeabaef60..351c969ac2a2 100644 --- a/sdk/resourcemanager/chaos/armchaos/models_serde.go +++ b/sdk/resourcemanager/chaos/armchaos/models_serde.go @@ -526,7 +526,7 @@ func (d *DiscreteAction) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo. func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "info", &e.Info) + populateAny(objectMap, "info", e.Info) populate(objectMap, "type", e.Type) return json.Marshal(objectMap) } @@ -1783,6 +1783,16 @@ func populate(m map[string]any, k string, v any) { } } +func populateAny(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else { + m[k] = v + } +} + func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/CHANGELOG.md b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/CHANGELOG.md index 3775af2c8ef4..f9ccd532246f 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/CHANGELOG.md +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/CHANGELOG.md @@ -1,5 +1,10 @@ # Release History +## 1.4.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + ## 1.4.0 (2023-03-28) ### Features Added diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/autorest.md b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/autorest.md index 36919477a110..b981db3524ac 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/autorest.md +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/autorest.md @@ -8,5 +8,5 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.4.0 +module-version: 1.4.1 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/constants.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/constants.go index 5745b2f09a95..0c46ca97ffdc 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/constants.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/constants.go @@ -11,7 +11,7 @@ package armcognitiveservices const ( moduleName = "armcognitiveservices" - moduleVersion = "v1.4.0" + moduleVersion = "v1.4.1" ) // ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/models.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/models.go index 77e86229a183..800a8fd9285d 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/models.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/models.go @@ -14,229 +14,229 @@ import "time" // APIKeys - The access keys for the cognitive services account. type APIKeys struct { // Gets the value of key 1. - Key1 *string `json:"key1,omitempty"` + Key1 *string // Gets the value of key 2. - Key2 *string `json:"key2,omitempty"` + Key2 *string } // APIProperties - The api properties for special APIs. type APIProperties struct { // (Metrics Advisor Only) The Azure AD Client Id (Application Id). - AADClientID *string `json:"aadClientId,omitempty"` + AADClientID *string // (Metrics Advisor Only) The Azure AD Tenant Id. - AADTenantID *string `json:"aadTenantId,omitempty"` + AADTenantID *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]any // (Personalization Only) The flag to enable statistics of Bing Search. - EventHubConnectionString *string `json:"eventHubConnectionString,omitempty"` + EventHubConnectionString *string // (QnAMaker Only) The Azure Search endpoint id of QnAMaker. - QnaAzureSearchEndpointID *string `json:"qnaAzureSearchEndpointId,omitempty"` + QnaAzureSearchEndpointID *string // (QnAMaker Only) The Azure Search endpoint key of QnAMaker. - QnaAzureSearchEndpointKey *string `json:"qnaAzureSearchEndpointKey,omitempty"` + QnaAzureSearchEndpointKey *string // (QnAMaker Only) The runtime endpoint of QnAMaker. - QnaRuntimeEndpoint *string `json:"qnaRuntimeEndpoint,omitempty"` + QnaRuntimeEndpoint *string // (Bing Search Only) The flag to enable statistics of Bing Search. - StatisticsEnabled *bool `json:"statisticsEnabled,omitempty"` + StatisticsEnabled *bool // (Personalization Only) The storage account connection string. - StorageAccountConnectionString *string `json:"storageAccountConnectionString,omitempty"` + StorageAccountConnectionString *string // (Metrics Advisor Only) The super user of Metrics Advisor. - SuperUser *string `json:"superUser,omitempty"` + SuperUser *string // (Metrics Advisor Only) The website name of Metrics Advisor. - WebsiteName *string `json:"websiteName,omitempty"` + WebsiteName *string } // Account - Cognitive Services account is an Azure resource representing the provisioned account, it's type, location and // SKU. type Account struct { // Identity for the resource. - Identity *Identity `json:"identity,omitempty"` + Identity *Identity // The Kind of the resource. - Kind *string `json:"kind,omitempty"` + Kind *string // The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // Properties of Cognitive Services account. - Properties *AccountProperties `json:"properties,omitempty"` + Properties *AccountProperties // The resource model definition representing SKU - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Etag. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Metadata pertaining to creation and last modification of the resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // AccountListResult - The list of cognitive services accounts operation response. type AccountListResult struct { // The link used to get the next page of accounts. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; Gets the list of Cognitive Services accounts and their properties. - Value []*Account `json:"value,omitempty" azure:"ro"` + Value []*Account } // AccountModel - Cognitive Services account Model. type AccountModel struct { // Base Model Identifier. - BaseModel *DeploymentModel `json:"baseModel,omitempty"` + BaseModel *DeploymentModel // The capabilities. - Capabilities map[string]*string `json:"capabilities,omitempty"` + Capabilities map[string]*string // Cognitive Services account ModelDeprecationInfo. - Deprecation *ModelDeprecationInfo `json:"deprecation,omitempty"` + Deprecation *ModelDeprecationInfo // The capabilities for finetune models. - FinetuneCapabilities map[string]*string `json:"finetuneCapabilities,omitempty"` + FinetuneCapabilities map[string]*string // Deployment model format. - Format *string `json:"format,omitempty"` + Format *string // Model lifecycle status. - LifecycleStatus *ModelLifecycleStatus `json:"lifecycleStatus,omitempty"` + LifecycleStatus *ModelLifecycleStatus // The max capacity. - MaxCapacity *int32 `json:"maxCapacity,omitempty"` + MaxCapacity *int32 // Deployment model name. - Name *string `json:"name,omitempty"` + Name *string // Deployment model version. - Version *string `json:"version,omitempty"` + Version *string // READ-ONLY; The call rate limit Cognitive Services account. - CallRateLimit *CallRateLimit `json:"callRateLimit,omitempty" azure:"ro"` + CallRateLimit *CallRateLimit // READ-ONLY; Metadata pertaining to creation and last modification of the resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData } // AccountModelListResult - The list of cognitive services accounts operation response. type AccountModelListResult struct { // The link used to get the next page of Model. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // Gets the list of Cognitive Services accounts Model and their properties. - Value []*AccountModel `json:"value,omitempty"` + Value []*AccountModel } // AccountProperties - Properties of Cognitive Services account. type AccountProperties struct { // The api properties for special APIs. - APIProperties *APIProperties `json:"apiProperties,omitempty"` - AllowedFqdnList []*string `json:"allowedFqdnList,omitempty"` + APIProperties *APIProperties + AllowedFqdnList []*string // Optional subdomain name used for token-based authentication. - CustomSubDomainName *string `json:"customSubDomainName,omitempty"` - DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` + CustomSubDomainName *string + DisableLocalAuth *bool // The flag to enable dynamic throttling. - DynamicThrottlingEnabled *bool `json:"dynamicThrottlingEnabled,omitempty"` + DynamicThrottlingEnabled *bool // The encryption properties for this resource. - Encryption *Encryption `json:"encryption,omitempty"` + Encryption *Encryption // The multiregion settings of Cognitive Services account. - Locations *MultiRegionSettings `json:"locations,omitempty"` + Locations *MultiRegionSettings // Resource migration token. - MigrationToken *string `json:"migrationToken,omitempty"` + MigrationToken *string // A collection of rules governing the accessibility from specific network locations. - NetworkACLs *NetworkRuleSet `json:"networkAcls,omitempty"` + NetworkACLs *NetworkRuleSet // Whether or not public endpoint access is allowed for this account. - PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` - Restore *bool `json:"restore,omitempty"` - RestrictOutboundNetworkAccess *bool `json:"restrictOutboundNetworkAccess,omitempty"` + PublicNetworkAccess *PublicNetworkAccess + Restore *bool + RestrictOutboundNetworkAccess *bool // The storage accounts for this resource. - UserOwnedStorage []*UserOwnedStorage `json:"userOwnedStorage,omitempty"` + UserOwnedStorage []*UserOwnedStorage // READ-ONLY; The call rate limit Cognitive Services account. - CallRateLimit *CallRateLimit `json:"callRateLimit,omitempty" azure:"ro"` + CallRateLimit *CallRateLimit // READ-ONLY; Gets the capabilities of the cognitive services account. Each item indicates the capability of a specific feature. // The values are read-only and for reference only. - Capabilities []*SKUCapability `json:"capabilities,omitempty" azure:"ro"` + Capabilities []*SKUCapability // READ-ONLY; The commitment plan associations of Cognitive Services account. - CommitmentPlanAssociations []*CommitmentPlanAssociation `json:"commitmentPlanAssociations,omitempty" azure:"ro"` + CommitmentPlanAssociations []*CommitmentPlanAssociation // READ-ONLY; Gets the date of cognitive services account creation. - DateCreated *string `json:"dateCreated,omitempty" azure:"ro"` + DateCreated *string // READ-ONLY; The deletion date, only available for deleted account. - DeletionDate *string `json:"deletionDate,omitempty" azure:"ro"` + DeletionDate *string // READ-ONLY; Endpoint of the created account. - Endpoint *string `json:"endpoint,omitempty" azure:"ro"` + Endpoint *string // READ-ONLY; Dictionary of - Endpoints map[string]*string `json:"endpoints,omitempty" azure:"ro"` + Endpoints map[string]*string // READ-ONLY; The internal identifier (deprecated, do not use this property). - InternalID *string `json:"internalId,omitempty" azure:"ro"` + InternalID *string // READ-ONLY; If the resource is migrated from an existing key. - IsMigrated *bool `json:"isMigrated,omitempty" azure:"ro"` + IsMigrated *bool // READ-ONLY; The private endpoint connection associated with the Cognitive Services account. - PrivateEndpointConnections []*PrivateEndpointConnection `json:"privateEndpointConnections,omitempty" azure:"ro"` + PrivateEndpointConnections []*PrivateEndpointConnection // READ-ONLY; Gets the status of the cognitive services account at the time the operation was called. - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ProvisioningState // READ-ONLY - QuotaLimit *QuotaLimit `json:"quotaLimit,omitempty" azure:"ro"` + QuotaLimit *QuotaLimit // READ-ONLY; Sku change info of account. - SKUChangeInfo *SKUChangeInfo `json:"skuChangeInfo,omitempty" azure:"ro"` + SKUChangeInfo *SKUChangeInfo // READ-ONLY; The scheduled purge date, only available for deleted account. - ScheduledPurgeDate *string `json:"scheduledPurgeDate,omitempty" azure:"ro"` + ScheduledPurgeDate *string } // AccountSKU - Cognitive Services resource type and SKU. type AccountSKU struct { // Resource Namespace and Type - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string // The SKU of Cognitive Services account. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU } // AccountSKUListResult - The list of cognitive services accounts operation response. type AccountSKUListResult struct { // Gets the list of Cognitive Services accounts and their properties. - Value []*AccountSKU `json:"value,omitempty"` + Value []*AccountSKU } // AccountsClientBeginCreateOptions contains the optional parameters for the AccountsClient.BeginCreate method. @@ -303,192 +303,192 @@ type AccountsClientRegenerateKeyOptions struct { // AzureEntityResource - The resource model definition for an Azure Resource Manager resource with an etag. type AzureEntityResource struct { // READ-ONLY; Resource Etag. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // CallRateLimit - The call rate limit Cognitive Services account. type CallRateLimit struct { // The count value of Call Rate Limit. - Count *float32 `json:"count,omitempty"` + Count *float32 // The renewal period in seconds of Call Rate Limit. - RenewalPeriod *float32 `json:"renewalPeriod,omitempty"` - Rules []*ThrottlingRule `json:"rules,omitempty"` + RenewalPeriod *float32 + Rules []*ThrottlingRule } // CheckDomainAvailabilityParameter - Check Domain availability parameter. type CheckDomainAvailabilityParameter struct { // REQUIRED; The subdomain name to use. - SubdomainName *string `json:"subdomainName,omitempty"` + SubdomainName *string // REQUIRED; The Type of the resource. - Type *string `json:"type,omitempty"` + Type *string // The Kind of the resource. - Kind *string `json:"kind,omitempty"` + Kind *string } // CheckSKUAvailabilityParameter - Check SKU availability parameter. type CheckSKUAvailabilityParameter struct { // REQUIRED; The Kind of the resource. - Kind *string `json:"kind,omitempty"` + Kind *string // REQUIRED; The SKU of the resource. - SKUs []*string `json:"skus,omitempty"` + SKUs []*string // REQUIRED; The Type of the resource. - Type *string `json:"type,omitempty"` + Type *string } // CommitmentCost - Cognitive Services account commitment cost. type CommitmentCost struct { // Commitment meter Id. - CommitmentMeterID *string `json:"commitmentMeterId,omitempty"` + CommitmentMeterID *string // Overage meter Id. - OverageMeterID *string `json:"overageMeterId,omitempty"` + OverageMeterID *string } // CommitmentPeriod - Cognitive Services account commitment period. type CommitmentPeriod struct { // Commitment period commitment count. - Count *int32 `json:"count,omitempty"` + Count *int32 // Commitment period commitment tier. - Tier *string `json:"tier,omitempty"` + Tier *string // READ-ONLY; Commitment period end date. - EndDate *string `json:"endDate,omitempty" azure:"ro"` + EndDate *string // READ-ONLY; Cognitive Services account commitment quota. - Quota *CommitmentQuota `json:"quota,omitempty" azure:"ro"` + Quota *CommitmentQuota // READ-ONLY; Commitment period start date. - StartDate *string `json:"startDate,omitempty" azure:"ro"` + StartDate *string } // CommitmentPlan - Cognitive Services account commitment plan. type CommitmentPlan struct { // The Kind of the resource. - Kind *string `json:"kind,omitempty"` + Kind *string // The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // Properties of Cognitive Services account commitment plan. - Properties *CommitmentPlanProperties `json:"properties,omitempty"` + Properties *CommitmentPlanProperties // The resource model definition representing SKU - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Resource Etag. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Metadata pertaining to creation and last modification of the resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // CommitmentPlanAccountAssociation - The commitment plan association. type CommitmentPlanAccountAssociation struct { // Properties of Cognitive Services account commitment plan association. - Properties *CommitmentPlanAccountAssociationProperties `json:"properties,omitempty"` + Properties *CommitmentPlanAccountAssociationProperties // READ-ONLY; Resource Etag. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Metadata pertaining to creation and last modification of the resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // CommitmentPlanAccountAssociationListResult - The list of cognitive services Commitment Plan Account Association operation // response. type CommitmentPlanAccountAssociationListResult struct { // The link used to get the next page of Commitment Plan Account Association. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; Gets the list of Cognitive Services Commitment Plan Account Association and their properties. - Value []*CommitmentPlanAccountAssociation `json:"value,omitempty" azure:"ro"` + Value []*CommitmentPlanAccountAssociation } // CommitmentPlanAccountAssociationProperties - The commitment plan account association properties. type CommitmentPlanAccountAssociationProperties struct { // The Azure resource id of the account. - AccountID *string `json:"accountId,omitempty"` + AccountID *string } // CommitmentPlanAssociation - The commitment plan association. type CommitmentPlanAssociation struct { // The Azure resource id of the commitment plan. - CommitmentPlanID *string `json:"commitmentPlanId,omitempty"` + CommitmentPlanID *string // The location of of the commitment plan. - CommitmentPlanLocation *string `json:"commitmentPlanLocation,omitempty"` + CommitmentPlanLocation *string } // CommitmentPlanListResult - The list of cognitive services accounts operation response. type CommitmentPlanListResult struct { // The link used to get the next page of CommitmentPlan. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; Gets the list of Cognitive Services accounts CommitmentPlan and their properties. - Value []*CommitmentPlan `json:"value,omitempty" azure:"ro"` + Value []*CommitmentPlan } // CommitmentPlanProperties - Properties of Cognitive Services account commitment plan. type CommitmentPlanProperties struct { // AutoRenew commitment plan. - AutoRenew *bool `json:"autoRenew,omitempty"` + AutoRenew *bool // Commitment plan guid. - CommitmentPlanGUID *string `json:"commitmentPlanGuid,omitempty"` + CommitmentPlanGUID *string // Cognitive Services account commitment period. - Current *CommitmentPeriod `json:"current,omitempty"` + Current *CommitmentPeriod // Account hosting model. - HostingModel *HostingModel `json:"hostingModel,omitempty"` + HostingModel *HostingModel // Cognitive Services account commitment period. - Next *CommitmentPeriod `json:"next,omitempty"` + Next *CommitmentPeriod // Commitment plan type. - PlanType *string `json:"planType,omitempty"` + PlanType *string // READ-ONLY; Cognitive Services account commitment period. - Last *CommitmentPeriod `json:"last,omitempty" azure:"ro"` + Last *CommitmentPeriod // READ-ONLY; Gets the status of the resource at the time the operation was called. - ProvisioningState *CommitmentPlanProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *CommitmentPlanProvisioningState } // CommitmentPlansClientBeginCreateOrUpdateAssociationOptions contains the optional parameters for the CommitmentPlansClient.BeginCreateOrUpdateAssociation @@ -580,46 +580,46 @@ type CommitmentPlansClientListPlansBySubscriptionOptions struct { // CommitmentQuota - Cognitive Services account commitment quota. type CommitmentQuota struct { // Commitment quota quantity. - Quantity *int64 `json:"quantity,omitempty"` + Quantity *int64 // Commitment quota unit. - Unit *string `json:"unit,omitempty"` + Unit *string } // CommitmentTier - Cognitive Services account commitment tier. type CommitmentTier struct { // Cognitive Services account commitment cost. - Cost *CommitmentCost `json:"cost,omitempty"` + Cost *CommitmentCost // Account hosting model. - HostingModel *HostingModel `json:"hostingModel,omitempty"` + HostingModel *HostingModel // The Kind of the resource. - Kind *string `json:"kind,omitempty"` + Kind *string // Commitment period commitment max count. - MaxCount *int32 `json:"maxCount,omitempty"` + MaxCount *int32 // Commitment plan type. - PlanType *string `json:"planType,omitempty"` + PlanType *string // Cognitive Services account commitment quota. - Quota *CommitmentQuota `json:"quota,omitempty"` + Quota *CommitmentQuota // The name of the SKU. Ex - P3. It is typically a letter+number code - SKUName *string `json:"skuName,omitempty"` + SKUName *string // Commitment period commitment tier. - Tier *string `json:"tier,omitempty"` + Tier *string } // CommitmentTierListResult - The list of cognitive services accounts operation response. type CommitmentTierListResult struct { // The link used to get the next page of CommitmentTier. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; Gets the list of Cognitive Services accounts CommitmentTier and their properties. - Value []*CommitmentTier `json:"value,omitempty" azure:"ro"` + Value []*CommitmentTier } // CommitmentTiersClientListOptions contains the optional parameters for the CommitmentTiersClient.NewListPager method. @@ -646,79 +646,79 @@ type DeletedAccountsClientListOptions struct { // Deployment - Cognitive Services account deployment. type Deployment struct { // Properties of Cognitive Services account deployment. - Properties *DeploymentProperties `json:"properties,omitempty"` + Properties *DeploymentProperties // READ-ONLY; Resource Etag. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Metadata pertaining to creation and last modification of the resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // DeploymentListResult - The list of cognitive services accounts operation response. type DeploymentListResult struct { // The link used to get the next page of Deployment. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; Gets the list of Cognitive Services accounts Deployment and their properties. - Value []*Deployment `json:"value,omitempty" azure:"ro"` + Value []*Deployment } // DeploymentModel - Properties of Cognitive Services account deployment model. type DeploymentModel struct { // Deployment model format. - Format *string `json:"format,omitempty"` + Format *string // Deployment model name. - Name *string `json:"name,omitempty"` + Name *string // Deployment model version. - Version *string `json:"version,omitempty"` + Version *string // READ-ONLY; The call rate limit Cognitive Services account. - CallRateLimit *CallRateLimit `json:"callRateLimit,omitempty" azure:"ro"` + CallRateLimit *CallRateLimit } // DeploymentProperties - Properties of Cognitive Services account deployment. type DeploymentProperties struct { // Properties of Cognitive Services account deployment model. - Model *DeploymentModel `json:"model,omitempty"` + Model *DeploymentModel // The name of RAI policy. - RaiPolicyName *string `json:"raiPolicyName,omitempty"` + RaiPolicyName *string // Properties of Cognitive Services account deployment model. - ScaleSettings *DeploymentScaleSettings `json:"scaleSettings,omitempty"` + ScaleSettings *DeploymentScaleSettings // READ-ONLY; The call rate limit Cognitive Services account. - CallRateLimit *CallRateLimit `json:"callRateLimit,omitempty" azure:"ro"` + CallRateLimit *CallRateLimit // READ-ONLY; The capabilities. - Capabilities map[string]*string `json:"capabilities,omitempty" azure:"ro"` + Capabilities map[string]*string // READ-ONLY; Gets the status of the resource at the time the operation was called. - ProvisioningState *DeploymentProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *DeploymentProvisioningState } // DeploymentScaleSettings - Properties of Cognitive Services account deployment model. type DeploymentScaleSettings struct { // Deployment capacity. - Capacity *int32 `json:"capacity,omitempty"` + Capacity *int32 // Deployment scale type. - ScaleType *DeploymentScaleType `json:"scaleType,omitempty"` + ScaleType *DeploymentScaleType // READ-ONLY; Deployment active capacity. This value might be different from capacity if customer recently updated capacity. - ActiveCapacity *int32 `json:"activeCapacity,omitempty" azure:"ro"` + ActiveCapacity *int32 } // DeploymentsClientBeginCreateOrUpdateOptions contains the optional parameters for the DeploymentsClient.BeginCreateOrUpdate @@ -747,100 +747,100 @@ type DeploymentsClientListOptions struct { // DomainAvailability - Domain availability. type DomainAvailability struct { // Indicates the given SKU is available or not. - IsSubdomainAvailable *bool `json:"isSubdomainAvailable,omitempty"` + IsSubdomainAvailable *bool // The Kind of the resource. - Kind *string `json:"kind,omitempty"` + Kind *string // Reason why the SKU is not available. - Reason *string `json:"reason,omitempty"` + Reason *string // The subdomain name to use. - SubdomainName *string `json:"subdomainName,omitempty"` + SubdomainName *string // The Type of the resource. - Type *string `json:"type,omitempty"` + Type *string } // Encryption - Properties to configure Encryption type Encryption struct { // Enumerates the possible value of keySource for Encryption - KeySource *KeySource `json:"keySource,omitempty"` + KeySource *KeySource // Properties of KeyVault - KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"` + KeyVaultProperties *KeyVaultProperties } // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. - Info any `json:"info,omitempty" azure:"ro"` + Info any // READ-ONLY; The additional info type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ErrorDetail - The error detail. type ErrorDetail struct { // READ-ONLY; The error additional info. - AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` + AdditionalInfo []*ErrorAdditionalInfo // READ-ONLY; The error code. - Code *string `json:"code,omitempty" azure:"ro"` + Code *string // READ-ONLY; The error details. - Details []*ErrorDetail `json:"details,omitempty" azure:"ro"` + Details []*ErrorDetail // READ-ONLY; The error message. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string // READ-ONLY; The error target. - Target *string `json:"target,omitempty" azure:"ro"` + Target *string } // ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. // (This also follows the OData error response format.). type ErrorResponse struct { // The error object. - Error *ErrorDetail `json:"error,omitempty"` + Error *ErrorDetail } // IPRule - A rule governing the accessibility from a specific ip address or ip range. type IPRule struct { // REQUIRED; An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses // that start with 124.56.78). - Value *string `json:"value,omitempty"` + Value *string } // Identity for the resource. type Identity struct { // The identity type. - Type *ResourceIdentityType `json:"type,omitempty"` + Type *ResourceIdentityType // The list of user assigned identities associated with the resource. The user identity dictionary key references will be // ARM resource ids in the form: // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} - UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities,omitempty"` + UserAssignedIdentities map[string]*UserAssignedIdentity // READ-ONLY; The principal ID of resource identity. - PrincipalID *string `json:"principalId,omitempty" azure:"ro"` + PrincipalID *string // READ-ONLY; The tenant ID of resource. - TenantID *string `json:"tenantId,omitempty" azure:"ro"` + TenantID *string } // KeyVaultProperties - Properties to configure keyVault Properties type KeyVaultProperties struct { - IdentityClientID *string `json:"identityClientId,omitempty"` + IdentityClientID *string // Name of the Key from KeyVault - KeyName *string `json:"keyName,omitempty"` + KeyName *string // Uri of KeyVault - KeyVaultURI *string `json:"keyVaultUri,omitempty"` + KeyVaultURI *string // Version of the Key from KeyVault - KeyVersion *string `json:"keyVersion,omitempty"` + KeyVersion *string } // ManagementClientCheckDomainAvailabilityOptions contains the optional parameters for the ManagementClient.CheckDomainAvailability @@ -858,89 +858,89 @@ type ManagementClientCheckSKUAvailabilityOptions struct { // MetricName - A metric name. type MetricName struct { // The friendly name of the metric. - LocalizedValue *string `json:"localizedValue,omitempty"` + LocalizedValue *string // The name of the metric. - Value *string `json:"value,omitempty"` + Value *string } // ModelDeprecationInfo - Cognitive Services account ModelDeprecationInfo. type ModelDeprecationInfo struct { // The datetime of deprecation of the fineTune Model. - FineTune *string `json:"fineTune,omitempty"` + FineTune *string // The datetime of deprecation of the inference Model. - Inference *string `json:"inference,omitempty"` + Inference *string } // MultiRegionSettings - The multiregion settings Cognitive Services account. type MultiRegionSettings struct { - Regions []*RegionSetting `json:"regions,omitempty"` + Regions []*RegionSetting // Multiregion routing methods. - RoutingMethod *RoutingMethods `json:"routingMethod,omitempty"` + RoutingMethod *RoutingMethods } // NetworkRuleSet - A set of rules governing the network accessibility. type NetworkRuleSet struct { // The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property // has been evaluated. - DefaultAction *NetworkRuleAction `json:"defaultAction,omitempty"` + DefaultAction *NetworkRuleAction // The list of IP address rules. - IPRules []*IPRule `json:"ipRules,omitempty"` + IPRules []*IPRule // The list of virtual network rules. - VirtualNetworkRules []*VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` + VirtualNetworkRules []*VirtualNetworkRule } // Operation - Details of a REST API operation, returned from the Resource Provider Operations API type Operation struct { // Localized display information for this particular operation. - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - ActionType *ActionType `json:"actionType,omitempty" azure:"ro"` + ActionType *ActionType // READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane // operations. - IsDataAction *bool `json:"isDataAction,omitempty" azure:"ro"` + IsDataAction *bool // READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", // "Microsoft.Compute/virtualMachines/capture/action" - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default // value is "user,system" - Origin *Origin `json:"origin,omitempty" azure:"ro"` + Origin *Origin } // OperationDisplay - Localized display information for this particular operation. type OperationDisplay struct { // READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual // Machine", "Restart Virtual Machine". - Operation *string `json:"operation,omitempty" azure:"ro"` + Operation *string // READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft // Compute". - Provider *string `json:"provider,omitempty" azure:"ro"` + Provider *string // READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job // Schedule Collections". - Resource *string `json:"resource,omitempty" azure:"ro"` + Resource *string } // OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to // get the next set of results. type OperationListResult struct { // READ-ONLY; URL to get the next set of operation list results (if there are any). - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of operations supported by the resource provider - Value []*Operation `json:"value,omitempty" azure:"ro"` + Value []*Operation } // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. @@ -951,67 +951,67 @@ type OperationsClientListOptions struct { // PatchResourceTags - The object being used to update tags of a resource, in general used for PATCH operations. type PatchResourceTags struct { // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // PatchResourceTagsAndSKU - The object being used to update tags and sku of a resource, in general used for PATCH operations. type PatchResourceTagsAndSKU struct { // The resource model definition representing SKU - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // PrivateEndpoint - The Private Endpoint resource. type PrivateEndpoint struct { // READ-ONLY; The ARM identifier for Private Endpoint - ID *string `json:"id,omitempty" azure:"ro"` + ID *string } // PrivateEndpointConnection - The Private Endpoint Connection resource. type PrivateEndpointConnection struct { // The location of the private endpoint connection - Location *string `json:"location,omitempty"` + Location *string // Resource properties. - Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Properties *PrivateEndpointConnectionProperties // READ-ONLY; Resource Etag. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Metadata pertaining to creation and last modification of the resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PrivateEndpointConnectionListResult - A list of private endpoint connections type PrivateEndpointConnectionListResult struct { // Array of private endpoint connections - Value []*PrivateEndpointConnection `json:"value,omitempty"` + Value []*PrivateEndpointConnection } // PrivateEndpointConnectionProperties - Properties of the PrivateEndpointConnectProperties. type PrivateEndpointConnectionProperties struct { // REQUIRED; A collection of information about the state of the connection between service consumer and provider. - PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState // The private link resource group ids. - GroupIDs []*string `json:"groupIds,omitempty"` + GroupIDs []*string // The resource of private end point. - PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpoint *PrivateEndpoint // READ-ONLY; The provisioning state of the private endpoint connection resource. - ProvisioningState *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *PrivateEndpointConnectionProvisioningState } // PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreateOrUpdate @@ -1043,37 +1043,37 @@ type PrivateEndpointConnectionsClientListOptions struct { // PrivateLinkResource - A private link resource type PrivateLinkResource struct { // Resource properties. - Properties *PrivateLinkResourceProperties `json:"properties,omitempty"` + Properties *PrivateLinkResourceProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PrivateLinkResourceListResult - A list of private link resources type PrivateLinkResourceListResult struct { // Array of private link resources - Value []*PrivateLinkResource `json:"value,omitempty"` + Value []*PrivateLinkResource } // PrivateLinkResourceProperties - Properties of a private link resource. type PrivateLinkResourceProperties struct { // The private link resource Private link DNS zone name. - RequiredZoneNames []*string `json:"requiredZoneNames,omitempty"` + RequiredZoneNames []*string // READ-ONLY; The private link resource display name. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; The private link resource group id. - GroupID *string `json:"groupId,omitempty" azure:"ro"` + GroupID *string // READ-ONLY; The private link resource required member names. - RequiredMembers []*string `json:"requiredMembers,omitempty" azure:"ro"` + RequiredMembers []*string } // PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.List method. @@ -1085,121 +1085,121 @@ type PrivateLinkResourcesClientListOptions struct { // and provider. type PrivateLinkServiceConnectionState struct { // A message indicating if changes on the service provider require any updates on the consumer. - ActionsRequired *string `json:"actionsRequired,omitempty"` + ActionsRequired *string // The reason for approval/rejection of the connection. - Description *string `json:"description,omitempty"` + Description *string // Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. - Status *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` + Status *PrivateEndpointServiceConnectionStatus } // ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a // location type ProxyResource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } type QuotaLimit struct { - Count *float32 `json:"count,omitempty"` - RenewalPeriod *float32 `json:"renewalPeriod,omitempty"` - Rules []*ThrottlingRule `json:"rules,omitempty"` + Count *float32 + RenewalPeriod *float32 + Rules []*ThrottlingRule } // RegenerateKeyParameters - Regenerate key parameters. type RegenerateKeyParameters struct { // REQUIRED; key name to generate (Key1|Key2) - KeyName *KeyName `json:"keyName,omitempty"` + KeyName *KeyName } // RegionSetting - The call rate limit Cognitive Services account. type RegionSetting struct { // Maps the region to the regional custom subdomain. - Customsubdomain *string `json:"customsubdomain,omitempty"` + Customsubdomain *string // Name of the region. - Name *string `json:"name,omitempty"` + Name *string // A value for priority or weighted routing methods. - Value *float32 `json:"value,omitempty"` + Value *float32 } type RequestMatchPattern struct { - Method *string `json:"method,omitempty"` - Path *string `json:"path,omitempty"` + Method *string + Path *string } // Resource - Common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ResourceSKU - Describes an available Cognitive Services SKU. type ResourceSKU struct { // The Kind of resources that are supported in this SKU. - Kind *string `json:"kind,omitempty"` + Kind *string // The set of locations that the SKU is available. - Locations []*string `json:"locations,omitempty"` + Locations []*string // The name of SKU. - Name *string `json:"name,omitempty"` + Name *string // The type of resource the SKU applies to. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string // The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. - Restrictions []*ResourceSKURestrictions `json:"restrictions,omitempty"` + Restrictions []*ResourceSKURestrictions // Specifies the tier of Cognitive Services account. - Tier *string `json:"tier,omitempty"` + Tier *string } // ResourceSKUListResult - The Get Skus operation response. type ResourceSKUListResult struct { // REQUIRED; The list of skus available for the subscription. - Value []*ResourceSKU `json:"value,omitempty"` + Value []*ResourceSKU // The uri to fetch the next page of Skus. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } type ResourceSKURestrictionInfo struct { // Locations where the SKU is restricted - Locations []*string `json:"locations,omitempty"` + Locations []*string // List of availability zones where the SKU is restricted. - Zones []*string `json:"zones,omitempty"` + Zones []*string } // ResourceSKURestrictions - Describes restrictions of a SKU. type ResourceSKURestrictions struct { // The reason for restriction. - ReasonCode *ResourceSKURestrictionsReasonCode `json:"reasonCode,omitempty"` + ReasonCode *ResourceSKURestrictionsReasonCode // The information about the restriction where the SKU cannot be used. - RestrictionInfo *ResourceSKURestrictionInfo `json:"restrictionInfo,omitempty"` + RestrictionInfo *ResourceSKURestrictionInfo // The type of restrictions. - Type *ResourceSKURestrictionsType `json:"type,omitempty"` + Type *ResourceSKURestrictionsType // The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU // is restricted. - Values []*string `json:"values,omitempty"` + Values []*string } // ResourceSKUsClientListOptions contains the optional parameters for the ResourceSKUsClient.NewListPager method. @@ -1210,156 +1210,156 @@ type ResourceSKUsClientListOptions struct { // SKU - The resource model definition representing SKU type SKU struct { // REQUIRED; The name of the SKU. Ex - P3. It is typically a letter+number code - Name *string `json:"name,omitempty"` + Name *string // If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the // resource this may be omitted. - Capacity *int32 `json:"capacity,omitempty"` + Capacity *int32 // If the service has different generations of hardware, for the same SKU, then that can be captured here. - Family *string `json:"family,omitempty"` + Family *string // The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. - Size *string `json:"size,omitempty"` + Size *string // This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required // on a PUT. - Tier *SKUTier `json:"tier,omitempty"` + Tier *SKUTier } // SKUAvailability - SKU availability. type SKUAvailability struct { // The Kind of the resource. - Kind *string `json:"kind,omitempty"` + Kind *string // Additional error message. - Message *string `json:"message,omitempty"` + Message *string // Reason why the SKU is not available. - Reason *string `json:"reason,omitempty"` + Reason *string // Indicates the given SKU is available or not. - SKUAvailable *bool `json:"skuAvailable,omitempty"` + SKUAvailable *bool // The SKU of Cognitive Services account. - SKUName *string `json:"skuName,omitempty"` + SKUName *string // The Type of the resource. - Type *string `json:"type,omitempty"` + Type *string } // SKUAvailabilityListResult - Check SKU availability result list. type SKUAvailabilityListResult struct { // Check SKU availability result list. - Value []*SKUAvailability `json:"value,omitempty"` + Value []*SKUAvailability } // SKUCapability - SkuCapability indicates the capability of a certain feature. type SKUCapability struct { // The name of the SkuCapability. - Name *string `json:"name,omitempty"` + Name *string // The value of the SkuCapability. - Value *string `json:"value,omitempty"` + Value *string } // SKUChangeInfo - Sku change info of account. type SKUChangeInfo struct { // Gets the count of downgrades. - CountOfDowngrades *float32 `json:"countOfDowngrades,omitempty"` + CountOfDowngrades *float32 // Gets the count of upgrades after downgrades. - CountOfUpgradesAfterDowngrades *float32 `json:"countOfUpgradesAfterDowngrades,omitempty"` + CountOfUpgradesAfterDowngrades *float32 // Gets the last change date. - LastChangeDate *string `json:"lastChangeDate,omitempty"` + LastChangeDate *string } // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { // The timestamp of resource creation (UTC). - CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAt *time.Time // The identity that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` + CreatedBy *string // The type of identity that created the resource. - CreatedByType *CreatedByType `json:"createdByType,omitempty"` + CreatedByType *CreatedByType // The timestamp of resource last modification (UTC) - LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` + LastModifiedAt *time.Time // The identity that last modified the resource. - LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + LastModifiedBy *string // The type of identity that last modified the resource. - LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` + LastModifiedByType *CreatedByType } type ThrottlingRule struct { - Count *float32 `json:"count,omitempty"` - DynamicThrottlingEnabled *bool `json:"dynamicThrottlingEnabled,omitempty"` - Key *string `json:"key,omitempty"` - MatchPatterns []*RequestMatchPattern `json:"matchPatterns,omitempty"` - MinCount *float32 `json:"minCount,omitempty"` - RenewalPeriod *float32 `json:"renewalPeriod,omitempty"` + Count *float32 + DynamicThrottlingEnabled *bool + Key *string + MatchPatterns []*RequestMatchPattern + MinCount *float32 + RenewalPeriod *float32 } // Usage - The usage data for a usage request. type Usage struct { // Current value for this metric. - CurrentValue *float64 `json:"currentValue,omitempty"` + CurrentValue *float64 // Maximum value for this metric. - Limit *float64 `json:"limit,omitempty"` + Limit *float64 // The name information for the metric. - Name *MetricName `json:"name,omitempty"` + Name *MetricName // Next reset time for current quota. - NextResetTime *string `json:"nextResetTime,omitempty"` + NextResetTime *string // The quota period used to summarize the usage values. - QuotaPeriod *string `json:"quotaPeriod,omitempty"` + QuotaPeriod *string // Cognitive Services account quota usage status. - Status *QuotaUsageStatus `json:"status,omitempty"` + Status *QuotaUsageStatus // The unit of the metric. - Unit *UnitType `json:"unit,omitempty"` + Unit *UnitType } // UsageListResult - The response to a list usage request. type UsageListResult struct { // The list of usages for Cognitive Service account. - Value []*Usage `json:"value,omitempty"` + Value []*Usage } // UserAssignedIdentity - User-assigned managed identity. type UserAssignedIdentity struct { // READ-ONLY; Client App Id associated with this identity. - ClientID *string `json:"clientId,omitempty" azure:"ro"` + ClientID *string // READ-ONLY; Azure Active Directory principal ID associated with this Identity. - PrincipalID *string `json:"principalId,omitempty" azure:"ro"` + PrincipalID *string } // UserOwnedStorage - The user owned storage for Cognitive Services account. type UserOwnedStorage struct { - IdentityClientID *string `json:"identityClientId,omitempty"` + IdentityClientID *string // Full resource id of a Microsoft.Storage resource. - ResourceID *string `json:"resourceId,omitempty"` + ResourceID *string } // VirtualNetworkRule - A rule governing the accessibility from a specific virtual network. type VirtualNetworkRule struct { // REQUIRED; Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'. - ID *string `json:"id,omitempty"` + ID *string // Ignore missing vnet service endpoint or not. - IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty"` + IgnoreMissingVnetServiceEndpoint *bool // Gets the state of virtual network rule. - State *string `json:"state,omitempty"` + State *string } diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/models_serde.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/models_serde.go index 49fb99aa3cbb..6dc3d9d6d964 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/models_serde.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/models_serde.go @@ -1406,7 +1406,7 @@ func (e *Encryption) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo. func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "info", &e.Info) + populateAny(objectMap, "info", e.Info) populate(objectMap, "type", e.Type) return json.Marshal(objectMap) } @@ -3000,6 +3000,16 @@ func populate(m map[string]any, k string, v any) { } } +func populateAny(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else { + m[k] = v + } +} + func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil