From db92fae394975c59cf3c5f6fbead970d3f122e33 Mon Sep 17 00:00:00 2001 From: Peng Jiahui <46921893+Alancere@users.noreply.github.com> Date: Fri, 14 Apr 2023 14:47:57 +0800 Subject: [PATCH] Release refresh all package 1681367636 (#20628) * [Release] sdk/resourcemanager/resourceconnector/armresourceconnector/0.3.1 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * [Release] sdk/resourcemanager/resourcegraph/armresourcegraph/0.7.1 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * [Release] sdk/resourcemanager/resourcemover/armresourcemover/1.1.1 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * [Release] sdk/resourcemanager/resources/armchanges/1.1.1 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * [Release] sdk/resourcemanager/resources/armdeploymentscripts/2.0.1 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * [Release] sdk/resourcemanager/resources/armfeatures/1.1.1 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * [Release] sdk/resourcemanager/resources/armlinks/1.1.1 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * [Release] sdk/resourcemanager/resources/armlocks/1.1.1 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * [Release] sdk/resourcemanager/resources/armmanagedapplications/1.1.1 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * [Release] sdk/resourcemanager/resources/armpolicy/0.7.1 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * [Release] sdk/resourcemanager/resources/armresources/1.1.1 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * [Release] sdk/resourcemanager/resources/armsubscriptions/1.1.1 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * [Release] sdk/resourcemanager/resources/armtemplatespecs/1.1.1 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * [Release] sdk/resourcemanager/saas/armsaas/1.0.0 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * [Release] sdk/resourcemanager/security/armsecurity/0.10.0 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * [Release] sdk/resourcemanager/securityinsights/armsecurityinsights/1.1.1 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * [Release] sdk/resourcemanager/servicebus/armservicebus/1.1.1 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * [Release] sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/0.6.1 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * [Release] sdk/resourcemanager/servicelinker/armservicelinker/1.1.1 generation from spec commit: 06f8de1dc4c49c4bc683583faf1723cdf12dd728 * reset resources/armfeatures * update changelog * update recording * fix saas version --- .../armresourceconnector/CHANGELOG.md | 6 + .../armresourceconnector/autorest.md | 2 +- .../armresourceconnector/constants.go | 2 +- .../armresourceconnector/models.go | 160 +- .../armresourceconnector/models_serde.go | 12 +- .../armresourcegraph/CHANGELOG.md | 6 + .../armresourcegraph/autorest.md | 2 +- .../armresourcegraph/constants.go | 2 +- .../resourcegraph/armresourcegraph/models.go | 124 +- .../armresourcegraph/models_serde.go | 14 +- .../armresourcemover/CHANGELOG.md | 6 + .../armresourcemover/autorest.md | 2 +- .../armresourcemover/constants.go | 2 +- .../resourcemover/armresourcemover/models.go | 458 +-- .../armresourcemover/models_serde.go | 14 +- .../resources/armchanges/CHANGELOG.md | 6 + .../resources/armchanges/autorest.md | 2 +- .../resources/armchanges/constants.go | 2 +- .../resources/armchanges/models.go | 62 +- .../resources/armchanges/models_serde.go | 12 +- .../armdeploymentscripts/CHANGELOG.md | 6 + .../armdeploymentscripts/autorest.md | 2 +- .../armdeploymentscripts/constants.go | 2 +- .../resources/armdeploymentscripts/models.go | 204 +- .../armdeploymentscripts/models_serde.go | 12 +- .../resources/armlinks/CHANGELOG.md | 6 + .../resources/armlinks/autorest.md | 2 +- .../resources/armlinks/constants.go | 2 +- .../resources/armlinks/models.go | 36 +- .../resources/armlinks/models_serde.go | 12 +- .../resources/armlocks/CHANGELOG.md | 6 + .../resources/armlocks/autorest.md | 2 +- .../resources/armlocks/constants.go | 2 +- .../resources/armlocks/models.go | 64 +- .../resources/armlocks/models_serde.go | 12 +- .../armmanagedapplications/CHANGELOG.md | 6 + .../armmanagedapplications/autorest.md | 2 +- .../armmanagedapplications/constants.go | 2 +- .../armmanagedapplications/models.go | 202 +- .../armmanagedapplications/models_serde.go | 22 +- .../resources/armpolicy/CHANGELOG.md | 6 + .../resources/armpolicy/assets.json | 2 +- .../resources/armpolicy/autorest.md | 2 +- .../resources/armpolicy/constants.go | 2 +- .../resources/armpolicy/models.go | 278 +- .../resources/armpolicy/models_serde.go | 28 +- .../resources/armresources/CHANGELOG.md | 6 + .../resources/armresources/assets.json | 2 +- .../resources/armresources/autorest.md | 2 +- .../resources/armresources/constants.go | 2 +- .../resources/armresources/models.go | 588 ++-- .../resources/armresources/models_serde.go | 42 +- .../resources/armsubscriptions/CHANGELOG.md | 6 + .../resources/armsubscriptions/autorest.md | 2 +- .../resources/armsubscriptions/constants.go | 2 +- .../resources/armsubscriptions/models.go | 162 +- .../armsubscriptions/models_serde.go | 12 +- .../resources/armtemplatespecs/CHANGELOG.md | 6 + .../resources/armtemplatespecs/autorest.md | 2 +- .../resources/armtemplatespecs/constants.go | 2 +- .../resources/armtemplatespecs/models.go | 120 +- .../armtemplatespecs/models_serde.go | 22 +- sdk/resourcemanager/saas/armsaas/CHANGELOG.md | 6 + sdk/resourcemanager/saas/armsaas/autorest.md | 2 +- sdk/resourcemanager/saas/armsaas/constants.go | 2 +- sdk/resourcemanager/saas/armsaas/models.go | 178 +- .../saas/armsaas/models_serde.go | 12 +- .../security/armsecurity/CHANGELOG.md | 6 + .../security/armsecurity/autorest.md | 2 +- .../security/armsecurity/constants.go | 2 +- .../security/armsecurity/models.go | 2726 ++++++++--------- .../security/armsecurity/models_serde.go | 20 +- .../armsecurityinsights/CHANGELOG.md | 6 + .../armsecurityinsights/autorest.md | 2 +- .../armsecurityinsights/constants.go | 2 +- .../armsecurityinsights/models.go | 1838 +++++------ .../armsecurityinsights/models_serde.go | 20 +- .../servicebus/armservicebus/CHANGELOG.md | 6 + .../servicebus/armservicebus/autorest.md | 2 +- .../servicebus/armservicebus/constants.go | 2 +- .../servicebus/armservicebus/models.go | 622 ++-- .../servicebus/armservicebus/models_serde.go | 14 +- .../armservicefabricmesh/CHANGELOG.md | 6 + .../armservicefabricmesh/autorest.md | 2 +- .../armservicefabricmesh/constants.go | 2 +- .../armservicefabricmesh/models.go | 634 ++-- .../armservicefabricmesh/models_serde.go | 12 +- .../armservicelinker/CHANGELOG.md | 6 + .../armservicelinker/autorest.md | 2 +- .../armservicelinker/constants.go | 2 +- .../servicelinker/armservicelinker/models.go | 204 +- .../armservicelinker/models_serde.go | 12 +- 92 files changed, 4718 insertions(+), 4430 deletions(-) diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/CHANGELOG.md b/sdk/resourcemanager/resourceconnector/armresourceconnector/CHANGELOG.md index 575e327112da..3aae379ccb9e 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/CHANGELOG.md +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 0.3.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + + ## 0.3.0 (2023-03-31) ### Features Added diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/autorest.md b/sdk/resourcemanager/resourceconnector/armresourceconnector/autorest.md index c4750561b0a7..d562061d2f21 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/autorest.md +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/a7de71ef99f5ea2aefe38bbd3c55db09c64547e8/specification/resourceconnector/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/a7de71ef99f5ea2aefe38bbd3c55db09c64547e8/specification/resourceconnector/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.3.0 +module-version: 0.3.1 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/constants.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/constants.go index 8552ddd93d2b..50eb55f346a4 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/constants.go +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/constants.go @@ -11,7 +11,7 @@ package armresourceconnector const ( moduleName = "armresourceconnector" - moduleVersion = "v0.3.0" + moduleVersion = "v0.3.1" ) // AccessProfileType - Name which contains the role of the kubeconfig. diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/models.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/models.go index bfea94dce2ab..1f32cee5b290 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/models.go +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/models.go @@ -14,130 +14,130 @@ import "time" // Appliances definition. type Appliance struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // Identity for the resource. - Identity *Identity `json:"identity,omitempty"` + Identity *Identity // The set of properties specific to an Appliance - Properties *ApplianceProperties `json:"properties,omitempty"` + Properties *ApplianceProperties // 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; 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 } // ApplianceCredentialKubeconfig - Cluster User Credential appliance. type ApplianceCredentialKubeconfig struct { // READ-ONLY; Name which contains the role of the kubeconfig. - Name *AccessProfileType `json:"name,omitempty" azure:"ro"` + Name *AccessProfileType // READ-ONLY; Contains the kubeconfig value. - Value *string `json:"value,omitempty" azure:"ro"` + Value *string } // ApplianceListClusterCustomerUserCredentialResults - The List Cluster Customer User Credential Results appliance. type ApplianceListClusterCustomerUserCredentialResults struct { // READ-ONLY; The list of appliance kubeconfigs. - Kubeconfigs []*ApplianceCredentialKubeconfig `json:"kubeconfigs,omitempty" azure:"ro"` + Kubeconfigs []*ApplianceCredentialKubeconfig // READ-ONLY; Map of Customer User Public and Private SSH Keys - SSHKeys map[string]*SSHKey `json:"sshKeys,omitempty" azure:"ro"` + SSHKeys map[string]*SSHKey } // ApplianceListCredentialResults - The List Cluster User Credential appliance. type ApplianceListCredentialResults struct { // READ-ONLY; Contains the REP (rendezvous endpoint) and “Listener” access token from notification service (NS). - HybridConnectionConfig *HybridConnectionConfig `json:"hybridConnectionConfig,omitempty" azure:"ro"` + HybridConnectionConfig *HybridConnectionConfig // READ-ONLY; The list of appliance kubeconfigs. - Kubeconfigs []*ApplianceCredentialKubeconfig `json:"kubeconfigs,omitempty" azure:"ro"` + Kubeconfigs []*ApplianceCredentialKubeconfig } // ApplianceListResult - The List Appliances operation response. type ApplianceListResult struct { // READ-ONLY; The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; The list of Appliances. - Value []*Appliance `json:"value,omitempty" azure:"ro"` + Value []*Appliance } // ApplianceOperation - Appliances operation. type ApplianceOperation struct { // Describes the properties of an Appliances Operation Value Display. - Display *ApplianceOperationValueDisplay `json:"display,omitempty"` + Display *ApplianceOperationValueDisplay // READ-ONLY; Is this Operation a data plane operation - IsDataAction *bool `json:"isDataAction,omitempty" azure:"ro"` + IsDataAction *bool // READ-ONLY; The name of the compute operation. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The origin of the compute operation. - Origin *string `json:"origin,omitempty" azure:"ro"` + Origin *string } // ApplianceOperationValueDisplay - Describes the properties of an Appliances Operation Value Display. type ApplianceOperationValueDisplay struct { // READ-ONLY; The description of the operation. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the compute operation. - Operation *string `json:"operation,omitempty" azure:"ro"` + Operation *string // READ-ONLY; The resource provider for the operation. - Provider *string `json:"provider,omitempty" azure:"ro"` + Provider *string // READ-ONLY; The display name of the resource the operation applies to. - Resource *string `json:"resource,omitempty" azure:"ro"` + Resource *string } // ApplianceOperationsList - Lists of Appliances operations. type ApplianceOperationsList struct { // REQUIRED; Array of applianceOperation - Value []*ApplianceOperation `json:"value,omitempty"` + Value []*ApplianceOperation // Next page of operations. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string } // ApplianceProperties - Properties for an appliance. type ApplianceProperties struct { // Represents a supported Fabric/Infra. (AKSEdge etc…). - Distro *Distro `json:"distro,omitempty"` + Distro *Distro // Contains infrastructure information about the Appliance - InfrastructureConfig *AppliancePropertiesInfrastructureConfig `json:"infrastructureConfig,omitempty"` + InfrastructureConfig *AppliancePropertiesInfrastructureConfig // Certificates pair used to download MSI certificate from HIS - PublicKey *string `json:"publicKey,omitempty"` + PublicKey *string // Version of the Appliance - Version *string `json:"version,omitempty"` + Version *string // READ-ONLY; The current deployment or provisioning state, which only appears in the response. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; Appliance’s health and state of connection to on-prem - Status *Status `json:"status,omitempty" azure:"ro"` + Status *Status } // AppliancePropertiesInfrastructureConfig - Contains infrastructure information about the Appliance type AppliancePropertiesInfrastructureConfig struct { // Information about the connected appliance. - Provider *Provider `json:"provider,omitempty"` + Provider *Provider } // AppliancesClientBeginCreateOrUpdateOptions contains the optional parameters for the AppliancesClient.BeginCreateOrUpdate @@ -201,190 +201,190 @@ type AppliancesClientUpdateOptions 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 } // HybridConnectionConfig - Contains the REP (rendezvous endpoint) and “Listener” access token from notification service (NS). type HybridConnectionConfig struct { // READ-ONLY; Timestamp when this token will be expired. - ExpirationTime *int64 `json:"expirationTime,omitempty" azure:"ro"` + ExpirationTime *int64 // READ-ONLY; Name of the connection - HybridConnectionName *string `json:"hybridConnectionName,omitempty" azure:"ro"` + HybridConnectionName *string // READ-ONLY; Name of the notification service. - Relay *string `json:"relay,omitempty" azure:"ro"` + Relay *string // READ-ONLY; Listener access token - Token *string `json:"token,omitempty" azure:"ro"` + Token *string } // Identity for the resource. type Identity struct { // The identity type. - Type *ResourceIdentityType `json:"type,omitempty"` + Type *ResourceIdentityType // 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 } // PatchableAppliance - The Appliances patchable resource definition. type PatchableAppliance struct { // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*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 } // SSHKey - Appliance SSHKey definition. type SSHKey struct { // User Private Key. - PrivateKey *string `json:"privateKey,omitempty"` + PrivateKey *string // User Public Key. - PublicKey *string `json:"publicKey,omitempty"` + PublicKey *string } // SupportedVersion - The SupportedVersion object for appliance. type SupportedVersion struct { // READ-ONLY; This is the metadata of the supported newer version. - Metadata *SupportedVersionMetadata `json:"metadata,omitempty" azure:"ro"` + Metadata *SupportedVersionMetadata // READ-ONLY; The newer version available for upgrade. - Version *string `json:"version,omitempty" azure:"ro"` + Version *string } // SupportedVersionCatalogVersion - The SupportedVersionCatalogVersion object for appliance. type SupportedVersionCatalogVersion struct { // READ-ONLY; The newer supported version catalog version data. - Data *SupportedVersionCatalogVersionData `json:"data,omitempty" azure:"ro"` + Data *SupportedVersionCatalogVersionData // READ-ONLY; The catalog version name for the version available for upgrade. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The catalog version namespace for the version available for upgrade. - Namespace *string `json:"namespace,omitempty" azure:"ro"` + Namespace *string } // SupportedVersionCatalogVersionData - The SupportedVersionCatalogVersionData object for appliance. type SupportedVersionCatalogVersionData struct { // READ-ONLY; The image audience name for the version available for upgrade. - Audience *string `json:"audience,omitempty" azure:"ro"` + Audience *string // READ-ONLY; The image catalog name for the version available for upgrade. - Catalog *string `json:"catalog,omitempty" azure:"ro"` + Catalog *string // READ-ONLY; The image offer name for the version available for upgrade. - Offer *string `json:"offer,omitempty" azure:"ro"` + Offer *string // READ-ONLY; The image version for the version available for upgrade. - Version *string `json:"version,omitempty" azure:"ro"` + Version *string } // SupportedVersionMetadata - The SupportedVersionMetadata object for appliance. type SupportedVersionMetadata struct { // READ-ONLY; The newer supported version catalog version. - CatalogVersion *SupportedVersionCatalogVersion `json:"catalogVersion,omitempty" azure:"ro"` + CatalogVersion *SupportedVersionCatalogVersion } // 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 } // UpgradeGraph - The Upgrade Graph for appliance. type UpgradeGraph struct { // The properties of supported version - Properties *UpgradeGraphProperties `json:"properties,omitempty"` + Properties *UpgradeGraphProperties // READ-ONLY; The appliance resource path - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The release train name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string } // UpgradeGraphProperties - The Upgrade Graph Properties for appliance. type UpgradeGraphProperties struct { // READ-ONLY; The current appliance version - ApplianceVersion *string `json:"applianceVersion,omitempty" azure:"ro"` + ApplianceVersion *string // READ-ONLY; This contains the current version and supported upgrade versions. - SupportedVersions []*SupportedVersion `json:"supportedVersions,omitempty" azure:"ro"` + SupportedVersions []*SupportedVersion } diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/models_serde.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/models_serde.go index 280f0d991d5b..89d3b29aa55e 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/models_serde.go +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/models_serde.go @@ -381,7 +381,7 @@ func (a *AppliancePropertiesInfrastructureConfig) UnmarshalJSON(data []byte) err // 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) } @@ -944,6 +944,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/resourcegraph/armresourcegraph/CHANGELOG.md b/sdk/resourcemanager/resourcegraph/armresourcegraph/CHANGELOG.md index 12a30a1d29c5..1cbcc680a763 100644 --- a/sdk/resourcemanager/resourcegraph/armresourcegraph/CHANGELOG.md +++ b/sdk/resourcemanager/resourcegraph/armresourcegraph/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 0.7.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + + ## 0.7.0 (2023-03-31) ### Features Added diff --git a/sdk/resourcemanager/resourcegraph/armresourcegraph/autorest.md b/sdk/resourcemanager/resourcegraph/armresourcegraph/autorest.md index cb4a1235c481..cc85bec615e0 100644 --- a/sdk/resourcemanager/resourcegraph/armresourcegraph/autorest.md +++ b/sdk/resourcemanager/resourcegraph/armresourcegraph/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/resourcegraph/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/resourcegraph/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.7.0 +module-version: 0.7.1 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resourcegraph/armresourcegraph/constants.go b/sdk/resourcemanager/resourcegraph/armresourcegraph/constants.go index 87a388050a44..fd8addc81179 100644 --- a/sdk/resourcemanager/resourcegraph/armresourcegraph/constants.go +++ b/sdk/resourcemanager/resourcegraph/armresourcegraph/constants.go @@ -11,7 +11,7 @@ package armresourcegraph const ( moduleName = "armresourcegraph" - moduleVersion = "v0.7.0" + moduleVersion = "v0.7.1" ) // AuthorizationScopeFilter - Defines what level of authorization resources should be returned based on the which subscriptions diff --git a/sdk/resourcemanager/resourcegraph/armresourcegraph/models.go b/sdk/resourcemanager/resourcegraph/armresourcegraph/models.go index 2703128bd626..810f2c632234 100644 --- a/sdk/resourcemanager/resourcegraph/armresourcegraph/models.go +++ b/sdk/resourcemanager/resourcegraph/armresourcegraph/models.go @@ -24,10 +24,10 @@ type ClientResourcesOptions struct { // Column - Query result column descriptor. type Column struct { // REQUIRED; Column name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Column data type. - Type *ColumnDataType `json:"type,omitempty"` + Type *ColumnDataType } // DateTimeInterval - An interval in time specifying the date and time for the inclusive start and exclusive end, i.e. [start, @@ -35,32 +35,32 @@ type Column struct { type DateTimeInterval struct { // REQUIRED; A datetime indicating the exclusive/open end of the time interval, i.e. [start,end). Specifying an end that occurs // chronologically before start will result in an error. - End *time.Time `json:"end,omitempty"` + End *time.Time // REQUIRED; A datetime indicating the inclusive/closed start of the time interval, i.e. [start, end). Specifying a start // that occurs chronologically after end will result in an error. - Start *time.Time `json:"start,omitempty"` + Start *time.Time } // Error details. type Error struct { // REQUIRED; Error code identifying the specific error. - Code *string `json:"code,omitempty"` + Code *string // REQUIRED; A human readable error message. - Message *string `json:"message,omitempty"` + Message *string // Error details - Details []*ErrorDetails `json:"details,omitempty"` + Details []*ErrorDetails } // ErrorDetails - Error details. type ErrorDetails struct { // REQUIRED; Error code identifying the specific error. - Code *string `json:"code,omitempty"` + Code *string // REQUIRED; A human readable error message. - Message *string `json:"message,omitempty"` + Message *string // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]any @@ -69,7 +69,7 @@ type ErrorDetails struct { // ErrorResponse - An error response from the API. type ErrorResponse struct { // REQUIRED; Error information. - Error *Error `json:"error,omitempty"` + Error *Error } // FacetClassification provides polymorphic access to related types. @@ -84,10 +84,10 @@ type FacetClassification interface { // Facet - A facet containing additional statistics on the response of a query. Can be either FacetResult or FacetError. type Facet struct { // REQUIRED; Facet expression, same as in the corresponding facet request. - Expression *string `json:"expression,omitempty"` + Expression *string // REQUIRED; Result type - ResultType *string `json:"resultType,omitempty"` + ResultType *string } // GetFacet implements the FacetClassification interface for type Facet. @@ -96,13 +96,13 @@ func (f *Facet) GetFacet() *Facet { return f } // FacetError - A facet whose execution resulted in an error. type FacetError struct { // REQUIRED; An array containing detected facet errors with details. - Errors []*ErrorDetails `json:"errors,omitempty"` + Errors []*ErrorDetails // REQUIRED; Facet expression, same as in the corresponding facet request. - Expression *string `json:"expression,omitempty"` + Expression *string // REQUIRED; Result type - ResultType *string `json:"resultType,omitempty"` + ResultType *string } // GetFacet implements the FacetClassification interface for type FacetError. @@ -116,44 +116,44 @@ func (f *FacetError) GetFacet() *Facet { // FacetRequest - A request to compute additional statistics (facets) over the query results. type FacetRequest struct { // REQUIRED; The column or list of columns to summarize by - Expression *string `json:"expression,omitempty"` + Expression *string // The options for facet evaluation - Options *FacetRequestOptions `json:"options,omitempty"` + Options *FacetRequestOptions } // FacetRequestOptions - The options for facet evaluation type FacetRequestOptions struct { // Specifies the filter condition for the 'where' clause which will be run on main query's result, just before the actual // faceting. - Filter *string `json:"filter,omitempty"` + Filter *string // The column name or query expression to sort on. Defaults to count if not present. - SortBy *string `json:"sortBy,omitempty"` + SortBy *string // The sorting order by the selected column (count by default). - SortOrder *FacetSortOrder `json:"sortOrder,omitempty"` + SortOrder *FacetSortOrder // The maximum number of facet rows that should be returned. - Top *int32 `json:"$top,omitempty"` + Top *int32 } // FacetResult - Successfully executed facet containing additional statistics on the response of a query. type FacetResult struct { // REQUIRED; Number of records returned in the facet response. - Count *int32 `json:"count,omitempty"` + Count *int32 // REQUIRED; A JObject array or Table containing the desired facets. Only present if the facet is valid. - Data any `json:"data,omitempty"` + Data any // REQUIRED; Facet expression, same as in the corresponding facet request. - Expression *string `json:"expression,omitempty"` + Expression *string // REQUIRED; Result type - ResultType *string `json:"resultType,omitempty"` + ResultType *string // REQUIRED; Number of total records in the facet results. - TotalRecords *int64 `json:"totalRecords,omitempty"` + TotalRecords *int64 } // GetFacet implements the FacetClassification interface for type FacetResult. @@ -167,35 +167,35 @@ func (f *FacetResult) GetFacet() *Facet { // Operation - Resource Graph REST API operation definition. type Operation struct { // Display metadata associated with the operation. - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // Operation name: {provider}/{resource}/{operation} - Name *string `json:"name,omitempty"` + Name *string // The origin of operations. - Origin *string `json:"origin,omitempty"` + Origin *string } // OperationDisplay - Display metadata associated with the operation. type OperationDisplay struct { // Description for the operation. - Description *string `json:"description,omitempty"` + Description *string // Type of operation: get, read, delete, etc. - Operation *string `json:"operation,omitempty"` + Operation *string // Service provider: Microsoft Resource Graph. - Provider *string `json:"provider,omitempty"` + Provider *string // Resource on which the operation is performed etc. - Resource *string `json:"resource,omitempty"` + Resource *string } // OperationListResult - Result of the request to list Resource Graph operations. It contains a list of operations and a URL // link to get the next set of results. type OperationListResult struct { // List of Resource Graph operations supported by the Resource Graph resource provider. - Value []*Operation `json:"value,omitempty"` + Value []*Operation } // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. @@ -206,107 +206,107 @@ type OperationsClientListOptions struct { // QueryRequest - Describes a query to be executed. type QueryRequest struct { // REQUIRED; The resources query. - Query *string `json:"query,omitempty"` + Query *string // An array of facet requests to be computed against the query result. - Facets []*FacetRequest `json:"facets,omitempty"` + Facets []*FacetRequest // Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ] - ManagementGroups []*string `json:"managementGroups,omitempty"` + ManagementGroups []*string // The query evaluation options - Options *QueryRequestOptions `json:"options,omitempty"` + Options *QueryRequestOptions // Azure subscriptions against which to execute the query. - Subscriptions []*string `json:"subscriptions,omitempty"` + Subscriptions []*string } // QueryRequestOptions - The options for query evaluation type QueryRequestOptions struct { // Only applicable for tenant and management group level queries to decide whether to allow partial scopes for result in case // the number of subscriptions exceed allowed limits. - AllowPartialScopes *bool `json:"allowPartialScopes,omitempty"` + AllowPartialScopes *bool // Defines what level of authorization resources should be returned based on the which subscriptions and management groups // are passed as scopes. - AuthorizationScopeFilter *AuthorizationScopeFilter `json:"authorizationScopeFilter,omitempty"` + AuthorizationScopeFilter *AuthorizationScopeFilter // Defines in which format query result returned. - ResultFormat *ResultFormat `json:"resultFormat,omitempty"` + ResultFormat *ResultFormat // The number of rows to skip from the beginning of the results. Overrides the next page offset when $skipToken property is // present. - Skip *int32 `json:"$skip,omitempty"` + Skip *int32 // Continuation token for pagination, capturing the next page size and offset, as well as the context of the query. - SkipToken *string `json:"$skipToken,omitempty"` + SkipToken *string // The maximum number of rows that the query should return. Overrides the page size when $skipToken property is present. - Top *int32 `json:"$top,omitempty"` + Top *int32 } // QueryResponse - Query result. type QueryResponse struct { // REQUIRED; Number of records returned in the current response. In the case of paging, this is the number of records in the // current page. - Count *int64 `json:"count,omitempty"` + Count *int64 // REQUIRED; Query output in JObject array or Table format. - Data any `json:"data,omitempty"` + Data any // REQUIRED; Indicates whether the query results are truncated. - ResultTruncated *ResultTruncated `json:"resultTruncated,omitempty"` + ResultTruncated *ResultTruncated // REQUIRED; Number of total records matching the query. - TotalRecords *int64 `json:"totalRecords,omitempty"` + TotalRecords *int64 // Query facets. - Facets []FacetClassification `json:"facets,omitempty"` + Facets []FacetClassification // When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current // request) to retrieve the next page of data. - SkipToken *string `json:"$skipToken,omitempty"` + SkipToken *string } // ResourcesHistoryRequest - Describes a history request to be executed. type ResourcesHistoryRequest struct { // Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ] - ManagementGroups []*string `json:"managementGroups,omitempty"` + ManagementGroups []*string // The history request evaluation options - Options *ResourcesHistoryRequestOptions `json:"options,omitempty"` + Options *ResourcesHistoryRequestOptions // The resources query. - Query *string `json:"query,omitempty"` + Query *string // Azure subscriptions against which to execute the query. - Subscriptions []*string `json:"subscriptions,omitempty"` + Subscriptions []*string } // ResourcesHistoryRequestOptions - The options for history request evaluation type ResourcesHistoryRequestOptions struct { // The time interval used to fetch history. - Interval *DateTimeInterval `json:"interval,omitempty"` + Interval *DateTimeInterval // Defines in which format query result returned. - ResultFormat *ResultFormat `json:"resultFormat,omitempty"` + ResultFormat *ResultFormat // The number of rows to skip from the beginning of the results. Overrides the next page offset when $skipToken property is // present. - Skip *int32 `json:"$skip,omitempty"` + Skip *int32 // Continuation token for pagination, capturing the next page size and offset, as well as the context of the query. - SkipToken *string `json:"$skipToken,omitempty"` + SkipToken *string // The maximum number of rows that the query should return. Overrides the page size when $skipToken property is present. - Top *int32 `json:"$top,omitempty"` + Top *int32 } // Table - Query output in tabular format. type Table struct { // REQUIRED; Query result column descriptors. - Columns []*Column `json:"columns,omitempty"` + Columns []*Column // REQUIRED; Query result rows. - Rows [][]any `json:"rows,omitempty"` + Rows [][]any } diff --git a/sdk/resourcemanager/resourcegraph/armresourcegraph/models_serde.go b/sdk/resourcemanager/resourcegraph/armresourcegraph/models_serde.go index 924343a7640a..d1eea349eda3 100644 --- a/sdk/resourcemanager/resourcegraph/armresourcegraph/models_serde.go +++ b/sdk/resourcemanager/resourcegraph/armresourcegraph/models_serde.go @@ -326,7 +326,7 @@ func (f *FacetRequestOptions) UnmarshalJSON(data []byte) error { func (f FacetResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "count", f.Count) - populate(objectMap, "data", &f.Data) + populateAny(objectMap, "data", f.Data) populate(objectMap, "expression", f.Expression) objectMap["resultType"] = "FacetResult" populate(objectMap, "totalRecords", f.TotalRecords) @@ -560,7 +560,7 @@ func (q *QueryRequestOptions) UnmarshalJSON(data []byte) error { func (q QueryResponse) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "count", q.Count) - populate(objectMap, "data", &q.Data) + populateAny(objectMap, "data", q.Data) populate(objectMap, "facets", q.Facets) populate(objectMap, "resultTruncated", q.ResultTruncated) populate(objectMap, "$skipToken", q.SkipToken) @@ -726,6 +726,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/resourcemover/armresourcemover/CHANGELOG.md b/sdk/resourcemanager/resourcemover/armresourcemover/CHANGELOG.md index 2239d2582554..6fa0eeb46092 100644 --- a/sdk/resourcemanager/resourcemover/armresourcemover/CHANGELOG.md +++ b/sdk/resourcemanager/resourcemover/armresourcemover/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 1.1.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + + ## 1.1.0 (2023-03-31) ### Features Added diff --git a/sdk/resourcemanager/resourcemover/armresourcemover/autorest.md b/sdk/resourcemanager/resourcemover/armresourcemover/autorest.md index e32baaee1e6b..ed7f14bc8313 100644 --- a/sdk/resourcemanager/resourcemover/armresourcemover/autorest.md +++ b/sdk/resourcemanager/resourcemover/armresourcemover/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/resourcemover/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/resourcemover/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/resourcemover/armresourcemover/constants.go b/sdk/resourcemanager/resourcemover/armresourcemover/constants.go index 8fd72c4f7bbd..33b3cc5e36d0 100644 --- a/sdk/resourcemanager/resourcemover/armresourcemover/constants.go +++ b/sdk/resourcemanager/resourcemover/armresourcemover/constants.go @@ -11,7 +11,7 @@ package armresourcemover const ( moduleName = "armresourcemover" - moduleVersion = "v1.1.0" + moduleVersion = "v1.1.1" ) // CreatedByType - The type of identity that created the resource. diff --git a/sdk/resourcemanager/resourcemover/armresourcemover/models.go b/sdk/resourcemanager/resourcemover/armresourcemover/models.go index 6de363841a3b..7095fda29714 100644 --- a/sdk/resourcemanager/resourcemover/armresourcemover/models.go +++ b/sdk/resourcemanager/resourcemover/armresourcemover/models.go @@ -14,37 +14,37 @@ import "time" // AffectedMoveResource - The RP custom operation error info. type AffectedMoveResource struct { // READ-ONLY; The affected move resource id. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The affected move resources. - MoveResources []*AffectedMoveResource `json:"moveResources,omitempty" azure:"ro"` + MoveResources []*AffectedMoveResource // READ-ONLY; The affected move resource source id. - SourceID *string `json:"sourceId,omitempty" azure:"ro"` + SourceID *string } // AutomaticResolutionProperties - Defines the properties for automatic resolution. type AutomaticResolutionProperties struct { // Gets the MoveResource ARM ID of the dependent resource if the resolution type is Automatic. - MoveResourceID *string `json:"moveResourceId,omitempty"` + MoveResourceID *string } // AvailabilitySetResourceSettings - Gets or sets the availability set resource settings. type AvailabilitySetResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string // REQUIRED; Gets or sets the target Resource name. - TargetResourceName *string `json:"targetResourceName,omitempty"` + TargetResourceName *string // Gets or sets the target fault domain. - FaultDomain *int32 `json:"faultDomain,omitempty"` + FaultDomain *int32 // Gets or sets the Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // Gets or sets the target update domain. - UpdateDomain *int32 `json:"updateDomain,omitempty"` + UpdateDomain *int32 } // GetResourceSettings implements the ResourceSettingsClassification interface for type AvailabilitySetResourceSettings. @@ -58,55 +58,55 @@ func (a *AvailabilitySetResourceSettings) GetResourceSettings() *ResourceSetting // AzureResourceReference - Defines reference to an Azure resource. type AzureResourceReference struct { // REQUIRED; Gets the ARM resource ID of the tracked resource being referenced. - SourceArmResourceID *string `json:"sourceArmResourceId,omitempty"` + SourceArmResourceID *string } // BulkRemoveRequest - Defines the request body for bulk remove of move resources operation. type BulkRemoveRequest struct { // Defines the move resource input type. - MoveResourceInputType *MoveResourceInputType `json:"moveResourceInputType,omitempty"` + MoveResourceInputType *MoveResourceInputType // Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via // moveResourceInputType property. - MoveResources []*string `json:"moveResources,omitempty"` + MoveResources []*string // Gets or sets a value indicating whether the operation needs to only run pre-requisite. - ValidateOnly *bool `json:"validateOnly,omitempty"` + ValidateOnly *bool } // CommitRequest - Defines the request body for commit operation. type CommitRequest struct { // REQUIRED; Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched // via moveResourceInputType property. - MoveResources []*string `json:"moveResources,omitempty"` + MoveResources []*string // Defines the move resource input type. - MoveResourceInputType *MoveResourceInputType `json:"moveResourceInputType,omitempty"` + MoveResourceInputType *MoveResourceInputType // Gets or sets a value indicating whether the operation needs to only run pre-requisite. - ValidateOnly *bool `json:"validateOnly,omitempty"` + ValidateOnly *bool } // DiscardRequest - Defines the request body for discard operation. type DiscardRequest struct { // REQUIRED; Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched // via moveResourceInputType property. - MoveResources []*string `json:"moveResources,omitempty"` + MoveResources []*string // Defines the move resource input type. - MoveResourceInputType *MoveResourceInputType `json:"moveResourceInputType,omitempty"` + MoveResourceInputType *MoveResourceInputType // Gets or sets a value indicating whether the operation needs to only run pre-requisite. - ValidateOnly *bool `json:"validateOnly,omitempty"` + ValidateOnly *bool } // DiskEncryptionSetResourceSettings - Defines the disk encryption set resource settings. type DiskEncryptionSetResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string // REQUIRED; Gets or sets the target Resource name. - TargetResourceName *string `json:"targetResourceName,omitempty"` + TargetResourceName *string } // GetResourceSettings implements the ResourceSettingsClassification interface for type DiskEncryptionSetResourceSettings. @@ -127,54 +127,54 @@ type Display struct { // resource Delete any 'display.provider' resource Perform any other action on any // 'display.provider' resource Prescriptive guidance for namespace: Read any 'display.resource' Create or Update any 'display.resource' // Delete any 'display.resource' 'ActionName' any 'display.resources'. - Description *string `json:"description,omitempty"` + Description *string // Gets or sets the operation. The localized friendly name for the operation, as it should be shown to the user. It should // be concise (to fit in drop downs) but clear (i.e. self-documenting). It should // use Title Casing. Prescriptive guidance: Read Create or Update Delete 'ActionName'. - Operation *string `json:"operation,omitempty"` + Operation *string // Gets or sets the provider. The localized friendly form of the resource provider name – it is expected to also include the // publisher/company responsible. It should use Title Casing and begin with // "Microsoft" for 1st party services. e.g. "Microsoft Monitoring Insights" or "Microsoft Compute.". - Provider *string `json:"provider,omitempty"` + Provider *string // Gets or sets the resource. The localized friendly form of the resource related to this action/operation – it should match // the public documentation for the resource provider. It should use Title // Casing. This value should be unique for a particular URL type (e.g. nested types should notreuse their parent’s display.resource // field) e.g. "Virtual Machines" or "Scheduler Job Collections", or // "Virtual Machine VM Sizes" or "Scheduler Jobs". - Resource *string `json:"resource,omitempty"` + Resource *string } // Identity - Defines the MSI properties of the Move Collection. type Identity struct { // Gets or sets the principal id. - PrincipalID *string `json:"principalId,omitempty"` + PrincipalID *string // Gets or sets the tenant id. - TenantID *string `json:"tenantId,omitempty"` + TenantID *string // The type of identity used for the resource mover service. - Type *ResourceIdentityType `json:"type,omitempty"` + Type *ResourceIdentityType } // JobStatus - Defines the job status. type JobStatus struct { // READ-ONLY; Defines the job name. - JobName *JobName `json:"jobName,omitempty" azure:"ro"` + JobName *JobName // READ-ONLY; Gets or sets the monitoring job percentage. - JobProgress *string `json:"jobProgress,omitempty" azure:"ro"` + JobProgress *string } // KeyVaultResourceSettings - Defines the key vault resource settings. type KeyVaultResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string // REQUIRED; Gets or sets the target Resource name. - TargetResourceName *string `json:"targetResourceName,omitempty"` + TargetResourceName *string } // GetResourceSettings implements the ResourceSettingsClassification interface for type KeyVaultResourceSettings. @@ -188,69 +188,69 @@ func (k *KeyVaultResourceSettings) GetResourceSettings() *ResourceSettings { // LBBackendAddressPoolResourceSettings - Defines load balancer backend address pool properties. type LBBackendAddressPoolResourceSettings struct { // Gets or sets the backend address pool name. - Name *string `json:"name,omitempty"` + Name *string } // LBFrontendIPConfigurationResourceSettings - Defines load balancer frontend IP configuration properties. type LBFrontendIPConfigurationResourceSettings struct { // Gets or sets the frontend IP configuration name. - Name *string `json:"name,omitempty"` + Name *string // Gets or sets the IP address of the Load Balancer.This is only specified if a specific private IP address shall be allocated // from the subnet specified in subnetRef. - PrivateIPAddress *string `json:"privateIpAddress,omitempty"` + PrivateIPAddress *string // Gets or sets PrivateIP allocation method (Static/Dynamic). - PrivateIPAllocationMethod *string `json:"privateIpAllocationMethod,omitempty"` + PrivateIPAllocationMethod *string // Defines reference to subnet. - Subnet *SubnetReference `json:"subnet,omitempty"` + Subnet *SubnetReference // Gets or sets the csv list of zones. - Zones *string `json:"zones,omitempty"` + Zones *string } // LoadBalancerBackendAddressPoolReference - Defines reference to load balancer backend address pools. type LoadBalancerBackendAddressPoolReference struct { // REQUIRED; Gets the ARM resource ID of the tracked resource being referenced. - SourceArmResourceID *string `json:"sourceArmResourceId,omitempty"` + SourceArmResourceID *string // Gets the name of the proxy resource on the target side. - Name *string `json:"name,omitempty"` + Name *string } // LoadBalancerNatRuleReference - Defines reference to load balancer NAT rules. type LoadBalancerNatRuleReference struct { // REQUIRED; Gets the ARM resource ID of the tracked resource being referenced. - SourceArmResourceID *string `json:"sourceArmResourceId,omitempty"` + SourceArmResourceID *string // Gets the name of the proxy resource on the target side. - Name *string `json:"name,omitempty"` + Name *string } // LoadBalancerResourceSettings - Defines the load balancer resource settings. type LoadBalancerResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string // REQUIRED; Gets or sets the target Resource name. - TargetResourceName *string `json:"targetResourceName,omitempty"` + TargetResourceName *string // Gets or sets the backend address pools of the load balancer. - BackendAddressPools []*LBBackendAddressPoolResourceSettings `json:"backendAddressPools,omitempty"` + BackendAddressPools []*LBBackendAddressPoolResourceSettings // Gets or sets the frontend IP configurations of the load balancer. - FrontendIPConfigurations []*LBFrontendIPConfigurationResourceSettings `json:"frontendIPConfigurations,omitempty"` + FrontendIPConfigurations []*LBFrontendIPConfigurationResourceSettings // Gets or sets load balancer sku (Basic/Standard). - SKU *string `json:"sku,omitempty"` + SKU *string // Gets or sets the Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // Gets or sets the csv list of zones common for all frontend IP configurations. Note this is given precedence only if frontend // IP configurations settings are not present. - Zones *string `json:"zones,omitempty"` + Zones *string } // GetResourceSettings implements the ResourceSettingsClassification interface for type LoadBalancerResourceSettings. @@ -264,67 +264,67 @@ func (l *LoadBalancerResourceSettings) GetResourceSettings() *ResourceSettings { // ManualResolutionProperties - Defines the properties for manual resolution. type ManualResolutionProperties struct { // Gets or sets the target resource ARM ID of the dependent resource if the resource type is Manual. - TargetID *string `json:"targetId,omitempty"` + TargetID *string } // MoveCollection - Define the move collection. type MoveCollection struct { // Defines the MSI properties of the Move Collection. - Identity *Identity `json:"identity,omitempty"` + Identity *Identity // The geo-location where the resource lives. - Location *string `json:"location,omitempty"` + Location *string // Defines the move collection properties. - Properties *MoveCollectionProperties `json:"properties,omitempty"` + Properties *MoveCollectionProperties // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; The etag of the resource. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; Fully qualified resource Id for 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; 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. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // MoveCollectionProperties - Defines the move collection properties. type MoveCollectionProperties struct { // REQUIRED; Gets or sets the source region. - SourceRegion *string `json:"sourceRegion,omitempty"` + SourceRegion *string // REQUIRED; Gets or sets the target region. - TargetRegion *string `json:"targetRegion,omitempty"` + TargetRegion *string // READ-ONLY; Defines the move collection errors. - Errors *MoveCollectionPropertiesErrors `json:"errors,omitempty" azure:"ro"` + Errors *MoveCollectionPropertiesErrors // READ-ONLY; Defines the provisioning states. - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ProvisioningState } // MoveCollectionPropertiesErrors - Defines the move collection errors. type MoveCollectionPropertiesErrors struct { // The move resource error body. - Properties *MoveResourceErrorBody `json:"properties,omitempty"` + Properties *MoveResourceErrorBody } // MoveCollectionResultList - Defines the collection of move collections. type MoveCollectionResultList struct { // Gets the value of next link. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // Gets the list of move collections. - Value []*MoveCollection `json:"value,omitempty"` + Value []*MoveCollection } // MoveCollectionsClientBeginBulkRemoveOptions contains the optional parameters for the MoveCollectionsClient.BeginBulkRemove @@ -413,170 +413,170 @@ type MoveCollectionsClientUpdateOptions struct { // MoveErrorInfo - The move custom error info. type MoveErrorInfo struct { // READ-ONLY; The affected move resources. - MoveResources []*AffectedMoveResource `json:"moveResources,omitempty" azure:"ro"` + MoveResources []*AffectedMoveResource } // MoveResource - Defines the move resource. type MoveResource struct { // Defines the move resource properties. - Properties *MoveResourceProperties `json:"properties,omitempty"` + Properties *MoveResourceProperties // READ-ONLY; Fully qualified resource Id for 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; 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. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // MoveResourceCollection - Defines the collection of move resources. type MoveResourceCollection struct { // Gets the value of next link. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // Gets or sets the list of summary items and the field on which summary is done. - SummaryCollection *SummaryCollection `json:"summaryCollection,omitempty"` + SummaryCollection *SummaryCollection // Gets the list of move resources. - Value []*MoveResource `json:"value,omitempty"` + Value []*MoveResource // READ-ONLY; Gets the total count. - TotalCount *int64 `json:"totalCount,omitempty" azure:"ro"` + TotalCount *int64 } // MoveResourceDependency - Defines the dependency of the move resource. type MoveResourceDependency struct { // Defines the properties for automatic resolution. - AutomaticResolution *AutomaticResolutionProperties `json:"automaticResolution,omitempty"` + AutomaticResolution *AutomaticResolutionProperties // Defines the dependency type. - DependencyType *DependencyType `json:"dependencyType,omitempty"` + DependencyType *DependencyType // Gets the source ARM ID of the dependent resource. - ID *string `json:"id,omitempty"` + ID *string // Gets or sets a value indicating whether the dependency is optional. - IsOptional *string `json:"isOptional,omitempty"` + IsOptional *string // Defines the properties for manual resolution. - ManualResolution *ManualResolutionProperties `json:"manualResolution,omitempty"` + ManualResolution *ManualResolutionProperties // Gets the dependency resolution status. - ResolutionStatus *string `json:"resolutionStatus,omitempty"` + ResolutionStatus *string // Defines the resolution type. - ResolutionType *ResolutionType `json:"resolutionType,omitempty"` + ResolutionType *ResolutionType } // MoveResourceDependencyOverride - Defines the dependency override of the move resource. type MoveResourceDependencyOverride struct { // Gets or sets the ARM ID of the dependent resource. - ID *string `json:"id,omitempty"` + ID *string // Gets or sets the resource ARM id of either the MoveResource or the resource ARM ID of the dependent resource. - TargetID *string `json:"targetId,omitempty"` + TargetID *string } // MoveResourceError - An error response from the azure resource mover service. type MoveResourceError struct { // The move resource error body. - Properties *MoveResourceErrorBody `json:"properties,omitempty"` + Properties *MoveResourceErrorBody } // MoveResourceErrorBody - An error response from the Azure Migrate service. type MoveResourceErrorBody struct { // READ-ONLY; An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - Code *string `json:"code,omitempty" azure:"ro"` + Code *string // READ-ONLY; A list of additional details about the error. - Details []*MoveResourceErrorBody `json:"details,omitempty" azure:"ro"` + Details []*MoveResourceErrorBody // READ-ONLY; A message describing the error, intended to be suitable for display in a user interface. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string // READ-ONLY; The target of the particular error. For example, the name of the property in error. - Target *string `json:"target,omitempty" azure:"ro"` + Target *string } // MoveResourceFilter - Move resource filter. type MoveResourceFilter struct { - Properties *MoveResourceFilterProperties `json:"properties,omitempty"` + Properties *MoveResourceFilterProperties } type MoveResourceFilterProperties struct { // The provisioning state. - ProvisioningState *string `json:"provisioningState,omitempty"` + ProvisioningState *string } // MoveResourceProperties - Defines the move resource properties. type MoveResourceProperties struct { // REQUIRED; Gets or sets the Source ARM Id of the resource. - SourceID *string `json:"sourceId,omitempty"` + SourceID *string // Gets or sets the move resource dependencies overrides. - DependsOnOverrides []*MoveResourceDependencyOverride `json:"dependsOnOverrides,omitempty"` + DependsOnOverrides []*MoveResourceDependencyOverride // Gets or sets the existing target ARM Id of the resource. - ExistingTargetID *string `json:"existingTargetId,omitempty"` + ExistingTargetID *string // Gets or sets the resource settings. - ResourceSettings ResourceSettingsClassification `json:"resourceSettings,omitempty"` + ResourceSettings ResourceSettingsClassification // READ-ONLY; Gets or sets the move resource dependencies. - DependsOn []*MoveResourceDependency `json:"dependsOn,omitempty" azure:"ro"` + DependsOn []*MoveResourceDependency // READ-ONLY; Defines the move resource errors. - Errors *MoveResourcePropertiesErrors `json:"errors,omitempty" azure:"ro"` + Errors *MoveResourcePropertiesErrors // READ-ONLY; Gets a value indicating whether the resolve action is required over the move collection. - IsResolveRequired *bool `json:"isResolveRequired,omitempty" azure:"ro"` + IsResolveRequired *bool // READ-ONLY; Defines the move resource status. - MoveStatus *MoveResourcePropertiesMoveStatus `json:"moveStatus,omitempty" azure:"ro"` + MoveStatus *MoveResourcePropertiesMoveStatus // READ-ONLY; Defines the provisioning states. - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ProvisioningState // READ-ONLY; Gets or sets the source resource settings. - SourceResourceSettings ResourceSettingsClassification `json:"sourceResourceSettings,omitempty" azure:"ro"` + SourceResourceSettings ResourceSettingsClassification // READ-ONLY; Gets or sets the Target ARM Id of the resource. - TargetID *string `json:"targetId,omitempty" azure:"ro"` + TargetID *string } // MoveResourcePropertiesErrors - Defines the move resource errors. type MoveResourcePropertiesErrors struct { // The move resource error body. - Properties *MoveResourceErrorBody `json:"properties,omitempty"` + Properties *MoveResourceErrorBody } // MoveResourcePropertiesMoveStatus - Defines the move resource status. type MoveResourcePropertiesMoveStatus struct { // An error response from the azure resource mover service. - Errors *MoveResourceError `json:"errors,omitempty"` + Errors *MoveResourceError // Defines the job status. - JobStatus *JobStatus `json:"jobStatus,omitempty"` + JobStatus *JobStatus // READ-ONLY; Defines the MoveResource states. - MoveState *MoveState `json:"moveState,omitempty" azure:"ro"` + MoveState *MoveState } // MoveResourceStatus - Defines the move resource status. type MoveResourceStatus struct { // An error response from the azure resource mover service. - Errors *MoveResourceError `json:"errors,omitempty"` + Errors *MoveResourceError // Defines the job status. - JobStatus *JobStatus `json:"jobStatus,omitempty"` + JobStatus *JobStatus // READ-ONLY; Defines the MoveResource states. - MoveState *MoveState `json:"moveState,omitempty" azure:"ro"` + MoveState *MoveState } // MoveResourcesClientBeginCreateOptions contains the optional parameters for the MoveResourcesClient.BeginCreate method. @@ -606,19 +606,19 @@ type MoveResourcesClientListOptions struct { // NetworkInterfaceResourceSettings - Defines the network interface resource settings. type NetworkInterfaceResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string // REQUIRED; Gets or sets the target Resource name. - TargetResourceName *string `json:"targetResourceName,omitempty"` + TargetResourceName *string // Gets or sets a value indicating whether accelerated networking is enabled. - EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableAcceleratedNetworking *bool // Gets or sets the IP configurations of the NIC. - IPConfigurations []*NicIPConfigurationResourceSettings `json:"ipConfigurations,omitempty"` + IPConfigurations []*NicIPConfigurationResourceSettings // Gets or sets the Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // GetResourceSettings implements the ResourceSettingsClassification interface for type NetworkInterfaceResourceSettings. @@ -632,16 +632,16 @@ func (n *NetworkInterfaceResourceSettings) GetResourceSettings() *ResourceSettin // NetworkSecurityGroupResourceSettings - Defines the NSG resource settings. type NetworkSecurityGroupResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string // REQUIRED; Gets or sets the target Resource name. - TargetResourceName *string `json:"targetResourceName,omitempty"` + TargetResourceName *string // Gets or sets Security rules of network security group. - SecurityRules []*NsgSecurityRule `json:"securityRules,omitempty"` + SecurityRules []*NsgSecurityRule // Gets or sets the Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // GetResourceSettings implements the ResourceSettingsClassification interface for type NetworkSecurityGroupResourceSettings. @@ -655,124 +655,124 @@ func (n *NetworkSecurityGroupResourceSettings) GetResourceSettings() *ResourceSe // NicIPConfigurationResourceSettings - Defines NIC IP configuration properties. type NicIPConfigurationResourceSettings struct { // Gets or sets the references of the load balancer backend address pools. - LoadBalancerBackendAddressPools []*LoadBalancerBackendAddressPoolReference `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerBackendAddressPools []*LoadBalancerBackendAddressPoolReference // Gets or sets the references of the load balancer NAT rules. - LoadBalancerNatRules []*LoadBalancerNatRuleReference `json:"loadBalancerNatRules,omitempty"` + LoadBalancerNatRules []*LoadBalancerNatRuleReference // Gets or sets the IP configuration name. - Name *string `json:"name,omitempty"` + Name *string // Gets or sets a value indicating whether this IP configuration is the primary. - Primary *bool `json:"primary,omitempty"` + Primary *bool // Gets or sets the private IP address of the network interface IP Configuration. - PrivateIPAddress *string `json:"privateIpAddress,omitempty"` + PrivateIPAddress *string // Gets or sets the private IP address allocation method. - PrivateIPAllocationMethod *string `json:"privateIpAllocationMethod,omitempty"` + PrivateIPAllocationMethod *string // Defines reference to a public IP. - PublicIP *PublicIPReference `json:"publicIp,omitempty"` + PublicIP *PublicIPReference // Defines reference to subnet. - Subnet *SubnetReference `json:"subnet,omitempty"` + Subnet *SubnetReference } // NsgReference - Defines reference to NSG. type NsgReference struct { // REQUIRED; Gets the ARM resource ID of the tracked resource being referenced. - SourceArmResourceID *string `json:"sourceArmResourceId,omitempty"` + SourceArmResourceID *string } // NsgSecurityRule - Security Rule data model for Network Security Groups. type NsgSecurityRule struct { // Gets or sets whether network traffic is allowed or denied. Possible values are “Allow” and “Deny”. - Access *string `json:"access,omitempty"` + Access *string // Gets or sets a description for this rule. Restricted to 140 chars. - Description *string `json:"description,omitempty"` + Description *string // Gets or sets destination address prefix. CIDR or source IP range. A “*” can also be used to match all source IPs. Default // tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be // used. - DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefix *string // Gets or sets Destination Port or Range. Integer or range between 0 and 65535. A “*” can also be used to match all ports. - DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRange *string // Gets or sets the direction of the rule.InBound or Outbound. The direction specifies if rule will be evaluated on incoming // or outgoing traffic. - Direction *string `json:"direction,omitempty"` + Direction *string // Gets or sets the Security rule name. - Name *string `json:"name,omitempty"` + Name *string // Gets or sets the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each // rule in the collection. The lower the priority number, the higher the priority // of the rule. - Priority *int32 `json:"priority,omitempty"` + Priority *int32 // Gets or sets Network protocol this rule applies to. Can be Tcp, Udp or All(*). - Protocol *string `json:"protocol,omitempty"` + Protocol *string // Gets or sets source address prefix. CIDR or source IP range. A “*” can also be used to match all source IPs. Default tags // such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. // If this is an ingress rule, specifies where network traffic originates from. - SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefix *string // Gets or sets Source Port or Range. Integer or range between 0 and // 65535. A “*” can also be used to match all ports. - SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRange *string } // OperationErrorAdditionalInfo - The operation error info. type OperationErrorAdditionalInfo struct { // READ-ONLY; The operation error info. - Info *MoveErrorInfo `json:"info,omitempty" azure:"ro"` + Info *MoveErrorInfo // READ-ONLY; The error type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // OperationStatus - Operation status REST resource. type OperationStatus struct { // READ-ONLY; End time. - EndTime *string `json:"endTime,omitempty" azure:"ro"` + EndTime *string // READ-ONLY; Error stating all error details for the operation. - Error *OperationStatusError `json:"error,omitempty" azure:"ro"` + Error *OperationStatusError // READ-ONLY; Resource Id. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Operation name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Custom data. - Properties any `json:"properties,omitempty" azure:"ro"` + Properties any // READ-ONLY; Start time. - StartTime *string `json:"startTime,omitempty" azure:"ro"` + StartTime *string // READ-ONLY; Status of the operation. ARM expects the terminal status to be one of Succeeded/ Failed/ Canceled. All other // values imply that the operation is still running. - Status *string `json:"status,omitempty" azure:"ro"` + Status *string } // OperationStatusError - Class for operation status errors. type OperationStatusError struct { // READ-ONLY; The additional info. - AdditionalInfo []*OperationErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` + AdditionalInfo []*OperationErrorAdditionalInfo // READ-ONLY; The error code. - Code *string `json:"code,omitempty" azure:"ro"` + Code *string // READ-ONLY; The error details. - Details []*OperationStatusError `json:"details,omitempty" azure:"ro"` + Details []*OperationStatusError // READ-ONLY; The error message. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string } // OperationsDiscovery - Operations discovery class. @@ -780,10 +780,10 @@ type OperationsDiscovery struct { // Contains the localized display information for this particular operation / action. These value will be used by several // clients for (1) custom role definitions for RBAC; (2) complex query filters for // the event service; and (3) audit history / records for management operations. - Display *Display `json:"display,omitempty"` + Display *Display // Indicates whether the operation is a data action - IsDataAction *bool `json:"isDataAction,omitempty"` + IsDataAction *bool // Gets or sets Name of the API. The name of the operation being performed on this particular object. It should match the // action name that appears in RBAC / the event service. Examples of operations @@ -801,14 +801,14 @@ type OperationsDiscovery struct { // response. This API is used to register for their service, and should include details about the operation (e.g. a localized // name for the resource provider + any special considerations like PII // release). - Name *string `json:"name,omitempty"` + Name *string // Gets or sets Origin. The intended executor of the operation; governs the display of the operation in the RBAC UX and the // audit logs UX. Default value is "user,system". - Origin *string `json:"origin,omitempty"` + Origin *string // ClientDiscovery properties. - Properties any `json:"properties,omitempty"` + Properties any } // OperationsDiscoveryClientGetOptions contains the optional parameters for the OperationsDiscoveryClient.Get method. @@ -819,59 +819,59 @@ type OperationsDiscoveryClientGetOptions struct { // OperationsDiscoveryCollection - Collection of ClientDiscovery details. type OperationsDiscoveryCollection struct { // Gets or sets the value of next link. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // Gets or sets the ClientDiscovery details. - Value []*OperationsDiscovery `json:"value,omitempty"` + Value []*OperationsDiscovery } // PrepareRequest - Defines the request body for initiate prepare operation. type PrepareRequest struct { // REQUIRED; Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched // via moveResourceInputType property. - MoveResources []*string `json:"moveResources,omitempty"` + MoveResources []*string // Defines the move resource input type. - MoveResourceInputType *MoveResourceInputType `json:"moveResourceInputType,omitempty"` + MoveResourceInputType *MoveResourceInputType // Gets or sets a value indicating whether the operation needs to only run pre-requisite. - ValidateOnly *bool `json:"validateOnly,omitempty"` + ValidateOnly *bool } // ProxyResourceReference - Defines reference to a proxy resource. type ProxyResourceReference struct { // REQUIRED; Gets the ARM resource ID of the tracked resource being referenced. - SourceArmResourceID *string `json:"sourceArmResourceId,omitempty"` + SourceArmResourceID *string // Gets the name of the proxy resource on the target side. - Name *string `json:"name,omitempty"` + Name *string } // PublicIPAddressResourceSettings - Defines the public IP address resource settings. type PublicIPAddressResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string // REQUIRED; Gets or sets the target Resource name. - TargetResourceName *string `json:"targetResourceName,omitempty"` + TargetResourceName *string // Gets or sets the domain name label. - DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabel *string // Gets or sets the fully qualified domain name. - Fqdn *string `json:"fqdn,omitempty"` + Fqdn *string // Gets or sets public IP allocation method. - PublicIPAllocationMethod *string `json:"publicIpAllocationMethod,omitempty"` + PublicIPAllocationMethod *string // Gets or sets public IP sku. - SKU *string `json:"sku,omitempty"` + SKU *string // Gets or sets the Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // Gets or sets public IP zones. - Zones *string `json:"zones,omitempty"` + Zones *string } // GetResourceSettings implements the ResourceSettingsClassification interface for type PublicIPAddressResourceSettings. @@ -885,22 +885,22 @@ func (p *PublicIPAddressResourceSettings) GetResourceSettings() *ResourceSetting // PublicIPReference - Defines reference to a public IP. type PublicIPReference struct { // REQUIRED; Gets the ARM resource ID of the tracked resource being referenced. - SourceArmResourceID *string `json:"sourceArmResourceId,omitempty"` + SourceArmResourceID *string } // RequiredForResourcesCollection - Required for resources collection. type RequiredForResourcesCollection struct { // Gets or sets the list of source Ids for which the input resource is required. - SourceIDs []*string `json:"sourceIds,omitempty"` + SourceIDs []*string } // ResourceGroupResourceSettings - Defines the resource group resource settings. type ResourceGroupResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string // REQUIRED; Gets or sets the target Resource name. - TargetResourceName *string `json:"targetResourceName,omitempty"` + TargetResourceName *string } // GetResourceSettings implements the ResourceSettingsClassification interface for type ResourceGroupResourceSettings. @@ -915,13 +915,13 @@ func (r *ResourceGroupResourceSettings) GetResourceSettings() *ResourceSettings type ResourceMoveRequest struct { // REQUIRED; Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched // via moveResourceInputType property. - MoveResources []*string `json:"moveResources,omitempty"` + MoveResources []*string // Defines the move resource input type. - MoveResourceInputType *MoveResourceInputType `json:"moveResourceInputType,omitempty"` + MoveResourceInputType *MoveResourceInputType // Gets or sets a value indicating whether the operation needs to only run pre-requisite. - ValidateOnly *bool `json:"validateOnly,omitempty"` + ValidateOnly *bool } // ResourceSettingsClassification provides polymorphic access to related types. @@ -939,10 +939,10 @@ type ResourceSettingsClassification interface { // ResourceSettings - Gets or sets the resource settings. type ResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string // REQUIRED; Gets or sets the target Resource name. - TargetResourceName *string `json:"targetResourceName,omitempty"` + TargetResourceName *string } // GetResourceSettings implements the ResourceSettingsClassification interface for type ResourceSettings. @@ -951,16 +951,16 @@ func (r *ResourceSettings) GetResourceSettings() *ResourceSettings { return r } // SQLDatabaseResourceSettings - Defines the Sql Database resource settings. type SQLDatabaseResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string // REQUIRED; Gets or sets the target Resource name. - TargetResourceName *string `json:"targetResourceName,omitempty"` + TargetResourceName *string // Gets or sets the Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // Defines the zone redundant resource setting. - ZoneRedundant *ZoneRedundant `json:"zoneRedundant,omitempty"` + ZoneRedundant *ZoneRedundant } // GetResourceSettings implements the ResourceSettingsClassification interface for type SQLDatabaseResourceSettings. @@ -974,16 +974,16 @@ func (s *SQLDatabaseResourceSettings) GetResourceSettings() *ResourceSettings { // SQLElasticPoolResourceSettings - Defines the Sql ElasticPool resource settings. type SQLElasticPoolResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string // REQUIRED; Gets or sets the target Resource name. - TargetResourceName *string `json:"targetResourceName,omitempty"` + TargetResourceName *string // Gets or sets the Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // Defines the zone redundant resource setting. - ZoneRedundant *ZoneRedundant `json:"zoneRedundant,omitempty"` + ZoneRedundant *ZoneRedundant } // GetResourceSettings implements the ResourceSettingsClassification interface for type SQLElasticPoolResourceSettings. @@ -997,10 +997,10 @@ func (s *SQLElasticPoolResourceSettings) GetResourceSettings() *ResourceSettings // SQLServerResourceSettings - Defines the SQL Server resource settings. type SQLServerResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string // REQUIRED; Gets or sets the target Resource name. - TargetResourceName *string `json:"targetResourceName,omitempty"` + TargetResourceName *string } // GetResourceSettings implements the ResourceSettingsClassification interface for type SQLServerResourceSettings. @@ -1014,61 +1014,61 @@ func (s *SQLServerResourceSettings) GetResourceSettings() *ResourceSettings { // SubnetReference - Defines reference to subnet. type SubnetReference struct { // REQUIRED; Gets the ARM resource ID of the tracked resource being referenced. - SourceArmResourceID *string `json:"sourceArmResourceId,omitempty"` + SourceArmResourceID *string // Gets the name of the proxy resource on the target side. - Name *string `json:"name,omitempty"` + Name *string } // SubnetResourceSettings - Defines the virtual network subnets resource settings. type SubnetResourceSettings struct { // Gets or sets address prefix for the subnet. - AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefix *string // Gets or sets the Subnet name. - Name *string `json:"name,omitempty"` + Name *string // Defines reference to NSG. - NetworkSecurityGroup *NsgReference `json:"networkSecurityGroup,omitempty"` + NetworkSecurityGroup *NsgReference } // Summary item. type Summary struct { // Gets the count. - Count *int32 `json:"count,omitempty"` + Count *int32 // Gets the item. - Item *string `json:"item,omitempty"` + Item *string } // SummaryCollection - Summary Collection. type SummaryCollection struct { // Gets or sets the field name on which summary is done. - FieldName *string `json:"fieldName,omitempty"` + FieldName *string // Gets or sets the list of summary items. - Summary []*Summary `json:"summary,omitempty"` + Summary []*Summary } // 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 } // UnresolvedDependenciesClientGetOptions contains the optional parameters for the UnresolvedDependenciesClient.NewGetPager @@ -1084,69 +1084,69 @@ type UnresolvedDependenciesClientGetOptions struct { // UnresolvedDependenciesFilter - Unresolved dependencies contract. type UnresolvedDependenciesFilter struct { - Properties *UnresolvedDependenciesFilterProperties `json:"properties,omitempty"` + Properties *UnresolvedDependenciesFilterProperties } type UnresolvedDependenciesFilterProperties struct { // The count of the resource. - Count *int32 `json:"count,omitempty"` + Count *int32 } // UnresolvedDependency - Unresolved dependency. type UnresolvedDependency struct { // Gets or sets the count. - Count *int32 `json:"count,omitempty"` + Count *int32 // Gets or sets the arm id of the dependency. - ID *string `json:"id,omitempty"` + ID *string } // UnresolvedDependencyCollection - Unresolved dependency collection. type UnresolvedDependencyCollection struct { // Gets or sets the value of next link. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // Gets or sets the list of unresolved dependencies. - Value []*UnresolvedDependency `json:"value,omitempty"` + Value []*UnresolvedDependency // READ-ONLY; Gets or sets the list of summary items and the field on which summary is done. - SummaryCollection *SummaryCollection `json:"summaryCollection,omitempty" azure:"ro"` + SummaryCollection *SummaryCollection // READ-ONLY; Gets the total count. - TotalCount *int64 `json:"totalCount,omitempty" azure:"ro"` + TotalCount *int64 } // UpdateMoveCollectionRequest - Defines the request body for updating move collection. type UpdateMoveCollectionRequest struct { // Defines the MSI properties of the Move Collection. - Identity *Identity `json:"identity,omitempty"` + Identity *Identity // Gets or sets the Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // VirtualMachineResourceSettings - Gets or sets the virtual machine resource settings. type VirtualMachineResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string // REQUIRED; Gets or sets the target Resource name. - TargetResourceName *string `json:"targetResourceName,omitempty"` + TargetResourceName *string // Gets or sets the Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // Gets or sets the target availability set id for virtual machines not in an availability set at source. - TargetAvailabilitySetID *string `json:"targetAvailabilitySetId,omitempty"` + TargetAvailabilitySetID *string // Gets or sets the target availability zone. - TargetAvailabilityZone *TargetAvailabilityZone `json:"targetAvailabilityZone,omitempty"` + TargetAvailabilityZone *TargetAvailabilityZone // Gets or sets the target virtual machine size. - TargetVMSize *string `json:"targetVmSize,omitempty"` + TargetVMSize *string // Gets or sets user-managed identities - UserManagedIdentities []*string `json:"userManagedIdentities,omitempty"` + UserManagedIdentities []*string } // GetResourceSettings implements the ResourceSettingsClassification interface for type VirtualMachineResourceSettings. @@ -1160,25 +1160,25 @@ func (v *VirtualMachineResourceSettings) GetResourceSettings() *ResourceSettings // VirtualNetworkResourceSettings - Defines the virtual network resource settings. type VirtualNetworkResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string // REQUIRED; Gets or sets the target Resource name. - TargetResourceName *string `json:"targetResourceName,omitempty"` + TargetResourceName *string // Gets or sets the address prefixes for the virtual network. - AddressSpace []*string `json:"addressSpace,omitempty"` + AddressSpace []*string // Gets or sets DHCPOptions that contains an array of DNS servers available to VMs deployed in the virtual network. - DNSServers []*string `json:"dnsServers,omitempty"` + DNSServers []*string // Gets or sets a value indicating whether gets or sets whether the DDOS protection should be switched on. - EnableDdosProtection *bool `json:"enableDdosProtection,omitempty"` + EnableDdosProtection *bool // Gets or sets List of subnets in a VirtualNetwork. - Subnets []*SubnetResourceSettings `json:"subnets,omitempty"` + Subnets []*SubnetResourceSettings // Gets or sets the Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // GetResourceSettings implements the ResourceSettingsClassification interface for type VirtualNetworkResourceSettings. diff --git a/sdk/resourcemanager/resourcemover/armresourcemover/models_serde.go b/sdk/resourcemanager/resourcemover/armresourcemover/models_serde.go index f78bacd9e634..a561329e0d3c 100644 --- a/sdk/resourcemanager/resourcemover/armresourcemover/models_serde.go +++ b/sdk/resourcemanager/resourcemover/armresourcemover/models_serde.go @@ -1526,7 +1526,7 @@ func (o OperationStatus) MarshalJSON() ([]byte, error) { populate(objectMap, "error", o.Error) populate(objectMap, "id", o.ID) populate(objectMap, "name", o.Name) - populate(objectMap, "properties", &o.Properties) + populateAny(objectMap, "properties", o.Properties) populate(objectMap, "startTime", o.StartTime) populate(objectMap, "status", o.Status) return json.Marshal(objectMap) @@ -1616,7 +1616,7 @@ func (o OperationsDiscovery) 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) } @@ -2506,6 +2506,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/resources/armchanges/CHANGELOG.md b/sdk/resourcemanager/resources/armchanges/CHANGELOG.md index f1b176da362b..686b7b67c2cd 100644 --- a/sdk/resourcemanager/resources/armchanges/CHANGELOG.md +++ b/sdk/resourcemanager/resources/armchanges/CHANGELOG.md @@ -1,5 +1,11 @@ # 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/resources/armchanges/autorest.md b/sdk/resourcemanager/resources/armchanges/autorest.md index 58b839fa78dc..0cc9777a317e 100644 --- a/sdk/resourcemanager/resources/armchanges/autorest.md +++ b/sdk/resourcemanager/resources/armchanges/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.1.0 +module-version: 1.1.1 package-changes: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resources/armchanges/constants.go b/sdk/resourcemanager/resources/armchanges/constants.go index fd75e644af45..8fa775c2d196 100644 --- a/sdk/resourcemanager/resources/armchanges/constants.go +++ b/sdk/resourcemanager/resources/armchanges/constants.go @@ -11,7 +11,7 @@ package armchanges const ( moduleName = "armchanges" - moduleVersion = "v1.1.0" + moduleVersion = "v1.1.1" ) // ChangeCategory - The entity that made the change diff --git a/sdk/resourcemanager/resources/armchanges/models.go b/sdk/resourcemanager/resources/armchanges/models.go index 14c60ccc1f39..cf31f62b053b 100644 --- a/sdk/resourcemanager/resources/armchanges/models.go +++ b/sdk/resourcemanager/resources/armchanges/models.go @@ -12,76 +12,76 @@ package armchanges // ChangeAttributes - Details about the change resource type ChangeAttributes struct { // READ-ONLY; The number of changes this resource captures - ChangesCount *int64 `json:"changesCount,omitempty" azure:"ro"` + ChangesCount *int64 // READ-ONLY; The ARM correlation ID of the change resource - CorrelationID *string `json:"correlationId,omitempty" azure:"ro"` + CorrelationID *string // READ-ONLY; The GUID of the new snapshot - NewResourceSnapshotID *string `json:"newResourceSnapshotId,omitempty" azure:"ro"` + NewResourceSnapshotID *string // READ-ONLY; The GUID of the previous snapshot - PreviousResourceSnapshotID *string `json:"previousResourceSnapshotId,omitempty" azure:"ro"` + PreviousResourceSnapshotID *string // READ-ONLY; The time the change(s) on the target resource ocurred - Timestamp *string `json:"timestamp,omitempty" azure:"ro"` + Timestamp *string } // ChangeBase - An individual change on the target resource type ChangeBase struct { // READ-ONLY; The entity that made the change - ChangeCategory *ChangeCategory `json:"changeCategory,omitempty" azure:"ro"` + ChangeCategory *ChangeCategory // READ-ONLY; The target resource property value after the change - NewValue *string `json:"newValue,omitempty" azure:"ro"` + NewValue *string // READ-ONLY; The target resource property value before the change - PreviousValue *string `json:"previousValue,omitempty" azure:"ro"` + PreviousValue *string // READ-ONLY; The type of change that occurred - PropertyChangeType *PropertyChangeType `json:"propertyChangeType,omitempty" azure:"ro"` + PropertyChangeType *PropertyChangeType } // ChangeProperties - The properties of a change type ChangeProperties struct { // Details about the change resource - ChangeAttributes *ChangeAttributes `json:"changeAttributes,omitempty"` + ChangeAttributes *ChangeAttributes // A dictionary with changed property name as a key and the change details as the value - Changes map[string]*ChangeBase `json:"changes,omitempty"` + Changes map[string]*ChangeBase // READ-ONLY; The type of change that was captured in the resource - ChangeType *ChangeType `json:"changeType,omitempty" azure:"ro"` + ChangeType *ChangeType // READ-ONLY; The fully qualified ID of the target resource that was changed - TargetResourceID *string `json:"targetResourceId,omitempty" azure:"ro"` + TargetResourceID *string // READ-ONLY; The namespace and type of the resource - TargetResourceType *string `json:"targetResourceType,omitempty" azure:"ro"` + TargetResourceType *string } // ChangeResourceListResult - The list of resources type ChangeResourceListResult struct { // The link used to get the next page of Change Resources - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // The list of resources - Value []*ChangeResourceResult `json:"value,omitempty"` + Value []*ChangeResourceResult } // ChangeResourceResult - Change Resource type ChangeResourceResult 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 } // ClientGetOptions contains the optional parameters for the Client.Get method. @@ -100,45 +100,45 @@ type ClientListOptions 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 } // 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 } diff --git a/sdk/resourcemanager/resources/armchanges/models_serde.go b/sdk/resourcemanager/resources/armchanges/models_serde.go index 4c58551390c9..73fb7154607a 100644 --- a/sdk/resourcemanager/resources/armchanges/models_serde.go +++ b/sdk/resourcemanager/resources/armchanges/models_serde.go @@ -214,7 +214,7 @@ func (c *ChangeResourceResult) 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) } @@ -357,6 +357,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/resources/armdeploymentscripts/CHANGELOG.md b/sdk/resourcemanager/resources/armdeploymentscripts/CHANGELOG.md index 49e0bcbfcc9f..e8b874b65876 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/CHANGELOG.md +++ b/sdk/resourcemanager/resources/armdeploymentscripts/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 2.0.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + + ## 2.0.0 (2023-03-27) ### Breaking Changes diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/autorest.md b/sdk/resourcemanager/resources/armdeploymentscripts/autorest.md index 13b2eb316a62..74f1541b6636 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/autorest.md +++ b/sdk/resourcemanager/resources/armdeploymentscripts/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/resources/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/resources/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 2.0.0 +module-version: 2.0.1 package-deploymentscripts: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/constants.go b/sdk/resourcemanager/resources/armdeploymentscripts/constants.go index 53ee76a012ca..834b676b4482 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/constants.go +++ b/sdk/resourcemanager/resources/armdeploymentscripts/constants.go @@ -11,7 +11,7 @@ package armdeploymentscripts const ( moduleName = "armdeploymentscripts" - moduleVersion = "v2.0.0" + moduleVersion = "v2.0.1" ) // CleanupOptions - The clean up preference when the script execution gets in a terminal state. Default setting is 'Always'. diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/models.go b/sdk/resourcemanager/resources/armdeploymentscripts/models.go index bd7bdd3b3aae..a42559fc0d62 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/models.go +++ b/sdk/resourcemanager/resources/armdeploymentscripts/models.go @@ -14,31 +14,31 @@ import "time" // AzureCliScript - Object model for the Azure CLI script. type AzureCliScript struct { // REQUIRED; Type of the script. - Kind *ScriptType `json:"kind,omitempty"` + Kind *ScriptType // REQUIRED; The location of the ACI and the storage account for the deployment script. - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; Properties of the Azure CLI script object. - Properties *AzureCliScriptProperties `json:"properties,omitempty"` + Properties *AzureCliScriptProperties // Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` + Identity *ManagedServiceIdentity // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags 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; The system metadata related to this resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GetDeploymentScript implements the DeploymentScriptClassification interface for type AzureCliScript. @@ -58,82 +58,82 @@ func (a *AzureCliScript) GetDeploymentScript() *DeploymentScript { // AzureCliScriptProperties - Properties of the Azure CLI script object. type AzureCliScriptProperties struct { // REQUIRED; Azure CLI module version to be used. - AzCliVersion *string `json:"azCliVersion,omitempty"` + AzCliVersion *string // REQUIRED; Interval for which the service retains the script resource after it reaches a terminal state. Resource will be // deleted when this duration expires. Duration is based on ISO 8601 pattern (for example // P1D means one day). - RetentionInterval *string `json:"retentionInterval,omitempty"` + RetentionInterval *string // Command line arguments to pass to the script. Arguments are separated by spaces. ex: -Name blue* -Location 'West US 2' - Arguments *string `json:"arguments,omitempty"` + Arguments *string // The clean up preference when the script execution gets in a terminal state. Default setting is 'Always'. - CleanupPreference *CleanupOptions `json:"cleanupPreference,omitempty"` + CleanupPreference *CleanupOptions // Container settings. - ContainerSettings *ContainerConfiguration `json:"containerSettings,omitempty"` + ContainerSettings *ContainerConfiguration // The environment variables to pass over to the script. - EnvironmentVariables []*EnvironmentVariable `json:"environmentVariables,omitempty"` + EnvironmentVariables []*EnvironmentVariable // Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be // current time stamp or a GUID. - ForceUpdateTag *string `json:"forceUpdateTag,omitempty"` + ForceUpdateTag *string // Uri for the script. This is the entry point for the external script. - PrimaryScriptURI *string `json:"primaryScriptUri,omitempty"` + PrimaryScriptURI *string // Script body. - ScriptContent *string `json:"scriptContent,omitempty"` + ScriptContent *string // Storage Account settings. - StorageAccountSettings *StorageAccountConfiguration `json:"storageAccountSettings,omitempty"` + StorageAccountSettings *StorageAccountConfiguration // Supporting files for the external script. - SupportingScriptUris []*string `json:"supportingScriptUris,omitempty"` + SupportingScriptUris []*string // Maximum allowed script execution time specified in ISO 8601 format. Default value is P1D - Timeout *string `json:"timeout,omitempty"` + Timeout *string // READ-ONLY; List of script outputs. - Outputs map[string]any `json:"outputs,omitempty" azure:"ro"` + Outputs map[string]any // READ-ONLY; State of the script execution. This only appears in the response. - ProvisioningState *ScriptProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ScriptProvisioningState // READ-ONLY; Contains the results of script execution. - Status *ScriptStatus `json:"status,omitempty" azure:"ro"` + Status *ScriptStatus } // AzurePowerShellScript - Object model for the Azure PowerShell script. type AzurePowerShellScript struct { // REQUIRED; Type of the script. - Kind *ScriptType `json:"kind,omitempty"` + Kind *ScriptType // REQUIRED; The location of the ACI and the storage account for the deployment script. - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; Properties of the Azure PowerShell script object. - Properties *AzurePowerShellScriptProperties `json:"properties,omitempty"` + Properties *AzurePowerShellScriptProperties // Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` + Identity *ManagedServiceIdentity // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags 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; The system metadata related to this resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GetDeploymentScript implements the DeploymentScriptClassification interface for type AzurePowerShellScript. @@ -153,64 +153,64 @@ func (a *AzurePowerShellScript) GetDeploymentScript() *DeploymentScript { // AzurePowerShellScriptProperties - Properties of the Azure PowerShell script object. type AzurePowerShellScriptProperties struct { // REQUIRED; Azure PowerShell module version to be used. - AzPowerShellVersion *string `json:"azPowerShellVersion,omitempty"` + AzPowerShellVersion *string // REQUIRED; Interval for which the service retains the script resource after it reaches a terminal state. Resource will be // deleted when this duration expires. Duration is based on ISO 8601 pattern (for example // P1D means one day). - RetentionInterval *string `json:"retentionInterval,omitempty"` + RetentionInterval *string // Command line arguments to pass to the script. Arguments are separated by spaces. ex: -Name blue* -Location 'West US 2' - Arguments *string `json:"arguments,omitempty"` + Arguments *string // The clean up preference when the script execution gets in a terminal state. Default setting is 'Always'. - CleanupPreference *CleanupOptions `json:"cleanupPreference,omitempty"` + CleanupPreference *CleanupOptions // Container settings. - ContainerSettings *ContainerConfiguration `json:"containerSettings,omitempty"` + ContainerSettings *ContainerConfiguration // The environment variables to pass over to the script. - EnvironmentVariables []*EnvironmentVariable `json:"environmentVariables,omitempty"` + EnvironmentVariables []*EnvironmentVariable // Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be // current time stamp or a GUID. - ForceUpdateTag *string `json:"forceUpdateTag,omitempty"` + ForceUpdateTag *string // Uri for the script. This is the entry point for the external script. - PrimaryScriptURI *string `json:"primaryScriptUri,omitempty"` + PrimaryScriptURI *string // Script body. - ScriptContent *string `json:"scriptContent,omitempty"` + ScriptContent *string // Storage Account settings. - StorageAccountSettings *StorageAccountConfiguration `json:"storageAccountSettings,omitempty"` + StorageAccountSettings *StorageAccountConfiguration // Supporting files for the external script. - SupportingScriptUris []*string `json:"supportingScriptUris,omitempty"` + SupportingScriptUris []*string // Maximum allowed script execution time specified in ISO 8601 format. Default value is P1D - Timeout *string `json:"timeout,omitempty"` + Timeout *string // READ-ONLY; List of script outputs. - Outputs map[string]any `json:"outputs,omitempty" azure:"ro"` + Outputs map[string]any // READ-ONLY; State of the script execution. This only appears in the response. - ProvisioningState *ScriptProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ScriptProvisioningState // READ-ONLY; Contains the results of script execution. - Status *ScriptStatus `json:"status,omitempty" azure:"ro"` + Status *ScriptStatus } // 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 } // ClientBeginCreateOptions contains the optional parameters for the Client.BeginCreate method. @@ -269,7 +269,7 @@ type ContainerConfiguration struct { // 'containerGroupName', add the following object to properties: { "containerSettings": { "containerGroupName": "contoso-container" // } }. If you do not want to specify a 'containerGroupName' then do not // add 'containerSettings' property. - ContainerGroupName *string `json:"containerGroupName,omitempty"` + ContainerGroupName *string } // DeploymentScriptClassification provides polymorphic access to related types. @@ -284,28 +284,28 @@ type DeploymentScriptClassification interface { // DeploymentScript - Deployment script object. type DeploymentScript struct { // REQUIRED; Type of the script. - Kind *ScriptType `json:"kind,omitempty"` + Kind *ScriptType // REQUIRED; The location of the ACI and the storage account for the deployment script. - Location *string `json:"location,omitempty"` + Location *string // Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` + Identity *ManagedServiceIdentity // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags 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; The system metadata related to this resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GetDeploymentScript implements the DeploymentScriptClassification interface for type DeploymentScript. @@ -314,171 +314,171 @@ func (d *DeploymentScript) GetDeploymentScript() *DeploymentScript { return d } // DeploymentScriptListResult - List of deployment scripts. type DeploymentScriptListResult struct { // An array of deployment scripts. - Value []DeploymentScriptClassification `json:"value,omitempty"` + Value []DeploymentScriptClassification // READ-ONLY; The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // DeploymentScriptUpdateParameter - Deployment script parameters to be updated. type DeploymentScriptUpdateParameter struct { // Resource tags to be updated. - Tags map[string]*string `json:"tags,omitempty"` + Tags 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 } // EnvironmentVariable - The environment variable to pass to the script in the container instance. type EnvironmentVariable struct { // REQUIRED; The name of the environment variable. - Name *string `json:"name,omitempty"` + Name *string // The value of the secure environment variable. - SecureValue *string `json:"secureValue,omitempty"` + SecureValue *string // The value of the environment variable. - Value *string `json:"value,omitempty"` + Value *string } // Error - Deployment scripts error response. type Error struct { // Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows // the OData error response format.) - Error *ErrorResponse `json:"error,omitempty"` + Error *ErrorResponse } // 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 } // LogProperties - Script log properties. type LogProperties struct { // READ-ONLY; Script execution logs in text format. - Log *string `json:"log,omitempty" azure:"ro"` + Log *string } // ManagedServiceIdentity - Managed identity generic object. type ManagedServiceIdentity struct { // Type of the managed identity. - Type *ManagedServiceIdentityType `json:"type,omitempty"` + Type *ManagedServiceIdentityType // 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 // READ-ONLY; ID of the Azure Active Directory. - TenantID *string `json:"tenantId,omitempty" azure:"ro"` + TenantID *string } // ScriptLog - Script execution log object. type ScriptLog struct { // Script log properties. - Properties *LogProperties `json:"properties,omitempty"` + Properties *LogProperties // 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 } // ScriptLogsList - Deployment script execution logs. type ScriptLogsList struct { // Deployment scripts logs. - Value []*ScriptLog `json:"value,omitempty"` + Value []*ScriptLog } // ScriptStatus - Generic object modeling results of script execution. type ScriptStatus struct { // Error that is relayed from the script execution. - Error *ErrorResponse `json:"error,omitempty"` + Error *ErrorResponse // READ-ONLY; ACI resource Id. - ContainerInstanceID *string `json:"containerInstanceId,omitempty" azure:"ro"` + ContainerInstanceID *string // READ-ONLY; End time of the script execution. - EndTime *time.Time `json:"endTime,omitempty" azure:"ro"` + EndTime *time.Time // READ-ONLY; Time the deployment script resource will expire. - ExpirationTime *time.Time `json:"expirationTime,omitempty" azure:"ro"` + ExpirationTime *time.Time // READ-ONLY; Start time of the script execution. - StartTime *time.Time `json:"startTime,omitempty" azure:"ro"` + StartTime *time.Time // READ-ONLY; Storage account resource Id. - StorageAccountID *string `json:"storageAccountId,omitempty" azure:"ro"` + StorageAccountID *string } // StorageAccountConfiguration - Settings to use an existing storage account. Valid storage account kinds are: Storage, StorageV2 // and FileStorage type StorageAccountConfiguration struct { // The storage account access key. - StorageAccountKey *string `json:"storageAccountKey,omitempty"` + StorageAccountKey *string // The storage account name. - StorageAccountName *string `json:"storageAccountName,omitempty"` + StorageAccountName *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 } // 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 } diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/models_serde.go b/sdk/resourcemanager/resources/armdeploymentscripts/models_serde.go index 61509222b719..4895a4b68cbe 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/models_serde.go +++ b/sdk/resourcemanager/resources/armdeploymentscripts/models_serde.go @@ -552,7 +552,7 @@ func (e *Error) 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) } @@ -917,6 +917,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/resources/armlinks/CHANGELOG.md b/sdk/resourcemanager/resources/armlinks/CHANGELOG.md index 544a0af33496..192961186195 100644 --- a/sdk/resourcemanager/resources/armlinks/CHANGELOG.md +++ b/sdk/resourcemanager/resources/armlinks/CHANGELOG.md @@ -1,5 +1,11 @@ # 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/resources/armlinks/autorest.md b/sdk/resourcemanager/resources/armlinks/autorest.md index a20b7bac8add..aad2a2059e52 100644 --- a/sdk/resourcemanager/resources/armlinks/autorest.md +++ b/sdk/resourcemanager/resources/armlinks/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.1.0 +module-version: 1.1.1 package-links: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resources/armlinks/constants.go b/sdk/resourcemanager/resources/armlinks/constants.go index 813498521f63..556204af5833 100644 --- a/sdk/resourcemanager/resources/armlinks/constants.go +++ b/sdk/resourcemanager/resources/armlinks/constants.go @@ -11,5 +11,5 @@ package armlinks const ( moduleName = "armlinks" - moduleVersion = "v1.1.0" + moduleVersion = "v1.1.1" ) diff --git a/sdk/resourcemanager/resources/armlinks/models.go b/sdk/resourcemanager/resources/armlinks/models.go index 09f7aa89f4fe..abf1ecf8e482 100644 --- a/sdk/resourcemanager/resources/armlinks/models.go +++ b/sdk/resourcemanager/resources/armlinks/models.go @@ -12,35 +12,35 @@ package armlinks // Operation - Microsoft.Resources operation type Operation struct { // The object that represents the operation. - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // Operation name: {provider}/{resource}/{operation} - Name *string `json:"name,omitempty"` + Name *string } // OperationDisplay - The object that represents the operation. type OperationDisplay struct { // Description of the operation. - Description *string `json:"description,omitempty"` + Description *string // Operation type: Read, write, delete, etc. - Operation *string `json:"operation,omitempty"` + Operation *string // Service provider: Microsoft.Resources - Provider *string `json:"provider,omitempty"` + Provider *string // Resource on which the operation is performed: Profile, endpoint, etc. - Resource *string `json:"resource,omitempty"` + Resource *string } // OperationListResult - Result of the request to list Microsoft.Resources operations. It contains a list of operations and // a URL link to get the next set of results. type OperationListResult struct { // URL to get the next set of operation list results if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // List of Microsoft.Resources operations. - Value []*Operation `json:"value,omitempty"` + Value []*Operation } // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. @@ -51,43 +51,43 @@ type OperationsClientListOptions struct { // ResourceLink - The resource link. type ResourceLink struct { // Properties for resource link. - Properties *ResourceLinkProperties `json:"properties,omitempty"` + Properties *ResourceLinkProperties // READ-ONLY; The fully qualified ID of the resource link. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource link. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The resource link object. - Type any `json:"type,omitempty" azure:"ro"` + Type any } // ResourceLinkFilter - Resource link filter. type ResourceLinkFilter struct { // REQUIRED; The ID of the target resource. - TargetID *string `json:"targetId,omitempty"` + TargetID *string } // ResourceLinkProperties - The resource link properties. type ResourceLinkProperties struct { // REQUIRED; The fully qualified ID of the target resource in the link. - TargetID *string `json:"targetId,omitempty"` + TargetID *string // Notes about the resource link. - Notes *string `json:"notes,omitempty"` + Notes *string // READ-ONLY; The fully qualified ID of the source resource in the link. - SourceID *string `json:"sourceId,omitempty" azure:"ro"` + SourceID *string } // ResourceLinkResult - List of resource links. type ResourceLinkResult struct { // REQUIRED; An array of resource links. - Value []*ResourceLink `json:"value,omitempty"` + Value []*ResourceLink // READ-ONLY; The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // ResourceLinksClientCreateOrUpdateOptions contains the optional parameters for the ResourceLinksClient.CreateOrUpdate method. diff --git a/sdk/resourcemanager/resources/armlinks/models_serde.go b/sdk/resourcemanager/resources/armlinks/models_serde.go index 4a5600a274fb..a68e550aef0f 100644 --- a/sdk/resourcemanager/resources/armlinks/models_serde.go +++ b/sdk/resourcemanager/resources/armlinks/models_serde.go @@ -123,7 +123,7 @@ func (r ResourceLink) MarshalJSON() ([]byte, error) { populate(objectMap, "id", r.ID) populate(objectMap, "name", r.Name) populate(objectMap, "properties", r.Properties) - populate(objectMap, "type", &r.Type) + populateAny(objectMap, "type", r.Type) return json.Marshal(objectMap) } @@ -259,6 +259,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/resources/armlocks/CHANGELOG.md b/sdk/resourcemanager/resources/armlocks/CHANGELOG.md index 5abb7db0b005..799221adc0ae 100644 --- a/sdk/resourcemanager/resources/armlocks/CHANGELOG.md +++ b/sdk/resourcemanager/resources/armlocks/CHANGELOG.md @@ -1,5 +1,11 @@ # 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/resources/armlocks/autorest.md b/sdk/resourcemanager/resources/armlocks/autorest.md index e1051737f0d9..22fe3d8b5f33 100644 --- a/sdk/resourcemanager/resources/armlocks/autorest.md +++ b/sdk/resourcemanager/resources/armlocks/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.1.0 +module-version: 1.1.1 package-locks: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resources/armlocks/constants.go b/sdk/resourcemanager/resources/armlocks/constants.go index 99052d38b1a7..e666d4c519a2 100644 --- a/sdk/resourcemanager/resources/armlocks/constants.go +++ b/sdk/resourcemanager/resources/armlocks/constants.go @@ -11,7 +11,7 @@ package armlocks const ( moduleName = "armlocks" - moduleVersion = "v1.1.0" + moduleVersion = "v1.1.1" ) // CreatedByType - The type of identity that created the resource. diff --git a/sdk/resourcemanager/resources/armlocks/models.go b/sdk/resourcemanager/resources/armlocks/models.go index 0333f4b643ad..a8cdc4bf9873 100644 --- a/sdk/resourcemanager/resources/armlocks/models.go +++ b/sdk/resourcemanager/resources/armlocks/models.go @@ -20,68 +20,68 @@ type AuthorizationOperationsClientListOptions 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 } // ManagementLockListResult - The list of locks. type ManagementLockListResult struct { // The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // The list of locks. - Value []*ManagementLockObject `json:"value,omitempty"` + Value []*ManagementLockObject } // ManagementLockObject - The lock information. type ManagementLockObject struct { // REQUIRED; The properties of the lock. - Properties *ManagementLockProperties `json:"properties,omitempty"` + Properties *ManagementLockProperties // READ-ONLY; The resource ID of the lock. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the lock. - 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 resource type of the lock - Microsoft.Authorization/locks. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ManagementLockOwner - Lock owner properties. type ManagementLockOwner struct { // The application ID of the lock owner. - ApplicationID *string `json:"applicationId,omitempty"` + ApplicationID *string } // ManagementLockProperties - The lock properties. @@ -89,13 +89,13 @@ type ManagementLockProperties struct { // REQUIRED; The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized // users are able to read and modify the resources, but not delete. ReadOnly means // authorized users can only read from a resource, but they can't modify or delete it. - Level *LockLevel `json:"level,omitempty"` + Level *LockLevel // Notes about the lock. Maximum of 512 characters. - Notes *string `json:"notes,omitempty"` + Notes *string // The owners of the lock. - Owners []*ManagementLockOwner `json:"owners,omitempty"` + Owners []*ManagementLockOwner } // ManagementLocksClientCreateOrUpdateAtResourceGroupLevelOptions contains the optional parameters for the ManagementLocksClient.CreateOrUpdateAtResourceGroupLevel @@ -200,51 +200,51 @@ type ManagementLocksClientListByScopeOptions struct { // Operation - Microsoft.Authorization operation type Operation struct { // The object that represents the operation. - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // Operation name: {provider}/{resource}/{operation} - Name *string `json:"name,omitempty"` + Name *string } // OperationDisplay - The object that represents the operation. type OperationDisplay struct { // Operation type: Read, write, delete, etc. - Operation *string `json:"operation,omitempty"` + Operation *string // Service provider: Microsoft.Authorization - Provider *string `json:"provider,omitempty"` + Provider *string // Resource on which the operation is performed: Profile, endpoint, etc. - Resource *string `json:"resource,omitempty"` + Resource *string } // OperationListResult - Result of the request to list Microsoft.Authorization operations. It contains a list of operations // and a URL link to get the next set of results. type OperationListResult struct { // URL to get the next set of operation list results if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // List of Microsoft.Authorization operations. - Value []*Operation `json:"value,omitempty"` + Value []*Operation } // 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 } diff --git a/sdk/resourcemanager/resources/armlocks/models_serde.go b/sdk/resourcemanager/resources/armlocks/models_serde.go index a335e2d8184d..b6a3120a1472 100644 --- a/sdk/resourcemanager/resources/armlocks/models_serde.go +++ b/sdk/resourcemanager/resources/armlocks/models_serde.go @@ -19,7 +19,7 @@ import ( // 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) } @@ -407,6 +407,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/resources/armmanagedapplications/CHANGELOG.md b/sdk/resourcemanager/resources/armmanagedapplications/CHANGELOG.md index 3f73b02f9c53..18f569794de4 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/CHANGELOG.md +++ b/sdk/resourcemanager/resources/armmanagedapplications/CHANGELOG.md @@ -1,5 +1,11 @@ # 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/resources/armmanagedapplications/autorest.md b/sdk/resourcemanager/resources/armmanagedapplications/autorest.md index 0dd562abbb86..dc4d55881acf 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/autorest.md +++ b/sdk/resourcemanager/resources/armmanagedapplications/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.1.0 +module-version: 1.1.1 package-managedapplications: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resources/armmanagedapplications/constants.go b/sdk/resourcemanager/resources/armmanagedapplications/constants.go index 513356a26eed..f1134cea935b 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/constants.go +++ b/sdk/resourcemanager/resources/armmanagedapplications/constants.go @@ -11,7 +11,7 @@ package armmanagedapplications const ( moduleName = "armmanagedapplications" - moduleVersion = "v1.1.0" + moduleVersion = "v1.1.1" ) // ApplicationArtifactType - The managed application artifact type. diff --git a/sdk/resourcemanager/resources/armmanagedapplications/models.go b/sdk/resourcemanager/resources/armmanagedapplications/models.go index 718da662fce3..39345d87aaad 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/models.go +++ b/sdk/resourcemanager/resources/armmanagedapplications/models.go @@ -12,49 +12,49 @@ package armmanagedapplications // Application - Information about managed application. type Application struct { // REQUIRED; The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. - Kind *string `json:"kind,omitempty"` + Kind *string // REQUIRED; The managed application properties. - Properties *ApplicationProperties `json:"properties,omitempty"` + Properties *ApplicationProperties // The identity of the resource. - Identity *Identity `json:"identity,omitempty"` + Identity *Identity // Resource location - Location *string `json:"location,omitempty"` + Location *string // ID of the resource that manages this resource. - ManagedBy *string `json:"managedBy,omitempty"` + ManagedBy *string // The plan information. - Plan *Plan `json:"plan,omitempty"` + Plan *Plan // The SKU of the resource. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // 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 } // ApplicationArtifact - Managed application artifact. type ApplicationArtifact struct { // The managed application artifact name. - Name *string `json:"name,omitempty"` + Name *string // The managed application artifact type. - Type *ApplicationArtifactType `json:"type,omitempty"` + Type *ApplicationArtifactType // The managed application artifact blob uri. - URI *string `json:"uri,omitempty"` + URI *string } // ApplicationClientListOperationsOptions contains the optional parameters for the ApplicationClient.NewListOperationsPager @@ -66,73 +66,73 @@ type ApplicationClientListOperationsOptions struct { // ApplicationDefinition - Information about managed application definition. type ApplicationDefinition struct { // REQUIRED; The managed application definition properties. - Properties *ApplicationDefinitionProperties `json:"properties,omitempty"` + Properties *ApplicationDefinitionProperties // The identity of the resource. - Identity *Identity `json:"identity,omitempty"` + Identity *Identity // Resource location - Location *string `json:"location,omitempty"` + Location *string // ID of the resource that manages this resource. - ManagedBy *string `json:"managedBy,omitempty"` + ManagedBy *string // The SKU of the resource. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // 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 } // ApplicationDefinitionListResult - List of managed application definitions. type ApplicationDefinitionListResult struct { // The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // The array of managed application definitions. - Value []*ApplicationDefinition `json:"value,omitempty"` + Value []*ApplicationDefinition } // ApplicationDefinitionProperties - The managed application definition properties. type ApplicationDefinitionProperties struct { // REQUIRED; The managed application provider authorizations. - Authorizations []*ApplicationProviderAuthorization `json:"authorizations,omitempty"` + Authorizations []*ApplicationProviderAuthorization // REQUIRED; The managed application lock level. - LockLevel *ApplicationLockLevel `json:"lockLevel,omitempty"` + LockLevel *ApplicationLockLevel // The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the // user experience of creating a managed application from a managed application // definition. - Artifacts []*ApplicationArtifact `json:"artifacts,omitempty"` + Artifacts []*ApplicationArtifact // The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject // or well-formed JSON string. - CreateUIDefinition any `json:"createUiDefinition,omitempty"` + CreateUIDefinition any // The managed application definition description. - Description *string `json:"description,omitempty"` + Description *string // The managed application definition display name. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // A value indicating whether the package is enabled or not. - IsEnabled *string `json:"isEnabled,omitempty"` + IsEnabled *string // The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string. - MainTemplate any `json:"mainTemplate,omitempty"` + MainTemplate any // The managed application definition package file Uri. Use this element - PackageFileURI *string `json:"packageFileUri,omitempty"` + PackageFileURI *string } // ApplicationDefinitionsClientBeginCreateOrUpdateByIDOptions contains the optional parameters for the ApplicationDefinitionsClient.BeginCreateOrUpdateByID @@ -183,94 +183,94 @@ type ApplicationDefinitionsClientListByResourceGroupOptions struct { // ApplicationListResult - List of managed applications. type ApplicationListResult struct { // The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // The array of managed applications. - Value []*Application `json:"value,omitempty"` + Value []*Application } // ApplicationPatchable - Information about managed application. type ApplicationPatchable struct { // The identity of the resource. - Identity *Identity `json:"identity,omitempty"` + Identity *Identity // The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. - Kind *string `json:"kind,omitempty"` + Kind *string // Resource location - Location *string `json:"location,omitempty"` + Location *string // ID of the resource that manages this resource. - ManagedBy *string `json:"managedBy,omitempty"` + ManagedBy *string // The plan information. - Plan *PlanPatchable `json:"plan,omitempty"` + Plan *PlanPatchable // The managed application properties. - Properties *ApplicationPropertiesPatchable `json:"properties,omitempty"` + Properties *ApplicationPropertiesPatchable // The SKU of the resource. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // 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 } // ApplicationProperties - The managed application properties. type ApplicationProperties struct { // REQUIRED; The managed resource group Id. - ManagedResourceGroupID *string `json:"managedResourceGroupId,omitempty"` + ManagedResourceGroupID *string // The fully qualified path of managed application definition Id. - ApplicationDefinitionID *string `json:"applicationDefinitionId,omitempty"` + ApplicationDefinitionID *string // Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. - Parameters any `json:"parameters,omitempty"` + Parameters any // READ-ONLY; Name and value pairs that define the managed application outputs. - Outputs any `json:"outputs,omitempty" azure:"ro"` + Outputs any // READ-ONLY; The managed application provisioning state. - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ProvisioningState } // ApplicationPropertiesPatchable - The managed application properties. type ApplicationPropertiesPatchable struct { // The fully qualified path of managed application definition Id. - ApplicationDefinitionID *string `json:"applicationDefinitionId,omitempty"` + ApplicationDefinitionID *string // The managed resource group Id. - ManagedResourceGroupID *string `json:"managedResourceGroupId,omitempty"` + ManagedResourceGroupID *string // Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. - Parameters any `json:"parameters,omitempty"` + Parameters any // READ-ONLY; Name and value pairs that define the managed application outputs. - Outputs any `json:"outputs,omitempty" azure:"ro"` + Outputs any // READ-ONLY; The managed application provisioning state. - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ProvisioningState } // ApplicationProviderAuthorization - The managed application provider authorization. type ApplicationProviderAuthorization struct { // REQUIRED; The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the // managed application resources. - PrincipalID *string `json:"principalId,omitempty"` + PrincipalID *string // REQUIRED; The provider's role definition identifier. This role will define all the permissions that the provider must have // on the managed application's container resource group. This role definition cannot have // permission to delete the resource group. - RoleDefinitionID *string `json:"roleDefinitionId,omitempty"` + RoleDefinitionID *string } // ApplicationsClientBeginCreateOrUpdateByIDOptions contains the optional parameters for the ApplicationsClient.BeginCreateOrUpdateByID @@ -337,156 +337,156 @@ type ApplicationsClientUpdateOptions struct { // provided in the error message. type ErrorResponse struct { // Error code. - ErrorCode *string `json:"errorCode,omitempty"` + ErrorCode *string // Error message indicating why the operation failed. - ErrorMessage *string `json:"errorMessage,omitempty"` + ErrorMessage *string // Http status code. - HTTPStatus *string `json:"httpStatus,omitempty"` + HTTPStatus *string } // GenericResource - Resource information. type GenericResource struct { // The identity of the resource. - Identity *Identity `json:"identity,omitempty"` + Identity *Identity // Resource location - Location *string `json:"location,omitempty"` + Location *string // ID of the resource that manages this resource. - ManagedBy *string `json:"managedBy,omitempty"` + ManagedBy *string // The SKU of the resource. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // 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 } // Identity for the resource. type Identity struct { // The identity type. - Type *string `json:"type,omitempty"` + Type *string // 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 } // Operation - Microsoft.Solutions operation type Operation struct { // The object that represents the operation. - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // Operation name: {provider}/{resource}/{operation} - Name *string `json:"name,omitempty"` + Name *string } // OperationDisplay - The object that represents the operation. type OperationDisplay struct { // Operation type: Read, write, delete, etc. - Operation *string `json:"operation,omitempty"` + Operation *string // Service provider: Microsoft.Solutions - Provider *string `json:"provider,omitempty"` + Provider *string // Resource on which the operation is performed: Application, JitRequest, etc. - Resource *string `json:"resource,omitempty"` + Resource *string } // OperationListResult - Result of the request to list Microsoft.Solutions operations. It contains a list of operations and // a URL link to get the next set of results. type OperationListResult struct { // URL to get the next set of operation list results if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // List of Microsoft.Solutions operations. - Value []*Operation `json:"value,omitempty"` + Value []*Operation } // Plan for the managed application. type Plan struct { // REQUIRED; The plan name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; The product code. - Product *string `json:"product,omitempty"` + Product *string // REQUIRED; The publisher ID. - Publisher *string `json:"publisher,omitempty"` + Publisher *string // REQUIRED; The plan's version. - Version *string `json:"version,omitempty"` + Version *string // The promotion code. - PromotionCode *string `json:"promotionCode,omitempty"` + PromotionCode *string } // PlanPatchable - Plan for the managed application. type PlanPatchable struct { // The plan name. - Name *string `json:"name,omitempty"` + Name *string // The product code. - Product *string `json:"product,omitempty"` + Product *string // The promotion code. - PromotionCode *string `json:"promotionCode,omitempty"` + PromotionCode *string // The publisher ID. - Publisher *string `json:"publisher,omitempty"` + Publisher *string // The plan's version. - Version *string `json:"version,omitempty"` + Version *string } // Resource information. type Resource 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 } // SKU for the resource. type SKU struct { // REQUIRED; The SKU name. - Name *string `json:"name,omitempty"` + Name *string // The SKU capacity. - Capacity *int32 `json:"capacity,omitempty"` + Capacity *int32 // The SKU family. - Family *string `json:"family,omitempty"` + Family *string // The SKU model. - Model *string `json:"model,omitempty"` + Model *string // The SKU size. - Size *string `json:"size,omitempty"` + Size *string // The SKU tier. - Tier *string `json:"tier,omitempty"` + Tier *string } diff --git a/sdk/resourcemanager/resources/armmanagedapplications/models_serde.go b/sdk/resourcemanager/resources/armmanagedapplications/models_serde.go index a161820bc2e7..53d8f8694fdc 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/models_serde.go +++ b/sdk/resourcemanager/resources/armmanagedapplications/models_serde.go @@ -213,12 +213,12 @@ func (a ApplicationDefinitionProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "artifacts", a.Artifacts) populate(objectMap, "authorizations", a.Authorizations) - populate(objectMap, "createUiDefinition", &a.CreateUIDefinition) + populateAny(objectMap, "createUiDefinition", a.CreateUIDefinition) populate(objectMap, "description", a.Description) populate(objectMap, "displayName", a.DisplayName) populate(objectMap, "isEnabled", a.IsEnabled) populate(objectMap, "lockLevel", a.LockLevel) - populate(objectMap, "mainTemplate", &a.MainTemplate) + populateAny(objectMap, "mainTemplate", a.MainTemplate) populate(objectMap, "packageFileUri", a.PackageFileURI) return json.Marshal(objectMap) } @@ -370,8 +370,8 @@ func (a ApplicationProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "applicationDefinitionId", a.ApplicationDefinitionID) populate(objectMap, "managedResourceGroupId", a.ManagedResourceGroupID) - populate(objectMap, "outputs", &a.Outputs) - populate(objectMap, "parameters", &a.Parameters) + populateAny(objectMap, "outputs", a.Outputs) + populateAny(objectMap, "parameters", a.Parameters) populate(objectMap, "provisioningState", a.ProvisioningState) return json.Marshal(objectMap) } @@ -413,8 +413,8 @@ func (a ApplicationPropertiesPatchable) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "applicationDefinitionId", a.ApplicationDefinitionID) populate(objectMap, "managedResourceGroupId", a.ManagedResourceGroupID) - populate(objectMap, "outputs", &a.Outputs) - populate(objectMap, "parameters", &a.Parameters) + populateAny(objectMap, "outputs", a.Outputs) + populateAny(objectMap, "parameters", a.Parameters) populate(objectMap, "provisioningState", a.ProvisioningState) return json.Marshal(objectMap) } @@ -890,6 +890,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/resources/armpolicy/CHANGELOG.md b/sdk/resourcemanager/resources/armpolicy/CHANGELOG.md index f460becda87f..280084c8f79c 100644 --- a/sdk/resourcemanager/resources/armpolicy/CHANGELOG.md +++ b/sdk/resourcemanager/resources/armpolicy/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 0.7.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + + ## 0.7.0 (2023-03-27) ### Features Added diff --git a/sdk/resourcemanager/resources/armpolicy/assets.json b/sdk/resourcemanager/resources/armpolicy/assets.json index 0e34ba287c28..82e03452e75e 100644 --- a/sdk/resourcemanager/resources/armpolicy/assets.json +++ b/sdk/resourcemanager/resources/armpolicy/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/resources/armpolicy", - "Tag": "go/resourcemanager/resources/armpolicy_926b1b16de" + "Tag": "go/resourcemanager/resources/armpolicy_004957227c" } diff --git a/sdk/resourcemanager/resources/armpolicy/autorest.md b/sdk/resourcemanager/resources/armpolicy/autorest.md index 8032b6a721d5..2a17980c1ad9 100644 --- a/sdk/resourcemanager/resources/armpolicy/autorest.md +++ b/sdk/resourcemanager/resources/armpolicy/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/resources/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/resources/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.7.0 +module-version: 0.7.1 package-policy: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resources/armpolicy/constants.go b/sdk/resourcemanager/resources/armpolicy/constants.go index 5b6927dd21bb..c65091adc04e 100644 --- a/sdk/resourcemanager/resources/armpolicy/constants.go +++ b/sdk/resourcemanager/resources/armpolicy/constants.go @@ -11,7 +11,7 @@ package armpolicy const ( moduleName = "armpolicy" - moduleVersion = "v0.7.0" + moduleVersion = "v0.7.1" ) // AliasPathAttributes - The attributes of the token that the alias path is referring to. diff --git a/sdk/resourcemanager/resources/armpolicy/models.go b/sdk/resourcemanager/resources/armpolicy/models.go index 8978970caf4e..4521305f6c63 100644 --- a/sdk/resourcemanager/resources/armpolicy/models.go +++ b/sdk/resourcemanager/resources/armpolicy/models.go @@ -14,128 +14,128 @@ import "time" // Alias - The alias type. type Alias struct { // The default path for an alias. - DefaultPath *string `json:"defaultPath,omitempty"` + DefaultPath *string // The default pattern for an alias. - DefaultPattern *AliasPattern `json:"defaultPattern,omitempty"` + DefaultPattern *AliasPattern // The alias name. - Name *string `json:"name,omitempty"` + Name *string // The paths for an alias. - Paths []*AliasPath `json:"paths,omitempty"` + Paths []*AliasPath // The type of the alias. - Type *AliasType `json:"type,omitempty"` + Type *AliasType // READ-ONLY; The default alias path metadata. Applies to the default path and to any alias path that doesn't have metadata - DefaultMetadata *AliasPathMetadata `json:"defaultMetadata,omitempty" azure:"ro"` + DefaultMetadata *AliasPathMetadata } // AliasPath - The type of the paths for alias. type AliasPath struct { // The API versions. - APIVersions []*string `json:"apiVersions,omitempty"` + APIVersions []*string // The path of an alias. - Path *string `json:"path,omitempty"` + Path *string // The pattern for an alias path. - Pattern *AliasPattern `json:"pattern,omitempty"` + Pattern *AliasPattern // READ-ONLY; The metadata of the alias path. If missing, fall back to the default metadata of the alias. - Metadata *AliasPathMetadata `json:"metadata,omitempty" azure:"ro"` + Metadata *AliasPathMetadata } type AliasPathMetadata struct { // READ-ONLY; The attributes of the token that the alias path is referring to. - Attributes *AliasPathAttributes `json:"attributes,omitempty" azure:"ro"` + Attributes *AliasPathAttributes // READ-ONLY; The type of the token that the alias path is referring to. - Type *AliasPathTokenType `json:"type,omitempty" azure:"ro"` + Type *AliasPathTokenType } // AliasPattern - The type of the pattern for an alias path. type AliasPattern struct { // The alias pattern phrase. - Phrase *string `json:"phrase,omitempty"` + Phrase *string // The type of alias pattern - Type *AliasPatternType `json:"type,omitempty"` + Type *AliasPatternType // The alias pattern variable. - Variable *string `json:"variable,omitempty"` + Variable *string } // Assignment - The policy assignment. type Assignment struct { // The managed identity associated with the policy assignment. - Identity *Identity `json:"identity,omitempty"` + Identity *Identity // The location of the policy assignment. Only required when utilizing managed identity. - Location *string `json:"location,omitempty"` + Location *string // Properties for the policy assignment. - Properties *AssignmentProperties `json:"properties,omitempty"` + Properties *AssignmentProperties // READ-ONLY; The ID of the policy assignment. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the policy assignment. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The system metadata relating to this resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the policy assignment. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // AssignmentListResult - List of policy assignments. type AssignmentListResult struct { // The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // An array of policy assignments. - Value []*Assignment `json:"value,omitempty"` + Value []*Assignment } // AssignmentProperties - The policy assignment properties. type AssignmentProperties struct { // This message will be part of response in case of policy violation. - Description *string `json:"description,omitempty"` + Description *string // The display name of the policy assignment. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // The policy assignment enforcement mode. Possible values are Default and DoNotEnforce. - EnforcementMode *EnforcementMode `json:"enforcementMode,omitempty"` + EnforcementMode *EnforcementMode // The policy assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs. - Metadata any `json:"metadata,omitempty"` + Metadata any // The messages that describe why a resource is non-compliant with the policy. - NonComplianceMessages []*NonComplianceMessage `json:"nonComplianceMessages,omitempty"` + NonComplianceMessages []*NonComplianceMessage // The policy's excluded scopes. - NotScopes []*string `json:"notScopes,omitempty"` + NotScopes []*string // The parameter values for the assigned policy rule. The keys are the parameter names. - Parameters map[string]*ParameterValuesValue `json:"parameters,omitempty"` + Parameters map[string]*ParameterValuesValue // The ID of the policy definition or policy set definition being assigned. - PolicyDefinitionID *string `json:"policyDefinitionId,omitempty"` + PolicyDefinitionID *string // READ-ONLY; The scope for the policy assignment. - Scope *string `json:"scope,omitempty" azure:"ro"` + Scope *string } type AssignmentUpdate struct { // The managed identity associated with the policy assignment. - Identity *Identity `json:"identity,omitempty"` + Identity *Identity // The location of the policy assignment. Only required when utilizing managed identity. - Location *string `json:"location,omitempty"` + Location *string } // AssignmentsClientCreateByIDOptions contains the optional parameters for the AssignmentsClient.CreateByID method. @@ -240,84 +240,84 @@ type AssignmentsClientUpdateOptions struct { // DataEffect - The data effect definition. type DataEffect struct { // The data effect details schema. - DetailsSchema any `json:"detailsSchema,omitempty"` + DetailsSchema any // The data effect name. - Name *string `json:"name,omitempty"` + Name *string } // DataManifestCustomResourceFunctionDefinition - The custom resource function definition. type DataManifestCustomResourceFunctionDefinition struct { // A value indicating whether the custom properties within the property bag are allowed. Needs api-version to be specified // in the policy rule eg - vault('2019-06-01'). - AllowCustomProperties *bool `json:"allowCustomProperties,omitempty"` + AllowCustomProperties *bool // The top-level properties that can be selected on the function's output. eg - [ "name", "location" ] if vault().name and // vault().location are supported - DefaultProperties []*string `json:"defaultProperties,omitempty"` + DefaultProperties []*string // The fully qualified control plane resource type that this function represents. eg - 'Microsoft.KeyVault/vaults'. - FullyQualifiedResourceType *string `json:"fullyQualifiedResourceType,omitempty"` + FullyQualifiedResourceType *string // The function name as it will appear in the policy rule. eg - 'vault'. - Name *string `json:"name,omitempty"` + Name *string } // DataManifestResourceFunctionsDefinition - The resource functions supported by a manifest type DataManifestResourceFunctionsDefinition struct { // An array of data manifest custom resource definition. - Custom []*DataManifestCustomResourceFunctionDefinition `json:"custom,omitempty"` + Custom []*DataManifestCustomResourceFunctionDefinition // The standard resource functions (subscription and/or resourceGroup). - Standard []*string `json:"standard,omitempty"` + Standard []*string } // DataPolicyManifest - The data policy manifest. type DataPolicyManifest struct { // The data policy manifest properties. - Properties *DataPolicyManifestProperties `json:"properties,omitempty"` + Properties *DataPolicyManifestProperties // READ-ONLY; The ID of the data policy manifest. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the data policy manifest (it's the same as the Policy Mode). - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource (Microsoft.Authorization/dataPolicyManifests). - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // DataPolicyManifestListResult - List of data policy manifests. type DataPolicyManifestListResult struct { // The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // An array of data policy manifests. - Value []*DataPolicyManifest `json:"value,omitempty"` + Value []*DataPolicyManifest } // DataPolicyManifestProperties - The properties of the data policy manifest. type DataPolicyManifestProperties struct { // The effect definition. - Effects []*DataEffect `json:"effects,omitempty"` + Effects []*DataEffect // The non-alias field accessor values that can be used in the policy rule. - FieldValues []*string `json:"fieldValues,omitempty"` + FieldValues []*string // A value indicating whether policy mode is allowed only in built-in definitions. - IsBuiltInOnly *bool `json:"isBuiltInOnly,omitempty"` + IsBuiltInOnly *bool // The list of namespaces for the data policy manifest. - Namespaces []*string `json:"namespaces,omitempty"` + Namespaces []*string // The policy mode of the data policy manifest. - PolicyMode *string `json:"policyMode,omitempty"` + PolicyMode *string // The resource functions definition specified in the data manifest. - ResourceFunctions *DataManifestResourceFunctionsDefinition `json:"resourceFunctions,omitempty"` + ResourceFunctions *DataManifestResourceFunctionsDefinition // An array of resource type aliases. - ResourceTypeAliases []*ResourceTypeAliases `json:"resourceTypeAliases,omitempty"` + ResourceTypeAliases []*ResourceTypeAliases } // DataPolicyManifestsClientGetByPolicyModeOptions contains the optional parameters for the DataPolicyManifestsClient.GetByPolicyMode @@ -337,85 +337,85 @@ type DataPolicyManifestsClientListOptions struct { // Definition - The policy definition. type Definition struct { // The policy definition properties. - Properties *DefinitionProperties `json:"properties,omitempty"` + Properties *DefinitionProperties // READ-ONLY; The ID of the policy definition. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the policy definition. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The system metadata relating to this resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource (Microsoft.Authorization/policyDefinitions). - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // DefinitionGroup - The policy definition group. type DefinitionGroup struct { // REQUIRED; The name of the group. - Name *string `json:"name,omitempty"` + Name *string // A resource ID of a resource that contains additional metadata about the group. - AdditionalMetadataID *string `json:"additionalMetadataId,omitempty"` + AdditionalMetadataID *string // The group's category. - Category *string `json:"category,omitempty"` + Category *string // The group's description. - Description *string `json:"description,omitempty"` + Description *string // The group's display name. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string } // DefinitionListResult - List of policy definitions. type DefinitionListResult struct { // The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // An array of policy definitions. - Value []*Definition `json:"value,omitempty"` + Value []*Definition } // DefinitionProperties - The policy definition properties. type DefinitionProperties struct { // The policy definition description. - Description *string `json:"description,omitempty"` + Description *string // The display name of the policy definition. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs. - Metadata any `json:"metadata,omitempty"` + Metadata any // The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data. - Mode *string `json:"mode,omitempty"` + Mode *string // The parameter definitions for parameters used in the policy rule. The keys are the parameter names. - Parameters map[string]*ParameterDefinitionsValue `json:"parameters,omitempty"` + Parameters map[string]*ParameterDefinitionsValue // The policy rule. - PolicyRule any `json:"policyRule,omitempty"` + PolicyRule any // The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static. - PolicyType *PolicyType `json:"policyType,omitempty"` + PolicyType *PolicyType } // DefinitionReference - The policy definition reference. type DefinitionReference struct { // REQUIRED; The ID of the policy definition or policy set definition. - PolicyDefinitionID *string `json:"policyDefinitionId,omitempty"` + PolicyDefinitionID *string // The name of the groups that this policy definition reference belongs to. - GroupNames []*string `json:"groupNames,omitempty"` + GroupNames []*string // The parameter values for the referenced policy rule. The keys are the parameter names. - Parameters map[string]*ParameterValuesValue `json:"parameters,omitempty"` + Parameters map[string]*ParameterValuesValue // A unique id (within the policy set definition) for this policy definition reference. - PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty"` + PolicyDefinitionReferenceID *string } // DefinitionsClientCreateOrUpdateAtManagementGroupOptions contains the optional parameters for the DefinitionsClient.CreateOrUpdateAtManagementGroup @@ -502,80 +502,80 @@ type DefinitionsClientListOptions 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 } // Exemption - The policy exemption. type Exemption struct { // REQUIRED; Properties for the policy exemption. - Properties *ExemptionProperties `json:"properties,omitempty"` + Properties *ExemptionProperties // READ-ONLY; The ID of the policy exemption. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the policy exemption. - 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 (Microsoft.Authorization/policyExemptions). - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ExemptionListResult - List of policy exemptions. type ExemptionListResult struct { // An array of policy exemptions. - Value []*Exemption `json:"value,omitempty"` + Value []*Exemption // READ-ONLY; The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // ExemptionProperties - The policy exemption properties. type ExemptionProperties struct { // REQUIRED; The policy exemption category. Possible values are Waiver and Mitigated. - ExemptionCategory *ExemptionCategory `json:"exemptionCategory,omitempty"` + ExemptionCategory *ExemptionCategory // REQUIRED; The ID of the policy assignment that is being exempted. - PolicyAssignmentID *string `json:"policyAssignmentId,omitempty"` + PolicyAssignmentID *string // The description of the policy exemption. - Description *string `json:"description,omitempty"` + Description *string // The display name of the policy exemption. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. - ExpiresOn *time.Time `json:"expiresOn,omitempty"` + ExpiresOn *time.Time // The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. - Metadata any `json:"metadata,omitempty"` + Metadata any // The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. - PolicyDefinitionReferenceIDs []*string `json:"policyDefinitionReferenceIds,omitempty"` + PolicyDefinitionReferenceIDs []*string } // ExemptionsClientCreateOrUpdateOptions contains the optional parameters for the ExemptionsClient.CreateOrUpdate method. @@ -664,18 +664,18 @@ type ExemptionsClientListOptions struct { // or a single user assigned identity. type Identity struct { // The identity type. This is the only required field when adding a system or user assigned identity to a resource. - Type *ResourceIdentityType `json:"type,omitempty"` + Type *ResourceIdentityType // The user identity associated with the policy. 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]*UserAssignedIdentitiesValue `json:"userAssignedIdentities,omitempty"` + UserAssignedIdentities map[string]*UserAssignedIdentitiesValue // READ-ONLY; The principal ID of the resource 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 of the resource identity. This property will only be provided for a system assigned identity - TenantID *string `json:"tenantId,omitempty" azure:"ro"` + TenantID *string } // NonComplianceMessage - A message that describes why a resource is non-compliant with the policy. This is shown in 'deny' @@ -683,27 +683,27 @@ type Identity struct { type NonComplianceMessage struct { // REQUIRED; A message that describes why a resource is non-compliant with the policy. This is shown in 'deny' error messages // and on resource's non-compliant compliance results. - Message *string `json:"message,omitempty"` + Message *string // The policy definition reference ID within a policy set definition the message is intended for. This is only applicable // if the policy assignment assigns a policy set definition. If this is not provided // the message applies to all policies assigned by this policy assignment. - PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty"` + PolicyDefinitionReferenceID *string } // ParameterDefinitionsValue - The definition of a parameter that can be provided to the policy. type ParameterDefinitionsValue struct { // The allowed values for the parameter. - AllowedValues []any `json:"allowedValues,omitempty"` + AllowedValues []any // The default value for the parameter if no value is provided. - DefaultValue any `json:"defaultValue,omitempty"` + DefaultValue any // General metadata for the parameter. - Metadata *ParameterDefinitionsValueMetadata `json:"metadata,omitempty"` + Metadata *ParameterDefinitionsValueMetadata // The data type of the parameter. - Type *ParameterType `json:"type,omitempty"` + Type *ParameterType } // ParameterDefinitionsValueMetadata - General metadata for the parameter. @@ -714,83 +714,83 @@ type ParameterDefinitionsValueMetadata struct { // Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during // policy assignment. This property is useful in case you wish to assign // permissions outside the assignment scope. - AssignPermissions *bool `json:"assignPermissions,omitempty"` + AssignPermissions *bool // The description of the parameter. - Description *string `json:"description,omitempty"` + Description *string // The display name for the parameter. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose // from. - StrongType *string `json:"strongType,omitempty"` + StrongType *string } // ParameterValuesValue - The value of a parameter. type ParameterValuesValue struct { // The value of the parameter. - Value any `json:"value,omitempty"` + Value any } // ResourceTypeAliases - The resource type aliases definition. type ResourceTypeAliases struct { // The aliases for property names. - Aliases []*Alias `json:"aliases,omitempty"` + Aliases []*Alias // The resource type name. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string } // SetDefinition - The policy set definition. type SetDefinition struct { // The policy definition properties. - Properties *SetDefinitionProperties `json:"properties,omitempty"` + Properties *SetDefinitionProperties // READ-ONLY; The ID of the policy set definition. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the policy set definition. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The system metadata relating to this resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource (Microsoft.Authorization/policySetDefinitions). - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SetDefinitionListResult - List of policy set definitions. type SetDefinitionListResult struct { // The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // An array of policy set definitions. - Value []*SetDefinition `json:"value,omitempty"` + Value []*SetDefinition } // SetDefinitionProperties - The policy set definition properties. type SetDefinitionProperties struct { // REQUIRED; An array of policy definition references. - PolicyDefinitions []*DefinitionReference `json:"policyDefinitions,omitempty"` + PolicyDefinitions []*DefinitionReference // The policy set definition description. - Description *string `json:"description,omitempty"` + Description *string // The display name of the policy set definition. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // The policy set definition metadata. Metadata is an open ended object and is typically a collection of key value pairs. - Metadata any `json:"metadata,omitempty"` + Metadata any // The policy set definition parameters that can be used in policy definition references. - Parameters map[string]*ParameterDefinitionsValue `json:"parameters,omitempty"` + Parameters map[string]*ParameterDefinitionsValue // The metadata describing groups of policy definition references within the policy set definition. - PolicyDefinitionGroups []*DefinitionGroup `json:"policyDefinitionGroups,omitempty"` + PolicyDefinitionGroups []*DefinitionGroup // The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static. - PolicyType *PolicyType `json:"policyType,omitempty"` + PolicyType *PolicyType } // SetDefinitionsClientCreateOrUpdateAtManagementGroupOptions contains the optional parameters for the SetDefinitionsClient.CreateOrUpdateAtManagementGroup @@ -879,28 +879,28 @@ type SetDefinitionsClientListOptions 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 } type UserAssignedIdentitiesValue 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 } diff --git a/sdk/resourcemanager/resources/armpolicy/models_serde.go b/sdk/resourcemanager/resources/armpolicy/models_serde.go index 9af9f2b26f31..bd17767cc57a 100644 --- a/sdk/resourcemanager/resources/armpolicy/models_serde.go +++ b/sdk/resourcemanager/resources/armpolicy/models_serde.go @@ -256,7 +256,7 @@ func (a AssignmentProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "description", a.Description) populate(objectMap, "displayName", a.DisplayName) populate(objectMap, "enforcementMode", a.EnforcementMode) - populate(objectMap, "metadata", &a.Metadata) + populateAny(objectMap, "metadata", a.Metadata) populate(objectMap, "nonComplianceMessages", a.NonComplianceMessages) populate(objectMap, "notScopes", a.NotScopes) populate(objectMap, "parameters", a.Parameters) @@ -343,7 +343,7 @@ func (a *AssignmentUpdate) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataEffect. func (d DataEffect) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "detailsSchema", &d.DetailsSchema) + populateAny(objectMap, "detailsSchema", d.DetailsSchema) populate(objectMap, "name", d.Name) return json.Marshal(objectMap) } @@ -684,10 +684,10 @@ func (d DefinitionProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "description", d.Description) populate(objectMap, "displayName", d.DisplayName) - populate(objectMap, "metadata", &d.Metadata) + populateAny(objectMap, "metadata", d.Metadata) populate(objectMap, "mode", d.Mode) populate(objectMap, "parameters", d.Parameters) - populate(objectMap, "policyRule", &d.PolicyRule) + populateAny(objectMap, "policyRule", d.PolicyRule) populate(objectMap, "policyType", d.PolicyType) return json.Marshal(objectMap) } @@ -772,7 +772,7 @@ func (d *DefinitionReference) 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) } @@ -924,7 +924,7 @@ func (e ExemptionProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "displayName", e.DisplayName) populate(objectMap, "exemptionCategory", e.ExemptionCategory) populateTimeRFC3339(objectMap, "expiresOn", e.ExpiresOn) - populate(objectMap, "metadata", &e.Metadata) + populateAny(objectMap, "metadata", e.Metadata) populate(objectMap, "policyAssignmentId", e.PolicyAssignmentID) populate(objectMap, "policyDefinitionReferenceIds", e.PolicyDefinitionReferenceIDs) return json.Marshal(objectMap) @@ -1042,7 +1042,7 @@ func (n *NonComplianceMessage) UnmarshalJSON(data []byte) error { func (p ParameterDefinitionsValue) 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) @@ -1134,7 +1134,7 @@ func (p *ParameterDefinitionsValueMetadata) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ParameterValuesValue. func (p ParameterValuesValue) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "value", &p.Value) + populateAny(objectMap, "value", p.Value) return json.Marshal(objectMap) } @@ -1268,7 +1268,7 @@ func (s SetDefinitionProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "description", s.Description) populate(objectMap, "displayName", s.DisplayName) - populate(objectMap, "metadata", &s.Metadata) + populateAny(objectMap, "metadata", s.Metadata) populate(objectMap, "parameters", s.Parameters) populate(objectMap, "policyDefinitionGroups", s.PolicyDefinitionGroups) populate(objectMap, "policyDefinitions", s.PolicyDefinitions) @@ -1402,6 +1402,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/resources/armresources/CHANGELOG.md b/sdk/resourcemanager/resources/armresources/CHANGELOG.md index 47945787ae79..5a20e9c9b934 100644 --- a/sdk/resourcemanager/resources/armresources/CHANGELOG.md +++ b/sdk/resourcemanager/resources/armresources/CHANGELOG.md @@ -1,5 +1,11 @@ # 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/resources/armresources/assets.json b/sdk/resourcemanager/resources/armresources/assets.json index e5617c721037..cd6e594324fa 100644 --- a/sdk/resourcemanager/resources/armresources/assets.json +++ b/sdk/resourcemanager/resources/armresources/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/resources/armresources", - "Tag": "go/resourcemanager/resources/armresources_c93c1204a9" + "Tag": "go/resourcemanager/resources/armresources_ab8e63cc21" } diff --git a/sdk/resourcemanager/resources/armresources/autorest.md b/sdk/resourcemanager/resources/armresources/autorest.md index cf3daee9e372..2767ecb00d9e 100644 --- a/sdk/resourcemanager/resources/armresources/autorest.md +++ b/sdk/resourcemanager/resources/armresources/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/4fd842fb73656039ec94ce367bcedee25a57bd18/specification/resources/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/4fd842fb73656039ec94ce367bcedee25a57bd18/specification/resources/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.1.0 +module-version: 1.1.1 package-resources: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resources/armresources/constants.go b/sdk/resourcemanager/resources/armresources/constants.go index db61086e99a8..2e355a761fe2 100644 --- a/sdk/resourcemanager/resources/armresources/constants.go +++ b/sdk/resourcemanager/resources/armresources/constants.go @@ -11,7 +11,7 @@ package armresources const ( moduleName = "armresources" - moduleVersion = "v1.1.0" + moduleVersion = "v1.1.1" ) // AliasPathAttributes - The attributes of the token that the alias path is referring to. diff --git a/sdk/resourcemanager/resources/armresources/models.go b/sdk/resourcemanager/resources/armresources/models.go index 6e7926493bee..4c1ed376b59a 100644 --- a/sdk/resourcemanager/resources/armresources/models.go +++ b/sdk/resourcemanager/resources/armresources/models.go @@ -13,78 +13,78 @@ import "time" type APIProfile struct { // READ-ONLY; The API version. - APIVersion *string `json:"apiVersion,omitempty" azure:"ro"` + APIVersion *string // READ-ONLY; The profile version. - ProfileVersion *string `json:"profileVersion,omitempty" azure:"ro"` + ProfileVersion *string } // Alias - The alias type. type Alias struct { // The default path for an alias. - DefaultPath *string `json:"defaultPath,omitempty"` + DefaultPath *string // The default pattern for an alias. - DefaultPattern *AliasPattern `json:"defaultPattern,omitempty"` + DefaultPattern *AliasPattern // The alias name. - Name *string `json:"name,omitempty"` + Name *string // The paths for an alias. - Paths []*AliasPath `json:"paths,omitempty"` + Paths []*AliasPath // The type of the alias. - Type *AliasType `json:"type,omitempty"` + Type *AliasType // READ-ONLY; The default alias path metadata. Applies to the default path and to any alias path that doesn't have metadata - DefaultMetadata *AliasPathMetadata `json:"defaultMetadata,omitempty" azure:"ro"` + DefaultMetadata *AliasPathMetadata } // AliasPath - The type of the paths for alias. type AliasPath struct { // The API versions. - APIVersions []*string `json:"apiVersions,omitempty"` + APIVersions []*string // The path of an alias. - Path *string `json:"path,omitempty"` + Path *string // The pattern for an alias path. - Pattern *AliasPattern `json:"pattern,omitempty"` + Pattern *AliasPattern // READ-ONLY; The metadata of the alias path. If missing, fall back to the default metadata of the alias. - Metadata *AliasPathMetadata `json:"metadata,omitempty" azure:"ro"` + Metadata *AliasPathMetadata } type AliasPathMetadata struct { // READ-ONLY; The attributes of the token that the alias path is referring to. - Attributes *AliasPathAttributes `json:"attributes,omitempty" azure:"ro"` + Attributes *AliasPathAttributes // READ-ONLY; The type of the token that the alias path is referring to. - Type *AliasPathTokenType `json:"type,omitempty" azure:"ro"` + Type *AliasPathTokenType } // AliasPattern - The type of the pattern for an alias path. type AliasPattern struct { // The alias pattern phrase. - Phrase *string `json:"phrase,omitempty"` + Phrase *string // The type of alias pattern - Type *AliasPatternType `json:"type,omitempty"` + Type *AliasPatternType // The alias pattern variable. - Variable *string `json:"variable,omitempty"` + Variable *string } // BasicDependency - Deployment dependency information. type BasicDependency struct { // The ID of the dependency. - ID *string `json:"id,omitempty"` + ID *string // The dependency resource name. - ResourceName *string `json:"resourceName,omitempty"` + ResourceName *string // The dependency resource type. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string } // ClientBeginCreateOrUpdateByIDOptions contains the optional parameters for the Client.BeginCreateOrUpdateByID method. @@ -216,123 +216,123 @@ type DebugSetting struct { // none. When setting this value, carefully consider the type of information you are passing in during deployment. By logging // information about the request or response, you could potentially expose // sensitive data that is retrieved through the deployment operations. - DetailLevel *string `json:"detailLevel,omitempty"` + DetailLevel *string } // Dependency - Deployment dependency information. type Dependency struct { // The list of dependencies. - DependsOn []*BasicDependency `json:"dependsOn,omitempty"` + DependsOn []*BasicDependency // The ID of the dependency. - ID *string `json:"id,omitempty"` + ID *string // The dependency resource name. - ResourceName *string `json:"resourceName,omitempty"` + ResourceName *string // The dependency resource type. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string } // Deployment operation parameters. type Deployment struct { // REQUIRED; The deployment properties. - Properties *DeploymentProperties `json:"properties,omitempty"` + Properties *DeploymentProperties // The location to store the deployment data. - Location *string `json:"location,omitempty"` + Location *string // Deployment tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // DeploymentExportResult - The deployment export result. type DeploymentExportResult struct { // The template content. - Template any `json:"template,omitempty"` + Template any } // DeploymentExtended - Deployment information. type DeploymentExtended struct { // the location of the deployment. - Location *string `json:"location,omitempty"` + Location *string // Deployment properties. - Properties *DeploymentPropertiesExtended `json:"properties,omitempty"` + Properties *DeploymentPropertiesExtended // Deployment tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; The ID of the deployment. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the deployment. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the deployment. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // DeploymentExtendedFilter - Deployment filter. type DeploymentExtendedFilter struct { // The provisioning state. - ProvisioningState *string `json:"provisioningState,omitempty"` + ProvisioningState *string } // DeploymentListResult - List of deployments. type DeploymentListResult struct { // An array of deployments. - Value []*DeploymentExtended `json:"value,omitempty"` + Value []*DeploymentExtended // READ-ONLY; The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // DeploymentOperation - Deployment operation information. type DeploymentOperation struct { // Deployment properties. - Properties *DeploymentOperationProperties `json:"properties,omitempty"` + Properties *DeploymentOperationProperties // READ-ONLY; Full deployment operation ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Deployment operation ID. - OperationID *string `json:"operationId,omitempty" azure:"ro"` + OperationID *string } // DeploymentOperationProperties - Deployment operation properties. type DeploymentOperationProperties struct { // READ-ONLY; The duration of the operation. - Duration *string `json:"duration,omitempty" azure:"ro"` + Duration *string // READ-ONLY; The name of the current provisioning operation. - ProvisioningOperation *ProvisioningOperation `json:"provisioningOperation,omitempty" azure:"ro"` + ProvisioningOperation *ProvisioningOperation // READ-ONLY; The state of the provisioning. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; The HTTP request message. - Request *HTTPMessage `json:"request,omitempty" azure:"ro"` + Request *HTTPMessage // READ-ONLY; The HTTP response message. - Response *HTTPMessage `json:"response,omitempty" azure:"ro"` + Response *HTTPMessage // READ-ONLY; Deployment operation service request id. - ServiceRequestID *string `json:"serviceRequestId,omitempty" azure:"ro"` + ServiceRequestID *string // READ-ONLY; Operation status code from the resource provider. This property may not be set if a response has not yet been // received. - StatusCode *string `json:"statusCode,omitempty" azure:"ro"` + StatusCode *string // READ-ONLY; Operation status message from the resource provider. This property is optional. It will only be provided if // an error was received from the resource provider. - StatusMessage *StatusMessage `json:"statusMessage,omitempty" azure:"ro"` + StatusMessage *StatusMessage // READ-ONLY; The target resource. - TargetResource *TargetResource `json:"targetResource,omitempty" azure:"ro"` + TargetResource *TargetResource // READ-ONLY; The date and time of the operation. - Timestamp *time.Time `json:"timestamp,omitempty" azure:"ro"` + Timestamp *time.Time } // DeploymentOperationsClientGetAtManagementGroupScopeOptions contains the optional parameters for the DeploymentOperationsClient.GetAtManagementGroupScope @@ -402,10 +402,10 @@ type DeploymentOperationsClientListOptions struct { // DeploymentOperationsListResult - List of deployment operations. type DeploymentOperationsListResult struct { // An array of deployment operations. - Value []*DeploymentOperation `json:"value,omitempty"` + Value []*DeploymentOperation // READ-ONLY; The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // DeploymentProperties - Deployment properties. @@ -415,107 +415,107 @@ type DeploymentProperties struct { // the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included // in the template are deleted. Be careful when using Complete mode as you may // unintentionally delete resources. - Mode *DeploymentMode `json:"mode,omitempty"` + Mode *DeploymentMode // The debug setting of the deployment. - DebugSetting *DebugSetting `json:"debugSetting,omitempty"` + DebugSetting *DebugSetting // Specifies whether template expressions are evaluated within the scope of the parent template or nested template. Only applicable // to nested templates. If not specified, default value is outer. - ExpressionEvaluationOptions *ExpressionEvaluationOptions `json:"expressionEvaluationOptions,omitempty"` + ExpressionEvaluationOptions *ExpressionEvaluationOptions // The deployment on error behavior. - OnErrorDeployment *OnErrorDeployment `json:"onErrorDeployment,omitempty"` + OnErrorDeployment *OnErrorDeployment // Name and value pairs that define the deployment parameters for the template. You use this element when you want to provide // the parameter values directly in the request rather than link to an existing // parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or // a well formed JSON string. - Parameters any `json:"parameters,omitempty"` + Parameters any // The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink // property or the parameters property, but not both. - ParametersLink *ParametersLink `json:"parametersLink,omitempty"` + ParametersLink *ParametersLink // The template content. You use this element when you want to pass the template syntax directly in the request rather than // link to an existing template. It can be a JObject or well-formed JSON string. // Use either the templateLink property or the template property, but not both. - Template any `json:"template,omitempty"` + Template any // The URI of the template. Use either the templateLink property or the template property, but not both. - TemplateLink *TemplateLink `json:"templateLink,omitempty"` + TemplateLink *TemplateLink } // DeploymentPropertiesExtended - Deployment properties with additional details. type DeploymentPropertiesExtended struct { // READ-ONLY; The correlation ID of the deployment. - CorrelationID *string `json:"correlationId,omitempty" azure:"ro"` + CorrelationID *string // READ-ONLY; The debug setting of the deployment. - DebugSetting *DebugSetting `json:"debugSetting,omitempty" azure:"ro"` + DebugSetting *DebugSetting // READ-ONLY; The list of deployment dependencies. - Dependencies []*Dependency `json:"dependencies,omitempty" azure:"ro"` + Dependencies []*Dependency // READ-ONLY; The duration of the template deployment. - Duration *string `json:"duration,omitempty" azure:"ro"` + Duration *string // READ-ONLY; The deployment error. - Error *ErrorResponse `json:"error,omitempty" azure:"ro"` + Error *ErrorResponse // READ-ONLY; The deployment mode. Possible values are Incremental and Complete. - Mode *DeploymentMode `json:"mode,omitempty" azure:"ro"` + Mode *DeploymentMode // READ-ONLY; The deployment on error behavior. - OnErrorDeployment *OnErrorDeploymentExtended `json:"onErrorDeployment,omitempty" azure:"ro"` + OnErrorDeployment *OnErrorDeploymentExtended // READ-ONLY; Array of provisioned resources. - OutputResources []*ResourceReference `json:"outputResources,omitempty" azure:"ro"` + OutputResources []*ResourceReference // READ-ONLY; Key/value pairs that represent deployment output. - Outputs any `json:"outputs,omitempty" azure:"ro"` + Outputs any // READ-ONLY; Deployment parameters. - Parameters any `json:"parameters,omitempty" azure:"ro"` + Parameters any // READ-ONLY; The URI referencing the parameters. - ParametersLink *ParametersLink `json:"parametersLink,omitempty" azure:"ro"` + ParametersLink *ParametersLink // READ-ONLY; The list of resource providers needed for the deployment. - Providers []*Provider `json:"providers,omitempty" azure:"ro"` + Providers []*Provider // READ-ONLY; Denotes the state of provisioning. - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ProvisioningState // READ-ONLY; The hash produced for the template. - TemplateHash *string `json:"templateHash,omitempty" azure:"ro"` + TemplateHash *string // READ-ONLY; The URI referencing the template. - TemplateLink *TemplateLink `json:"templateLink,omitempty" azure:"ro"` + TemplateLink *TemplateLink // READ-ONLY; The timestamp of the template deployment. - Timestamp *time.Time `json:"timestamp,omitempty" azure:"ro"` + Timestamp *time.Time // READ-ONLY; Array of validated resources. - ValidatedResources []*ResourceReference `json:"validatedResources,omitempty" azure:"ro"` + ValidatedResources []*ResourceReference } // DeploymentValidateResult - Information from validate template deployment response. type DeploymentValidateResult struct { // The template deployment properties. - Properties *DeploymentPropertiesExtended `json:"properties,omitempty"` + Properties *DeploymentPropertiesExtended // READ-ONLY; The deployment validation error. - Error *ErrorResponse `json:"error,omitempty" azure:"ro"` + Error *ErrorResponse } // DeploymentWhatIf - Deployment What-if operation parameters. type DeploymentWhatIf struct { // REQUIRED; The deployment properties. - Properties *DeploymentWhatIfProperties `json:"properties,omitempty"` + Properties *DeploymentWhatIfProperties // The location to store the deployment data. - Location *string `json:"location,omitempty"` + Location *string } // DeploymentWhatIfProperties - Deployment What-if properties. @@ -525,44 +525,44 @@ type DeploymentWhatIfProperties struct { // the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included // in the template are deleted. Be careful when using Complete mode as you may // unintentionally delete resources. - Mode *DeploymentMode `json:"mode,omitempty"` + Mode *DeploymentMode // The debug setting of the deployment. - DebugSetting *DebugSetting `json:"debugSetting,omitempty"` + DebugSetting *DebugSetting // Specifies whether template expressions are evaluated within the scope of the parent template or nested template. Only applicable // to nested templates. If not specified, default value is outer. - ExpressionEvaluationOptions *ExpressionEvaluationOptions `json:"expressionEvaluationOptions,omitempty"` + ExpressionEvaluationOptions *ExpressionEvaluationOptions // The deployment on error behavior. - OnErrorDeployment *OnErrorDeployment `json:"onErrorDeployment,omitempty"` + OnErrorDeployment *OnErrorDeployment // Name and value pairs that define the deployment parameters for the template. You use this element when you want to provide // the parameter values directly in the request rather than link to an existing // parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or // a well formed JSON string. - Parameters any `json:"parameters,omitempty"` + Parameters any // The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink // property or the parameters property, but not both. - ParametersLink *ParametersLink `json:"parametersLink,omitempty"` + ParametersLink *ParametersLink // The template content. You use this element when you want to pass the template syntax directly in the request rather than // link to an existing template. It can be a JObject or well-formed JSON string. // Use either the templateLink property or the template property, but not both. - Template any `json:"template,omitempty"` + Template any // The URI of the template. Use either the templateLink property or the template property, but not both. - TemplateLink *TemplateLink `json:"templateLink,omitempty"` + TemplateLink *TemplateLink // Optional What-If operation settings. - WhatIfSettings *DeploymentWhatIfSettings `json:"whatIfSettings,omitempty"` + WhatIfSettings *DeploymentWhatIfSettings } // DeploymentWhatIfSettings - Deployment What-If operation settings. type DeploymentWhatIfSettings struct { // The format of the What-If results - ResultFormat *WhatIfResultFormat `json:"resultFormat,omitempty"` + ResultFormat *WhatIfResultFormat } // DeploymentsClientBeginCreateOrUpdateAtManagementGroupScopeOptions contains the optional parameters for the DeploymentsClient.BeginCreateOrUpdateAtManagementGroupScope @@ -861,29 +861,29 @@ type DeploymentsClientListByResourceGroupOptions 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 } // ExportTemplateRequest - Export resource group template request parameters. @@ -891,220 +891,220 @@ type ExportTemplateRequest struct { // The export template options. A CSV-formatted list containing zero or more of the following: 'IncludeParameterDefaultValue', // 'IncludeComments', 'SkipResourceNameParameterization', // 'SkipAllParameterization' - Options *string `json:"options,omitempty"` + Options *string // The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. - Resources []*string `json:"resources,omitempty"` + Resources []*string } // ExpressionEvaluationOptions - Specifies whether template expressions are evaluated within the scope of the parent template // or nested template. type ExpressionEvaluationOptions struct { // The scope to be used for evaluation of parameters, variables and functions in a nested template. - Scope *ExpressionEvaluationOptionsScopeType `json:"scope,omitempty"` + Scope *ExpressionEvaluationOptionsScopeType } // ExtendedLocation - Resource extended location. type ExtendedLocation struct { // The extended location name. - Name *string `json:"name,omitempty"` + Name *string // The extended location type. - Type *ExtendedLocationType `json:"type,omitempty"` + Type *ExtendedLocationType } // GenericResource - Resource information. type GenericResource struct { // Resource extended location. - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + ExtendedLocation *ExtendedLocation // The identity of the resource. - Identity *Identity `json:"identity,omitempty"` + Identity *Identity // The kind of the resource. - Kind *string `json:"kind,omitempty"` + Kind *string // Resource location - Location *string `json:"location,omitempty"` + Location *string // ID of the resource that manages this resource. - ManagedBy *string `json:"managedBy,omitempty"` + ManagedBy *string // The plan of the resource. - Plan *Plan `json:"plan,omitempty"` + Plan *Plan // The resource properties. - Properties any `json:"properties,omitempty"` + Properties any // The SKU of the resource. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // 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 } // GenericResourceExpanded - Resource information. type GenericResourceExpanded struct { // Resource extended location. - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + ExtendedLocation *ExtendedLocation // The identity of the resource. - Identity *Identity `json:"identity,omitempty"` + Identity *Identity // The kind of the resource. - Kind *string `json:"kind,omitempty"` + Kind *string // Resource location - Location *string `json:"location,omitempty"` + Location *string // ID of the resource that manages this resource. - ManagedBy *string `json:"managedBy,omitempty"` + ManagedBy *string // The plan of the resource. - Plan *Plan `json:"plan,omitempty"` + Plan *Plan // The resource properties. - Properties any `json:"properties,omitempty"` + Properties any // The SKU of the resource. - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; The changed time of the resource. This is only present if requested via the $expand query parameter. - ChangedTime *time.Time `json:"changedTime,omitempty" azure:"ro"` + ChangedTime *time.Time // READ-ONLY; The created time of the resource. This is only present if requested via the $expand query parameter. - CreatedTime *time.Time `json:"createdTime,omitempty" azure:"ro"` + CreatedTime *time.Time // 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 provisioning state of the resource. This is only present if requested via the $expand query parameter. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GenericResourceFilter - Resource filter. type GenericResourceFilter struct { // The resource type. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string // The tag name. - Tagname *string `json:"tagname,omitempty"` + Tagname *string // The tag value. - Tagvalue *string `json:"tagvalue,omitempty"` + Tagvalue *string } // HTTPMessage - HTTP message. type HTTPMessage struct { // HTTP message content. - Content any `json:"content,omitempty"` + Content any } // Identity for the resource. type Identity struct { // The identity type. - Type *ResourceIdentityType `json:"type,omitempty"` + Type *ResourceIdentityType // The list of user 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]*IdentityUserAssignedIdentitiesValue `json:"userAssignedIdentities,omitempty"` + UserAssignedIdentities map[string]*IdentityUserAssignedIdentitiesValue // 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 } type IdentityUserAssignedIdentitiesValue 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 } // MoveInfo - Parameters of move resources. type MoveInfo struct { // The IDs of the resources. - Resources []*string `json:"resources,omitempty"` + Resources []*string // The target resource group. - TargetResourceGroup *string `json:"targetResourceGroup,omitempty"` + TargetResourceGroup *string } // OnErrorDeployment - Deployment on error behavior. type OnErrorDeployment struct { // The deployment to be used on error case. - DeploymentName *string `json:"deploymentName,omitempty"` + DeploymentName *string // The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. - Type *OnErrorDeploymentType `json:"type,omitempty"` + Type *OnErrorDeploymentType } // OnErrorDeploymentExtended - Deployment on error behavior with additional details. type OnErrorDeploymentExtended struct { // The deployment to be used on error case. - DeploymentName *string `json:"deploymentName,omitempty"` + DeploymentName *string // The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. - Type *OnErrorDeploymentType `json:"type,omitempty"` + Type *OnErrorDeploymentType // READ-ONLY; The state of the provisioning for the on error deployment. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // Operation - Microsoft.Resources operation type Operation struct { // The object that represents the operation. - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // Operation name: {provider}/{resource}/{operation} - Name *string `json:"name,omitempty"` + Name *string } // OperationDisplay - The object that represents the operation. type OperationDisplay struct { // Description of the operation. - Description *string `json:"description,omitempty"` + Description *string // Operation type: Read, write, delete, etc. - Operation *string `json:"operation,omitempty"` + Operation *string // Service provider: Microsoft.Resources - Provider *string `json:"provider,omitempty"` + Provider *string // Resource on which the operation is performed: Profile, endpoint, etc. - Resource *string `json:"resource,omitempty"` + Resource *string } // OperationListResult - Result of the request to list Microsoft.Resources operations. It contains a list of operations and // a URL link to get the next set of results. type OperationListResult struct { // URL to get the next set of operation list results if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // List of Microsoft.Resources operations. - Value []*Operation `json:"value,omitempty"` + Value []*Operation } // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. @@ -1115,161 +1115,161 @@ type OperationsClientListOptions struct { // ParametersLink - Entity representing the reference to the deployment parameters. type ParametersLink struct { // REQUIRED; The URI of the parameters file. - URI *string `json:"uri,omitempty"` + URI *string // If included, must match the ContentVersion in the template. - ContentVersion *string `json:"contentVersion,omitempty"` + ContentVersion *string } // Permission - Role definition permissions. type Permission struct { // Allowed actions. - Actions []*string `json:"actions,omitempty"` + Actions []*string // Allowed Data actions. - DataActions []*string `json:"dataActions,omitempty"` + DataActions []*string // Denied actions. - NotActions []*string `json:"notActions,omitempty"` + NotActions []*string // Denied Data actions. - NotDataActions []*string `json:"notDataActions,omitempty"` + NotDataActions []*string } // Plan for the resource. type Plan struct { // The plan ID. - Name *string `json:"name,omitempty"` + Name *string // The offer ID. - Product *string `json:"product,omitempty"` + Product *string // The promotion code. - PromotionCode *string `json:"promotionCode,omitempty"` + PromotionCode *string // The publisher ID. - Publisher *string `json:"publisher,omitempty"` + Publisher *string // The plan's version. - Version *string `json:"version,omitempty"` + Version *string } // Provider - Resource provider information. type Provider struct { // The namespace of the resource provider. - Namespace *string `json:"namespace,omitempty"` + Namespace *string // The provider authorization consent state. - ProviderAuthorizationConsentState *ProviderAuthorizationConsentState `json:"providerAuthorizationConsentState,omitempty"` + ProviderAuthorizationConsentState *ProviderAuthorizationConsentState // READ-ONLY; The provider ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The registration policy of the resource provider. - RegistrationPolicy *string `json:"registrationPolicy,omitempty" azure:"ro"` + RegistrationPolicy *string // READ-ONLY; The registration state of the resource provider. - RegistrationState *string `json:"registrationState,omitempty" azure:"ro"` + RegistrationState *string // READ-ONLY; The collection of provider resource types. - ResourceTypes []*ProviderResourceType `json:"resourceTypes,omitempty" azure:"ro"` + ResourceTypes []*ProviderResourceType } // ProviderConsentDefinition - The provider consent. type ProviderConsentDefinition struct { // A value indicating whether authorization is consented or not. - ConsentToAuthorization *bool `json:"consentToAuthorization,omitempty"` + ConsentToAuthorization *bool } // ProviderExtendedLocation - The provider extended location. type ProviderExtendedLocation struct { // The extended locations for the azure location. - ExtendedLocations []*string `json:"extendedLocations,omitempty"` + ExtendedLocations []*string // The azure location. - Location *string `json:"location,omitempty"` + Location *string // The extended location type. - Type *string `json:"type,omitempty"` + Type *string } // ProviderListResult - List of resource providers. type ProviderListResult struct { // An array of resource providers. - Value []*Provider `json:"value,omitempty"` + Value []*Provider // READ-ONLY; The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // ProviderPermission - The provider permission type ProviderPermission struct { // The application id. - ApplicationID *string `json:"applicationId,omitempty"` + ApplicationID *string // Role definition properties. - ManagedByRoleDefinition *RoleDefinition `json:"managedByRoleDefinition,omitempty"` + ManagedByRoleDefinition *RoleDefinition // The provider authorization consent state. - ProviderAuthorizationConsentState *ProviderAuthorizationConsentState `json:"providerAuthorizationConsentState,omitempty"` + ProviderAuthorizationConsentState *ProviderAuthorizationConsentState // Role definition properties. - RoleDefinition *RoleDefinition `json:"roleDefinition,omitempty"` + RoleDefinition *RoleDefinition } // ProviderPermissionListResult - List of provider permissions. type ProviderPermissionListResult struct { // An array of provider permissions. - Value []*ProviderPermission `json:"value,omitempty"` + Value []*ProviderPermission // READ-ONLY; The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // ProviderRegistrationRequest - The provider registration definition. type ProviderRegistrationRequest struct { // The provider consent. - ThirdPartyProviderConsent *ProviderConsentDefinition `json:"thirdPartyProviderConsent,omitempty"` + ThirdPartyProviderConsent *ProviderConsentDefinition } // ProviderResourceType - Resource type managed by the resource provider. type ProviderResourceType struct { // The API version. - APIVersions []*string `json:"apiVersions,omitempty"` + APIVersions []*string // The aliases that are supported by this resource type. - Aliases []*Alias `json:"aliases,omitempty"` + Aliases []*Alias // The additional capabilities offered by this resource type. - Capabilities *string `json:"capabilities,omitempty"` + Capabilities *string // The location mappings that are supported by this resource type. - LocationMappings []*ProviderExtendedLocation `json:"locationMappings,omitempty"` + LocationMappings []*ProviderExtendedLocation // The collection of locations where this resource type can be created. - Locations []*string `json:"locations,omitempty"` + Locations []*string // The properties. - Properties map[string]*string `json:"properties,omitempty"` + Properties map[string]*string // The resource type. - ResourceType *string `json:"resourceType,omitempty"` - ZoneMappings []*ZoneMapping `json:"zoneMappings,omitempty"` + ResourceType *string + ZoneMappings []*ZoneMapping // READ-ONLY; The API profiles for the resource provider. - APIProfiles []*APIProfile `json:"apiProfiles,omitempty" azure:"ro"` + APIProfiles []*APIProfile // READ-ONLY; The default API version. - DefaultAPIVersion *string `json:"defaultApiVersion,omitempty" azure:"ro"` + DefaultAPIVersion *string } // ProviderResourceTypeListResult - List of resource types of a resource provider. type ProviderResourceTypeListResult struct { // An array of resource types. - Value []*ProviderResourceType `json:"value,omitempty"` + Value []*ProviderResourceType // READ-ONLY; The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // ProviderResourceTypesClientListOptions contains the optional parameters for the ProviderResourceTypesClient.List method. @@ -1333,95 +1333,95 @@ type ProvidersClientUnregisterOptions struct { // Resource - Specified resource. type Resource struct { // Resource extended location. - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + ExtendedLocation *ExtendedLocation // 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 } // ResourceGroup - Resource group information. type ResourceGroup struct { // REQUIRED; The location of the resource group. It cannot be changed after the resource group has been created. It must be // one of the supported Azure locations. - Location *string `json:"location,omitempty"` + Location *string // The ID of the resource that manages this resource group. - ManagedBy *string `json:"managedBy,omitempty"` + ManagedBy *string // The resource group properties. - Properties *ResourceGroupProperties `json:"properties,omitempty"` + Properties *ResourceGroupProperties // The tags attached to the resource group. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; The ID of the resource group. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource group. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource group. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ResourceGroupExportResult - Resource group export result. type ResourceGroupExportResult struct { // The template export error. - Error *ErrorResponse `json:"error,omitempty"` + Error *ErrorResponse // The template content. - Template any `json:"template,omitempty"` + Template any } // ResourceGroupFilter - Resource group filter. type ResourceGroupFilter struct { // The tag name. - TagName *string `json:"tagName,omitempty"` + TagName *string // The tag value. - TagValue *string `json:"tagValue,omitempty"` + TagValue *string } // ResourceGroupListResult - List of resource groups. type ResourceGroupListResult struct { // An array of resource groups. - Value []*ResourceGroup `json:"value,omitempty"` + Value []*ResourceGroup // READ-ONLY; The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // ResourceGroupPatchable - Resource group information. type ResourceGroupPatchable struct { // The ID of the resource that manages this resource group. - ManagedBy *string `json:"managedBy,omitempty"` + ManagedBy *string // The name of the resource group. - Name *string `json:"name,omitempty"` + Name *string // The resource group properties. - Properties *ResourceGroupProperties `json:"properties,omitempty"` + Properties *ResourceGroupProperties // The tags attached to the resource group. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // ResourceGroupProperties - The resource group properties. type ResourceGroupProperties struct { // READ-ONLY; The provisioning state. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // ResourceGroupsClientBeginDeleteOptions contains the optional parameters for the ResourceGroupsClient.BeginDelete method. @@ -1474,152 +1474,152 @@ type ResourceGroupsClientUpdateOptions struct { // ResourceListResult - List of resource groups. type ResourceListResult struct { // An array of resources. - Value []*GenericResourceExpanded `json:"value,omitempty"` + Value []*GenericResourceExpanded // READ-ONLY; The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // ResourceProviderOperationDisplayProperties - Resource provider operation's display properties. type ResourceProviderOperationDisplayProperties struct { // Operation description. - Description *string `json:"description,omitempty"` + Description *string // Resource provider operation. - Operation *string `json:"operation,omitempty"` + Operation *string // Operation provider. - Provider *string `json:"provider,omitempty"` + Provider *string // Operation description. - Publisher *string `json:"publisher,omitempty"` + Publisher *string // Operation resource. - Resource *string `json:"resource,omitempty"` + Resource *string } // ResourceReference - The resource Id model. type ResourceReference struct { // READ-ONLY; The fully qualified resource Id. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string } // RoleDefinition - Role definition properties. type RoleDefinition struct { // The role definition ID. - ID *string `json:"id,omitempty"` + ID *string // If this is a service role. - IsServiceRole *bool `json:"isServiceRole,omitempty"` + IsServiceRole *bool // The role definition name. - Name *string `json:"name,omitempty"` + Name *string // Role definition permissions. - Permissions []*Permission `json:"permissions,omitempty"` + Permissions []*Permission // Role definition assignable scopes. - Scopes []*string `json:"scopes,omitempty"` + Scopes []*string } // SKU for the resource. type SKU struct { // The SKU capacity. - Capacity *int32 `json:"capacity,omitempty"` + Capacity *int32 // The SKU family. - Family *string `json:"family,omitempty"` + Family *string // The SKU model. - Model *string `json:"model,omitempty"` + Model *string // The SKU name. - Name *string `json:"name,omitempty"` + Name *string // The SKU size. - Size *string `json:"size,omitempty"` + Size *string // The SKU tier. - Tier *string `json:"tier,omitempty"` + Tier *string } // ScopedDeployment - Deployment operation parameters. type ScopedDeployment struct { // REQUIRED; The location to store the deployment data. - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; The deployment properties. - Properties *DeploymentProperties `json:"properties,omitempty"` + Properties *DeploymentProperties // Deployment tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // ScopedDeploymentWhatIf - Deployment What-if operation parameters. type ScopedDeploymentWhatIf struct { // REQUIRED; The location to store the deployment data. - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; The deployment properties. - Properties *DeploymentWhatIfProperties `json:"properties,omitempty"` + Properties *DeploymentWhatIfProperties } // StatusMessage - Operation status message object. type StatusMessage struct { // The error reported by the operation. - Error *ErrorResponse `json:"error,omitempty"` + Error *ErrorResponse // Status of the deployment operation. - Status *string `json:"status,omitempty"` + Status *string } // SubResource - Sub-resource. type SubResource struct { // Resource ID - ID *string `json:"id,omitempty"` + ID *string } // TagCount - Tag count. type TagCount struct { // Type of count. - Type *string `json:"type,omitempty"` + Type *string // Value of count. - Value *int32 `json:"value,omitempty"` + Value *int32 } // TagDetails - Tag details. type TagDetails struct { // The total number of resources that use the resource tag. When a tag is initially created and has no associated resources, // the value is 0. - Count *TagCount `json:"count,omitempty"` + Count *TagCount // The tag name. - TagName *string `json:"tagName,omitempty"` + TagName *string // The list of tag values. - Values []*TagValue `json:"values,omitempty"` + Values []*TagValue // READ-ONLY; The tag name ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string } // TagValue - Tag information. type TagValue struct { // The tag value count. - Count *TagCount `json:"count,omitempty"` + Count *TagCount // The tag value. - TagValue *string `json:"tagValue,omitempty"` + TagValue *string // READ-ONLY; The tag value ID. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string } // Tags - A dictionary of name and value pairs. type Tags struct { // Dictionary of - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // TagsClientCreateOrUpdateAtScopeOptions contains the optional parameters for the TagsClient.CreateOrUpdateAtScope method. @@ -1670,139 +1670,139 @@ type TagsClientUpdateAtScopeOptions struct { // TagsListResult - List of subscription tags. type TagsListResult struct { // An array of tags. - Value []*TagDetails `json:"value,omitempty"` + Value []*TagDetails // READ-ONLY; The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // TagsPatchResource - Wrapper resource for tags patch API request only. type TagsPatchResource struct { // The operation type for the patch API. - Operation *TagsPatchOperation `json:"operation,omitempty"` + Operation *TagsPatchOperation // The set of tags. - Properties *Tags `json:"properties,omitempty"` + Properties *Tags } // TagsResource - Wrapper resource for tags API requests and responses. type TagsResource struct { // REQUIRED; The set of tags. - Properties *Tags `json:"properties,omitempty"` + Properties *Tags // READ-ONLY; The ID of the tags wrapper resource. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the tags wrapper resource. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the tags wrapper resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // TargetResource - Target resource. type TargetResource struct { // The ID of the resource. - ID *string `json:"id,omitempty"` + ID *string // The name of the resource. - ResourceName *string `json:"resourceName,omitempty"` + ResourceName *string // The type of the resource. - ResourceType *string `json:"resourceType,omitempty"` + ResourceType *string } // TemplateHashResult - Result of the request to calculate template hash. It contains a string of minified template and its // hash. type TemplateHashResult struct { // The minified template string. - MinifiedTemplate *string `json:"minifiedTemplate,omitempty"` + MinifiedTemplate *string // The template hash. - TemplateHash *string `json:"templateHash,omitempty"` + TemplateHash *string } // TemplateLink - Entity representing the reference to the template. type TemplateLink struct { // If included, must match the ContentVersion in the template. - ContentVersion *string `json:"contentVersion,omitempty"` + ContentVersion *string // The resource id of a Template Spec. Use either the id or uri property, but not both. - ID *string `json:"id,omitempty"` + ID *string // The query string (for example, a SAS token) to be used with the templateLink URI. - QueryString *string `json:"queryString,omitempty"` + QueryString *string // The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template // was linked with a TemplateSpec, this will reference an artifact in the // TemplateSpec. If the parent was linked with a URI, the child deployment will be a combination of the parent and relativePath // URIs - RelativePath *string `json:"relativePath,omitempty"` + RelativePath *string // The URI of the template to deploy. Use either the uri or id property, but not both. - URI *string `json:"uri,omitempty"` + URI *string } // WhatIfChange - Information about a single resource change predicted by What-If operation. type WhatIfChange struct { // REQUIRED; Type of change that will be made to the resource when the deployment is executed. - ChangeType *ChangeType `json:"changeType,omitempty"` + ChangeType *ChangeType // REQUIRED; Resource ID - ResourceID *string `json:"resourceId,omitempty"` + ResourceID *string // The predicted snapshot of the resource after the deployment is executed. - After any `json:"after,omitempty"` + After any // The snapshot of the resource before the deployment is executed. - Before any `json:"before,omitempty"` + Before any // The predicted changes to resource properties. - Delta []*WhatIfPropertyChange `json:"delta,omitempty"` + Delta []*WhatIfPropertyChange // The explanation about why the resource is unsupported by What-If. - UnsupportedReason *string `json:"unsupportedReason,omitempty"` + UnsupportedReason *string } // WhatIfOperationProperties - Deployment operation properties. type WhatIfOperationProperties struct { // List of resource changes predicted by What-If operation. - Changes []*WhatIfChange `json:"changes,omitempty"` + Changes []*WhatIfChange } // WhatIfOperationResult - Result of the What-If operation. Contains a list of predicted changes and a URL link to get to // the next set of results. type WhatIfOperationResult struct { // Error when What-If operation fails. - Error *ErrorResponse `json:"error,omitempty"` + Error *ErrorResponse // What-If operation properties. - Properties *WhatIfOperationProperties `json:"properties,omitempty"` + Properties *WhatIfOperationProperties // Status of the What-If operation. - Status *string `json:"status,omitempty"` + Status *string } // WhatIfPropertyChange - The predicted change to the resource property. type WhatIfPropertyChange struct { // REQUIRED; The path of the property. - Path *string `json:"path,omitempty"` + Path *string // REQUIRED; The type of property change. - PropertyChangeType *PropertyChangeType `json:"propertyChangeType,omitempty"` + PropertyChangeType *PropertyChangeType // The value of the property after the deployment is executed. - After any `json:"after,omitempty"` + After any // The value of the property before the deployment is executed. - Before any `json:"before,omitempty"` + Before any // Nested property changes. - Children []*WhatIfPropertyChange `json:"children,omitempty"` + Children []*WhatIfPropertyChange } type ZoneMapping struct { // The location of the zone mapping. - Location *string `json:"location,omitempty"` - Zones []*string `json:"zones,omitempty"` + Location *string + Zones []*string } diff --git a/sdk/resourcemanager/resources/armresources/models_serde.go b/sdk/resourcemanager/resources/armresources/models_serde.go index 8745d868fed5..df592fc850b9 100644 --- a/sdk/resourcemanager/resources/armresources/models_serde.go +++ b/sdk/resourcemanager/resources/armresources/models_serde.go @@ -338,7 +338,7 @@ func (d *Deployment) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeploymentExportResult. func (d DeploymentExportResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "template", &d.Template) + populateAny(objectMap, "template", d.Template) return json.Marshal(objectMap) } @@ -603,9 +603,9 @@ func (d DeploymentProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "expressionEvaluationOptions", d.ExpressionEvaluationOptions) populate(objectMap, "mode", d.Mode) populate(objectMap, "onErrorDeployment", d.OnErrorDeployment) - populate(objectMap, "parameters", &d.Parameters) + populateAny(objectMap, "parameters", d.Parameters) populate(objectMap, "parametersLink", d.ParametersLink) - populate(objectMap, "template", &d.Template) + populateAny(objectMap, "template", d.Template) populate(objectMap, "templateLink", d.TemplateLink) return json.Marshal(objectMap) } @@ -662,8 +662,8 @@ func (d DeploymentPropertiesExtended) MarshalJSON() ([]byte, error) { populate(objectMap, "mode", d.Mode) populate(objectMap, "onErrorDeployment", d.OnErrorDeployment) populate(objectMap, "outputResources", d.OutputResources) - populate(objectMap, "outputs", &d.Outputs) - populate(objectMap, "parameters", &d.Parameters) + populateAny(objectMap, "outputs", d.Outputs) + populateAny(objectMap, "parameters", d.Parameters) populate(objectMap, "parametersLink", d.ParametersLink) populate(objectMap, "providers", d.Providers) populate(objectMap, "provisioningState", d.ProvisioningState) @@ -811,9 +811,9 @@ func (d DeploymentWhatIfProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "expressionEvaluationOptions", d.ExpressionEvaluationOptions) populate(objectMap, "mode", d.Mode) populate(objectMap, "onErrorDeployment", d.OnErrorDeployment) - populate(objectMap, "parameters", &d.Parameters) + populateAny(objectMap, "parameters", d.Parameters) populate(objectMap, "parametersLink", d.ParametersLink) - populate(objectMap, "template", &d.Template) + populateAny(objectMap, "template", d.Template) populate(objectMap, "templateLink", d.TemplateLink) populate(objectMap, "whatIfSettings", d.WhatIfSettings) return json.Marshal(objectMap) @@ -893,7 +893,7 @@ func (d *DeploymentWhatIfSettings) 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) } @@ -1064,7 +1064,7 @@ func (g GenericResource) MarshalJSON() ([]byte, error) { populate(objectMap, "managedBy", g.ManagedBy) populate(objectMap, "name", g.Name) populate(objectMap, "plan", g.Plan) - populate(objectMap, "properties", &g.Properties) + populateAny(objectMap, "properties", g.Properties) populate(objectMap, "sku", g.SKU) populate(objectMap, "tags", g.Tags) populate(objectMap, "type", g.Type) @@ -1137,7 +1137,7 @@ func (g GenericResourceExpanded) MarshalJSON() ([]byte, error) { populate(objectMap, "managedBy", g.ManagedBy) populate(objectMap, "name", g.Name) populate(objectMap, "plan", g.Plan) - populate(objectMap, "properties", &g.Properties) + populateAny(objectMap, "properties", g.Properties) populate(objectMap, "provisioningState", g.ProvisioningState) populate(objectMap, "sku", g.SKU) populate(objectMap, "tags", g.Tags) @@ -1245,7 +1245,7 @@ func (g *GenericResourceFilter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HTTPMessage. func (h HTTPMessage) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "content", &h.Content) + populateAny(objectMap, "content", h.Content) return json.Marshal(objectMap) } @@ -2083,7 +2083,7 @@ func (r *ResourceGroup) UnmarshalJSON(data []byte) error { func (r ResourceGroupExportResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "error", r.Error) - populate(objectMap, "template", &r.Template) + populateAny(objectMap, "template", r.Template) return json.Marshal(objectMap) } @@ -2898,8 +2898,8 @@ func (t *TemplateLink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WhatIfChange. func (w WhatIfChange) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "after", &w.After) - populate(objectMap, "before", &w.Before) + populateAny(objectMap, "after", w.After) + populateAny(objectMap, "before", w.Before) populate(objectMap, "changeType", w.ChangeType) populate(objectMap, "delta", w.Delta) populate(objectMap, "resourceId", w.ResourceID) @@ -3007,8 +3007,8 @@ func (w *WhatIfOperationResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WhatIfPropertyChange. func (w WhatIfPropertyChange) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "after", &w.After) - populate(objectMap, "before", &w.Before) + populateAny(objectMap, "after", w.After) + populateAny(objectMap, "before", w.Before) populate(objectMap, "children", w.Children) populate(objectMap, "path", w.Path) populate(objectMap, "propertyChangeType", w.PropertyChangeType) @@ -3088,6 +3088,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/resources/armsubscriptions/CHANGELOG.md b/sdk/resourcemanager/resources/armsubscriptions/CHANGELOG.md index 1c864425ee4d..865d94fb3d99 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/CHANGELOG.md +++ b/sdk/resourcemanager/resources/armsubscriptions/CHANGELOG.md @@ -1,5 +1,11 @@ # 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/resources/armsubscriptions/autorest.md b/sdk/resourcemanager/resources/armsubscriptions/autorest.md index dfae167066b3..fa8459bd6d9d 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/autorest.md +++ b/sdk/resourcemanager/resources/armsubscriptions/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.1.0 +module-version: 1.1.1 package-subscriptions: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resources/armsubscriptions/constants.go b/sdk/resourcemanager/resources/armsubscriptions/constants.go index fce790bef1fd..223396bb4368 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/constants.go +++ b/sdk/resourcemanager/resources/armsubscriptions/constants.go @@ -11,7 +11,7 @@ package armsubscriptions const ( moduleName = "armsubscriptions" - moduleVersion = "v1.1.0" + moduleVersion = "v1.1.1" ) // LocationType - The location type. diff --git a/sdk/resourcemanager/resources/armsubscriptions/models.go b/sdk/resourcemanager/resources/armsubscriptions/models.go index 670ef50e3900..b5c48e3cdb7c 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/models.go +++ b/sdk/resourcemanager/resources/armsubscriptions/models.go @@ -12,44 +12,44 @@ package armsubscriptions // AvailabilityZonePeers - List of availability zones shared by the subscriptions. type AvailabilityZonePeers struct { // Details of shared availability zone. - Peers []*Peers `json:"peers,omitempty"` + Peers []*Peers // READ-ONLY; The availabilityZone. - AvailabilityZone *string `json:"availabilityZone,omitempty" azure:"ro"` + AvailabilityZone *string } // CheckResourceNameResult - Resource Name valid if not a reserved word, does not contain a reserved word and does not start // with a reserved word type CheckResourceNameResult struct { // Name of Resource - Name *string `json:"name,omitempty"` + Name *string // Is the resource name Allowed or Reserved - Status *ResourceNameStatus `json:"status,omitempty"` + Status *ResourceNameStatus // Type of Resource - Type *string `json:"type,omitempty"` + Type *string } // CheckZonePeersRequest - Check zone peers request parameters. type CheckZonePeersRequest struct { // The Microsoft location. - Location *string `json:"location,omitempty"` + Location *string // The peer Microsoft Azure subscription ID. - SubscriptionIDs []*string `json:"subscriptionIds,omitempty"` + SubscriptionIDs []*string } // CheckZonePeersResult - Result of the Check zone peers operation. type CheckZonePeersResult struct { // The Availability Zones shared by the subscriptions. - AvailabilityZonePeers []*AvailabilityZonePeers `json:"availabilityZonePeers,omitempty"` + AvailabilityZonePeers []*AvailabilityZonePeers // the location of the subscription. - Location *string `json:"location,omitempty"` + Location *string // READ-ONLY; The subscription ID. - SubscriptionID *string `json:"subscriptionId,omitempty" azure:"ro"` + SubscriptionID *string } // ClientCheckZonePeersOptions contains the optional parameters for the Client.CheckZonePeers method. @@ -76,212 +76,212 @@ type ClientListOptions 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 { // 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 } // ErrorResponseAutoGenerated - 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 ErrorResponseAutoGenerated struct { // The error object. - Error *ErrorDetail `json:"error,omitempty"` + Error *ErrorDetail } // Location information. type Location struct { // Metadata of the location, such as lat/long, paired region, and others. - Metadata *LocationMetadata `json:"metadata,omitempty"` + Metadata *LocationMetadata // READ-ONLY; The display name of the location. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The location name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The display name of the location and its region. - RegionalDisplayName *string `json:"regionalDisplayName,omitempty" azure:"ro"` + RegionalDisplayName *string // READ-ONLY; The subscription ID. - SubscriptionID *string `json:"subscriptionId,omitempty" azure:"ro"` + SubscriptionID *string // READ-ONLY; The location type. - Type *LocationType `json:"type,omitempty" azure:"ro"` + Type *LocationType } // LocationListResult - Location list operation response. type LocationListResult struct { // An array of locations. - Value []*Location `json:"value,omitempty"` + Value []*Location } // LocationMetadata - Location metadata information type LocationMetadata struct { // The regions paired to this region. - PairedRegion []*PairedRegion `json:"pairedRegion,omitempty"` + PairedRegion []*PairedRegion // READ-ONLY; The geography group of the location. - GeographyGroup *string `json:"geographyGroup,omitempty" azure:"ro"` + GeographyGroup *string // READ-ONLY; The home location of an edge zone. - HomeLocation *string `json:"homeLocation,omitempty" azure:"ro"` + HomeLocation *string // READ-ONLY; The latitude of the location. - Latitude *string `json:"latitude,omitempty" azure:"ro"` + Latitude *string // READ-ONLY; The longitude of the location. - Longitude *string `json:"longitude,omitempty" azure:"ro"` + Longitude *string // READ-ONLY; The physical location of the Azure location. - PhysicalLocation *string `json:"physicalLocation,omitempty" azure:"ro"` + PhysicalLocation *string // READ-ONLY; The category of the region. - RegionCategory *RegionCategory `json:"regionCategory,omitempty" azure:"ro"` + RegionCategory *RegionCategory // READ-ONLY; The type of the region. - RegionType *RegionType `json:"regionType,omitempty" azure:"ro"` + RegionType *RegionType } // ManagedByTenant - Information about a tenant managing the subscription. type ManagedByTenant struct { // READ-ONLY; The tenant ID of the managing tenant. This is a GUID. - TenantID *string `json:"tenantId,omitempty" azure:"ro"` + TenantID *string } // Operation - Microsoft.Resources operation type Operation struct { // The object that represents the operation. - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // Operation name: {provider}/{resource}/{operation} - Name *string `json:"name,omitempty"` + Name *string } // OperationDisplay - The object that represents the operation. type OperationDisplay struct { // Description of the operation. - Description *string `json:"description,omitempty"` + Description *string // Operation type: Read, write, delete, etc. - Operation *string `json:"operation,omitempty"` + Operation *string // Service provider: Microsoft.Resources - Provider *string `json:"provider,omitempty"` + Provider *string // Resource on which the operation is performed: Profile, endpoint, etc. - Resource *string `json:"resource,omitempty"` + Resource *string } // OperationListResult - Result of the request to list Microsoft.Resources operations. It contains a list of operations and // a URL link to get the next set of results. type OperationListResult struct { // URL to get the next set of operation list results if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // List of Microsoft.Resources operations. - Value []*Operation `json:"value,omitempty"` + Value []*Operation } // PairedRegion - Information regarding paired region. type PairedRegion struct { // READ-ONLY; The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the paired region. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The subscription ID. - SubscriptionID *string `json:"subscriptionId,omitempty" azure:"ro"` + SubscriptionID *string } // Peers - Information about shared availability zone. type Peers struct { // READ-ONLY; The availabilityZone. - AvailabilityZone *string `json:"availabilityZone,omitempty" azure:"ro"` + AvailabilityZone *string // READ-ONLY; The subscription ID. - SubscriptionID *string `json:"subscriptionId,omitempty" azure:"ro"` + SubscriptionID *string } // ResourceName - Name and Type of the Resource type ResourceName struct { // REQUIRED; Name of the resource - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; The type of the resource - Type *string `json:"type,omitempty"` + Type *string } // Subscription information. type Subscription struct { // The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct // and Management. For example, 'Legacy, RoleBased'. - AuthorizationSource *string `json:"authorizationSource,omitempty"` + AuthorizationSource *string // An array containing the tenants managing the subscription. - ManagedByTenants []*ManagedByTenant `json:"managedByTenants,omitempty"` + ManagedByTenants []*ManagedByTenant // The subscription policies. - SubscriptionPolicies *SubscriptionPolicies `json:"subscriptionPolicies,omitempty"` + SubscriptionPolicies *SubscriptionPolicies // The tags attached to the subscription. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; The subscription display name. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted. - State *SubscriptionState `json:"state,omitempty" azure:"ro"` + State *SubscriptionState // READ-ONLY; The subscription ID. - SubscriptionID *string `json:"subscriptionId,omitempty" azure:"ro"` + SubscriptionID *string // READ-ONLY; The subscription tenant ID. - TenantID *string `json:"tenantId,omitempty" azure:"ro"` + TenantID *string } // SubscriptionClientCheckResourceNameOptions contains the optional parameters for the SubscriptionClient.CheckResourceName @@ -294,10 +294,10 @@ type SubscriptionClientCheckResourceNameOptions struct { // SubscriptionListResult - Subscription list operation response. type SubscriptionListResult struct { // REQUIRED; The URL to get the next set of results. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // An array of subscriptions. - Value []*Subscription `json:"value,omitempty"` + Value []*Subscription } // SubscriptionPolicies - Subscription policies. @@ -305,55 +305,55 @@ type SubscriptionPolicies struct { // READ-ONLY; The subscription location placement ID. The ID indicates which regions are visible for a subscription. For example, // a subscription with a location placement Id of Public_2014-09-01 has access to Azure // public regions. - LocationPlacementID *string `json:"locationPlacementId,omitempty" azure:"ro"` + LocationPlacementID *string // READ-ONLY; The subscription quota ID. - QuotaID *string `json:"quotaId,omitempty" azure:"ro"` + QuotaID *string // READ-ONLY; The subscription spending limit. - SpendingLimit *SpendingLimit `json:"spendingLimit,omitempty" azure:"ro"` + SpendingLimit *SpendingLimit } // TenantIDDescription - Tenant Id information. type TenantIDDescription struct { // READ-ONLY; Country/region name of the address for the tenant. - Country *string `json:"country,omitempty" azure:"ro"` + Country *string // READ-ONLY; Country/region abbreviation for the tenant. - CountryCode *string `json:"countryCode,omitempty" azure:"ro"` + CountryCode *string // READ-ONLY; The default domain for the tenant. - DefaultDomain *string `json:"defaultDomain,omitempty" azure:"ro"` + DefaultDomain *string // READ-ONLY; The display name of the tenant. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; The list of domains for the tenant. - Domains []*string `json:"domains,omitempty" azure:"ro"` + Domains []*string // READ-ONLY; The fully qualified ID of the tenant. For example, /tenants/00000000-0000-0000-0000-000000000000. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The tenant's branding logo URL. Only available for 'Home' tenant category. - TenantBrandingLogoURL *string `json:"tenantBrandingLogoUrl,omitempty" azure:"ro"` + TenantBrandingLogoURL *string // READ-ONLY; Category of the tenant. - TenantCategory *TenantCategory `json:"tenantCategory,omitempty" azure:"ro"` + TenantCategory *TenantCategory // READ-ONLY; The tenant ID. For example, 00000000-0000-0000-0000-000000000000. - TenantID *string `json:"tenantId,omitempty" azure:"ro"` + TenantID *string // READ-ONLY; The tenant type. Only available for 'Home' tenant category. - TenantType *string `json:"tenantType,omitempty" azure:"ro"` + TenantType *string } // TenantListResult - Tenant Ids information. type TenantListResult struct { // REQUIRED; The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // An array of tenants. - Value []*TenantIDDescription `json:"value,omitempty"` + Value []*TenantIDDescription } // TenantsClientListOptions contains the optional parameters for the TenantsClient.NewListPager method. diff --git a/sdk/resourcemanager/resources/armsubscriptions/models_serde.go b/sdk/resourcemanager/resources/armsubscriptions/models_serde.go index 4336caccdb32..da9adc8fc276 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/models_serde.go +++ b/sdk/resourcemanager/resources/armsubscriptions/models_serde.go @@ -151,7 +151,7 @@ func (c *CheckZonePeersResult) 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) } @@ -879,6 +879,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/resources/armtemplatespecs/CHANGELOG.md b/sdk/resourcemanager/resources/armtemplatespecs/CHANGELOG.md index 7387ff27d9a7..fe114fb624e9 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/CHANGELOG.md +++ b/sdk/resourcemanager/resources/armtemplatespecs/CHANGELOG.md @@ -1,5 +1,11 @@ # 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/resources/armtemplatespecs/autorest.md b/sdk/resourcemanager/resources/armtemplatespecs/autorest.md index fd5ee1fb9811..e75f3b81761e 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/autorest.md +++ b/sdk/resourcemanager/resources/armtemplatespecs/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.1.0 +module-version: 1.1.1 package-templatespecs: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resources/armtemplatespecs/constants.go b/sdk/resourcemanager/resources/armtemplatespecs/constants.go index 7fd9e0796de9..60cb638a9cd0 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/constants.go +++ b/sdk/resourcemanager/resources/armtemplatespecs/constants.go @@ -11,7 +11,7 @@ package armtemplatespecs const ( moduleName = "armtemplatespecs" - moduleVersion = "v1.1.0" + moduleVersion = "v1.1.1" ) // CreatedByType - The type of identity that created the resource. diff --git a/sdk/resourcemanager/resources/armtemplatespecs/models.go b/sdk/resourcemanager/resources/armtemplatespecs/models.go index ad4cd1e0083a..34482f5c7b29 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/models.go +++ b/sdk/resourcemanager/resources/armtemplatespecs/models.go @@ -14,16 +14,16 @@ import "time" // 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; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ClientCreateOrUpdateOptions contains the optional parameters for the Client.CreateOrUpdate method. @@ -76,206 +76,206 @@ type ClientUpdateOptions struct { type Error struct { // Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows // the OData error response format.) - Error *ErrorResponse `json:"error,omitempty"` + Error *ErrorResponse } // 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 } // LinkedTemplateArtifact - Represents a Template Spec artifact containing an embedded Azure Resource Manager template for // use as a linked template. type LinkedTemplateArtifact struct { // REQUIRED; A filesystem safe relative path of the artifact. - Path *string `json:"path,omitempty"` + Path *string // REQUIRED; The Azure Resource Manager template. - Template any `json:"template,omitempty"` + Template any } // ListResult - List of Template Specs. type ListResult struct { // An array of Template Specs. - Value []*TemplateSpec `json:"value,omitempty"` + Value []*TemplateSpec // READ-ONLY; The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *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 } // TemplateSpec - Template Spec object. type TemplateSpec struct { // REQUIRED; The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported // Azure locations. - Location *string `json:"location,omitempty"` + Location *string // Template Spec properties. - Properties *TemplateSpecProperties `json:"properties,omitempty"` + Properties *TemplateSpecProperties // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags 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; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // TemplateSpecProperties - Template Spec properties. type TemplateSpecProperties struct { // Template Spec description. - Description *string `json:"description,omitempty"` + Description *string // Template Spec display name. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. - Metadata any `json:"metadata,omitempty"` + Metadata any // READ-ONLY; High-level information about the versions within this Template Spec. The keys are the version names. Only populated // if the $expand query parameter is set to 'versions'. - Versions map[string]*TemplateSpecVersionInfo `json:"versions,omitempty" azure:"ro"` + Versions map[string]*TemplateSpecVersionInfo } // TemplateSpecUpdateModel - Template Spec properties to be updated (only tags are currently supported). type TemplateSpecUpdateModel struct { // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags 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; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // TemplateSpecVersion - Template Spec Version object. type TemplateSpecVersion struct { // REQUIRED; The location of the Template Spec Version. It must match the location of the parent Template Spec. - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; Template Spec Version properties. - Properties *TemplateSpecVersionProperties `json:"properties,omitempty"` + Properties *TemplateSpecVersionProperties // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags 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; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // TemplateSpecVersionInfo - High-level information about a Template Spec version. type TemplateSpecVersionInfo struct { // READ-ONLY; Template Spec version description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The timestamp of when the version was created. - TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"` + TimeCreated *time.Time // READ-ONLY; The timestamp of when the version was last modified. - TimeModified *time.Time `json:"timeModified,omitempty" azure:"ro"` + TimeModified *time.Time } // TemplateSpecVersionProperties - Template Spec Version properties. type TemplateSpecVersionProperties struct { // Template Spec version description. - Description *string `json:"description,omitempty"` + Description *string // An array of linked template artifacts. - LinkedTemplates []*LinkedTemplateArtifact `json:"linkedTemplates,omitempty"` + LinkedTemplates []*LinkedTemplateArtifact // The main Azure Resource Manager template content. - MainTemplate any `json:"mainTemplate,omitempty"` + MainTemplate any // The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. - Metadata any `json:"metadata,omitempty"` + Metadata any // The Azure Resource Manager template UI definition content. - UIFormDefinition any `json:"uiFormDefinition,omitempty"` + UIFormDefinition any } // TemplateSpecVersionUpdateModel - Template Spec Version properties to be updated (only tags are currently supported). type TemplateSpecVersionUpdateModel struct { // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags 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; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Type of this resource. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // TemplateSpecVersionsClientCreateOrUpdateOptions contains the optional parameters for the TemplateSpecVersionsClient.CreateOrUpdate @@ -321,8 +321,8 @@ type TemplateSpecVersionsClientUpdateOptions struct { // TemplateSpecVersionsListResult - List of Template Specs versions type TemplateSpecVersionsListResult struct { // An array of Template Spec versions. - Value []*TemplateSpecVersion `json:"value,omitempty"` + Value []*TemplateSpecVersion // READ-ONLY; The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } diff --git a/sdk/resourcemanager/resources/armtemplatespecs/models_serde.go b/sdk/resourcemanager/resources/armtemplatespecs/models_serde.go index f0637a5ac005..691260439439 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/models_serde.go +++ b/sdk/resourcemanager/resources/armtemplatespecs/models_serde.go @@ -85,7 +85,7 @@ func (e *Error) 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) } @@ -160,7 +160,7 @@ func (e *ErrorResponse) UnmarshalJSON(data []byte) error { func (l LinkedTemplateArtifact) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "path", l.Path) - populate(objectMap, "template", &l.Template) + populateAny(objectMap, "template", l.Template) return json.Marshal(objectMap) } @@ -321,7 +321,7 @@ func (t TemplateSpecProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "description", t.Description) populate(objectMap, "displayName", t.DisplayName) - populate(objectMap, "metadata", &t.Metadata) + populateAny(objectMap, "metadata", t.Metadata) populate(objectMap, "versions", t.Versions) return json.Marshal(objectMap) } @@ -489,9 +489,9 @@ func (t TemplateSpecVersionProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "description", t.Description) populate(objectMap, "linkedTemplates", t.LinkedTemplates) - populate(objectMap, "mainTemplate", &t.MainTemplate) - populate(objectMap, "metadata", &t.Metadata) - populate(objectMap, "uiFormDefinition", &t.UIFormDefinition) + populateAny(objectMap, "mainTemplate", t.MainTemplate) + populateAny(objectMap, "metadata", t.Metadata) + populateAny(objectMap, "uiFormDefinition", t.UIFormDefinition) return json.Marshal(objectMap) } @@ -611,6 +611,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/saas/armsaas/CHANGELOG.md b/sdk/resourcemanager/saas/armsaas/CHANGELOG.md index 2cf5d4a08efb..91efb33b785b 100644 --- a/sdk/resourcemanager/saas/armsaas/CHANGELOG.md +++ b/sdk/resourcemanager/saas/armsaas/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-03-31) ### Features Added diff --git a/sdk/resourcemanager/saas/armsaas/autorest.md b/sdk/resourcemanager/saas/armsaas/autorest.md index 5c26c5d9f6b9..315c61d85ad1 100644 --- a/sdk/resourcemanager/saas/armsaas/autorest.md +++ b/sdk/resourcemanager/saas/armsaas/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/saas/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/saas/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/saas/armsaas/constants.go b/sdk/resourcemanager/saas/armsaas/constants.go index 0b40d6ba5e75..15af3e7c53a1 100644 --- a/sdk/resourcemanager/saas/armsaas/constants.go +++ b/sdk/resourcemanager/saas/armsaas/constants.go @@ -11,7 +11,7 @@ package armsaas const ( moduleName = "armsaas" - moduleVersion = "v0.6.0" + moduleVersion = "v0.6.1" ) // PaymentChannelType - The Payment channel for the SaasSubscription. diff --git a/sdk/resourcemanager/saas/armsaas/models.go b/sdk/resourcemanager/saas/armsaas/models.go index b879fed7ae25..a52c79377edf 100644 --- a/sdk/resourcemanager/saas/armsaas/models.go +++ b/sdk/resourcemanager/saas/armsaas/models.go @@ -12,100 +12,100 @@ package armsaas // AccessTokenResult - the ISV access token result response. type AccessTokenResult struct { // The Publisher Offer Base Uri - PublisherOfferBaseURI *string `json:"publisherOfferBaseUri,omitempty"` + PublisherOfferBaseURI *string // The generated token - Token *string `json:"token,omitempty"` + Token *string } // App - the saasApp resource. type App struct { // the resource location. - Location *string `json:"location,omitempty"` + Location *string // the resource name. - Name *string `json:"name,omitempty"` + Name *string // the resource properties. - Properties *AppProperties `json:"properties,omitempty"` + Properties *AppProperties // the resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // the resource type. - Type *string `json:"type,omitempty"` + Type *string // READ-ONLY; the resource Id. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string } // AppOperation - saas app operations type AppOperation struct { // the operation display - Display *AppOperationDisplay `json:"display,omitempty"` + Display *AppOperationDisplay // whether the operation is a data action or not. - IsDataAction *bool `json:"isDataAction,omitempty"` + IsDataAction *bool // the operation name - Name *string `json:"name,omitempty"` + Name *string // the operation origin - Origin *string `json:"origin,omitempty"` + Origin *string } // AppOperationDisplay - Saas app operation display type AppOperationDisplay struct { // Description of the operation for display purposes - Description *string `json:"description,omitempty"` + Description *string // Name of the operation for display purposes - Operation *string `json:"operation,omitempty"` + Operation *string // Name of the provider for display purposes - Provider *string `json:"provider,omitempty"` + Provider *string // Name of the resource type for display purposes - Resource *string `json:"resource,omitempty"` + Resource *string } // AppOperationsResponseWithContinuation - saas app operation response with continuation. type AppOperationsResponseWithContinuation struct { // the next link to query to get the remaining results. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // the value of response. - Value []*AppOperation `json:"value,omitempty"` + Value []*AppOperation } // AppPlan - Saas resource plan. type AppPlan struct { // the plan id. - Name *string `json:"name,omitempty"` + Name *string // the offer id. - Product *string `json:"product,omitempty"` + Product *string // the publisher id. - Publisher *string `json:"publisher,omitempty"` + Publisher *string } // AppProperties - Saas resource properties. type AppProperties struct { // the resource plan details. - SaasAppPlan *AppPlan `json:"saasAppPlan,omitempty"` + SaasAppPlan *AppPlan // the Saas resource status. - Status *SaasAppStatus `json:"status,omitempty"` + Status *SaasAppStatus } // AppResponseWithContinuation - saas app response with continuation. type AppResponseWithContinuation struct { // the next link to query to get the remaining results. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // the value of response. - Value []*App `json:"value,omitempty"` + Value []*App } // ApplicationsClientListOptions contains the optional parameters for the ApplicationsClient.NewListPager method. @@ -139,95 +139,95 @@ type ClientGetResourceOptions struct { // CreationProperties - properties for creation saas type CreationProperties struct { // Whether the SaaS subscription will auto renew upon term end. - AutoRenew *bool `json:"autoRenew,omitempty"` + AutoRenew *bool // The offer id. - OfferID *string `json:"offerId,omitempty"` + OfferID *string // The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri. - PaymentChannelMetadata map[string]*string `json:"paymentChannelMetadata,omitempty"` + PaymentChannelMetadata map[string]*string // The Payment channel for the SaasSubscription. - PaymentChannelType *PaymentChannelType `json:"paymentChannelType,omitempty"` + PaymentChannelType *PaymentChannelType // The publisher id. - PublisherID *string `json:"publisherId,omitempty"` + PublisherID *string // The environment in the publisher side for this resource. - PublisherTestEnvironment *string `json:"publisherTestEnvironment,omitempty"` + PublisherTestEnvironment *string // The seat count. - Quantity *float32 `json:"quantity,omitempty"` + Quantity *float32 // The plan id. - SKUID *string `json:"skuId,omitempty"` + SKUID *string // The SaaS resource name. - SaasResourceName *string `json:"saasResourceName,omitempty"` + SaasResourceName *string // The saas session id used for dev service migration request. - SaasSessionID *string `json:"saasSessionId,omitempty"` + SaasSessionID *string // The saas subscription id used for tenant to subscription level migration request. - SaasSubscriptionID *string `json:"saasSubscriptionId,omitempty"` + SaasSubscriptionID *string // The current Term id. - TermID *string `json:"termId,omitempty"` + TermID *string } // DeleteOptions - delete Options type DeleteOptions struct { // the feedback - Feedback *string `json:"feedback,omitempty"` + Feedback *string // The reasonCode - ReasonCode *float32 `json:"reasonCode,omitempty"` + ReasonCode *float32 // whether it is unsubscribeOnly - UnsubscribeOnly *bool `json:"unsubscribeOnly,omitempty"` + UnsubscribeOnly *bool } // 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 } // MoveResource - Resource Move Options type MoveResource struct { // The resource uris to move - Resources []*string `json:"resources,omitempty"` + Resources []*string // The target resource group uri for the move - TargetResourceGroup *string `json:"targetResourceGroup,omitempty"` + TargetResourceGroup *string } // OperationClientBeginGetOptions contains the optional parameters for the OperationClient.BeginGet method. @@ -244,133 +244,133 @@ type OperationsClientListOptions struct { // Properties - saas resource properties type Properties struct { // Whether the current term is a Free Trial term - IsFreeTrial *bool `json:"isFreeTrial,omitempty"` + IsFreeTrial *bool // The last modifier date if this resource. - LastModified *string `json:"lastModified,omitempty"` + LastModified *string // The SaaS Subscription Status. - Status *SaasResourceStatus `json:"status,omitempty"` + Status *SaasResourceStatus // The current Term object. - Term *PropertiesTerm `json:"term,omitempty"` + Term *PropertiesTerm // READ-ONLY; The created date of this resource. - Created *string `json:"created,omitempty" azure:"ro"` + Created *string } // PropertiesTerm - The current Term object. type PropertiesTerm struct { // The end date of the current term - EndDate *string `json:"endDate,omitempty"` + EndDate *string // The start date of the current term - StartDate *string `json:"startDate,omitempty"` + StartDate *string // The unit indicating Monthly / Yearly - TermUnit *string `json:"termUnit,omitempty"` + TermUnit *string } // Resource - SaaS REST API resource definition. type Resource struct { // saas properties - Properties *ResourceProperties `json:"properties,omitempty"` + Properties *ResourceProperties // the resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; The resource uri - 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; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ResourceCreation - SaaS REST API resource definition for creation. type ResourceCreation struct { // Resource location. Only value allowed for SaaS is 'global' - Location *string `json:"location,omitempty"` + Location *string // The resource name - Name *string `json:"name,omitempty"` + Name *string // Properties of the SaaS resource that are relevant for creation. - Properties *CreationProperties `json:"properties,omitempty"` + Properties *CreationProperties // the resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; The resource uri - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ResourceProperties - saas properties type ResourceProperties struct { // Whether the SaaS subscription will auto renew upon term end. - AutoRenew *bool `json:"autoRenew,omitempty"` + AutoRenew *bool // Whether the current term is a Free Trial term - IsFreeTrial *bool `json:"isFreeTrial,omitempty"` + IsFreeTrial *bool // The last modifier date if this resource. - LastModified *string `json:"lastModified,omitempty"` + LastModified *string // The offer id. - OfferID *string `json:"offerId,omitempty"` + OfferID *string // The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri. - PaymentChannelMetadata map[string]*string `json:"paymentChannelMetadata,omitempty"` + PaymentChannelMetadata map[string]*string // The Payment channel for the SaasSubscription. - PaymentChannelType *PaymentChannelType `json:"paymentChannelType,omitempty"` + PaymentChannelType *PaymentChannelType // The publisher id. - PublisherID *string `json:"publisherId,omitempty"` + PublisherID *string // The environment in the publisher side for this resource. - PublisherTestEnvironment *string `json:"publisherTestEnvironment,omitempty"` + PublisherTestEnvironment *string // The seat count. - Quantity *float32 `json:"quantity,omitempty"` + Quantity *float32 // The plan id. - SKUID *string `json:"skuId,omitempty"` + SKUID *string // The SaaS resource name. - SaasResourceName *string `json:"saasResourceName,omitempty"` + SaasResourceName *string // The saas session id used for dev service migration request. - SaasSessionID *string `json:"saasSessionId,omitempty"` + SaasSessionID *string // The saas subscription id used for tenant to subscription level migration request. - SaasSubscriptionID *string `json:"saasSubscriptionId,omitempty"` + SaasSubscriptionID *string // The SaaS Subscription Status. - Status *SaasResourceStatus `json:"status,omitempty"` + Status *SaasResourceStatus // The current Term object. - Term *PropertiesTerm `json:"term,omitempty"` + Term *PropertiesTerm // The current Term id. - TermID *string `json:"termId,omitempty"` + TermID *string // READ-ONLY; The created date of this resource. - Created *string `json:"created,omitempty" azure:"ro"` + Created *string } // ResourceResponseWithContinuation - saas resources response with continuation. type ResourceResponseWithContinuation struct { // the next link to query to get the remaining results. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // the value of response. - Value []*Resource `json:"value,omitempty"` + Value []*Resource } // ResourcesClientListAccessTokenOptions contains the optional parameters for the ResourcesClient.ListAccessToken method. @@ -386,7 +386,7 @@ type ResourcesClientListOptions struct { // Result - Sample result definition type Result struct { // Sample property of type string - SampleProperty *string `json:"sampleProperty,omitempty"` + SampleProperty *string } // SubscriptionLevelClientBeginCreateOrUpdateOptions contains the optional parameters for the SubscriptionLevelClient.BeginCreateOrUpdate diff --git a/sdk/resourcemanager/saas/armsaas/models_serde.go b/sdk/resourcemanager/saas/armsaas/models_serde.go index dc3754baa6c2..45b9d0db4cf0 100644 --- a/sdk/resourcemanager/saas/armsaas/models_serde.go +++ b/sdk/resourcemanager/saas/armsaas/models_serde.go @@ -409,7 +409,7 @@ func (d *DeleteOptions) 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) } @@ -865,6 +865,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/security/armsecurity/CHANGELOG.md b/sdk/resourcemanager/security/armsecurity/CHANGELOG.md index 23a043612edc..73fb48734eae 100644 --- a/sdk/resourcemanager/security/armsecurity/CHANGELOG.md +++ b/sdk/resourcemanager/security/armsecurity/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 0.10.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + + ## 0.10.0 (2023-03-27) ### Features Added diff --git a/sdk/resourcemanager/security/armsecurity/autorest.md b/sdk/resourcemanager/security/armsecurity/autorest.md index 1bfc30ad38ae..0d665bddf493 100644 --- a/sdk/resourcemanager/security/armsecurity/autorest.md +++ b/sdk/resourcemanager/security/armsecurity/autorest.md @@ -9,7 +9,7 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/af3f7994582c0cbd61a48b636907ad2ac95d332c/specification/security/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/af3f7994582c0cbd61a48b636907ad2ac95d332c/specification/security/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.10.0 +module-version: 0.10.1 modelerfour: lenient-model-deduplication: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/security/armsecurity/constants.go b/sdk/resourcemanager/security/armsecurity/constants.go index 98f89235cbdd..98e750cdb382 100644 --- a/sdk/resourcemanager/security/armsecurity/constants.go +++ b/sdk/resourcemanager/security/armsecurity/constants.go @@ -11,7 +11,7 @@ package armsecurity const ( moduleName = "armsecurity" - moduleVersion = "v0.10.0" + moduleVersion = "v0.10.1" ) // AADConnectivityState - The connectivity state of the external AAD solution diff --git a/sdk/resourcemanager/security/armsecurity/models.go b/sdk/resourcemanager/security/armsecurity/models.go index 8abda8a177a4..ee59d2140051 100644 --- a/sdk/resourcemanager/security/armsecurity/models.go +++ b/sdk/resourcemanager/security/armsecurity/models.go @@ -14,28 +14,28 @@ import "time" // AADConnectivityStateAutoGenerated - Describes an Azure resource with kind type AADConnectivityStateAutoGenerated struct { // The connectivity state of the external AAD solution - ConnectivityState *AADConnectivityState `json:"connectivityState,omitempty"` + ConnectivityState *AADConnectivityState } // AADExternalSecuritySolution - Represents an AAD identity protection solution which sends logs to an OMS workspace. type AADExternalSecuritySolution struct { // The kind of the external solution - Kind *ExternalSecuritySolutionKind `json:"kind,omitempty"` + Kind *ExternalSecuritySolutionKind // The external security solution properties for AAD solutions - Properties *AADSolutionProperties `json:"properties,omitempty"` + Properties *AADSolutionProperties // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Location where the resource is stored - Location *string `json:"location,omitempty" azure:"ro"` + Location *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 } // AADSolutionProperties - The external security solution properties for AAD solutions @@ -44,12 +44,12 @@ type AADSolutionProperties struct { AdditionalProperties map[string]any // The connectivity state of the external AAD solution - ConnectivityState *AADConnectivityState `json:"connectivityState,omitempty"` - DeviceType *string `json:"deviceType,omitempty"` - DeviceVendor *string `json:"deviceVendor,omitempty"` + ConnectivityState *AADConnectivityState + DeviceType *string + DeviceVendor *string // Represents an OMS workspace to which the solution is connected - Workspace *ConnectedWorkspace `json:"workspace,omitempty"` + Workspace *ConnectedWorkspace } // AccountConnectorsClientCreateOrUpdateOptions contains the optional parameters for the AccountConnectorsClient.CreateOrUpdate @@ -76,25 +76,25 @@ type AccountConnectorsClientListOptions struct { // ActiveConnectionsNotInAllowedRange - Number of active connections is not in allowed range. type ActiveConnectionsNotInAllowedRange struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The maximum threshold. - MaxThreshold *int32 `json:"maxThreshold,omitempty"` + MaxThreshold *int32 // REQUIRED; The minimum threshold. - MinThreshold *int32 `json:"minThreshold,omitempty"` + MinThreshold *int32 // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // REQUIRED; The time window size in iso8601 format. - TimeWindowSize *string `json:"timeWindowSize,omitempty"` + TimeWindowSize *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type ActiveConnectionsNotInAllowedRange. @@ -134,57 +134,57 @@ func (a *ActiveConnectionsNotInAllowedRange) GetTimeWindowCustomAlertRule() *Tim type AdaptiveApplicationControlGroup struct { // REQUIRED; Represents a machines group and set of rules to be allowed running on a machine - Properties *AdaptiveApplicationControlGroupData `json:"properties,omitempty"` + Properties *AdaptiveApplicationControlGroupData // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Location where the resource is stored - Location *string `json:"location,omitempty" azure:"ro"` + Location *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 } // AdaptiveApplicationControlGroupData - Represents a machines group and set of rules to be allowed running on a machine type AdaptiveApplicationControlGroupData struct { // The application control policy enforcement/protection mode of the machine group - EnforcementMode *EnforcementMode `json:"enforcementMode,omitempty"` - PathRecommendations []*PathRecommendation `json:"pathRecommendations,omitempty"` + EnforcementMode *EnforcementMode + PathRecommendations []*PathRecommendation // The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, Executable is used for Linux. - ProtectionMode *ProtectionMode `json:"protectionMode,omitempty"` - VMRecommendations []*VMRecommendation `json:"vmRecommendations,omitempty"` + ProtectionMode *ProtectionMode + VMRecommendations []*VMRecommendation // READ-ONLY; The configuration status of the machines group or machine or rule - ConfigurationStatus *ConfigurationStatus `json:"configurationStatus,omitempty" azure:"ro"` + ConfigurationStatus *ConfigurationStatus // READ-ONLY - Issues []*AdaptiveApplicationControlIssueSummary `json:"issues,omitempty" azure:"ro"` + Issues []*AdaptiveApplicationControlIssueSummary // READ-ONLY; The initial recommendation status of the machine group or machine - RecommendationStatus *RecommendationStatus `json:"recommendationStatus,omitempty" azure:"ro"` + RecommendationStatus *RecommendationStatus // READ-ONLY; The source type of the machine group - SourceSystem *SourceSystem `json:"sourceSystem,omitempty" azure:"ro"` + SourceSystem *SourceSystem } // AdaptiveApplicationControlGroups - Represents a list of VM/server groups and set of rules that are Recommended by Microsoft // Defender for Cloud to be allowed type AdaptiveApplicationControlGroups struct { - Value []*AdaptiveApplicationControlGroup `json:"value,omitempty"` + Value []*AdaptiveApplicationControlGroup } // AdaptiveApplicationControlIssueSummary - Represents a summary of the alerts of the machine group type AdaptiveApplicationControlIssueSummary struct { // An alert that machines within a group can have - Issue *AdaptiveApplicationControlIssue `json:"issue,omitempty"` + Issue *AdaptiveApplicationControlIssue // The number of machines in the group that have this alert - NumberOfVMs *float32 `json:"numberOfVms,omitempty"` + NumberOfVMs *float32 } // AdaptiveApplicationControlsClientDeleteOptions contains the optional parameters for the AdaptiveApplicationControlsClient.Delete @@ -218,37 +218,37 @@ type AdaptiveApplicationControlsClientPutOptions struct { // resource type AdaptiveNetworkHardening struct { // Properties of the Adaptive Network Hardening resource - Properties *AdaptiveNetworkHardeningProperties `json:"properties,omitempty"` + Properties *AdaptiveNetworkHardeningProperties // 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 } type AdaptiveNetworkHardeningEnforceRequest struct { // REQUIRED; The Azure resource IDs of the effective network security groups that will be updated with the created security // rules from the Adaptive Network Hardening rules - NetworkSecurityGroups []*string `json:"networkSecurityGroups,omitempty"` + NetworkSecurityGroups []*string // REQUIRED; The rules to enforce - Rules []*Rule `json:"rules,omitempty"` + Rules []*Rule } // AdaptiveNetworkHardeningProperties - Adaptive Network Hardening resource properties type AdaptiveNetworkHardeningProperties struct { // The Network Security Groups effective on the network interfaces of the protected resource - EffectiveNetworkSecurityGroups []*EffectiveNetworkSecurityGroups `json:"effectiveNetworkSecurityGroups,omitempty"` + EffectiveNetworkSecurityGroups []*EffectiveNetworkSecurityGroups // The security rules which are recommended to be effective on the VM - Rules []*Rule `json:"rules,omitempty"` + Rules []*Rule // The UTC time on which the rules were calculated - RulesCalculationTime *time.Time `json:"rulesCalculationTime,omitempty"` + RulesCalculationTime *time.Time } // AdaptiveNetworkHardeningsClientBeginEnforceOptions contains the optional parameters for the AdaptiveNetworkHardeningsClient.BeginEnforce @@ -273,10 +273,10 @@ type AdaptiveNetworkHardeningsClientListByExtendedResourceOptions struct { // AdaptiveNetworkHardeningsList - Response for ListAdaptiveNetworkHardenings API service call type AdaptiveNetworkHardeningsList struct { // The URL to get the next set of results - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // A list of Adaptive Network Hardenings resources - Value []*AdaptiveNetworkHardening `json:"value,omitempty"` + Value []*AdaptiveNetworkHardening } // AdditionalDataClassification provides polymorphic access to related types. @@ -291,7 +291,7 @@ type AdditionalDataClassification interface { // AdditionalData - Details of the sub-assessment type AdditionalData struct { // REQUIRED; Sub-assessment resource type - AssessedResourceType *AssessedResourceType `json:"assessedResourceType,omitempty"` + AssessedResourceType *AssessedResourceType } // GetAdditionalData implements the AdditionalDataClassification interface for type AdditionalData. @@ -300,13 +300,13 @@ func (a *AdditionalData) GetAdditionalData() *AdditionalData { return a } // AdditionalWorkspacesProperties - Properties of the additional workspaces. type AdditionalWorkspacesProperties struct { // List of data types sent to workspace - DataTypes []*AdditionalWorkspaceDataType `json:"dataTypes,omitempty"` + DataTypes []*AdditionalWorkspaceDataType // Workspace type. - Type *AdditionalWorkspaceType `json:"type,omitempty"` + Type *AdditionalWorkspaceType // Workspace resource id - Workspace *string `json:"workspace,omitempty"` + Workspace *string } // AdvancedThreatProtectionClientCreateOptions contains the optional parameters for the AdvancedThreatProtectionClient.Create @@ -323,37 +323,37 @@ type AdvancedThreatProtectionClientGetOptions struct { // AdvancedThreatProtectionProperties - The Advanced Threat Protection settings. type AdvancedThreatProtectionProperties struct { // Indicates whether Advanced Threat Protection is enabled. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool } // AdvancedThreatProtectionSetting - The Advanced Threat Protection resource. type AdvancedThreatProtectionSetting struct { // The Advanced Threat Protection settings. - Properties *AdvancedThreatProtectionProperties `json:"properties,omitempty"` + Properties *AdvancedThreatProtectionProperties // 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 } // Alert - Security alert type Alert struct { // describes security alert properties. - Properties *AlertProperties `json:"properties,omitempty"` + Properties *AlertProperties // 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 } // AlertEntity - Changing set of properties depending on the entity type. @@ -362,104 +362,104 @@ type AlertEntity struct { AdditionalProperties map[string]any // READ-ONLY; Type of entity - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // AlertList - List of security alerts type AlertList struct { // describes security alert properties. - Value []*Alert `json:"value,omitempty"` + Value []*Alert // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // AlertProperties - describes security alert properties. type AlertProperties struct { // Custom properties for the alert. - ExtendedProperties map[string]*string `json:"extendedProperties,omitempty"` + ExtendedProperties map[string]*string // Changing set of properties depending on the supportingEvidence type. - SupportingEvidence *AlertPropertiesSupportingEvidence `json:"supportingEvidence,omitempty"` + SupportingEvidence *AlertPropertiesSupportingEvidence // READ-ONLY; The display name of the alert. - AlertDisplayName *string `json:"alertDisplayName,omitempty" azure:"ro"` + AlertDisplayName *string // READ-ONLY; Unique identifier for the detection logic (all alert instances from the same detection logic will have the same // alertType). - AlertType *string `json:"alertType,omitempty" azure:"ro"` + AlertType *string // READ-ONLY; A direct link to the alert page in Azure Portal. - AlertURI *string `json:"alertUri,omitempty" azure:"ro"` + AlertURI *string // READ-ONLY; The display name of the resource most related to this alert. - CompromisedEntity *string `json:"compromisedEntity,omitempty" azure:"ro"` + CompromisedEntity *string // READ-ONLY; Key for corelating related alerts. Alerts with the same correlation key considered to be related. - CorrelationKey *string `json:"correlationKey,omitempty" azure:"ro"` + CorrelationKey *string // READ-ONLY; Description of the suspicious activity that was detected. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The UTC time of the last event or activity included in the alert in ISO8601 format. - EndTimeUTC *time.Time `json:"endTimeUtc,omitempty" azure:"ro"` + EndTimeUTC *time.Time // READ-ONLY; A list of entities related to the alert. - Entities []*AlertEntity `json:"entities,omitempty" azure:"ro"` + Entities []*AlertEntity // READ-ONLY; Links related to the alert - ExtendedLinks []map[string]*string `json:"extendedLinks,omitempty" azure:"ro"` + ExtendedLinks []map[string]*string // READ-ONLY; The kill chain related intent behind the alert. For list of supported values, and explanations of Azure Security // Center's supported kill chain intents. - Intent *Intent `json:"intent,omitempty" azure:"ro"` + Intent *Intent // READ-ONLY; This field determines whether the alert is an incident (a compound grouping of several alerts) or a single alert. - IsIncident *bool `json:"isIncident,omitempty" azure:"ro"` + IsIncident *bool // READ-ONLY; The UTC processing end time of the alert in ISO8601 format. - ProcessingEndTimeUTC *time.Time `json:"processingEndTimeUtc,omitempty" azure:"ro"` + ProcessingEndTimeUTC *time.Time // READ-ONLY; The name of Azure Security Center pricing tier which powering this alert. Learn more: https://docs.microsoft.com/en-us/azure/security-center/security-center-pricing - ProductComponentName *string `json:"productComponentName,omitempty" azure:"ro"` + ProductComponentName *string // READ-ONLY; The name of the product which published this alert (Azure Security Center, Azure ATP, Microsoft Defender ATP, // O365 ATP, MCAS, and so on). - ProductName *string `json:"productName,omitempty" azure:"ro"` + ProductName *string // READ-ONLY; Manual action items to take to remediate the alert. - RemediationSteps []*string `json:"remediationSteps,omitempty" azure:"ro"` + RemediationSteps []*string // READ-ONLY; The resource identifiers that can be used to direct the alert to the right product exposure group (tenant, workspace, // subscription etc.). There can be multiple identifiers of different type per alert. - ResourceIdentifiers []ResourceIdentifierClassification `json:"resourceIdentifiers,omitempty" azure:"ro"` + ResourceIdentifiers []ResourceIdentifierClassification // READ-ONLY; The risk level of the threat that was detected. Learn more: https://docs.microsoft.com/en-us/azure/security-center/security-center-alerts-overview#how-are-alerts-classified. - Severity *AlertSeverity `json:"severity,omitempty" azure:"ro"` + Severity *AlertSeverity // READ-ONLY; The UTC time of the first event or activity included in the alert in ISO8601 format. - StartTimeUTC *time.Time `json:"startTimeUtc,omitempty" azure:"ro"` + StartTimeUTC *time.Time // READ-ONLY; The life cycle status of the alert. - Status *AlertStatus `json:"status,omitempty" azure:"ro"` + Status *AlertStatus // READ-ONLY; Kill chain related sub-techniques behind the alert. - SubTechniques []*string `json:"subTechniques,omitempty" azure:"ro"` + SubTechniques []*string // READ-ONLY; Unique identifier for the alert. - SystemAlertID *string `json:"systemAlertId,omitempty" azure:"ro"` + SystemAlertID *string // READ-ONLY; kill chain related techniques behind the alert. - Techniques []*string `json:"techniques,omitempty" azure:"ro"` + Techniques []*string // READ-ONLY; The UTC time the alert was generated in ISO8601 format. - TimeGeneratedUTC *time.Time `json:"timeGeneratedUtc,omitempty" azure:"ro"` + TimeGeneratedUTC *time.Time // READ-ONLY; The name of the vendor that raises the alert. - VendorName *string `json:"vendorName,omitempty" azure:"ro"` + VendorName *string // READ-ONLY; Schema version. - Version *string `json:"version,omitempty" azure:"ro"` + Version *string } // AlertPropertiesSupportingEvidence - Changing set of properties depending on the supportingEvidence type. @@ -468,19 +468,19 @@ type AlertPropertiesSupportingEvidence struct { AdditionalProperties map[string]any // READ-ONLY; Type of the supportingEvidence - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // AlertSimulatorBundlesRequestProperties - Simulate alerts according to this bundles. type AlertSimulatorBundlesRequestProperties struct { // REQUIRED; The kind of alert simulation. - Kind *Kind `json:"kind,omitempty"` + Kind *Kind // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]any // Bundles list. - Bundles []*BundleType `json:"bundles,omitempty"` + Bundles []*BundleType } // GetAlertSimulatorRequestProperties implements the AlertSimulatorRequestPropertiesClassification interface for type AlertSimulatorBundlesRequestProperties. @@ -494,7 +494,7 @@ func (a *AlertSimulatorBundlesRequestProperties) GetAlertSimulatorRequestPropert // AlertSimulatorRequestBody - Alert Simulator request body. type AlertSimulatorRequestBody struct { // Alert Simulator request body data. - Properties AlertSimulatorRequestPropertiesClassification `json:"properties,omitempty"` + Properties AlertSimulatorRequestPropertiesClassification } // AlertSimulatorRequestPropertiesClassification provides polymorphic access to related types. @@ -509,7 +509,7 @@ type AlertSimulatorRequestPropertiesClassification interface { // AlertSimulatorRequestProperties - Describes properties of an alert simulation request type AlertSimulatorRequestProperties struct { // REQUIRED; The kind of alert simulation. - Kind *Kind `json:"kind,omitempty"` + Kind *Kind // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]any @@ -523,25 +523,25 @@ func (a *AlertSimulatorRequestProperties) GetAlertSimulatorRequestProperties() * // AlertSyncSettingProperties - The alert sync setting properties type AlertSyncSettingProperties struct { // REQUIRED; Is the alert sync setting enabled - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool } // AlertSyncSettings - Represents an alert sync setting type AlertSyncSettings struct { // REQUIRED; the kind of the settings string - Kind *SettingKind `json:"kind,omitempty"` + Kind *SettingKind // Alert sync setting data - Properties *AlertSyncSettingProperties `json:"properties,omitempty"` + Properties *AlertSyncSettingProperties // 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 } // GetSetting implements the SettingClassification interface for type AlertSyncSettings. @@ -644,41 +644,41 @@ type AlertsClientUpdateSubscriptionLevelStateToResolveOptions struct { // AlertsSuppressionRule - Describes the suppression rule type AlertsSuppressionRule struct { // describes AlertsSuppressionRule properties - Properties *AlertsSuppressionRuleProperties `json:"properties,omitempty"` + Properties *AlertsSuppressionRuleProperties // 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 } // AlertsSuppressionRuleProperties - describes AlertsSuppressionRule properties type AlertsSuppressionRuleProperties struct { // REQUIRED; Type of the alert to automatically suppress. For all alert types, use '*' - AlertType *string `json:"alertType,omitempty"` + AlertType *string // REQUIRED; The reason for dismissing the alert - Reason *string `json:"reason,omitempty"` + Reason *string // REQUIRED; Possible states of the rule - State *RuleState `json:"state,omitempty"` + State *RuleState // Any comment regarding the rule - Comment *string `json:"comment,omitempty"` + Comment *string // Expiration date of the rule, if value is not provided or provided as null this field will default to the maximum allowed // expiration date. - ExpirationDateUTC *time.Time `json:"expirationDateUtc,omitempty"` + ExpirationDateUTC *time.Time // The suppression conditions - SuppressionAlertsScope *SuppressionAlertsScope `json:"suppressionAlertsScope,omitempty"` + SuppressionAlertsScope *SuppressionAlertsScope // READ-ONLY; The last time this rule was modified - LastModifiedUTC *time.Time `json:"lastModifiedUtc,omitempty" azure:"ro"` + LastModifiedUTC *time.Time } // AlertsSuppressionRulesClientDeleteOptions contains the optional parameters for the AlertsSuppressionRulesClient.Delete @@ -708,10 +708,10 @@ type AlertsSuppressionRulesClientUpdateOptions struct { // AlertsSuppressionRulesList - Suppression rules list for subscription. type AlertsSuppressionRulesList struct { // REQUIRED - Value []*AlertsSuppressionRule `json:"value,omitempty"` + Value []*AlertsSuppressionRule // READ-ONLY; URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // AllowedConnectionsClientGetOptions contains the optional parameters for the AllowedConnectionsClient.Get method. @@ -733,37 +733,37 @@ type AllowedConnectionsClientListOptions struct { // AllowedConnectionsList - List of all possible traffic between Azure resources type AllowedConnectionsList struct { // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY - Value []*AllowedConnectionsResource `json:"value,omitempty" azure:"ro"` + Value []*AllowedConnectionsResource } // AllowedConnectionsResource - The resource whose properties describes the allowed traffic between Azure resources type AllowedConnectionsResource struct { // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Location where the resource is stored - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Describes the allowed traffic between Azure resources - Properties *AllowedConnectionsResourceProperties `json:"properties,omitempty" azure:"ro"` + Properties *AllowedConnectionsResourceProperties // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // AllowedConnectionsResourceProperties - Describes the allowed traffic between Azure resources type AllowedConnectionsResourceProperties struct { // READ-ONLY; The UTC time on which the allowed connections resource was calculated - CalculatedDateTime *time.Time `json:"calculatedDateTime,omitempty" azure:"ro"` + CalculatedDateTime *time.Time // READ-ONLY; List of connectable resources - ConnectableResources []*ConnectableResource `json:"connectableResources,omitempty" azure:"ro"` + ConnectableResources []*ConnectableResource } // AllowlistCustomAlertRuleClassification provides polymorphic access to related types. @@ -779,22 +779,22 @@ type AllowlistCustomAlertRuleClassification interface { // AllowlistCustomAlertRule - A custom alert rule that checks if a value (depends on the custom alert type) is allowed. type AllowlistCustomAlertRule struct { // REQUIRED; The values to allow. The format of the values depends on the rule type. - AllowlistValues []*string `json:"allowlistValues,omitempty"` + AllowlistValues []*string // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; The value type of the items in the list. - ValueType *ValueType `json:"valueType,omitempty" azure:"ro"` + ValueType *ValueType } // GetAllowlistCustomAlertRule implements the AllowlistCustomAlertRuleClassification interface for type AllowlistCustomAlertRule. @@ -824,25 +824,25 @@ func (a *AllowlistCustomAlertRule) GetListCustomAlertRule() *ListCustomAlertRule // AmqpC2DMessagesNotInAllowedRange - Number of cloud to device messages (AMQP protocol) is not in allowed range. type AmqpC2DMessagesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The maximum threshold. - MaxThreshold *int32 `json:"maxThreshold,omitempty"` + MaxThreshold *int32 // REQUIRED; The minimum threshold. - MinThreshold *int32 `json:"minThreshold,omitempty"` + MinThreshold *int32 // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // REQUIRED; The time window size in iso8601 format. - TimeWindowSize *string `json:"timeWindowSize,omitempty"` + TimeWindowSize *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type AmqpC2DMessagesNotInAllowedRange. @@ -884,25 +884,25 @@ func (a *AmqpC2DMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeW // range. type AmqpC2DRejectedMessagesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The maximum threshold. - MaxThreshold *int32 `json:"maxThreshold,omitempty"` + MaxThreshold *int32 // REQUIRED; The minimum threshold. - MinThreshold *int32 `json:"minThreshold,omitempty"` + MinThreshold *int32 // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // REQUIRED; The time window size in iso8601 format. - TimeWindowSize *string `json:"timeWindowSize,omitempty"` + TimeWindowSize *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type AmqpC2DRejectedMessagesNotInAllowedRange. @@ -943,25 +943,25 @@ func (a *AmqpC2DRejectedMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule( // AmqpD2CMessagesNotInAllowedRange - Number of device to cloud messages (AMQP protocol) is not in allowed range. type AmqpD2CMessagesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The maximum threshold. - MaxThreshold *int32 `json:"maxThreshold,omitempty"` + MaxThreshold *int32 // REQUIRED; The minimum threshold. - MinThreshold *int32 `json:"minThreshold,omitempty"` + MinThreshold *int32 // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // REQUIRED; The time window size in iso8601 format. - TimeWindowSize *string `json:"timeWindowSize,omitempty"` + TimeWindowSize *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type AmqpD2CMessagesNotInAllowedRange. @@ -1002,16 +1002,16 @@ func (a *AmqpD2CMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeW // Application - Security Application over a given scope type Application struct { // Properties of a security application - Properties *ApplicationProperties `json:"properties,omitempty"` + Properties *ApplicationProperties // 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 } // ApplicationClientCreateOrUpdateOptions contains the optional parameters for the ApplicationClient.CreateOrUpdate method. @@ -1032,28 +1032,28 @@ type ApplicationClientGetOptions struct { // ApplicationCondition - Application's condition type ApplicationCondition struct { // The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples - Operator *ApplicationConditionOperator `json:"operator,omitempty"` + Operator *ApplicationConditionOperator // The application Condition's Property, e.g. ID, see examples - Property *string `json:"property,omitempty"` + Property *string // The application Condition's Value like IDs that contain some string, see examples - Value *string `json:"value,omitempty"` + Value *string } // ApplicationProperties - Describes properties of an application type ApplicationProperties struct { // REQUIRED; The application conditionSets - see examples - ConditionSets []any `json:"conditionSets,omitempty"` + ConditionSets []any // REQUIRED; The application source, what it affects, e.g. Assessments - SourceResourceType *ApplicationSourceResourceType `json:"sourceResourceType,omitempty"` + SourceResourceType *ApplicationSourceResourceType // description of the application - Description *string `json:"description,omitempty"` + Description *string // display name of the application - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string } // ApplicationsClientListOptions contains the optional parameters for the ApplicationsClient.NewListPager method. @@ -1064,320 +1064,320 @@ type ApplicationsClientListOptions struct { // ApplicationsList - Page of a security applications list type ApplicationsList struct { // READ-ONLY; The URI to fetch the next page - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; Collection of applications in this page - Value []*Application `json:"value,omitempty" azure:"ro"` + Value []*Application } // AscLocation - The ASC location of the subscription is in the "name" field type AscLocation struct { // An empty set of properties - Properties any `json:"properties,omitempty"` + Properties any // 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 } // AscLocationList - List of locations where ASC saves your data type AscLocationList struct { // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY - Value []*AscLocation `json:"value,omitempty" azure:"ro"` + Value []*AscLocation } // Assessment - Security assessment on a resource type Assessment struct { // Describes properties of an assessment. - Properties *AssessmentProperties `json:"properties,omitempty"` + Properties *AssessmentProperties // 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 } // AssessmentLinks - Links relevant to the assessment type AssessmentLinks struct { // READ-ONLY; Link to assessment in Azure Portal - AzurePortalURI *string `json:"azurePortalUri,omitempty" azure:"ro"` + AzurePortalURI *string } // AssessmentList - Page of a security assessments list type AssessmentList struct { // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; Collection of security assessments in this page - Value []*AssessmentResponse `json:"value,omitempty" azure:"ro"` + Value []*AssessmentResponse } // AssessmentMetadata - Security assessment metadata type AssessmentMetadata struct { // Describes properties of an assessment metadata. - Properties *AssessmentMetadataProperties `json:"properties,omitempty"` + Properties *AssessmentMetadataProperties // 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 } // AssessmentMetadataPartnerData - Describes the partner that created the assessment type AssessmentMetadataPartnerData struct { // REQUIRED; Name of the company of the partner - PartnerName *string `json:"partnerName,omitempty"` + PartnerName *string // REQUIRED; Secret to authenticate the partner and verify it created the assessment - write only - Secret *string `json:"secret,omitempty"` + Secret *string // Name of the product of the partner that created the assessment - ProductName *string `json:"productName,omitempty"` + ProductName *string } // AssessmentMetadataProperties - Describes properties of an assessment metadata. type AssessmentMetadataProperties struct { // REQUIRED; BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom // Azure Policy definition - AssessmentType *AssessmentType `json:"assessmentType,omitempty"` + AssessmentType *AssessmentType // REQUIRED; User friendly display name of the assessment - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // REQUIRED; The severity level of the assessment - Severity *Severity `json:"severity,omitempty"` - Categories []*Categories `json:"categories,omitempty"` + Severity *Severity + Categories []*Categories // Human readable description of the assessment - Description *string `json:"description,omitempty"` + Description *string // The implementation effort required to remediate this assessment - ImplementationEffort *ImplementationEffort `json:"implementationEffort,omitempty"` + ImplementationEffort *ImplementationEffort // Describes the partner that created the assessment - PartnerData *AssessmentMetadataPartnerData `json:"partnerData,omitempty"` + PartnerData *AssessmentMetadataPartnerData // True if this assessment is in preview release status - Preview *bool `json:"preview,omitempty"` + Preview *bool // Human readable description of what you should do to mitigate this security issue - RemediationDescription *string `json:"remediationDescription,omitempty"` - Threats []*Threats `json:"threats,omitempty"` + RemediationDescription *string + Threats []*Threats // The user impact of the assessment - UserImpact *UserImpact `json:"userImpact,omitempty"` + UserImpact *UserImpact // READ-ONLY; Azure resource ID of the policy definition that turns this assessment calculation on - PolicyDefinitionID *string `json:"policyDefinitionId,omitempty" azure:"ro"` + PolicyDefinitionID *string } // AssessmentMetadataPropertiesResponse - Describes properties of an assessment metadata response. type AssessmentMetadataPropertiesResponse struct { // REQUIRED; BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom // Azure Policy definition - AssessmentType *AssessmentType `json:"assessmentType,omitempty"` + AssessmentType *AssessmentType // REQUIRED; User friendly display name of the assessment - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // REQUIRED; The severity level of the assessment - Severity *Severity `json:"severity,omitempty"` - Categories []*Categories `json:"categories,omitempty"` + Severity *Severity + Categories []*Categories // Human readable description of the assessment - Description *string `json:"description,omitempty"` + Description *string // The implementation effort required to remediate this assessment - ImplementationEffort *ImplementationEffort `json:"implementationEffort,omitempty"` + ImplementationEffort *ImplementationEffort // Describes the partner that created the assessment - PartnerData *AssessmentMetadataPartnerData `json:"partnerData,omitempty"` - PlannedDeprecationDate *string `json:"plannedDeprecationDate,omitempty"` + PartnerData *AssessmentMetadataPartnerData + PlannedDeprecationDate *string // True if this assessment is in preview release status - Preview *bool `json:"preview,omitempty"` - PublishDates *AssessmentMetadataPropertiesResponsePublishDates `json:"publishDates,omitempty"` + Preview *bool + PublishDates *AssessmentMetadataPropertiesResponsePublishDates // Human readable description of what you should do to mitigate this security issue - RemediationDescription *string `json:"remediationDescription,omitempty"` - Tactics []*Tactics `json:"tactics,omitempty"` - Techniques []*Techniques `json:"techniques,omitempty"` - Threats []*Threats `json:"threats,omitempty"` + RemediationDescription *string + Tactics []*Tactics + Techniques []*Techniques + Threats []*Threats // The user impact of the assessment - UserImpact *UserImpact `json:"userImpact,omitempty"` + UserImpact *UserImpact // READ-ONLY; Azure resource ID of the policy definition that turns this assessment calculation on - PolicyDefinitionID *string `json:"policyDefinitionId,omitempty" azure:"ro"` + PolicyDefinitionID *string } type AssessmentMetadataPropertiesResponsePublishDates struct { // REQUIRED - Public *string `json:"public,omitempty"` - GA *string `json:"GA,omitempty"` + Public *string + GA *string } // AssessmentMetadataResponse - Security assessment metadata response type AssessmentMetadataResponse struct { // Describes properties of an assessment metadata response. - Properties *AssessmentMetadataPropertiesResponse `json:"properties,omitempty"` + Properties *AssessmentMetadataPropertiesResponse // 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 } // AssessmentMetadataResponseList - List of security assessment metadata type AssessmentMetadataResponseList struct { // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY - Value []*AssessmentMetadataResponse `json:"value,omitempty" azure:"ro"` + Value []*AssessmentMetadataResponse } // AssessmentPartnerData - Data regarding 3rd party partner integration type AssessmentPartnerData struct { // REQUIRED; Name of the company of the partner - PartnerName *string `json:"partnerName,omitempty"` + PartnerName *string // REQUIRED; secret to authenticate the partner - write only - Secret *string `json:"secret,omitempty"` + Secret *string } // AssessmentProperties - Describes properties of an assessment. type AssessmentProperties struct { // REQUIRED; Details of the resource that was assessed - ResourceDetails ResourceDetailsClassification `json:"resourceDetails,omitempty"` + ResourceDetails ResourceDetailsClassification // REQUIRED; The result of the assessment - Status *AssessmentStatus `json:"status,omitempty"` + Status *AssessmentStatus // Additional data regarding the assessment - AdditionalData map[string]*string `json:"additionalData,omitempty"` + AdditionalData map[string]*string // Describes properties of an assessment metadata. - Metadata *AssessmentMetadataProperties `json:"metadata,omitempty"` + Metadata *AssessmentMetadataProperties // Data regarding 3rd party partner integration - PartnersData *AssessmentPartnerData `json:"partnersData,omitempty"` + PartnersData *AssessmentPartnerData // READ-ONLY; User friendly display name of the assessment - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; Links relevant to the assessment - Links *AssessmentLinks `json:"links,omitempty" azure:"ro"` + Links *AssessmentLinks } // AssessmentPropertiesBase - Describes properties of an assessment. type AssessmentPropertiesBase struct { // REQUIRED; Details of the resource that was assessed - ResourceDetails ResourceDetailsClassification `json:"resourceDetails,omitempty"` + ResourceDetails ResourceDetailsClassification // Additional data regarding the assessment - AdditionalData map[string]*string `json:"additionalData,omitempty"` + AdditionalData map[string]*string // Describes properties of an assessment metadata. - Metadata *AssessmentMetadataProperties `json:"metadata,omitempty"` + Metadata *AssessmentMetadataProperties // Data regarding 3rd party partner integration - PartnersData *AssessmentPartnerData `json:"partnersData,omitempty"` + PartnersData *AssessmentPartnerData // READ-ONLY; User friendly display name of the assessment - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; Links relevant to the assessment - Links *AssessmentLinks `json:"links,omitempty" azure:"ro"` + Links *AssessmentLinks } // AssessmentPropertiesResponse - Describes properties of an assessment. type AssessmentPropertiesResponse struct { // REQUIRED; Details of the resource that was assessed - ResourceDetails ResourceDetailsClassification `json:"resourceDetails,omitempty"` + ResourceDetails ResourceDetailsClassification // REQUIRED; The result of the assessment - Status *AssessmentStatusResponse `json:"status,omitempty"` + Status *AssessmentStatusResponse // Additional data regarding the assessment - AdditionalData map[string]*string `json:"additionalData,omitempty"` + AdditionalData map[string]*string // Describes properties of an assessment metadata. - Metadata *AssessmentMetadataProperties `json:"metadata,omitempty"` + Metadata *AssessmentMetadataProperties // Data regarding 3rd party partner integration - PartnersData *AssessmentPartnerData `json:"partnersData,omitempty"` + PartnersData *AssessmentPartnerData // READ-ONLY; User friendly display name of the assessment - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; Links relevant to the assessment - Links *AssessmentLinks `json:"links,omitempty" azure:"ro"` + Links *AssessmentLinks } // AssessmentResponse - Security assessment on a resource - response format type AssessmentResponse struct { // Describes properties of an assessment. - Properties *AssessmentPropertiesResponse `json:"properties,omitempty"` + Properties *AssessmentPropertiesResponse // 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 } // AssessmentStatus - The result of the assessment type AssessmentStatus struct { // REQUIRED; Programmatic code for the status of the assessment - Code *AssessmentStatusCode `json:"code,omitempty"` + Code *AssessmentStatusCode // Programmatic code for the cause of the assessment status - Cause *string `json:"cause,omitempty"` + Cause *string // Human readable description of the assessment status - Description *string `json:"description,omitempty"` + Description *string } // AssessmentStatusResponse - The result of the assessment type AssessmentStatusResponse struct { // REQUIRED; Programmatic code for the status of the assessment - Code *AssessmentStatusCode `json:"code,omitempty"` + Code *AssessmentStatusCode // Programmatic code for the cause of the assessment status - Cause *string `json:"cause,omitempty"` + Cause *string // Human readable description of the assessment status - Description *string `json:"description,omitempty"` + Description *string // READ-ONLY; The time that the assessment was created and first evaluated. Returned as UTC time in ISO 8601 format - FirstEvaluationDate *time.Time `json:"firstEvaluationDate,omitempty" azure:"ro"` + FirstEvaluationDate *time.Time // READ-ONLY; The time that the status of the assessment last changed. Returned as UTC time in ISO 8601 format - StatusChangeDate *time.Time `json:"statusChangeDate,omitempty" azure:"ro"` + StatusChangeDate *time.Time } // AssessmentsClientCreateOrUpdateOptions contains the optional parameters for the AssessmentsClient.CreateOrUpdate method. @@ -1438,34 +1438,34 @@ type AssessmentsMetadataClientListOptions struct { // AtaExternalSecuritySolution - Represents an ATA security solution which sends logs to an OMS workspace type AtaExternalSecuritySolution struct { // The kind of the external solution - Kind *ExternalSecuritySolutionKind `json:"kind,omitempty"` + Kind *ExternalSecuritySolutionKind // The external security solution properties for ATA solutions - Properties *AtaSolutionProperties `json:"properties,omitempty"` + Properties *AtaSolutionProperties // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Location where the resource is stored - Location *string `json:"location,omitempty" azure:"ro"` + Location *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 } // AtaSolutionProperties - The external security solution properties for ATA solutions type AtaSolutionProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]any - DeviceType *string `json:"deviceType,omitempty"` - DeviceVendor *string `json:"deviceVendor,omitempty"` - LastEventReceived *string `json:"lastEventReceived,omitempty"` + DeviceType *string + DeviceVendor *string + LastEventReceived *string // Represents an OMS workspace to which the solution is connected - Workspace *ConnectedWorkspace `json:"workspace,omitempty"` + Workspace *ConnectedWorkspace } // AuthenticationDetailsPropertiesClassification provides polymorphic access to related types. @@ -1482,13 +1482,13 @@ type AuthenticationDetailsPropertiesClassification interface { type AuthenticationDetailsProperties struct { // REQUIRED; Connect to your cloud account, for AWS use either account credentials or role-based authentication. For GCP use // account organization credentials. - AuthenticationType *AuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *AuthenticationType // READ-ONLY; State of the multi-cloud connector - AuthenticationProvisioningState *AuthenticationProvisioningState `json:"authenticationProvisioningState,omitempty" azure:"ro"` + AuthenticationProvisioningState *AuthenticationProvisioningState // READ-ONLY; The permissions detected in the cloud account. - GrantedPermissions []*PermissionProperty `json:"grantedPermissions,omitempty" azure:"ro"` + GrantedPermissions []*PermissionProperty } // GetAuthenticationDetailsProperties implements the AuthenticationDetailsPropertiesClassification interface for type AuthenticationDetailsProperties. @@ -1499,31 +1499,31 @@ func (a *AuthenticationDetailsProperties) GetAuthenticationDetailsProperties() * // AutoProvisioningSetting - Auto provisioning setting type AutoProvisioningSetting struct { // Auto provisioning setting data - Properties *AutoProvisioningSettingProperties `json:"properties,omitempty"` + Properties *AutoProvisioningSettingProperties // 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 } // AutoProvisioningSettingList - List of all the auto provisioning settings response type AutoProvisioningSettingList struct { // List of all the auto provisioning settings - Value []*AutoProvisioningSetting `json:"value,omitempty"` + Value []*AutoProvisioningSetting // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // AutoProvisioningSettingProperties - describes properties of an auto provisioning setting type AutoProvisioningSettingProperties struct { // REQUIRED; Describes what kind of security agent provisioning action to take - AutoProvision *AutoProvision `json:"autoProvision,omitempty"` + AutoProvision *AutoProvision } // AutoProvisioningSettingsClientCreateOptions contains the optional parameters for the AutoProvisioningSettingsClient.Create @@ -1546,28 +1546,28 @@ type AutoProvisioningSettingsClientListOptions struct { // Automation - The security automation resource. type Automation struct { // Entity tag is used for comparing two or more entities from the same requested resource. - Etag *string `json:"etag,omitempty"` + Etag *string // Kind of the resource - Kind *string `json:"kind,omitempty"` + Kind *string // Location where the resource is stored - Location *string `json:"location,omitempty"` + Location *string // Security automation data - Properties *AutomationProperties `json:"properties,omitempty"` + Properties *AutomationProperties // A list of key value pairs that describe the resource. - 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 } // AutomationActionClassification provides polymorphic access to related types. @@ -1582,7 +1582,7 @@ type AutomationActionClassification interface { // AutomationAction - The action that should be triggered. type AutomationAction struct { // REQUIRED; The type of the action that will be triggered by the Automation - ActionType *ActionType `json:"actionType,omitempty"` + ActionType *ActionType } // GetAutomationAction implements the AutomationActionClassification interface for type AutomationAction. @@ -1592,16 +1592,16 @@ func (a *AutomationAction) GetAutomationAction() *AutomationAction { return a } // for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore type AutomationActionEventHub struct { // REQUIRED; The type of the action that will be triggered by the Automation - ActionType *ActionType `json:"actionType,omitempty"` + ActionType *ActionType // The target Event Hub connection string (it will not be included in any response). - ConnectionString *string `json:"connectionString,omitempty"` + ConnectionString *string // The target Event Hub Azure Resource ID. - EventHubResourceID *string `json:"eventHubResourceId,omitempty"` + EventHubResourceID *string // READ-ONLY; The target Event Hub SAS policy name. - SasPolicyName *string `json:"sasPolicyName,omitempty" azure:"ro"` + SasPolicyName *string } // GetAutomationAction implements the AutomationActionClassification interface for type AutomationActionEventHub. @@ -1615,14 +1615,14 @@ func (a *AutomationActionEventHub) GetAutomationAction() *AutomationAction { // Workflow Automation capabilities, visit https://aka.ms/ASCWorkflowAutomationLearnMore type AutomationActionLogicApp struct { // REQUIRED; The type of the action that will be triggered by the Automation - ActionType *ActionType `json:"actionType,omitempty"` + ActionType *ActionType // The triggered Logic App Azure Resource ID. This can also reside on other subscriptions, given that you have permissions // to trigger the Logic App - LogicAppResourceID *string `json:"logicAppResourceId,omitempty"` + LogicAppResourceID *string // The Logic App trigger URI endpoint (it will not be included in any response). - URI *string `json:"uri,omitempty"` + URI *string } // GetAutomationAction implements the AutomationActionClassification interface for type AutomationActionLogicApp. @@ -1639,10 +1639,10 @@ func (a *AutomationActionLogicApp) GetAutomationAction() *AutomationAction { // workspace. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore type AutomationActionWorkspace struct { // REQUIRED; The type of the action that will be triggered by the Automation - ActionType *ActionType `json:"actionType,omitempty"` + ActionType *ActionType // The fully qualified Log Analytics Workspace Azure Resource ID. - WorkspaceResourceID *string `json:"workspaceResourceId,omitempty"` + WorkspaceResourceID *string } // GetAutomationAction implements the AutomationActionClassification interface for type AutomationActionWorkspace. @@ -1655,10 +1655,10 @@ func (a *AutomationActionWorkspace) GetAutomationAction() *AutomationAction { // AutomationList - List of security automations response. type AutomationList struct { // REQUIRED; The list of security automations under the given scope. - Value []*Automation `json:"value,omitempty"` + Value []*Automation // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // AutomationProperties - A set of properties that defines the behavior of the automation configuration. To learn more about @@ -1666,37 +1666,37 @@ type AutomationList struct { type AutomationProperties struct { // A collection of the actions which are triggered if all the configured rules evaluations, within at least one rule set, // are true. - Actions []AutomationActionClassification `json:"actions,omitempty"` + Actions []AutomationActionClassification // The security automation description. - Description *string `json:"description,omitempty"` + Description *string // Indicates whether the security automation is enabled. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // A collection of scopes on which the security automations logic is applied. Supported scopes are the subscription itself // or a resource group under that subscription. The automation will only apply on // defined scopes. - Scopes []*AutomationScope `json:"scopes,omitempty"` + Scopes []*AutomationScope // A collection of the source event types which evaluate the security automation set of rules. - Sources []*AutomationSource `json:"sources,omitempty"` + Sources []*AutomationSource } // AutomationRuleSet - A rule set which evaluates all its rules upon an event interception. Only when all the included rules // in the rule set will be evaluated as 'true', will the event trigger the defined actions. type AutomationRuleSet struct { - Rules []*AutomationTriggeringRule `json:"rules,omitempty"` + Rules []*AutomationTriggeringRule } // AutomationScope - A single automation scope. type AutomationScope struct { // The resources scope description. - Description *string `json:"description,omitempty"` + Description *string // The resources scope path. Can be the subscription on which the automation is defined on or a resource group under that // subscription (fully qualified Azure resource IDs). - ScopePath *string `json:"scopePath,omitempty"` + ScopePath *string } // AutomationSource - The source event types which evaluate the security automation set of rules. For example - security alerts @@ -1704,11 +1704,11 @@ type AutomationScope struct { // schemas - please visit https://aka.ms/ASCAutomationSchemas. type AutomationSource struct { // A valid event source type. - EventSource *EventSource `json:"eventSource,omitempty"` + EventSource *EventSource // A set of rules which evaluate upon event interception. A logical disjunction is applied between defined rule sets (logical // 'or'). - RuleSets []*AutomationRuleSet `json:"ruleSets,omitempty"` + RuleSets []*AutomationRuleSet } // AutomationTriggeringRule - A rule which is evaluated upon event interception. The rule is configured by comparing a specific @@ -1716,25 +1716,25 @@ type AutomationSource struct { // operators set. type AutomationTriggeringRule struct { // The expected value. - ExpectedValue *string `json:"expectedValue,omitempty"` + ExpectedValue *string // A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType. - Operator *Operator `json:"operator,omitempty"` + Operator *Operator // The JPath of the entity model property that should be checked. - PropertyJPath *string `json:"propertyJPath,omitempty"` + PropertyJPath *string // The data type of the compared operands (string, integer, floating point number or a boolean [true/false]] - PropertyType *PropertyType `json:"propertyType,omitempty"` + PropertyType *PropertyType } // AutomationValidationStatus - The security automation model state property bag. type AutomationValidationStatus struct { // Indicates whether the model is valid or not. - IsValid *bool `json:"isValid,omitempty"` + IsValid *bool // The validation message. - Message *string `json:"message,omitempty"` + Message *string } // AutomationsClientCreateOrUpdateOptions contains the optional parameters for the AutomationsClient.CreateOrUpdate method. @@ -1774,22 +1774,22 @@ type AutomationsClientValidateOptions struct { type AwAssumeRoleAuthenticationDetailsProperties struct { // REQUIRED; Connect to your cloud account, for AWS use either account credentials or role-based authentication. For GCP use // account organization credentials. - AuthenticationType *AuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *AuthenticationType // REQUIRED; Assumed role ID is an identifier that you can use to create temporary security credentials. - AwsAssumeRoleArn *string `json:"awsAssumeRoleArn,omitempty"` + AwsAssumeRoleArn *string // REQUIRED; A unique identifier that is required when you assume a role in another account. - AwsExternalID *string `json:"awsExternalId,omitempty"` + AwsExternalID *string // READ-ONLY; The ID of the cloud account - AccountID *string `json:"accountId,omitempty" azure:"ro"` + AccountID *string // READ-ONLY; State of the multi-cloud connector - AuthenticationProvisioningState *AuthenticationProvisioningState `json:"authenticationProvisioningState,omitempty" azure:"ro"` + AuthenticationProvisioningState *AuthenticationProvisioningState // READ-ONLY; The permissions detected in the cloud account. - GrantedPermissions []*PermissionProperty `json:"grantedPermissions,omitempty" azure:"ro"` + GrantedPermissions []*PermissionProperty } // GetAuthenticationDetailsProperties implements the AuthenticationDetailsPropertiesClassification interface for type AwAssumeRoleAuthenticationDetailsProperties. @@ -1807,22 +1807,22 @@ func (a *AwAssumeRoleAuthenticationDetailsProperties) GetAuthenticationDetailsPr type AwsCredsAuthenticationDetailsProperties struct { // REQUIRED; Connect to your cloud account, for AWS use either account credentials or role-based authentication. For GCP use // account organization credentials. - AuthenticationType *AuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *AuthenticationType // REQUIRED; Public key element of the AWS credential object (write only) - AwsAccessKeyID *string `json:"awsAccessKeyId,omitempty"` + AwsAccessKeyID *string // REQUIRED; Secret key element of the AWS credential object (write only) - AwsSecretAccessKey *string `json:"awsSecretAccessKey,omitempty"` + AwsSecretAccessKey *string // READ-ONLY; The ID of the cloud account - AccountID *string `json:"accountId,omitempty" azure:"ro"` + AccountID *string // READ-ONLY; State of the multi-cloud connector - AuthenticationProvisioningState *AuthenticationProvisioningState `json:"authenticationProvisioningState,omitempty" azure:"ro"` + AuthenticationProvisioningState *AuthenticationProvisioningState // READ-ONLY; The permissions detected in the cloud account. - GrantedPermissions []*PermissionProperty `json:"grantedPermissions,omitempty" azure:"ro"` + GrantedPermissions []*PermissionProperty } // GetAuthenticationDetailsProperties implements the AuthenticationDetailsPropertiesClassification interface for type AwsCredsAuthenticationDetailsProperties. @@ -1837,10 +1837,10 @@ func (a *AwsCredsAuthenticationDetailsProperties) GetAuthenticationDetailsProper // AwsEnvironmentData - The aws connector environment data type AwsEnvironmentData struct { // REQUIRED; The type of the environment data. - EnvironmentType *EnvironmentType `json:"environmentType,omitempty"` + EnvironmentType *EnvironmentType // The AWS account's organizational data - OrganizationalData AwsOrganizationalDataClassification `json:"organizationalData,omitempty"` + OrganizationalData AwsOrganizationalDataClassification } // GetEnvironmentData implements the EnvironmentDataClassification interface for type AwsEnvironmentData. @@ -1862,7 +1862,7 @@ type AwsOrganizationalDataClassification interface { // AwsOrganizationalData - The awsOrganization data type AwsOrganizationalData struct { // REQUIRED; The multi cloud account's membership type in the organization - OrganizationMembershipType *OrganizationMembershipType `json:"organizationMembershipType,omitempty"` + OrganizationMembershipType *OrganizationMembershipType } // GetAwsOrganizationalData implements the AwsOrganizationalDataClassification interface for type AwsOrganizationalData. @@ -1871,13 +1871,13 @@ func (a *AwsOrganizationalData) GetAwsOrganizationalData() *AwsOrganizationalDat // AwsOrganizationalDataMaster - The awsOrganization data for the master account type AwsOrganizationalDataMaster struct { // REQUIRED; The multi cloud account's membership type in the organization - OrganizationMembershipType *OrganizationMembershipType `json:"organizationMembershipType,omitempty"` + OrganizationMembershipType *OrganizationMembershipType // If the multi cloud account is of membership type organization, list of accounts excluded from offering - ExcludedAccountIDs []*string `json:"excludedAccountIds,omitempty"` + ExcludedAccountIDs []*string // If the multi cloud account is of membership type organization, this will be the name of the onboarding stackset - StacksetName *string `json:"stacksetName,omitempty"` + StacksetName *string } // GetAwsOrganizationalData implements the AwsOrganizationalDataClassification interface for type AwsOrganizationalDataMaster. @@ -1890,10 +1890,10 @@ func (a *AwsOrganizationalDataMaster) GetAwsOrganizationalData() *AwsOrganizatio // AwsOrganizationalDataMember - The awsOrganization data for the member account type AwsOrganizationalDataMember struct { // REQUIRED; The multi cloud account's membership type in the organization - OrganizationMembershipType *OrganizationMembershipType `json:"organizationMembershipType,omitempty"` + OrganizationMembershipType *OrganizationMembershipType // If the multi cloud account is not of membership type organization, this will be the ID of the account's parent - ParentHierarchyID *string `json:"parentHierarchyId,omitempty"` + ParentHierarchyID *string } // GetAwsOrganizationalData implements the AwsOrganizationalDataClassification interface for type AwsOrganizationalDataMember. @@ -1906,7 +1906,7 @@ func (a *AwsOrganizationalDataMember) GetAwsOrganizationalData() *AwsOrganizatio // AzureDevOpsScopeEnvironmentData - The AzureDevOps scope connector's environment data type AzureDevOpsScopeEnvironmentData struct { // REQUIRED; The type of the environment data. - EnvironmentType *EnvironmentType `json:"environmentType,omitempty"` + EnvironmentType *EnvironmentType } // GetEnvironmentData implements the EnvironmentDataClassification interface for type AzureDevOpsScopeEnvironmentData. @@ -1919,10 +1919,10 @@ func (a *AzureDevOpsScopeEnvironmentData) GetEnvironmentData() *EnvironmentData // AzureResourceDetails - Details of the Azure resource that was assessed type AzureResourceDetails struct { // REQUIRED; The platform where the assessed resource resides - Source *Source `json:"source,omitempty"` + Source *Source // READ-ONLY; Azure resource Id of the assessed resource - ID *string `json:"id,omitempty" azure:"ro"` + ID *string } // GetResourceDetails implements the ResourceDetailsClassification interface for type AzureResourceDetails. @@ -1935,10 +1935,10 @@ func (a *AzureResourceDetails) GetResourceDetails() *ResourceDetails { // AzureResourceIdentifier - Azure resource identifier. type AzureResourceIdentifier struct { // REQUIRED; There can be multiple identifiers of different type per alert, this field specify the identifier type. - Type *ResourceIdentifierType `json:"type,omitempty"` + Type *ResourceIdentifierType // READ-ONLY; ARM resource identifier for the cloud resource being alerted on - AzureResourceID *string `json:"azureResourceId,omitempty" azure:"ro"` + AzureResourceID *string } // GetResourceIdentifier implements the ResourceIdentifierClassification interface for type AzureResourceIdentifier. @@ -1951,96 +1951,96 @@ func (a *AzureResourceIdentifier) GetResourceIdentifier() *ResourceIdentifier { // AzureResourceLink - Describes an Azure resource with kind type AzureResourceLink struct { // READ-ONLY; Azure resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string } // AzureTrackedResourceLocation - Describes an Azure resource with location type AzureTrackedResourceLocation struct { // Location where the resource is stored - Location *string `json:"location,omitempty"` + Location *string } // Baseline details. type Baseline struct { // Expected results. - ExpectedResults [][]*string `json:"expectedResults,omitempty"` + ExpectedResults [][]*string // Baseline update time (UTC). - UpdatedTime *time.Time `json:"updatedTime,omitempty"` + UpdatedTime *time.Time } // BaselineAdjustedResult - The rule result adjusted with baseline. type BaselineAdjustedResult struct { // Baseline details. - Baseline *Baseline `json:"baseline,omitempty"` + Baseline *Baseline // Results the are not in baseline. - ResultsNotInBaseline [][]*string `json:"resultsNotInBaseline,omitempty"` + ResultsNotInBaseline [][]*string // Results the are in baseline. - ResultsOnlyInBaseline [][]*string `json:"resultsOnlyInBaseline,omitempty"` + ResultsOnlyInBaseline [][]*string // The rule result status. - Status *RuleStatus `json:"status,omitempty"` + Status *RuleStatus } // BenchmarkReference - The benchmark references. type BenchmarkReference struct { // The benchmark name. - Benchmark *string `json:"benchmark,omitempty"` + Benchmark *string // The benchmark reference. - Reference *string `json:"reference,omitempty"` + Reference *string } // CVE details type CVE struct { // READ-ONLY; Link url - Link *string `json:"link,omitempty" azure:"ro"` + Link *string // READ-ONLY; CVE title - Title *string `json:"title,omitempty" azure:"ro"` + Title *string } // CVSS details type CVSS struct { // READ-ONLY; CVSS base - Base *float32 `json:"base,omitempty" azure:"ro"` + Base *float32 } // CefExternalSecuritySolution - Represents a security solution which sends CEF logs to an OMS workspace type CefExternalSecuritySolution struct { // The kind of the external solution - Kind *ExternalSecuritySolutionKind `json:"kind,omitempty"` + Kind *ExternalSecuritySolutionKind // The external security solution properties for CEF solutions - Properties *CefSolutionProperties `json:"properties,omitempty"` + Properties *CefSolutionProperties // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Location where the resource is stored - Location *string `json:"location,omitempty" azure:"ro"` + Location *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 } // CefSolutionProperties - The external security solution properties for CEF solutions type CefSolutionProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]any - Agent *string `json:"agent,omitempty"` - DeviceType *string `json:"deviceType,omitempty"` - DeviceVendor *string `json:"deviceVendor,omitempty"` - Hostname *string `json:"hostname,omitempty"` - LastEventReceived *string `json:"lastEventReceived,omitempty"` + Agent *string + DeviceType *string + DeviceVendor *string + Hostname *string + LastEventReceived *string // Represents an OMS workspace to which the solution is connected - Workspace *ConnectedWorkspace `json:"workspace,omitempty"` + Workspace *ConnectedWorkspace } // CloudOfferingClassification provides polymorphic access to related types. @@ -2058,10 +2058,10 @@ type CloudOfferingClassification interface { // CloudOffering - The security offering details type CloudOffering struct { // REQUIRED; The type of the security offering. - OfferingType *OfferingType `json:"offeringType,omitempty"` + OfferingType *OfferingType // READ-ONLY; The offering description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string } // GetCloudOffering implements the CloudOfferingClassification interface for type CloudOffering. @@ -2070,25 +2070,25 @@ func (c *CloudOffering) GetCloudOffering() *CloudOffering { return c } // Compliance of a scope type Compliance struct { // Compliance data - Properties *ComplianceProperties `json:"properties,omitempty"` + Properties *ComplianceProperties // 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 } // ComplianceList - List of Compliance objects response type ComplianceList struct { // List of Compliance objects - Value []*Compliance `json:"value,omitempty"` + Value []*Compliance // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // ComplianceProperties - The Compliance score (percentage) of a Subscription is a sum of all Resources' Compliances under @@ -2096,44 +2096,44 @@ type ComplianceList struct { // Definitions out of all Policy Definitions applicable to a given resource. type ComplianceProperties struct { // READ-ONLY; An array of segment, which is the actually the compliance assessment. - AssessmentResult []*ComplianceSegment `json:"assessmentResult,omitempty" azure:"ro"` + AssessmentResult []*ComplianceSegment // READ-ONLY; The timestamp when the Compliance calculation was conducted. - AssessmentTimestampUTCDate *time.Time `json:"assessmentTimestampUtcDate,omitempty" azure:"ro"` + AssessmentTimestampUTCDate *time.Time // READ-ONLY; The resource count of the given subscription for which the Compliance calculation was conducted (needed for // Management Group Compliance calculation). - ResourceCount *int32 `json:"resourceCount,omitempty" azure:"ro"` + ResourceCount *int32 } // ComplianceResult - a compliance result type ComplianceResult struct { // Compliance result data - Properties *ComplianceResultProperties `json:"properties,omitempty"` + Properties *ComplianceResultProperties // 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 } // ComplianceResultList - List of compliance results response type ComplianceResultList struct { // REQUIRED; List of compliance results - Value []*ComplianceResult `json:"value,omitempty"` + Value []*ComplianceResult // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // ComplianceResultProperties - Compliance result data type ComplianceResultProperties struct { // READ-ONLY; The status of the resource regarding a single assessment - ResourceStatus *ResourceStatus `json:"resourceStatus,omitempty" azure:"ro"` + ResourceStatus *ResourceStatus } // ComplianceResultsClientGetOptions contains the optional parameters for the ComplianceResultsClient.Get method. @@ -2149,10 +2149,10 @@ type ComplianceResultsClientListOptions struct { // ComplianceSegment - A segment of a compliance assessment. type ComplianceSegment struct { // READ-ONLY; The size (%) of the segment. - Percentage *float64 `json:"percentage,omitempty" azure:"ro"` + Percentage *float64 // READ-ONLY; The segment type, e.g. compliant, non-compliance, insufficient coverage, N/A, etc. - SegmentType *string `json:"segmentType,omitempty" azure:"ro"` + SegmentType *string } // CompliancesClientGetOptions contains the optional parameters for the CompliancesClient.Get method. @@ -2168,65 +2168,65 @@ type CompliancesClientListOptions struct { // Condition - Governance rule's condition type Condition struct { // The governance rule Condition's Operator, for example Equals for severity or In for list of assessments, see examples - Operator *GovernanceRuleConditionOperator `json:"operator,omitempty"` + Operator *GovernanceRuleConditionOperator // The governance rule Condition's Property, e.g. Severity or AssessmentKey, see examples - Property *string `json:"property,omitempty"` + Property *string // The governance rule Condition's Value like severity Low, High or assessments keys, see examples - Value *string `json:"value,omitempty"` + Value *string } // ConnectableResource - Describes the allowed inbound and outbound traffic of an Azure resource type ConnectableResource struct { // READ-ONLY; The Azure resource id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The list of Azure resources that the resource has inbound allowed connection from - InboundConnectedResources []*ConnectedResource `json:"inboundConnectedResources,omitempty" azure:"ro"` + InboundConnectedResources []*ConnectedResource // READ-ONLY; The list of Azure resources that the resource has outbound allowed connection to - OutboundConnectedResources []*ConnectedResource `json:"outboundConnectedResources,omitempty" azure:"ro"` + OutboundConnectedResources []*ConnectedResource } // ConnectedResource - Describes properties of a connected resource type ConnectedResource struct { // READ-ONLY; The Azure resource id of the connected resource - ConnectedResourceID *string `json:"connectedResourceId,omitempty" azure:"ro"` + ConnectedResourceID *string // READ-ONLY; The allowed tcp ports - TCPPorts *string `json:"tcpPorts,omitempty" azure:"ro"` + TCPPorts *string // READ-ONLY; The allowed udp ports - UDPPorts *string `json:"udpPorts,omitempty" azure:"ro"` + UDPPorts *string } // ConnectedWorkspace - Represents an OMS workspace to which the solution is connected type ConnectedWorkspace struct { // Azure resource ID of the connected OMS workspace - ID *string `json:"id,omitempty"` + ID *string } // ConnectionFromIPNotAllowed - Inbound connection from an ip that isn't allowed. Allow list consists of ipv4 or ipv6 range // in CIDR notation. type ConnectionFromIPNotAllowed struct { // REQUIRED; The values to allow. The format of the values depends on the rule type. - AllowlistValues []*string `json:"allowlistValues,omitempty"` + AllowlistValues []*string // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; The value type of the items in the list. - ValueType *ValueType `json:"valueType,omitempty" azure:"ro"` + ValueType *ValueType } // GetAllowlistCustomAlertRule implements the AllowlistCustomAlertRuleClassification interface for type ConnectionFromIPNotAllowed. @@ -2265,29 +2265,29 @@ func (c *ConnectionFromIPNotAllowed) GetListCustomAlertRule() *ListCustomAlertRu // ConnectionStrings - Connection string for ingesting security data and logs type ConnectionStrings struct { // REQUIRED; Connection strings - Value []*IngestionConnectionString `json:"value,omitempty"` + Value []*IngestionConnectionString } // ConnectionToIPNotAllowed - Outbound connection to an ip that isn't allowed. Allow list consists of ipv4 or ipv6 range in // CIDR notation. type ConnectionToIPNotAllowed struct { // REQUIRED; The values to allow. The format of the values depends on the rule type. - AllowlistValues []*string `json:"allowlistValues,omitempty"` + AllowlistValues []*string // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; The value type of the items in the list. - ValueType *ValueType `json:"valueType,omitempty" azure:"ro"` + ValueType *ValueType } // GetAllowlistCustomAlertRule implements the AllowlistCustomAlertRuleClassification interface for type ConnectionToIPNotAllowed. @@ -2326,31 +2326,31 @@ func (c *ConnectionToIPNotAllowed) GetListCustomAlertRule() *ListCustomAlertRule // Connector - The security connector resource. type Connector struct { // Entity tag is used for comparing two or more entities from the same requested resource. - Etag *string `json:"etag,omitempty"` + Etag *string // Kind of the resource - Kind *string `json:"kind,omitempty"` + Kind *string // Location where the resource is stored - Location *string `json:"location,omitempty"` + Location *string // Security connector data - Properties *ConnectorProperties `json:"properties,omitempty"` + Properties *ConnectorProperties // A list of key value pairs that describe the resource. - 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; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ConnectorApplicationClientCreateOrUpdateOptions contains the optional parameters for the ConnectorApplicationClient.CreateOrUpdate @@ -2408,53 +2408,53 @@ type ConnectorGovernanceRulesExecuteStatusClientBeginGetOptions struct { // ConnectorProperties - A set of properties that defines the security connector configuration. type ConnectorProperties struct { // The security connector environment data. - EnvironmentData EnvironmentDataClassification `json:"environmentData,omitempty"` + EnvironmentData EnvironmentDataClassification // The multi cloud resource's cloud name. - EnvironmentName *CloudName `json:"environmentName,omitempty"` + EnvironmentName *CloudName // The multi cloud resource identifier (account id in case of AWS connector, project number in case of GCP connector). - HierarchyIdentifier *string `json:"hierarchyIdentifier,omitempty"` + HierarchyIdentifier *string // A collection of offerings for the security connector. - Offerings []CloudOfferingClassification `json:"offerings,omitempty"` + Offerings []CloudOfferingClassification // READ-ONLY; The date on which the trial period will end, if applicable. Trial period exists for 30 days after upgrading // to payed offerings. - HierarchyIdentifierTrialEndDate *time.Time `json:"hierarchyIdentifierTrialEndDate,omitempty" azure:"ro"` + HierarchyIdentifierTrialEndDate *time.Time } // ConnectorSetting - The connector setting type ConnectorSetting struct { // Connector setting data - Properties *ConnectorSettingProperties `json:"properties,omitempty"` + Properties *ConnectorSettingProperties // 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 } // ConnectorSettingList - For a subscription, list of all cloud account connectors and their settings type ConnectorSettingList struct { // List of all the cloud account connector settings - Value []*ConnectorSetting `json:"value,omitempty"` + Value []*ConnectorSetting // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // ConnectorSettingProperties - Describes properties of a connector setting type ConnectorSettingProperties struct { // Settings for authentication management, these settings are relevant only for the cloud connector. - AuthenticationDetails AuthenticationDetailsPropertiesClassification `json:"authenticationDetails,omitempty"` + AuthenticationDetails AuthenticationDetailsPropertiesClassification // Settings for hybrid compute management. These settings are relevant only for Arc autoProvision (Hybrid Compute). - HybridComputeSettings *HybridComputeSettingsProperties `json:"hybridComputeSettings,omitempty"` + HybridComputeSettings *HybridComputeSettingsProperties } // ConnectorsClientCreateOrUpdateOptions contains the optional parameters for the ConnectorsClient.CreateOrUpdate method. @@ -2491,71 +2491,71 @@ type ConnectorsClientUpdateOptions struct { // ConnectorsList - List of security connectors response. type ConnectorsList struct { // REQUIRED; The list of security connectors under the given scope. - Value []*Connector `json:"value,omitempty"` + Value []*Connector // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // Contact details and configurations for notifications coming from Microsoft Defender for Cloud. type Contact struct { // Security contact data - Properties *ContactProperties `json:"properties,omitempty"` + Properties *ContactProperties // 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 } // ContactList - List of security contacts response type ContactList struct { // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of security contacts - Value []*Contact `json:"value,omitempty" azure:"ro"` + Value []*Contact } // ContactProperties - Describes security contact properties type ContactProperties struct { // Defines whether to send email notifications about new security alerts - AlertNotifications *ContactPropertiesAlertNotifications `json:"alertNotifications,omitempty"` + AlertNotifications *ContactPropertiesAlertNotifications // List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in // this security contact. - Emails *string `json:"emails,omitempty"` + Emails *string // Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the // subscription. - NotificationsByRole *ContactPropertiesNotificationsByRole `json:"notificationsByRole,omitempty"` + NotificationsByRole *ContactPropertiesNotificationsByRole // The security contact's phone number - Phone *string `json:"phone,omitempty"` + Phone *string } // ContactPropertiesAlertNotifications - Defines whether to send email notifications about new security alerts type ContactPropertiesAlertNotifications struct { // Defines the minimal alert severity which will be sent as email notifications - MinimalSeverity *MinimalSeverity `json:"minimalSeverity,omitempty"` + MinimalSeverity *MinimalSeverity // Defines if email notifications will be sent about new security alerts - State *State `json:"state,omitempty"` + State *State } // ContactPropertiesNotificationsByRole - Defines whether to send email notifications from Microsoft Defender for Cloud to // persons with specific RBAC roles on the subscription. type ContactPropertiesNotificationsByRole struct { // Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. List of allowed RBAC roles: - Roles []*Roles `json:"roles,omitempty"` + Roles []*Roles // Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the // subscription. - State *State `json:"state,omitempty"` + State *State } // ContactsClientCreateOptions contains the optional parameters for the ContactsClient.Create method. @@ -2581,31 +2581,31 @@ type ContactsClientListOptions struct { // ContainerRegistryVulnerabilityProperties - Additional context fields for container registry Vulnerability assessment type ContainerRegistryVulnerabilityProperties struct { // REQUIRED; Sub-assessment resource type - AssessedResourceType *AssessedResourceType `json:"assessedResourceType,omitempty"` + AssessedResourceType *AssessedResourceType // READ-ONLY; List of CVEs - Cve []*CVE `json:"cve,omitempty" azure:"ro"` + Cve []*CVE // READ-ONLY; Dictionary from cvss version to cvss details object - Cvss map[string]*CVSS `json:"cvss,omitempty" azure:"ro"` + Cvss map[string]*CVSS // READ-ONLY; Digest of the vulnerable image - ImageDigest *string `json:"imageDigest,omitempty" azure:"ro"` + ImageDigest *string // READ-ONLY; Indicates whether a patch is available or not - Patchable *bool `json:"patchable,omitempty" azure:"ro"` + Patchable *bool // READ-ONLY; Published time - PublishedTime *time.Time `json:"publishedTime,omitempty" azure:"ro"` + PublishedTime *time.Time // READ-ONLY; Name of the repository which the vulnerable image belongs to - RepositoryName *string `json:"repositoryName,omitempty" azure:"ro"` + RepositoryName *string // READ-ONLY; Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered, Vulnerability - Type *string `json:"type,omitempty" azure:"ro"` + Type *string // READ-ONLY - VendorReferences []*VendorReference `json:"vendorReferences,omitempty" azure:"ro"` + VendorReferences []*VendorReference } // GetAdditionalData implements the AdditionalDataClassification interface for type ContainerRegistryVulnerabilityProperties. @@ -2618,13 +2618,13 @@ func (c *ContainerRegistryVulnerabilityProperties) GetAdditionalData() *Addition // CspmMonitorAwsOffering - The CSPM monitoring for AWS offering type CspmMonitorAwsOffering struct { // REQUIRED; The type of the security offering. - OfferingType *OfferingType `json:"offeringType,omitempty"` + OfferingType *OfferingType // The native cloud connection configuration - NativeCloudConnection *CspmMonitorAwsOfferingNativeCloudConnection `json:"nativeCloudConnection,omitempty"` + NativeCloudConnection *CspmMonitorAwsOfferingNativeCloudConnection // READ-ONLY; The offering description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string } // GetCloudOffering implements the CloudOfferingClassification interface for type CspmMonitorAwsOffering. @@ -2638,16 +2638,16 @@ func (c *CspmMonitorAwsOffering) GetCloudOffering() *CloudOffering { // CspmMonitorAwsOfferingNativeCloudConnection - The native cloud connection configuration type CspmMonitorAwsOfferingNativeCloudConnection struct { // The cloud role ARN in AWS for this feature - CloudRoleArn *string `json:"cloudRoleArn,omitempty"` + CloudRoleArn *string } // CspmMonitorAzureDevOpsOffering - The CSPM monitoring for AzureDevOps offering type CspmMonitorAzureDevOpsOffering struct { // REQUIRED; The type of the security offering. - OfferingType *OfferingType `json:"offeringType,omitempty"` + OfferingType *OfferingType // READ-ONLY; The offering description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string } // GetCloudOffering implements the CloudOfferingClassification interface for type CspmMonitorAzureDevOpsOffering. @@ -2661,13 +2661,13 @@ func (c *CspmMonitorAzureDevOpsOffering) GetCloudOffering() *CloudOffering { // CspmMonitorGcpOffering - The CSPM monitoring for GCP offering type CspmMonitorGcpOffering struct { // REQUIRED; The type of the security offering. - OfferingType *OfferingType `json:"offeringType,omitempty"` + OfferingType *OfferingType // The native cloud connection configuration - NativeCloudConnection *CspmMonitorGcpOfferingNativeCloudConnection `json:"nativeCloudConnection,omitempty"` + NativeCloudConnection *CspmMonitorGcpOfferingNativeCloudConnection // READ-ONLY; The offering description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string } // GetCloudOffering implements the CloudOfferingClassification interface for type CspmMonitorGcpOffering. @@ -2681,19 +2681,19 @@ func (c *CspmMonitorGcpOffering) GetCloudOffering() *CloudOffering { // CspmMonitorGcpOfferingNativeCloudConnection - The native cloud connection configuration type CspmMonitorGcpOfferingNativeCloudConnection struct { // The service account email address in GCP for this offering - ServiceAccountEmailAddress *string `json:"serviceAccountEmailAddress,omitempty"` + ServiceAccountEmailAddress *string // The GCP workload identity provider id for the offering - WorkloadIdentityProviderID *string `json:"workloadIdentityProviderId,omitempty"` + WorkloadIdentityProviderID *string } // CspmMonitorGithubOffering - The CSPM monitoring for github offering type CspmMonitorGithubOffering struct { // REQUIRED; The type of the security offering. - OfferingType *OfferingType `json:"offeringType,omitempty"` + OfferingType *OfferingType // READ-ONLY; The offering description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string } // GetCloudOffering implements the CloudOfferingClassification interface for type CspmMonitorGithubOffering. @@ -2722,16 +2722,16 @@ type CustomAlertRuleClassification interface { // CustomAlertRule - A custom alert rule. type CustomAlertRule struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type CustomAlertRule. @@ -2740,79 +2740,79 @@ func (c *CustomAlertRule) GetCustomAlertRule() *CustomAlertRule { return c } // CustomAssessmentAutomation - Custom Assessment Automation type CustomAssessmentAutomation struct { // describes Custom Assessment Automation properties. - Properties *CustomAssessmentAutomationProperties `json:"properties,omitempty"` + Properties *CustomAssessmentAutomationProperties // 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; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // CustomAssessmentAutomationProperties - describes the Custom Assessment Automation properties type CustomAssessmentAutomationProperties struct { // The assessment metadata key used when an assessment is generated for this assessment automation. - AssessmentKey *string `json:"assessmentKey,omitempty"` + AssessmentKey *string // GZip encoded KQL query representing the assessment automation results required. - CompressedQuery *string `json:"compressedQuery,omitempty"` + CompressedQuery *string // The description to relate to the assessments generated by this assessment automation. - Description *string `json:"description,omitempty"` + Description *string // The display name of the assessments generated by this assessment automation. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // The remediation description to relate to the assessments generated by this assessment automation. - RemediationDescription *string `json:"remediationDescription,omitempty"` + RemediationDescription *string // The severity to relate to the assessments generated by this assessment automation. - Severity *SeverityEnum `json:"severity,omitempty"` + Severity *SeverityEnum // Relevant cloud for the custom assessment automation. - SupportedCloud *SupportedCloudEnum `json:"supportedCloud,omitempty"` + SupportedCloud *SupportedCloudEnum } // CustomAssessmentAutomationRequest - Custom Assessment Automation request type CustomAssessmentAutomationRequest struct { // describes Custom Assessment Automation request properties. - Properties *CustomAssessmentAutomationRequestProperties `json:"properties,omitempty"` + Properties *CustomAssessmentAutomationRequestProperties // 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 } // CustomAssessmentAutomationRequestProperties - describes the Custom Assessment Automation properties type CustomAssessmentAutomationRequestProperties struct { // Base 64 encoded KQL query representing the assessment automation results required. - CompressedQuery *string `json:"compressedQuery,omitempty"` + CompressedQuery *string // The description to relate to the assessments generated by this assessment automation. - Description *string `json:"description,omitempty"` + Description *string // The display name of the assessments generated by this assessment automation. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // The remediation description to relate to the assessments generated by this assessment automation. - RemediationDescription *string `json:"remediationDescription,omitempty"` + RemediationDescription *string // The severity to relate to the assessments generated by this assessment automation. - Severity *SeverityEnum `json:"severity,omitempty"` + Severity *SeverityEnum // Relevant cloud for the custom assessment automation. - SupportedCloud *SupportedCloudEnum `json:"supportedCloud,omitempty"` + SupportedCloud *SupportedCloudEnum } // CustomAssessmentAutomationsClientCreateOptions contains the optional parameters for the CustomAssessmentAutomationsClient.Create @@ -2848,49 +2848,49 @@ type CustomAssessmentAutomationsClientListBySubscriptionOptions struct { // CustomAssessmentAutomationsListResult - A list of Custom Assessment Automations type CustomAssessmentAutomationsListResult struct { // The link used to get the next page of operations. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; Collection of Custom Assessment Automations - Value []*CustomAssessmentAutomation `json:"value,omitempty" azure:"ro"` + Value []*CustomAssessmentAutomation } // CustomEntityStoreAssignment - Custom entity store assignment type CustomEntityStoreAssignment struct { // describes custom entity store assignment properties. - Properties *CustomEntityStoreAssignmentProperties `json:"properties,omitempty"` + Properties *CustomEntityStoreAssignmentProperties // 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; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // CustomEntityStoreAssignmentProperties - describes the custom entity store assignment properties type CustomEntityStoreAssignmentProperties struct { // The link to entity store database. - EntityStoreDatabaseLink *string `json:"entityStoreDatabaseLink,omitempty"` + EntityStoreDatabaseLink *string // The principal assigned with entity store. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId] - Principal *string `json:"principal,omitempty"` + Principal *string } // CustomEntityStoreAssignmentRequest - describes the custom entity store assignment request type CustomEntityStoreAssignmentRequest struct { // describes properties of custom entity store assignment request - Properties *CustomEntityStoreAssignmentRequestProperties `json:"properties,omitempty"` + Properties *CustomEntityStoreAssignmentRequestProperties } // CustomEntityStoreAssignmentRequestProperties - describes properties of custom entity store assignment request type CustomEntityStoreAssignmentRequestProperties struct { // The principal assigned with entity store. If not provided, will use caller principal. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId] - Principal *string `json:"principal,omitempty"` + Principal *string } // CustomEntityStoreAssignmentsClientCreateOptions contains the optional parameters for the CustomEntityStoreAssignmentsClient.Create @@ -2926,34 +2926,34 @@ type CustomEntityStoreAssignmentsClientListBySubscriptionOptions struct { // CustomEntityStoreAssignmentsListResult - A list of custom entity store assignments type CustomEntityStoreAssignmentsListResult struct { // The link used to get the next page of operations. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // READ-ONLY; Collection of custom entity store assignments - Value []*CustomEntityStoreAssignment `json:"value,omitempty" azure:"ro"` + Value []*CustomEntityStoreAssignment } // DataExportSettingProperties - The data export setting properties type DataExportSettingProperties struct { // REQUIRED; Is the data export setting enabled - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool } // DataExportSettings - Represents a data export setting type DataExportSettings struct { // REQUIRED; the kind of the settings string - Kind *SettingKind `json:"kind,omitempty"` + Kind *SettingKind // Data export setting data - Properties *DataExportSettingProperties `json:"properties,omitempty"` + Properties *DataExportSettingProperties // 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 } // GetSetting implements the SettingClassification interface for type DataExportSettings. @@ -2969,13 +2969,13 @@ func (d *DataExportSettings) GetSetting() *Setting { // DefenderCspmAwsOffering - The CSPM P1 for Aws offering type DefenderCspmAwsOffering struct { // REQUIRED; The type of the security offering. - OfferingType *OfferingType `json:"offeringType,omitempty"` + OfferingType *OfferingType // The Microsoft Defender for Server VM scanning configuration - VMScanners *DefenderCspmAwsOfferingVMScanners `json:"vmScanners,omitempty"` + VMScanners *DefenderCspmAwsOfferingVMScanners // READ-ONLY; The offering description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string } // GetCloudOffering implements the CloudOfferingClassification interface for type DefenderCspmAwsOffering. @@ -2989,31 +2989,31 @@ func (d *DefenderCspmAwsOffering) GetCloudOffering() *CloudOffering { // DefenderCspmAwsOfferingVMScanners - The Microsoft Defender for Server VM scanning configuration type DefenderCspmAwsOfferingVMScanners struct { // configuration for Microsoft Defender for Server VM scanning - Configuration *DefenderCspmAwsOfferingVMScannersConfiguration `json:"configuration,omitempty"` + Configuration *DefenderCspmAwsOfferingVMScannersConfiguration // Is Microsoft Defender for Server VM scanning enabled - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool } // DefenderCspmAwsOfferingVMScannersConfiguration - configuration for Microsoft Defender for Server VM scanning type DefenderCspmAwsOfferingVMScannersConfiguration struct { // The cloud role ARN in AWS for this feature - CloudRoleArn *string `json:"cloudRoleArn,omitempty"` + CloudRoleArn *string // VM tags that indicates that VM should not be scanned - ExclusionTags map[string]*string `json:"exclusionTags,omitempty"` + ExclusionTags map[string]*string // The scanning mode for the vm scan. - ScanningMode *ScanningMode `json:"scanningMode,omitempty"` + ScanningMode *ScanningMode } // DefenderCspmGcpOffering - The CSPM P1 for GCP offering type DefenderCspmGcpOffering struct { // REQUIRED; The type of the security offering. - OfferingType *OfferingType `json:"offeringType,omitempty"` + OfferingType *OfferingType // READ-ONLY; The offering description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string } // GetCloudOffering implements the CloudOfferingClassification interface for type DefenderCspmGcpOffering. @@ -3027,16 +3027,16 @@ func (d *DefenderCspmGcpOffering) GetCloudOffering() *CloudOffering { // DefenderFoDatabasesAwsOffering - The Defender for Databases AWS offering type DefenderFoDatabasesAwsOffering struct { // REQUIRED; The type of the security offering. - OfferingType *OfferingType `json:"offeringType,omitempty"` + OfferingType *OfferingType // The ARC autoprovisioning configuration - ArcAutoProvisioning *DefenderFoDatabasesAwsOfferingArcAutoProvisioning `json:"arcAutoProvisioning,omitempty"` + ArcAutoProvisioning *DefenderFoDatabasesAwsOfferingArcAutoProvisioning // The RDS configuration - Rds *DefenderFoDatabasesAwsOfferingRds `json:"rds,omitempty"` + Rds *DefenderFoDatabasesAwsOfferingRds // READ-ONLY; The offering description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string } // GetCloudOffering implements the CloudOfferingClassification interface for type DefenderFoDatabasesAwsOffering. @@ -3050,58 +3050,58 @@ func (d *DefenderFoDatabasesAwsOffering) GetCloudOffering() *CloudOffering { // DefenderFoDatabasesAwsOfferingArcAutoProvisioning - The ARC autoprovisioning configuration type DefenderFoDatabasesAwsOfferingArcAutoProvisioning struct { // The cloud role ARN in AWS for this feature - CloudRoleArn *string `json:"cloudRoleArn,omitempty"` + CloudRoleArn *string // Is arc auto provisioning enabled - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool } // DefenderFoDatabasesAwsOfferingRds - The RDS configuration type DefenderFoDatabasesAwsOfferingRds struct { // The cloud role ARN in AWS for this feature - CloudRoleArn *string `json:"cloudRoleArn,omitempty"` + CloudRoleArn *string // Is RDS protection enabled - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool } // DefenderForContainersAwsOffering - The Defender for Containers AWS offering type DefenderForContainersAwsOffering struct { // REQUIRED; The type of the security offering. - OfferingType *OfferingType `json:"offeringType,omitempty"` + OfferingType *OfferingType // Is audit logs pipeline auto provisioning enabled - AutoProvisioning *bool `json:"autoProvisioning,omitempty"` + AutoProvisioning *bool // The cloudwatch to kinesis connection configuration - CloudWatchToKinesis *DefenderForContainersAwsOfferingCloudWatchToKinesis `json:"cloudWatchToKinesis,omitempty"` + CloudWatchToKinesis *DefenderForContainersAwsOfferingCloudWatchToKinesis // The container vulnerability assessment configuration - ContainerVulnerabilityAssessment *DefenderForContainersAwsOfferingContainerVulnerabilityAssessment `json:"containerVulnerabilityAssessment,omitempty"` + ContainerVulnerabilityAssessment *DefenderForContainersAwsOfferingContainerVulnerabilityAssessment // The container vulnerability assessment task configuration - ContainerVulnerabilityAssessmentTask *DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask `json:"containerVulnerabilityAssessmentTask,omitempty"` + ContainerVulnerabilityAssessmentTask *DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask // Enable container vulnerability assessment feature - EnableContainerVulnerabilityAssessment *bool `json:"enableContainerVulnerabilityAssessment,omitempty"` + EnableContainerVulnerabilityAssessment *bool // The kinesis to s3 connection configuration - KinesisToS3 *DefenderForContainersAwsOfferingKinesisToS3 `json:"kinesisToS3,omitempty"` + KinesisToS3 *DefenderForContainersAwsOfferingKinesisToS3 // The retention time in days of kube audit logs set on the CloudWatch log group - KubeAuditRetentionTime *int64 `json:"kubeAuditRetentionTime,omitempty"` + KubeAuditRetentionTime *int64 // The kubernetes to scuba connection configuration - KubernetesScubaReader *DefenderForContainersAwsOfferingKubernetesScubaReader `json:"kubernetesScubaReader,omitempty"` + KubernetesScubaReader *DefenderForContainersAwsOfferingKubernetesScubaReader // The kubernetes service connection configuration - KubernetesService *DefenderForContainersAwsOfferingKubernetesService `json:"kubernetesService,omitempty"` + KubernetesService *DefenderForContainersAwsOfferingKubernetesService // The externalId used by the data reader to prevent the confused deputy attack - ScubaExternalID *string `json:"scubaExternalId,omitempty"` + ScubaExternalID *string // READ-ONLY; The offering description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string } // GetCloudOffering implements the CloudOfferingClassification interface for type DefenderForContainersAwsOffering. @@ -3115,61 +3115,61 @@ func (d *DefenderForContainersAwsOffering) GetCloudOffering() *CloudOffering { // DefenderForContainersAwsOfferingCloudWatchToKinesis - The cloudwatch to kinesis connection configuration type DefenderForContainersAwsOfferingCloudWatchToKinesis struct { // The cloud role ARN in AWS used by CloudWatch to transfer data into Kinesis - CloudRoleArn *string `json:"cloudRoleArn,omitempty"` + CloudRoleArn *string } // DefenderForContainersAwsOfferingContainerVulnerabilityAssessment - The container vulnerability assessment configuration type DefenderForContainersAwsOfferingContainerVulnerabilityAssessment struct { // The cloud role ARN in AWS for this feature - CloudRoleArn *string `json:"cloudRoleArn,omitempty"` + CloudRoleArn *string } // DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask - The container vulnerability assessment task configuration type DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask struct { // The cloud role ARN in AWS for this feature - CloudRoleArn *string `json:"cloudRoleArn,omitempty"` + CloudRoleArn *string } // DefenderForContainersAwsOfferingKinesisToS3 - The kinesis to s3 connection configuration type DefenderForContainersAwsOfferingKinesisToS3 struct { // The cloud role ARN in AWS used by Kinesis to transfer data into S3 - CloudRoleArn *string `json:"cloudRoleArn,omitempty"` + CloudRoleArn *string } // DefenderForContainersAwsOfferingKubernetesScubaReader - The kubernetes to scuba connection configuration type DefenderForContainersAwsOfferingKubernetesScubaReader struct { // The cloud role ARN in AWS for this feature used for reading data - CloudRoleArn *string `json:"cloudRoleArn,omitempty"` + CloudRoleArn *string } // DefenderForContainersAwsOfferingKubernetesService - The kubernetes service connection configuration type DefenderForContainersAwsOfferingKubernetesService struct { // The cloud role ARN in AWS for this feature used for provisioning resources - CloudRoleArn *string `json:"cloudRoleArn,omitempty"` + CloudRoleArn *string } // DefenderForContainersGcpOffering - The containers GCP offering type DefenderForContainersGcpOffering struct { // REQUIRED; The type of the security offering. - OfferingType *OfferingType `json:"offeringType,omitempty"` + OfferingType *OfferingType // Is audit logs data collection enabled - AuditLogsAutoProvisioningFlag *bool `json:"auditLogsAutoProvisioningFlag,omitempty"` + AuditLogsAutoProvisioningFlag *bool // The native cloud connection configuration - DataPipelineNativeCloudConnection *DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection `json:"dataPipelineNativeCloudConnection,omitempty"` + DataPipelineNativeCloudConnection *DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection // Is Microsoft Defender for Cloud Kubernetes agent auto provisioning enabled - DefenderAgentAutoProvisioningFlag *bool `json:"defenderAgentAutoProvisioningFlag,omitempty"` + DefenderAgentAutoProvisioningFlag *bool // The native cloud connection configuration - NativeCloudConnection *DefenderForContainersGcpOfferingNativeCloudConnection `json:"nativeCloudConnection,omitempty"` + NativeCloudConnection *DefenderForContainersGcpOfferingNativeCloudConnection // Is Policy Kubernetes agent auto provisioning enabled - PolicyAgentAutoProvisioningFlag *bool `json:"policyAgentAutoProvisioningFlag,omitempty"` + PolicyAgentAutoProvisioningFlag *bool // READ-ONLY; The offering description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string } // GetCloudOffering implements the CloudOfferingClassification interface for type DefenderForContainersGcpOffering. @@ -3183,34 +3183,34 @@ func (d *DefenderForContainersGcpOffering) GetCloudOffering() *CloudOffering { // DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection - The native cloud connection configuration type DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection struct { // The data collection service account email address in GCP for this offering - ServiceAccountEmailAddress *string `json:"serviceAccountEmailAddress,omitempty"` + ServiceAccountEmailAddress *string // The data collection GCP workload identity provider id for this offering - WorkloadIdentityProviderID *string `json:"workloadIdentityProviderId,omitempty"` + WorkloadIdentityProviderID *string } // DefenderForContainersGcpOfferingNativeCloudConnection - The native cloud connection configuration type DefenderForContainersGcpOfferingNativeCloudConnection struct { // The service account email address in GCP for this offering - ServiceAccountEmailAddress *string `json:"serviceAccountEmailAddress,omitempty"` + ServiceAccountEmailAddress *string // The GCP workload identity provider id for this offering - WorkloadIdentityProviderID *string `json:"workloadIdentityProviderId,omitempty"` + WorkloadIdentityProviderID *string } // DefenderForDatabasesGcpOffering - The Defender for Databases GCP offering configurations type DefenderForDatabasesGcpOffering struct { // REQUIRED; The type of the security offering. - OfferingType *OfferingType `json:"offeringType,omitempty"` + OfferingType *OfferingType // The ARC autoprovisioning configuration - ArcAutoProvisioning *DefenderForDatabasesGcpOfferingArcAutoProvisioning `json:"arcAutoProvisioning,omitempty"` + ArcAutoProvisioning *DefenderForDatabasesGcpOfferingArcAutoProvisioning // The native cloud connection configuration - DefenderForDatabasesArcAutoProvisioning *DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning `json:"defenderForDatabasesArcAutoProvisioning,omitempty"` + DefenderForDatabasesArcAutoProvisioning *DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning // READ-ONLY; The offering description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string } // GetCloudOffering implements the CloudOfferingClassification interface for type DefenderForDatabasesGcpOffering. @@ -3224,25 +3224,25 @@ func (d *DefenderForDatabasesGcpOffering) GetCloudOffering() *CloudOffering { // DefenderForDatabasesGcpOfferingArcAutoProvisioning - The ARC autoprovisioning configuration type DefenderForDatabasesGcpOfferingArcAutoProvisioning struct { // Is arc auto provisioning enabled - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool } // DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning - The native cloud connection configuration type DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning struct { // The service account email address in GCP for this offering - ServiceAccountEmailAddress *string `json:"serviceAccountEmailAddress,omitempty"` + ServiceAccountEmailAddress *string // The GCP workload identity provider id for this offering - WorkloadIdentityProviderID *string `json:"workloadIdentityProviderId,omitempty"` + WorkloadIdentityProviderID *string } // DefenderForDevOpsAzureDevOpsOffering - The Defender for DevOps for Azure DevOps offering type DefenderForDevOpsAzureDevOpsOffering struct { // REQUIRED; The type of the security offering. - OfferingType *OfferingType `json:"offeringType,omitempty"` + OfferingType *OfferingType // READ-ONLY; The offering description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string } // GetCloudOffering implements the CloudOfferingClassification interface for type DefenderForDevOpsAzureDevOpsOffering. @@ -3256,10 +3256,10 @@ func (d *DefenderForDevOpsAzureDevOpsOffering) GetCloudOffering() *CloudOffering // DefenderForDevOpsGithubOffering - The Defender for DevOps for Github offering type DefenderForDevOpsGithubOffering struct { // REQUIRED; The type of the security offering. - OfferingType *OfferingType `json:"offeringType,omitempty"` + OfferingType *OfferingType // READ-ONLY; The offering description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string } // GetCloudOffering implements the CloudOfferingClassification interface for type DefenderForDevOpsGithubOffering. @@ -3273,28 +3273,28 @@ func (d *DefenderForDevOpsGithubOffering) GetCloudOffering() *CloudOffering { // DefenderForServersAwsOffering - The Defender for Servers AWS offering type DefenderForServersAwsOffering struct { // REQUIRED; The type of the security offering. - OfferingType *OfferingType `json:"offeringType,omitempty"` + OfferingType *OfferingType // The ARC autoprovisioning configuration - ArcAutoProvisioning *DefenderForServersAwsOfferingArcAutoProvisioning `json:"arcAutoProvisioning,omitempty"` + ArcAutoProvisioning *DefenderForServersAwsOfferingArcAutoProvisioning // The Defender for servers connection configuration - DefenderForServers *DefenderForServersAwsOfferingDefenderForServers `json:"defenderForServers,omitempty"` + DefenderForServers *DefenderForServersAwsOfferingDefenderForServers // The Microsoft Defender for Endpoint autoprovisioning configuration - MdeAutoProvisioning *DefenderForServersAwsOfferingMdeAutoProvisioning `json:"mdeAutoProvisioning,omitempty"` + MdeAutoProvisioning *DefenderForServersAwsOfferingMdeAutoProvisioning // configuration for the servers offering subPlan - SubPlan *DefenderForServersAwsOfferingSubPlan `json:"subPlan,omitempty"` + SubPlan *DefenderForServersAwsOfferingSubPlan // The Microsoft Defender for Server VM scanning configuration - VMScanners *DefenderForServersAwsOfferingVMScanners `json:"vmScanners,omitempty"` + VMScanners *DefenderForServersAwsOfferingVMScanners // The Vulnerability Assessment autoprovisioning configuration - VaAutoProvisioning *DefenderForServersAwsOfferingVaAutoProvisioning `json:"vaAutoProvisioning,omitempty"` + VaAutoProvisioning *DefenderForServersAwsOfferingVaAutoProvisioning // READ-ONLY; The offering description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string } // GetCloudOffering implements the CloudOfferingClassification interface for type DefenderForServersAwsOffering. @@ -3308,91 +3308,91 @@ func (d *DefenderForServersAwsOffering) GetCloudOffering() *CloudOffering { // DefenderForServersAwsOfferingArcAutoProvisioning - The ARC autoprovisioning configuration type DefenderForServersAwsOfferingArcAutoProvisioning struct { // The cloud role ARN in AWS for this feature - CloudRoleArn *string `json:"cloudRoleArn,omitempty"` + CloudRoleArn *string // Is arc auto provisioning enabled - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool } // DefenderForServersAwsOfferingDefenderForServers - The Defender for servers connection configuration type DefenderForServersAwsOfferingDefenderForServers struct { // The cloud role ARN in AWS for this feature - CloudRoleArn *string `json:"cloudRoleArn,omitempty"` + CloudRoleArn *string } // DefenderForServersAwsOfferingMdeAutoProvisioning - The Microsoft Defender for Endpoint autoprovisioning configuration type DefenderForServersAwsOfferingMdeAutoProvisioning struct { // configuration for Microsoft Defender for Endpoint autoprovisioning - Configuration any `json:"configuration,omitempty"` + Configuration any // Is Microsoft Defender for Endpoint auto provisioning enabled - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool } // DefenderForServersAwsOfferingSubPlan - configuration for the servers offering subPlan type DefenderForServersAwsOfferingSubPlan struct { // The available sub plans - Type *SubPlan `json:"type,omitempty"` + Type *SubPlan } // DefenderForServersAwsOfferingVMScanners - The Microsoft Defender for Server VM scanning configuration type DefenderForServersAwsOfferingVMScanners struct { // configuration for Microsoft Defender for Server VM scanning - Configuration *DefenderForServersAwsOfferingVMScannersConfiguration `json:"configuration,omitempty"` + Configuration *DefenderForServersAwsOfferingVMScannersConfiguration // Is Microsoft Defender for Server VM scanning enabled - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool } // DefenderForServersAwsOfferingVMScannersConfiguration - configuration for Microsoft Defender for Server VM scanning type DefenderForServersAwsOfferingVMScannersConfiguration struct { // The cloud role ARN in AWS for this feature - CloudRoleArn *string `json:"cloudRoleArn,omitempty"` + CloudRoleArn *string // VM tags that indicates that VM should not be scanned - ExclusionTags map[string]*string `json:"exclusionTags,omitempty"` + ExclusionTags map[string]*string // The scanning mode for the vm scan. - ScanningMode *ScanningMode `json:"scanningMode,omitempty"` + ScanningMode *ScanningMode } // DefenderForServersAwsOfferingVaAutoProvisioning - The Vulnerability Assessment autoprovisioning configuration type DefenderForServersAwsOfferingVaAutoProvisioning struct { // configuration for Vulnerability Assessment autoprovisioning - Configuration *DefenderForServersAwsOfferingVaAutoProvisioningConfiguration `json:"configuration,omitempty"` + Configuration *DefenderForServersAwsOfferingVaAutoProvisioningConfiguration // Is Vulnerability Assessment auto provisioning enabled - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool } // DefenderForServersAwsOfferingVaAutoProvisioningConfiguration - configuration for Vulnerability Assessment autoprovisioning type DefenderForServersAwsOfferingVaAutoProvisioningConfiguration struct { // The Vulnerability Assessment solution to be provisioned. Can be either 'TVM' or 'Qualys' - Type *Type `json:"type,omitempty"` + Type *Type } // DefenderForServersGcpOffering - The Defender for Servers GCP offering configurations type DefenderForServersGcpOffering struct { // REQUIRED; The type of the security offering. - OfferingType *OfferingType `json:"offeringType,omitempty"` + OfferingType *OfferingType // The ARC autoprovisioning configuration - ArcAutoProvisioning *DefenderForServersGcpOfferingArcAutoProvisioning `json:"arcAutoProvisioning,omitempty"` + ArcAutoProvisioning *DefenderForServersGcpOfferingArcAutoProvisioning // The Defender for servers connection configuration - DefenderForServers *DefenderForServersGcpOfferingDefenderForServers `json:"defenderForServers,omitempty"` + DefenderForServers *DefenderForServersGcpOfferingDefenderForServers // The Microsoft Defender for Endpoint autoprovisioning configuration - MdeAutoProvisioning *DefenderForServersGcpOfferingMdeAutoProvisioning `json:"mdeAutoProvisioning,omitempty"` + MdeAutoProvisioning *DefenderForServersGcpOfferingMdeAutoProvisioning // configuration for the servers offering subPlan - SubPlan *DefenderForServersGcpOfferingSubPlan `json:"subPlan,omitempty"` + SubPlan *DefenderForServersGcpOfferingSubPlan // The Vulnerability Assessment autoprovisioning configuration - VaAutoProvisioning *DefenderForServersGcpOfferingVaAutoProvisioning `json:"vaAutoProvisioning,omitempty"` + VaAutoProvisioning *DefenderForServersGcpOfferingVaAutoProvisioning // READ-ONLY; The offering description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string } // GetCloudOffering implements the CloudOfferingClassification interface for type DefenderForServersGcpOffering. @@ -3406,67 +3406,67 @@ func (d *DefenderForServersGcpOffering) GetCloudOffering() *CloudOffering { // DefenderForServersGcpOfferingArcAutoProvisioning - The ARC autoprovisioning configuration type DefenderForServersGcpOfferingArcAutoProvisioning struct { // Is arc auto provisioning enabled - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool } // DefenderForServersGcpOfferingDefenderForServers - The Defender for servers connection configuration type DefenderForServersGcpOfferingDefenderForServers struct { // The service account email address in GCP for this feature - ServiceAccountEmailAddress *string `json:"serviceAccountEmailAddress,omitempty"` + ServiceAccountEmailAddress *string // The workload identity provider id in GCP for this feature - WorkloadIdentityProviderID *string `json:"workloadIdentityProviderId,omitempty"` + WorkloadIdentityProviderID *string } // DefenderForServersGcpOfferingMdeAutoProvisioning - The Microsoft Defender for Endpoint autoprovisioning configuration type DefenderForServersGcpOfferingMdeAutoProvisioning struct { // configuration for Microsoft Defender for Endpoint autoprovisioning - Configuration any `json:"configuration,omitempty"` + Configuration any // Is Microsoft Defender for Endpoint auto provisioning enabled - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool } // DefenderForServersGcpOfferingSubPlan - configuration for the servers offering subPlan type DefenderForServersGcpOfferingSubPlan struct { // The available sub plans - Type *SubPlan `json:"type,omitempty"` + Type *SubPlan } // DefenderForServersGcpOfferingVaAutoProvisioning - The Vulnerability Assessment autoprovisioning configuration type DefenderForServersGcpOfferingVaAutoProvisioning struct { // configuration for Vulnerability Assessment autoprovisioning - Configuration *DefenderForServersGcpOfferingVaAutoProvisioningConfiguration `json:"configuration,omitempty"` + Configuration *DefenderForServersGcpOfferingVaAutoProvisioningConfiguration // Is Vulnerability Assessment auto provisioning enabled - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool } // DefenderForServersGcpOfferingVaAutoProvisioningConfiguration - configuration for Vulnerability Assessment autoprovisioning type DefenderForServersGcpOfferingVaAutoProvisioningConfiguration struct { // The Vulnerability Assessment solution to be provisioned. Can be either 'TVM' or 'Qualys' - Type *Type `json:"type,omitempty"` + Type *Type } // DenylistCustomAlertRule - A custom alert rule that checks if a value (depends on the custom alert type) is denied. type DenylistCustomAlertRule struct { // REQUIRED; The values to deny. The format of the values depends on the rule type. - DenylistValues []*string `json:"denylistValues,omitempty"` + DenylistValues []*string // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; The value type of the items in the list. - ValueType *ValueType `json:"valueType,omitempty" azure:"ro"` + ValueType *ValueType } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type DenylistCustomAlertRule. @@ -3493,40 +3493,40 @@ func (d *DenylistCustomAlertRule) GetListCustomAlertRule() *ListCustomAlertRule // DeviceSecurityGroup - The device security group resource type DeviceSecurityGroup struct { // Device Security group data - Properties *DeviceSecurityGroupProperties `json:"properties,omitempty"` + Properties *DeviceSecurityGroupProperties // 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 } // DeviceSecurityGroupList - List of device security groups type DeviceSecurityGroupList struct { // List of device security group objects - Value []*DeviceSecurityGroup `json:"value,omitempty"` + Value []*DeviceSecurityGroup // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // DeviceSecurityGroupProperties - describes properties of a security group. type DeviceSecurityGroupProperties struct { // The allow-list custom alert rules. - AllowlistRules []AllowlistCustomAlertRuleClassification `json:"allowlistRules,omitempty"` + AllowlistRules []AllowlistCustomAlertRuleClassification // The deny-list custom alert rules. - DenylistRules []*DenylistCustomAlertRule `json:"denylistRules,omitempty"` + DenylistRules []*DenylistCustomAlertRule // The list of custom alert threshold rules. - ThresholdRules []ThresholdCustomAlertRuleClassification `json:"thresholdRules,omitempty"` + ThresholdRules []ThresholdCustomAlertRuleClassification // The list of custom alert time-window rules. - TimeWindowRules []TimeWindowCustomAlertRuleClassification `json:"timeWindowRules,omitempty"` + TimeWindowRules []TimeWindowCustomAlertRuleClassification } // DeviceSecurityGroupsClientCreateOrUpdateOptions contains the optional parameters for the DeviceSecurityGroupsClient.CreateOrUpdate @@ -3554,25 +3554,25 @@ type DeviceSecurityGroupsClientListOptions struct { // DirectMethodInvokesNotInAllowedRange - Number of direct method invokes is not in allowed range. type DirectMethodInvokesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The maximum threshold. - MaxThreshold *int32 `json:"maxThreshold,omitempty"` + MaxThreshold *int32 // REQUIRED; The minimum threshold. - MinThreshold *int32 `json:"minThreshold,omitempty"` + MinThreshold *int32 // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // REQUIRED; The time window size in iso8601 format. - TimeWindowSize *string `json:"timeWindowSize,omitempty"` + TimeWindowSize *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type DirectMethodInvokesNotInAllowedRange. @@ -3612,40 +3612,40 @@ func (d *DirectMethodInvokesNotInAllowedRange) GetTimeWindowCustomAlertRule() *T type DiscoveredSecuritySolution struct { // REQUIRED - Properties *DiscoveredSecuritySolutionProperties `json:"properties,omitempty"` + Properties *DiscoveredSecuritySolutionProperties // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Location where the resource is stored - Location *string `json:"location,omitempty" azure:"ro"` + Location *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 } type DiscoveredSecuritySolutionList struct { - Value []*DiscoveredSecuritySolution `json:"value,omitempty"` + Value []*DiscoveredSecuritySolution // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } type DiscoveredSecuritySolutionProperties struct { // REQUIRED; The security solutions' image offer - Offer *string `json:"offer,omitempty"` + Offer *string // REQUIRED; The security solutions' image publisher - Publisher *string `json:"publisher,omitempty"` + Publisher *string // REQUIRED; The security solutions' image sku - SKU *string `json:"sku,omitempty"` + SKU *string // REQUIRED; The security family of the discovered solution - SecurityFamily *SecurityFamily `json:"securityFamily,omitempty"` + SecurityFamily *SecurityFamily } // DiscoveredSecuritySolutionsClientGetOptions contains the optional parameters for the DiscoveredSecuritySolutionsClient.Get @@ -3669,16 +3669,16 @@ type DiscoveredSecuritySolutionsClientListOptions struct { // ETag - Entity tag is used for comparing two or more entities from the same requested resource. type ETag struct { // Entity tag is used for comparing two or more entities from the same requested resource. - Etag *string `json:"etag,omitempty"` + Etag *string } // EffectiveNetworkSecurityGroups - Describes the Network Security Groups effective on a network interface type EffectiveNetworkSecurityGroups struct { // The Azure resource ID of the network interface - NetworkInterface *string `json:"networkInterface,omitempty"` + NetworkInterface *string // The Network Security Groups effective on the network interface - NetworkSecurityGroups []*string `json:"networkSecurityGroups,omitempty"` + NetworkSecurityGroups []*string } // EnvironmentDataClassification provides polymorphic access to related types. @@ -3693,7 +3693,7 @@ type EnvironmentDataClassification interface { // EnvironmentData - The security connector environment data. type EnvironmentData struct { // REQUIRED; The type of the environment data. - EnvironmentType *EnvironmentType `json:"environmentType,omitempty"` + EnvironmentType *EnvironmentType } // GetEnvironmentData implements the EnvironmentDataClassification interface for type EnvironmentData. @@ -3702,65 +3702,65 @@ func (e *EnvironmentData) GetEnvironmentData() *EnvironmentData { return e } // 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 } // ExecuteGovernanceRuleParams - Governance rule execution parameters type ExecuteGovernanceRuleParams struct { // Describe if governance rule should be override - Override *bool `json:"override,omitempty"` + Override *bool } // ExecuteRuleStatus - Execute status of Security GovernanceRule over a given scope type ExecuteRuleStatus struct { // READ-ONLY; Unique key for the execution of GovernanceRule - OperationID *string `json:"operationId,omitempty" azure:"ro"` + OperationID *string } // ExternalSecuritySolution - Represents a security solution external to Microsoft Defender for Cloud which sends information // to an OMS workspace and whose data is displayed by Microsoft Defender for Cloud. type ExternalSecuritySolution struct { // The kind of the external solution - Kind *ExternalSecuritySolutionKind `json:"kind,omitempty"` + Kind *ExternalSecuritySolutionKind // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Location where the resource is stored - Location *string `json:"location,omitempty" azure:"ro"` + Location *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 } // ExternalSecuritySolutionKindAutoGenerated - Describes an Azure resource with kind type ExternalSecuritySolutionKindAutoGenerated struct { // The kind of the external solution - Kind *ExternalSecuritySolutionKind `json:"kind,omitempty"` + Kind *ExternalSecuritySolutionKind } type ExternalSecuritySolutionList struct { - Value []*ExternalSecuritySolution `json:"value,omitempty"` + Value []*ExternalSecuritySolution // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // ExternalSecuritySolutionProperties - The solution properties (correspond to the solution kind) type ExternalSecuritySolutionProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]any - DeviceType *string `json:"deviceType,omitempty"` - DeviceVendor *string `json:"deviceVendor,omitempty"` + DeviceType *string + DeviceVendor *string // Represents an OMS workspace to which the solution is connected - Workspace *ConnectedWorkspace `json:"workspace,omitempty"` + Workspace *ConnectedWorkspace } // ExternalSecuritySolutionsClientGetOptions contains the optional parameters for the ExternalSecuritySolutionsClient.Get @@ -3784,25 +3784,25 @@ type ExternalSecuritySolutionsClientListOptions struct { // FailedLocalLoginsNotInAllowedRange - Number of failed local logins is not in allowed range. type FailedLocalLoginsNotInAllowedRange struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The maximum threshold. - MaxThreshold *int32 `json:"maxThreshold,omitempty"` + MaxThreshold *int32 // REQUIRED; The minimum threshold. - MinThreshold *int32 `json:"minThreshold,omitempty"` + MinThreshold *int32 // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // REQUIRED; The time window size in iso8601 format. - TimeWindowSize *string `json:"timeWindowSize,omitempty"` + TimeWindowSize *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type FailedLocalLoginsNotInAllowedRange. @@ -3843,25 +3843,25 @@ func (f *FailedLocalLoginsNotInAllowedRange) GetTimeWindowCustomAlertRule() *Tim // FileUploadsNotInAllowedRange - Number of file uploads is not in allowed range. type FileUploadsNotInAllowedRange struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The maximum threshold. - MaxThreshold *int32 `json:"maxThreshold,omitempty"` + MaxThreshold *int32 // REQUIRED; The minimum threshold. - MinThreshold *int32 `json:"minThreshold,omitempty"` + MinThreshold *int32 // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // REQUIRED; The time window size in iso8601 format. - TimeWindowSize *string `json:"timeWindowSize,omitempty"` + TimeWindowSize *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type FileUploadsNotInAllowedRange. @@ -3903,47 +3903,47 @@ func (f *FileUploadsNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindo // composed of the organization ID and a JSON API key (write only) type GcpCredentialsDetailsProperties struct { // REQUIRED; Auth provider x509 certificate URL field of the API key (write only) - AuthProviderX509CertURL *string `json:"authProviderX509CertUrl,omitempty"` + AuthProviderX509CertURL *string // REQUIRED; Auth URI field of the API key (write only) - AuthURI *string `json:"authUri,omitempty"` + AuthURI *string // REQUIRED; Connect to your cloud account, for AWS use either account credentials or role-based authentication. For GCP use // account organization credentials. - AuthenticationType *AuthenticationType `json:"authenticationType,omitempty"` + AuthenticationType *AuthenticationType // REQUIRED; Client email field of the API key (write only) - ClientEmail *string `json:"clientEmail,omitempty"` + ClientEmail *string // REQUIRED; Client ID field of the API key (write only) - ClientID *string `json:"clientId,omitempty"` + ClientID *string // REQUIRED; Client x509 certificate URL field of the API key (write only) - ClientX509CertURL *string `json:"clientX509CertUrl,omitempty"` + ClientX509CertURL *string // REQUIRED; The organization ID of the GCP cloud account - OrganizationID *string `json:"organizationId,omitempty"` + OrganizationID *string // REQUIRED; Private key field of the API key (write only) - PrivateKey *string `json:"privateKey,omitempty"` + PrivateKey *string // REQUIRED; Private key ID field of the API key (write only) - PrivateKeyID *string `json:"privateKeyId,omitempty"` + PrivateKeyID *string // REQUIRED; Project ID field of the API key (write only) - ProjectID *string `json:"projectId,omitempty"` + ProjectID *string // REQUIRED; Token URI field of the API key (write only) - TokenURI *string `json:"tokenUri,omitempty"` + TokenURI *string // REQUIRED; Type field of the API key (write only) - Type *string `json:"type,omitempty"` + Type *string // READ-ONLY; State of the multi-cloud connector - AuthenticationProvisioningState *AuthenticationProvisioningState `json:"authenticationProvisioningState,omitempty" azure:"ro"` + AuthenticationProvisioningState *AuthenticationProvisioningState // READ-ONLY; The permissions detected in the cloud account. - GrantedPermissions []*PermissionProperty `json:"grantedPermissions,omitempty" azure:"ro"` + GrantedPermissions []*PermissionProperty } // GetAuthenticationDetailsProperties implements the AuthenticationDetailsPropertiesClassification interface for type GcpCredentialsDetailsProperties. @@ -3967,7 +3967,7 @@ type GcpOrganizationalDataClassification interface { // GcpOrganizationalData - The gcpOrganization data type GcpOrganizationalData struct { // REQUIRED; The multi cloud account's membership type in the organization - OrganizationMembershipType *OrganizationMembershipType `json:"organizationMembershipType,omitempty"` + OrganizationMembershipType *OrganizationMembershipType } // GetGcpOrganizationalData implements the GcpOrganizationalDataClassification interface for type GcpOrganizationalData. @@ -3976,13 +3976,13 @@ func (g *GcpOrganizationalData) GetGcpOrganizationalData() *GcpOrganizationalDat // GcpOrganizationalDataMember - The gcpOrganization data for the member account type GcpOrganizationalDataMember struct { // REQUIRED; The multi cloud account's membership type in the organization - OrganizationMembershipType *OrganizationMembershipType `json:"organizationMembershipType,omitempty"` + OrganizationMembershipType *OrganizationMembershipType // The GCP management project number from organizational onboarding - ManagementProjectNumber *string `json:"managementProjectNumber,omitempty"` + ManagementProjectNumber *string // If the multi cloud account is not of membership type organization, this will be the ID of the project's parent - ParentHierarchyID *string `json:"parentHierarchyId,omitempty"` + ParentHierarchyID *string } // GetGcpOrganizationalData implements the GcpOrganizationalDataClassification interface for type GcpOrganizationalDataMember. @@ -3995,16 +3995,16 @@ func (g *GcpOrganizationalDataMember) GetGcpOrganizationalData() *GcpOrganizatio // GcpOrganizationalDataOrganization - The gcpOrganization data for the parent account type GcpOrganizationalDataOrganization struct { // REQUIRED; The multi cloud account's membership type in the organization - OrganizationMembershipType *OrganizationMembershipType `json:"organizationMembershipType,omitempty"` + OrganizationMembershipType *OrganizationMembershipType // If the multi cloud account is of membership type organization, list of accounts excluded from offering - ExcludedProjectNumbers []*string `json:"excludedProjectNumbers,omitempty"` + ExcludedProjectNumbers []*string // The service account email address which represents the organization level permissions container. - ServiceAccountEmailAddress *string `json:"serviceAccountEmailAddress,omitempty"` + ServiceAccountEmailAddress *string // The GCP workload identity provider id which represents the permissions required to auto provision security connectors - WorkloadIdentityProviderID *string `json:"workloadIdentityProviderId,omitempty"` + WorkloadIdentityProviderID *string } // GetGcpOrganizationalData implements the GcpOrganizationalDataClassification interface for type GcpOrganizationalDataOrganization. @@ -4017,25 +4017,25 @@ func (g *GcpOrganizationalDataOrganization) GetGcpOrganizationalData() *GcpOrgan // GcpProjectDetails - The details about the project represented by the security connector type GcpProjectDetails struct { // The GCP Project id - ProjectID *string `json:"projectId,omitempty"` + ProjectID *string // The unique GCP Project number - ProjectNumber *string `json:"projectNumber,omitempty"` + ProjectNumber *string // READ-ONLY; The GCP workload identity federation pool id - WorkloadIdentityPoolID *string `json:"workloadIdentityPoolId,omitempty" azure:"ro"` + WorkloadIdentityPoolID *string } // GcpProjectEnvironmentData - The GCP project connector environment data type GcpProjectEnvironmentData struct { // REQUIRED; The type of the environment data. - EnvironmentType *EnvironmentType `json:"environmentType,omitempty"` + EnvironmentType *EnvironmentType // The Gcp project's organizational data - OrganizationalData GcpOrganizationalDataClassification `json:"organizationalData,omitempty"` + OrganizationalData GcpOrganizationalDataClassification // The Gcp project's details - ProjectDetails *GcpProjectDetails `json:"projectDetails,omitempty"` + ProjectDetails *GcpProjectDetails } // GetEnvironmentData implements the EnvironmentDataClassification interface for type GcpProjectEnvironmentData. @@ -4048,7 +4048,7 @@ func (g *GcpProjectEnvironmentData) GetEnvironmentData() *EnvironmentData { // GithubScopeEnvironmentData - The github scope connector's environment data type GithubScopeEnvironmentData struct { // REQUIRED; The type of the environment data. - EnvironmentType *EnvironmentType `json:"environmentType,omitempty"` + EnvironmentType *EnvironmentType } // GetEnvironmentData implements the EnvironmentDataClassification interface for type GithubScopeEnvironmentData. @@ -4061,49 +4061,49 @@ func (g *GithubScopeEnvironmentData) GetEnvironmentData() *EnvironmentData { // GovernanceAssignment - Security GovernanceAssignment over a given scope type GovernanceAssignment struct { // Properties of a security governanceAssignment - Properties *GovernanceAssignmentProperties `json:"properties,omitempty"` + Properties *GovernanceAssignmentProperties // 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 } // GovernanceAssignmentAdditionalData - Describe the additional data of GovernanceAssignment - optional type GovernanceAssignmentAdditionalData struct { // Ticket link associated with this GovernanceAssignment - for example: https://snow.com - TicketLink *string `json:"ticketLink,omitempty"` + TicketLink *string // Ticket number associated with this GovernanceAssignment - TicketNumber *int32 `json:"ticketNumber,omitempty"` + TicketNumber *int32 // The ticket status associated with this GovernanceAssignment - for example: Active - TicketStatus *string `json:"ticketStatus,omitempty"` + TicketStatus *string } // GovernanceAssignmentProperties - Describes properties of an governance assignment type GovernanceAssignmentProperties struct { // REQUIRED; The remediation due-date - after this date Secure Score will be affected (in case of active grace-period) - RemediationDueDate *time.Time `json:"remediationDueDate,omitempty"` + RemediationDueDate *time.Time // The additional data for the governance assignment - e.g. links to ticket (optional), see example - AdditionalData *GovernanceAssignmentAdditionalData `json:"additionalData,omitempty"` + AdditionalData *GovernanceAssignmentAdditionalData // The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners - GovernanceEmailNotification *GovernanceEmailNotification `json:"governanceEmailNotification,omitempty"` + GovernanceEmailNotification *GovernanceEmailNotification // Defines whether there is a grace period on the governance assignment - IsGracePeriod *bool `json:"isGracePeriod,omitempty"` + IsGracePeriod *bool // The Owner for the governance assignment - e.g. user@contoso.com - see example - Owner *string `json:"owner,omitempty"` + Owner *string // The ETA (estimated time of arrival) for remediation (optional), see example - RemediationEta *RemediationEta `json:"remediationEta,omitempty"` + RemediationEta *RemediationEta } // GovernanceAssignmentsClientCreateOrUpdateOptions contains the optional parameters for the GovernanceAssignmentsClient.CreateOrUpdate @@ -4131,34 +4131,34 @@ type GovernanceAssignmentsClientListOptions struct { // GovernanceAssignmentsList - Page of a security governance assignments list type GovernanceAssignmentsList struct { // READ-ONLY; The URI to fetch the next page - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; Collection of governance assignments in this page - Value []*GovernanceAssignment `json:"value,omitempty" azure:"ro"` + Value []*GovernanceAssignment } // GovernanceEmailNotification - The governance email weekly notification configuration. type GovernanceEmailNotification struct { // Exclude manager from weekly email notification. - DisableManagerEmailNotification *bool `json:"disableManagerEmailNotification,omitempty"` + DisableManagerEmailNotification *bool // Exclude owner from weekly email notification. - DisableOwnerEmailNotification *bool `json:"disableOwnerEmailNotification,omitempty"` + DisableOwnerEmailNotification *bool } // GovernanceRule - Security GovernanceRule over a given scope type GovernanceRule struct { // Properties of a security governanceRule - Properties *GovernanceRuleProperties `json:"properties,omitempty"` + Properties *GovernanceRuleProperties // 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 } // GovernanceRuleClientListOptions contains the optional parameters for the GovernanceRuleClient.NewListPager method. @@ -4169,66 +4169,66 @@ type GovernanceRuleClientListOptions struct { // GovernanceRuleEmailNotification - The governance email weekly notification configuration. type GovernanceRuleEmailNotification struct { // Defines whether manager email notifications are disabled. - DisableManagerEmailNotification *bool `json:"disableManagerEmailNotification,omitempty"` + DisableManagerEmailNotification *bool // Defines whether owner email notifications are disabled. - DisableOwnerEmailNotification *bool `json:"disableOwnerEmailNotification,omitempty"` + DisableOwnerEmailNotification *bool } // GovernanceRuleList - Page of a security governanceRules list type GovernanceRuleList struct { // READ-ONLY; The URI to fetch the next page - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; Collection of governanceRules in this page - Value []*GovernanceRule `json:"value,omitempty" azure:"ro"` + Value []*GovernanceRule } // GovernanceRuleOwnerSource - Describe the owner source of governance rule type GovernanceRuleOwnerSource struct { // The owner type for the governance rule owner source - Type *GovernanceRuleOwnerSourceType `json:"type,omitempty"` + Type *GovernanceRuleOwnerSourceType // The source value e.g. tag key like owner name or email address - Value *string `json:"value,omitempty"` + Value *string } // GovernanceRuleProperties - Describes properties of an governanceRule type GovernanceRuleProperties struct { // REQUIRED; The governance rule conditionSets - see examples - ConditionSets []any `json:"conditionSets,omitempty"` + ConditionSets []any // REQUIRED; display name of the governanceRule - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // REQUIRED; The Owner source for the governance rule - e.g. Manually by user@contoso.com - see example - OwnerSource *GovernanceRuleOwnerSource `json:"ownerSource,omitempty"` + OwnerSource *GovernanceRuleOwnerSource // REQUIRED; The governance rule priority, priority to the lower number. Rules with the same priority on the same subscription // will not be allowed - RulePriority *int32 `json:"rulePriority,omitempty"` + RulePriority *int32 // REQUIRED; The rule type of the governance rule, defines the source of the rule e.g. Integrated - RuleType *GovernanceRuleType `json:"ruleType,omitempty"` + RuleType *GovernanceRuleType // REQUIRED; The governance rule source, what the rule affects, e.g. Assessments - SourceResourceType *GovernanceRuleSourceResourceType `json:"sourceResourceType,omitempty"` + SourceResourceType *GovernanceRuleSourceResourceType // description of the governanceRule - Description *string `json:"description,omitempty"` + Description *string // The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners - GovernanceEmailNotification *GovernanceRuleEmailNotification `json:"governanceEmailNotification,omitempty"` + GovernanceEmailNotification *GovernanceRuleEmailNotification // Defines whether the rule is active/inactive - IsDisabled *bool `json:"isDisabled,omitempty"` + IsDisabled *bool // Defines whether there is a grace period on the governance rule - IsGracePeriod *bool `json:"isGracePeriod,omitempty"` + IsGracePeriod *bool // Governance rule remediation timeframe - this is the time that will affect on the grace-period duration e.g. 7.00:00:00 // - means 7 days - RemediationTimeframe *string `json:"remediationTimeframe,omitempty"` + RemediationTimeframe *string } // GovernanceRulesClientBeginRuleIDExecuteSingleSecurityConnectorOptions contains the optional parameters for the GovernanceRulesClient.BeginRuleIDExecuteSingleSecurityConnector @@ -4268,25 +4268,25 @@ type GovernanceRulesClientGetOptions struct { // HTTPC2DMessagesNotInAllowedRange - Number of cloud to device messages (HTTP protocol) is not in allowed range. type HTTPC2DMessagesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The maximum threshold. - MaxThreshold *int32 `json:"maxThreshold,omitempty"` + MaxThreshold *int32 // REQUIRED; The minimum threshold. - MinThreshold *int32 `json:"minThreshold,omitempty"` + MinThreshold *int32 // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // REQUIRED; The time window size in iso8601 format. - TimeWindowSize *string `json:"timeWindowSize,omitempty"` + TimeWindowSize *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type HTTPC2DMessagesNotInAllowedRange. @@ -4328,25 +4328,25 @@ func (h *HTTPC2DMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeW // range. type HTTPC2DRejectedMessagesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The maximum threshold. - MaxThreshold *int32 `json:"maxThreshold,omitempty"` + MaxThreshold *int32 // REQUIRED; The minimum threshold. - MinThreshold *int32 `json:"minThreshold,omitempty"` + MinThreshold *int32 // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // REQUIRED; The time window size in iso8601 format. - TimeWindowSize *string `json:"timeWindowSize,omitempty"` + TimeWindowSize *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type HTTPC2DRejectedMessagesNotInAllowedRange. @@ -4387,25 +4387,25 @@ func (h *HTTPC2DRejectedMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule( // HTTPD2CMessagesNotInAllowedRange - Number of device to cloud messages (HTTP protocol) is not in allowed range. type HTTPD2CMessagesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The maximum threshold. - MaxThreshold *int32 `json:"maxThreshold,omitempty"` + MaxThreshold *int32 // REQUIRED; The minimum threshold. - MinThreshold *int32 `json:"minThreshold,omitempty"` + MinThreshold *int32 // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // REQUIRED; The time window size in iso8601 format. - TimeWindowSize *string `json:"timeWindowSize,omitempty"` + TimeWindowSize *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type HTTPD2CMessagesNotInAllowedRange. @@ -4446,35 +4446,35 @@ func (h *HTTPD2CMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeW // HybridComputeSettingsProperties - Settings for hybrid compute management type HybridComputeSettingsProperties struct { // REQUIRED; Whether or not to automatically install Azure Arc (hybrid compute) agents on machines - AutoProvision *AutoProvision `json:"autoProvision,omitempty"` + AutoProvision *AutoProvision // For a non-Azure machine that is not connected directly to the internet, specify a proxy server that the non-Azure machine // can use. - ProxyServer *ProxyServerProperties `json:"proxyServer,omitempty"` + ProxyServer *ProxyServerProperties // The location where the metadata of machines will be stored - Region *string `json:"region,omitempty"` + Region *string // The name of the resource group where Arc (Hybrid Compute) connectors are connected. - ResourceGroupName *string `json:"resourceGroupName,omitempty"` + ResourceGroupName *string // An object to access resources that are secured by an Azure AD tenant. - ServicePrincipal *ServicePrincipalProperties `json:"servicePrincipal,omitempty"` + ServicePrincipal *ServicePrincipalProperties // READ-ONLY; State of the service principal and its secret - HybridComputeProvisioningState *HybridComputeProvisioningState `json:"hybridComputeProvisioningState,omitempty" azure:"ro"` + HybridComputeProvisioningState *HybridComputeProvisioningState } // InformationProtectionAwsOffering - The information protection for AWS offering type InformationProtectionAwsOffering struct { // REQUIRED; The type of the security offering. - OfferingType *OfferingType `json:"offeringType,omitempty"` + OfferingType *OfferingType // The native cloud connection configuration - InformationProtection *InformationProtectionAwsOfferingInformationProtection `json:"informationProtection,omitempty"` + InformationProtection *InformationProtectionAwsOfferingInformationProtection // READ-ONLY; The offering description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string } // GetCloudOffering implements the CloudOfferingClassification interface for type InformationProtectionAwsOffering. @@ -4488,22 +4488,22 @@ func (i *InformationProtectionAwsOffering) GetCloudOffering() *CloudOffering { // InformationProtectionAwsOfferingInformationProtection - The native cloud connection configuration type InformationProtectionAwsOfferingInformationProtection struct { // The cloud role ARN in AWS for this feature - CloudRoleArn *string `json:"cloudRoleArn,omitempty"` + CloudRoleArn *string } // InformationProtectionKeyword - The information type keyword. type InformationProtectionKeyword struct { // Indicates whether the keyword can be applied on numeric types or not. - CanBeNumeric *bool `json:"canBeNumeric,omitempty"` + CanBeNumeric *bool // Indicates whether the keyword is custom or not. - Custom *bool `json:"custom,omitempty"` + Custom *bool // Indicates whether the keyword is excluded or not. - Excluded *bool `json:"excluded,omitempty"` + Excluded *bool // The keyword pattern. - Pattern *string `json:"pattern,omitempty"` + Pattern *string } // InformationProtectionPoliciesClientCreateOrUpdateOptions contains the optional parameters for the InformationProtectionPoliciesClient.CreateOrUpdate @@ -4527,103 +4527,103 @@ type InformationProtectionPoliciesClientListOptions struct { // InformationProtectionPolicy - Information protection policy. type InformationProtectionPolicy struct { // Information protection policy data - Properties *InformationProtectionPolicyProperties `json:"properties,omitempty"` + Properties *InformationProtectionPolicyProperties // 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 } // InformationProtectionPolicyList - Information protection policies response. type InformationProtectionPolicyList struct { // List of information protection policies. - Value []*InformationProtectionPolicy `json:"value,omitempty"` + Value []*InformationProtectionPolicy // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // InformationProtectionPolicyProperties - describes properties of an information protection policy. type InformationProtectionPolicyProperties struct { // The sensitivity information types. - InformationTypes map[string]*InformationType `json:"informationTypes,omitempty"` + InformationTypes map[string]*InformationType // Dictionary of sensitivity labels. - Labels map[string]*SensitivityLabel `json:"labels,omitempty"` + Labels map[string]*SensitivityLabel // READ-ONLY; Describes the last UTC time the policy was modified. - LastModifiedUTC *time.Time `json:"lastModifiedUtc,omitempty" azure:"ro"` + LastModifiedUTC *time.Time // READ-ONLY; Describes the version of the policy. - Version *string `json:"version,omitempty" azure:"ro"` + Version *string } // InformationType - The information type. type InformationType struct { // Indicates whether the information type is custom or not. - Custom *bool `json:"custom,omitempty"` + Custom *bool // The description of the information type. - Description *string `json:"description,omitempty"` + Description *string // The name of the information type. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Indicates whether the information type is enabled or not. - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool // The information type keywords. - Keywords []*InformationProtectionKeyword `json:"keywords,omitempty"` + Keywords []*InformationProtectionKeyword // The order of the information type. - Order *int32 `json:"order,omitempty"` + Order *int32 // The recommended label id to be associated with this information type. - RecommendedLabelID *string `json:"recommendedLabelId,omitempty"` + RecommendedLabelID *string } // IngestionConnectionString - Connection string for ingesting security data and logs type IngestionConnectionString struct { // READ-ONLY; The region where ingested logs and data resides - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; Connection string value - Value *string `json:"value,omitempty" azure:"ro"` + Value *string } // IngestionSetting - Configures how to correlate scan data and logs with resources associated with the subscription. type IngestionSetting struct { // Ingestion setting data - Properties any `json:"properties,omitempty"` + Properties any // 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 } // IngestionSettingList - List of ingestion settings type IngestionSettingList struct { // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of ingestion settings - Value []*IngestionSetting `json:"value,omitempty" azure:"ro"` + Value []*IngestionSetting } // IngestionSettingToken - Configures how to correlate scan data and logs with resources associated with the subscription. type IngestionSettingToken struct { // READ-ONLY; The token is used for correlating security data and logs with the resources in the subscription. - Token *string `json:"token,omitempty" azure:"ro"` + Token *string } // IngestionSettingsClientCreateOptions contains the optional parameters for the IngestionSettingsClient.Create method. @@ -4660,309 +4660,309 @@ type IngestionSettingsClientListTokensOptions struct { // IoTSecurityAggregatedAlert - Security Solution Aggregated Alert information type IoTSecurityAggregatedAlert struct { // IoT Security solution aggregated alert details. - Properties *IoTSecurityAggregatedAlertProperties `json:"properties,omitempty"` + Properties *IoTSecurityAggregatedAlertProperties // 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 } // IoTSecurityAggregatedAlertList - List of IoT Security solution aggregated alert data. type IoTSecurityAggregatedAlertList struct { // REQUIRED; List of aggregated alerts data. - Value []*IoTSecurityAggregatedAlert `json:"value,omitempty"` + Value []*IoTSecurityAggregatedAlert // READ-ONLY; When there is too much alert data for one page, use this URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // IoTSecurityAggregatedAlertProperties - IoT Security solution aggregated alert details. type IoTSecurityAggregatedAlertProperties struct { // READ-ONLY; IoT Security solution alert response. - ActionTaken *string `json:"actionTaken,omitempty" azure:"ro"` + ActionTaken *string // READ-ONLY; Date of detection. - AggregatedDateUTC *time.Time `json:"aggregatedDateUtc,omitempty" azure:"ro"` + AggregatedDateUTC *time.Time // READ-ONLY; Display name of the alert type. - AlertDisplayName *string `json:"alertDisplayName,omitempty" azure:"ro"` + AlertDisplayName *string // READ-ONLY; Name of the alert type. - AlertType *string `json:"alertType,omitempty" azure:"ro"` + AlertType *string // READ-ONLY; Number of alerts occurrences within the aggregated time window. - Count *int64 `json:"count,omitempty" azure:"ro"` + Count *int64 // READ-ONLY; Description of the suspected vulnerability and meaning. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; Azure resource ID of the resource that received the alerts. - EffectedResourceType *string `json:"effectedResourceType,omitempty" azure:"ro"` + EffectedResourceType *string // READ-ONLY; Log analytics query for getting the list of affected devices/alerts. - LogAnalyticsQuery *string `json:"logAnalyticsQuery,omitempty" azure:"ro"` + LogAnalyticsQuery *string // READ-ONLY; Recommended steps for remediation. - RemediationSteps *string `json:"remediationSteps,omitempty" azure:"ro"` + RemediationSteps *string // READ-ONLY; Assessed alert severity. - ReportedSeverity *ReportedSeverity `json:"reportedSeverity,omitempty" azure:"ro"` + ReportedSeverity *ReportedSeverity // READ-ONLY; The type of the alerted resource (Azure, Non-Azure). - SystemSource *string `json:"systemSource,omitempty" azure:"ro"` + SystemSource *string // READ-ONLY; 10 devices with the highest number of occurrences of this alert type, on this day. - TopDevicesList []*IoTSecurityAggregatedAlertPropertiesTopDevicesListItem `json:"topDevicesList,omitempty" azure:"ro"` + TopDevicesList []*IoTSecurityAggregatedAlertPropertiesTopDevicesListItem // READ-ONLY; Name of the organization that raised the alert. - VendorName *string `json:"vendorName,omitempty" azure:"ro"` + VendorName *string } type IoTSecurityAggregatedAlertPropertiesTopDevicesListItem struct { // READ-ONLY; Number of alerts raised for this device. - AlertsCount *int64 `json:"alertsCount,omitempty" azure:"ro"` + AlertsCount *int64 // READ-ONLY; Name of the device. - DeviceID *string `json:"deviceId,omitempty" azure:"ro"` + DeviceID *string // READ-ONLY; Most recent time this alert was raised for this device, on this day. - LastOccurrence *string `json:"lastOccurrence,omitempty" azure:"ro"` + LastOccurrence *string } // IoTSecurityAggregatedRecommendation - IoT Security solution recommendation information. type IoTSecurityAggregatedRecommendation struct { // Security Solution data - Properties *IoTSecurityAggregatedRecommendationProperties `json:"properties,omitempty"` + Properties *IoTSecurityAggregatedRecommendationProperties // 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 } // IoTSecurityAggregatedRecommendationList - List of IoT Security solution aggregated recommendations. type IoTSecurityAggregatedRecommendationList struct { // REQUIRED; List of aggregated recommendations data. - Value []*IoTSecurityAggregatedRecommendation `json:"value,omitempty"` + Value []*IoTSecurityAggregatedRecommendation // READ-ONLY; When there is too much alert data for one page, use this URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // IoTSecurityAggregatedRecommendationProperties - IoT Security solution aggregated recommendation information type IoTSecurityAggregatedRecommendationProperties struct { // Name of the recommendation. - RecommendationName *string `json:"recommendationName,omitempty"` + RecommendationName *string // READ-ONLY; Description of the suspected vulnerability and meaning. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; Name of the organization that made the recommendation. - DetectedBy *string `json:"detectedBy,omitempty" azure:"ro"` + DetectedBy *string // READ-ONLY; Number of healthy devices within the IoT Security solution. - HealthyDevices *int64 `json:"healthyDevices,omitempty" azure:"ro"` + HealthyDevices *int64 // READ-ONLY; Log analytics query for getting the list of affected devices/alerts. - LogAnalyticsQuery *string `json:"logAnalyticsQuery,omitempty" azure:"ro"` + LogAnalyticsQuery *string // READ-ONLY; Display name of the recommendation type. - RecommendationDisplayName *string `json:"recommendationDisplayName,omitempty" azure:"ro"` + RecommendationDisplayName *string // READ-ONLY; Recommendation-type GUID. - RecommendationTypeID *string `json:"recommendationTypeId,omitempty" azure:"ro"` + RecommendationTypeID *string // READ-ONLY; Recommended steps for remediation - RemediationSteps *string `json:"remediationSteps,omitempty" azure:"ro"` + RemediationSteps *string // READ-ONLY; Assessed recommendation severity. - ReportedSeverity *ReportedSeverity `json:"reportedSeverity,omitempty" azure:"ro"` + ReportedSeverity *ReportedSeverity // READ-ONLY; Number of unhealthy devices within the IoT Security solution. - UnhealthyDeviceCount *int64 `json:"unhealthyDeviceCount,omitempty" azure:"ro"` + UnhealthyDeviceCount *int64 } // IoTSecurityAlertedDevice - Statistical information about the number of alerts per device during last set number of days. type IoTSecurityAlertedDevice struct { // READ-ONLY; Number of alerts raised for this device. - AlertsCount *int64 `json:"alertsCount,omitempty" azure:"ro"` + AlertsCount *int64 // READ-ONLY; Device identifier. - DeviceID *string `json:"deviceId,omitempty" azure:"ro"` + DeviceID *string } // IoTSecurityDeviceAlert - Statistical information about the number of alerts per alert type during last set number of days type IoTSecurityDeviceAlert struct { // READ-ONLY; Display name of the alert - AlertDisplayName *string `json:"alertDisplayName,omitempty" azure:"ro"` + AlertDisplayName *string // READ-ONLY; Number of alerts raised for this alert type. - AlertsCount *int64 `json:"alertsCount,omitempty" azure:"ro"` + AlertsCount *int64 // READ-ONLY; Assessed Alert severity. - ReportedSeverity *ReportedSeverity `json:"reportedSeverity,omitempty" azure:"ro"` + ReportedSeverity *ReportedSeverity } // IoTSecurityDeviceRecommendation - Statistical information about the number of recommendations per device, per recommendation // type. type IoTSecurityDeviceRecommendation struct { // READ-ONLY; Number of devices with this recommendation. - DevicesCount *int64 `json:"devicesCount,omitempty" azure:"ro"` + DevicesCount *int64 // READ-ONLY; Display name of the recommendation. - RecommendationDisplayName *string `json:"recommendationDisplayName,omitempty" azure:"ro"` + RecommendationDisplayName *string // READ-ONLY; Assessed recommendation severity. - ReportedSeverity *ReportedSeverity `json:"reportedSeverity,omitempty" azure:"ro"` + ReportedSeverity *ReportedSeverity } // IoTSecuritySolutionAnalyticsModel - Security analytics of your IoT Security solution type IoTSecuritySolutionAnalyticsModel struct { // Security Solution Aggregated Alert data - Properties *IoTSecuritySolutionAnalyticsModelProperties `json:"properties,omitempty"` + Properties *IoTSecuritySolutionAnalyticsModelProperties // 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 } // IoTSecuritySolutionAnalyticsModelList - List of Security analytics of your IoT Security solution type IoTSecuritySolutionAnalyticsModelList struct { // REQUIRED; List of Security analytics of your IoT Security solution - Value []*IoTSecuritySolutionAnalyticsModel `json:"value,omitempty"` + Value []*IoTSecuritySolutionAnalyticsModel // READ-ONLY; When there is too much alert data for one page, use this URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // IoTSecuritySolutionAnalyticsModelProperties - Security analytics properties of your IoT Security solution type IoTSecuritySolutionAnalyticsModelProperties struct { // List of the 3 most prevalent device alerts. - MostPrevalentDeviceAlerts []*IoTSecurityDeviceAlert `json:"mostPrevalentDeviceAlerts,omitempty"` + MostPrevalentDeviceAlerts []*IoTSecurityDeviceAlert // List of the 3 most prevalent device recommendations. - MostPrevalentDeviceRecommendations []*IoTSecurityDeviceRecommendation `json:"mostPrevalentDeviceRecommendations,omitempty"` + MostPrevalentDeviceRecommendations []*IoTSecurityDeviceRecommendation // List of the 3 devices with the most alerts. - TopAlertedDevices []*IoTSecurityAlertedDevice `json:"topAlertedDevices,omitempty"` + TopAlertedDevices []*IoTSecurityAlertedDevice // READ-ONLY; List of device metrics by the aggregation date. - DevicesMetrics []*IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem `json:"devicesMetrics,omitempty" azure:"ro"` + DevicesMetrics []*IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem // READ-ONLY; Security analytics of your IoT Security solution. - Metrics *IoTSeverityMetrics `json:"metrics,omitempty" azure:"ro"` + Metrics *IoTSeverityMetrics // READ-ONLY; Number of unhealthy devices within your IoT Security solution. - UnhealthyDeviceCount *int64 `json:"unhealthyDeviceCount,omitempty" azure:"ro"` + UnhealthyDeviceCount *int64 } type IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem struct { // Aggregation of IoT Security solution device alert metrics by date. - Date *time.Time `json:"date,omitempty"` + Date *time.Time // Device alert count by severity. - DevicesMetrics *IoTSeverityMetrics `json:"devicesMetrics,omitempty"` + DevicesMetrics *IoTSeverityMetrics } // IoTSecuritySolutionModel - IoT Security solution configuration and resource information. type IoTSecuritySolutionModel struct { // The resource location. - Location *string `json:"location,omitempty"` + Location *string // Security Solution data - Properties *IoTSecuritySolutionProperties `json:"properties,omitempty"` + Properties *IoTSecuritySolutionProperties // 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; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // IoTSecuritySolutionProperties - Security Solution setting data type IoTSecuritySolutionProperties struct { // REQUIRED; Resource display name. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // REQUIRED; IoT Hub resource IDs - IotHubs []*string `json:"iotHubs,omitempty"` + IotHubs []*string // List of additional workspaces - AdditionalWorkspaces []*AdditionalWorkspacesProperties `json:"additionalWorkspaces,omitempty"` + AdditionalWorkspaces []*AdditionalWorkspacesProperties // Disabled data sources. Disabling these data sources compromises the system. - DisabledDataSources []*DataSource `json:"disabledDataSources,omitempty"` + DisabledDataSources []*DataSource // List of additional options for exporting to workspace data. - Export []*ExportData `json:"export,omitempty"` + Export []*ExportData // List of the configuration status for each recommendation type. - RecommendationsConfiguration []*RecommendationConfigurationProperties `json:"recommendationsConfiguration,omitempty"` + RecommendationsConfiguration []*RecommendationConfigurationProperties // Status of the IoT Security solution. - Status *SecuritySolutionStatus `json:"status,omitempty"` + Status *SecuritySolutionStatus // Unmasked IP address logging status - UnmaskedIPLoggingStatus *UnmaskedIPLoggingStatus `json:"unmaskedIpLoggingStatus,omitempty"` + UnmaskedIPLoggingStatus *UnmaskedIPLoggingStatus // Properties of the IoT Security solution's user defined resources. - UserDefinedResources *UserDefinedResourcesProperties `json:"userDefinedResources,omitempty"` + UserDefinedResources *UserDefinedResourcesProperties // Workspace resource ID - Workspace *string `json:"workspace,omitempty"` + Workspace *string // READ-ONLY; List of resources that were automatically discovered as relevant to the security solution. - AutoDiscoveredResources []*string `json:"autoDiscoveredResources,omitempty" azure:"ro"` + AutoDiscoveredResources []*string } // IoTSecuritySolutionsList - List of IoT Security solutions. type IoTSecuritySolutionsList struct { // REQUIRED; List of IoT Security solutions - Value []*IoTSecuritySolutionModel `json:"value,omitempty"` + Value []*IoTSecuritySolutionModel // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // IoTSeverityMetrics - IoT Security solution analytics severity metrics. type IoTSeverityMetrics struct { // Count of high severity alerts/recommendations. - High *int64 `json:"high,omitempty"` + High *int64 // Count of low severity alerts/recommendations. - Low *int64 `json:"low,omitempty"` + Low *int64 // Count of medium severity alerts/recommendations. - Medium *int64 `json:"medium,omitempty"` + Medium *int64 } // IotSecuritySolutionAnalyticsClientGetOptions contains the optional parameters for the IotSecuritySolutionAnalyticsClient.Get @@ -5092,147 +5092,147 @@ type JitNetworkAccessPoliciesClientListOptions struct { } type JitNetworkAccessPoliciesList struct { - Value []*JitNetworkAccessPolicy `json:"value,omitempty"` + Value []*JitNetworkAccessPolicy // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } type JitNetworkAccessPolicy struct { // REQUIRED - Properties *JitNetworkAccessPolicyProperties `json:"properties,omitempty"` + Properties *JitNetworkAccessPolicyProperties // Kind of the resource - Kind *string `json:"kind,omitempty"` + Kind *string // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Location where the resource is stored - Location *string `json:"location,omitempty" azure:"ro"` + Location *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 } type JitNetworkAccessPolicyInitiatePort struct { // REQUIRED; The time to close the request in UTC - EndTimeUTC *time.Time `json:"endTimeUtc,omitempty"` + EndTimeUTC *time.Time // REQUIRED - Number *int32 `json:"number,omitempty"` + Number *int32 // Source of the allowed traffic. If omitted, the request will be for the source IP address of the initiate request. - AllowedSourceAddressPrefix *string `json:"allowedSourceAddressPrefix,omitempty"` + AllowedSourceAddressPrefix *string } type JitNetworkAccessPolicyInitiateRequest struct { // REQUIRED; A list of virtual machines & ports to open access for - VirtualMachines []*JitNetworkAccessPolicyInitiateVirtualMachine `json:"virtualMachines,omitempty"` + VirtualMachines []*JitNetworkAccessPolicyInitiateVirtualMachine // The justification for making the initiate request - Justification *string `json:"justification,omitempty"` + Justification *string } type JitNetworkAccessPolicyInitiateVirtualMachine struct { // REQUIRED; Resource ID of the virtual machine that is linked to this policy - ID *string `json:"id,omitempty"` + ID *string // REQUIRED; The ports to open for the resource with the id - Ports []*JitNetworkAccessPolicyInitiatePort `json:"ports,omitempty"` + Ports []*JitNetworkAccessPolicyInitiatePort } type JitNetworkAccessPolicyProperties struct { // REQUIRED; Configurations for Microsoft.Compute/virtualMachines resource type. - VirtualMachines []*JitNetworkAccessPolicyVirtualMachine `json:"virtualMachines,omitempty"` - Requests []*JitNetworkAccessRequest `json:"requests,omitempty"` + VirtualMachines []*JitNetworkAccessPolicyVirtualMachine + Requests []*JitNetworkAccessRequest // READ-ONLY; Gets the provisioning state of the Just-in-Time policy. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } type JitNetworkAccessPolicyVirtualMachine struct { // REQUIRED; Resource ID of the virtual machine that is linked to this policy - ID *string `json:"id,omitempty"` + ID *string // REQUIRED; Port configurations for the virtual machine - Ports []*JitNetworkAccessPortRule `json:"ports,omitempty"` + Ports []*JitNetworkAccessPortRule // Public IP address of the Azure Firewall that is linked to this policy, if applicable - PublicIPAddress *string `json:"publicIpAddress,omitempty"` + PublicIPAddress *string } type JitNetworkAccessPortRule struct { // REQUIRED; Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day - MaxRequestAccessDuration *string `json:"maxRequestAccessDuration,omitempty"` + MaxRequestAccessDuration *string // REQUIRED - Number *int32 `json:"number,omitempty"` + Number *int32 // REQUIRED - Protocol *Protocol `json:"protocol,omitempty"` + Protocol *Protocol // Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" // or "192.168.0.0/16". - AllowedSourceAddressPrefix *string `json:"allowedSourceAddressPrefix,omitempty"` + AllowedSourceAddressPrefix *string // Mutually exclusive with the "allowedSourceAddressPrefix" parameter. - AllowedSourceAddressPrefixes []*string `json:"allowedSourceAddressPrefixes,omitempty"` + AllowedSourceAddressPrefixes []*string } type JitNetworkAccessRequest struct { // REQUIRED; The identity of the person who made the request - Requestor *string `json:"requestor,omitempty"` + Requestor *string // REQUIRED; The start time of the request in UTC - StartTimeUTC *time.Time `json:"startTimeUtc,omitempty"` + StartTimeUTC *time.Time // REQUIRED - VirtualMachines []*JitNetworkAccessRequestVirtualMachine `json:"virtualMachines,omitempty"` + VirtualMachines []*JitNetworkAccessRequestVirtualMachine // The justification for making the initiate request - Justification *string `json:"justification,omitempty"` + Justification *string } type JitNetworkAccessRequestPort struct { // REQUIRED; The date & time at which the request ends in UTC - EndTimeUTC *time.Time `json:"endTimeUtc,omitempty"` + EndTimeUTC *time.Time // REQUIRED - Number *int32 `json:"number,omitempty"` + Number *int32 // REQUIRED; The status of the port - Status *Status `json:"status,omitempty"` + Status *Status // REQUIRED; A description of why the status has its value - StatusReason *StatusReason `json:"statusReason,omitempty"` + StatusReason *StatusReason // Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" // or "192.168.0.0/16". - AllowedSourceAddressPrefix *string `json:"allowedSourceAddressPrefix,omitempty"` + AllowedSourceAddressPrefix *string // Mutually exclusive with the "allowedSourceAddressPrefix" parameter. - AllowedSourceAddressPrefixes []*string `json:"allowedSourceAddressPrefixes,omitempty"` + AllowedSourceAddressPrefixes []*string // The port which is mapped to this port's number in the Azure Firewall, if applicable - MappedPort *int32 `json:"mappedPort,omitempty"` + MappedPort *int32 } type JitNetworkAccessRequestVirtualMachine struct { // REQUIRED; Resource ID of the virtual machine that is linked to this policy - ID *string `json:"id,omitempty"` + ID *string // REQUIRED; The ports that were opened for the virtual machine - Ports []*JitNetworkAccessRequestPort `json:"ports,omitempty"` + Ports []*JitNetworkAccessRequestPort } // KindAutoGenerated - Describes an Azure resource with kind type KindAutoGenerated struct { // Kind of the resource - Kind *string `json:"kind,omitempty"` + Kind *string } // ListCustomAlertRuleClassification provides polymorphic access to related types. @@ -5249,19 +5249,19 @@ type ListCustomAlertRuleClassification interface { // ListCustomAlertRule - A List custom alert rule. type ListCustomAlertRule struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; The value type of the items in the list. - ValueType *ValueType `json:"valueType,omitempty" azure:"ro"` + ValueType *ValueType } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type ListCustomAlertRule. @@ -5280,22 +5280,22 @@ func (l *ListCustomAlertRule) GetListCustomAlertRule() *ListCustomAlertRule { re // LocalUserNotAllowed - Login by a local user that isn't allowed. Allow list consists of login names to allow. type LocalUserNotAllowed struct { // REQUIRED; The values to allow. The format of the values depends on the rule type. - AllowlistValues []*string `json:"allowlistValues,omitempty"` + AllowlistValues []*string // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; The value type of the items in the list. - ValueType *ValueType `json:"valueType,omitempty" azure:"ro"` + ValueType *ValueType } // GetAllowlistCustomAlertRule implements the AllowlistCustomAlertRuleClassification interface for type LocalUserNotAllowed. @@ -5334,7 +5334,7 @@ func (l *LocalUserNotAllowed) GetListCustomAlertRule() *ListCustomAlertRule { // Location - Describes an Azure resource with location type Location struct { // READ-ONLY; Location where the resource is stored - Location *string `json:"location,omitempty" azure:"ro"` + Location *string } // LocationsClientGetOptions contains the optional parameters for the LocationsClient.Get method. @@ -5350,19 +5350,19 @@ type LocationsClientListOptions struct { // LogAnalyticsIdentifier - Represents a Log Analytics workspace scope identifier. type LogAnalyticsIdentifier struct { // REQUIRED; There can be multiple identifiers of different type per alert, this field specify the identifier type. - Type *ResourceIdentifierType `json:"type,omitempty"` + Type *ResourceIdentifierType // READ-ONLY; (optional) The LogAnalytics agent id reporting the event that this alert is based on. - AgentID *string `json:"agentId,omitempty" azure:"ro"` + AgentID *string // READ-ONLY; The LogAnalytics workspace id that stores this alert. - WorkspaceID *string `json:"workspaceId,omitempty" azure:"ro"` + WorkspaceID *string // READ-ONLY; The azure resource group for the LogAnalytics workspace storing this alert - WorkspaceResourceGroup *string `json:"workspaceResourceGroup,omitempty" azure:"ro"` + WorkspaceResourceGroup *string // READ-ONLY; The azure subscription id for the LogAnalytics workspace storing this alert. - WorkspaceSubscriptionID *string `json:"workspaceSubscriptionId,omitempty" azure:"ro"` + WorkspaceSubscriptionID *string } // GetResourceIdentifier implements the ResourceIdentifierClassification interface for type LogAnalyticsIdentifier. @@ -5375,33 +5375,33 @@ func (l *LogAnalyticsIdentifier) GetResourceIdentifier() *ResourceIdentifier { // MdeOnboardingData - The resource of the configuration or data needed to onboard the machine to MDE type MdeOnboardingData struct { // Properties of the MDE configuration or data parameter needed to onboard the machine to MDE - Properties *MdeOnboardingDataProperties `json:"properties,omitempty"` + Properties *MdeOnboardingDataProperties // 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 } // MdeOnboardingDataList - List of all MDE onboarding data resources type MdeOnboardingDataList struct { // List of the resources of the configuration or data needed to onboard the machine to MDE - Value []*MdeOnboardingData `json:"value,omitempty"` + Value []*MdeOnboardingData } // MdeOnboardingDataProperties - Properties of the MDE configuration or data parameter needed to onboard the machine to MDE type MdeOnboardingDataProperties struct { // The onboarding package used to onboard Linux machines to MDE, coded in base64. This can also be used for onboarding using // the dedicated VM Extension - OnboardingPackageLinux []byte `json:"onboardingPackageLinux,omitempty"` + OnboardingPackageLinux []byte // The onboarding package used to onboard Windows machines to MDE, coded in base64. This can also be used for onboarding using // the dedicated VM Extension - OnboardingPackageWindows []byte `json:"onboardingPackageWindows,omitempty"` + OnboardingPackageWindows []byte } // MdeOnboardingsClientGetOptions contains the optional parameters for the MdeOnboardingsClient.Get method. @@ -5417,25 +5417,25 @@ type MdeOnboardingsClientListOptions struct { // MqttC2DMessagesNotInAllowedRange - Number of cloud to device messages (MQTT protocol) is not in allowed range. type MqttC2DMessagesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The maximum threshold. - MaxThreshold *int32 `json:"maxThreshold,omitempty"` + MaxThreshold *int32 // REQUIRED; The minimum threshold. - MinThreshold *int32 `json:"minThreshold,omitempty"` + MinThreshold *int32 // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // REQUIRED; The time window size in iso8601 format. - TimeWindowSize *string `json:"timeWindowSize,omitempty"` + TimeWindowSize *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type MqttC2DMessagesNotInAllowedRange. @@ -5477,25 +5477,25 @@ func (m *MqttC2DMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeW // range. type MqttC2DRejectedMessagesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The maximum threshold. - MaxThreshold *int32 `json:"maxThreshold,omitempty"` + MaxThreshold *int32 // REQUIRED; The minimum threshold. - MinThreshold *int32 `json:"minThreshold,omitempty"` + MinThreshold *int32 // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // REQUIRED; The time window size in iso8601 format. - TimeWindowSize *string `json:"timeWindowSize,omitempty"` + TimeWindowSize *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type MqttC2DRejectedMessagesNotInAllowedRange. @@ -5536,25 +5536,25 @@ func (m *MqttC2DRejectedMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule( // MqttD2CMessagesNotInAllowedRange - Number of device to cloud messages (MQTT protocol) is not in allowed range. type MqttD2CMessagesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The maximum threshold. - MaxThreshold *int32 `json:"maxThreshold,omitempty"` + MaxThreshold *int32 // REQUIRED; The minimum threshold. - MinThreshold *int32 `json:"minThreshold,omitempty"` + MinThreshold *int32 // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // REQUIRED; The time window size in iso8601 format. - TimeWindowSize *string `json:"timeWindowSize,omitempty"` + TimeWindowSize *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type MqttD2CMessagesNotInAllowedRange. @@ -5605,19 +5605,19 @@ type OnPremiseResourceDetailsClassification interface { // OnPremiseResourceDetails - Details of the On Premise resource that was assessed type OnPremiseResourceDetails struct { // REQUIRED; The name of the machine - MachineName *string `json:"machineName,omitempty"` + MachineName *string // REQUIRED; The platform where the assessed resource resides - Source *Source `json:"source,omitempty"` + Source *Source // REQUIRED; The oms agent Id installed on the machine - SourceComputerID *string `json:"sourceComputerId,omitempty"` + SourceComputerID *string // REQUIRED; The unique Id of the machine - Vmuuid *string `json:"vmuuid,omitempty"` + Vmuuid *string // REQUIRED; Azure resource Id of the workspace the machine is attached to - WorkspaceID *string `json:"workspaceId,omitempty"` + WorkspaceID *string } // GetOnPremiseResourceDetails implements the OnPremiseResourceDetailsClassification interface for type OnPremiseResourceDetails. @@ -5633,25 +5633,25 @@ func (o *OnPremiseResourceDetails) GetResourceDetails() *ResourceDetails { // OnPremiseSQLResourceDetails - Details of the On Premise Sql resource that was assessed type OnPremiseSQLResourceDetails struct { // REQUIRED; The Sql database name installed on the machine - DatabaseName *string `json:"databaseName,omitempty"` + DatabaseName *string // REQUIRED; The name of the machine - MachineName *string `json:"machineName,omitempty"` + MachineName *string // REQUIRED; The Sql server name installed on the machine - ServerName *string `json:"serverName,omitempty"` + ServerName *string // REQUIRED; The platform where the assessed resource resides - Source *Source `json:"source,omitempty"` + Source *Source // REQUIRED; The oms agent Id installed on the machine - SourceComputerID *string `json:"sourceComputerId,omitempty"` + SourceComputerID *string // REQUIRED; The unique Id of the machine - Vmuuid *string `json:"vmuuid,omitempty"` + Vmuuid *string // REQUIRED; Azure resource Id of the workspace the machine is attached to - WorkspaceID *string `json:"workspaceId,omitempty"` + WorkspaceID *string } // GetOnPremiseResourceDetails implements the OnPremiseResourceDetailsClassification interface for type OnPremiseSQLResourceDetails. @@ -5675,37 +5675,37 @@ func (o *OnPremiseSQLResourceDetails) GetResourceDetails() *ResourceDetails { // Operation - Possible operation in the REST API of Microsoft.Security type Operation struct { // Security operation display - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // READ-ONLY; Name of the operation - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Where the operation is originated - Origin *string `json:"origin,omitempty" azure:"ro"` + Origin *string } // OperationDisplay - Security operation display type OperationDisplay struct { // READ-ONLY; The description of the operation. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the security operation. - Operation *string `json:"operation,omitempty" azure:"ro"` + Operation *string // READ-ONLY; The resource provider for the operation. - Provider *string `json:"provider,omitempty" azure:"ro"` + Provider *string // READ-ONLY; The display name of the resource the operation applies to. - Resource *string `json:"resource,omitempty" azure:"ro"` + Resource *string } // OperationList - List of possible operations for Microsoft.Security resource provider type OperationList struct { // List of Security operations - Value []*Operation `json:"value,omitempty"` + Value []*Operation // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. @@ -5716,27 +5716,27 @@ type OperationsClientListOptions struct { // PathRecommendation - Represents a path that is recommended to be allowed and its properties type PathRecommendation struct { // The recommendation action of the machine or rule - Action *RecommendationAction `json:"action,omitempty"` + Action *RecommendationAction // Whether the application is commonly run on the machine - Common *bool `json:"common,omitempty"` + Common *bool // The configuration status of the machines group or machine or rule - ConfigurationStatus *ConfigurationStatus `json:"configurationStatus,omitempty"` + ConfigurationStatus *ConfigurationStatus // The type of the file (for Linux files - Executable is used) - FileType *FileType `json:"fileType,omitempty"` + FileType *FileType // The full path of the file, or an identifier of the application - Path *string `json:"path,omitempty"` + Path *string // Represents the publisher information of a process/rule - PublisherInfo *PublisherInfo `json:"publisherInfo,omitempty"` + PublisherInfo *PublisherInfo // The type of IoT Security recommendation. - Type *RecommendationType `json:"type,omitempty"` - UserSids []*string `json:"userSids,omitempty"` - Usernames []*UserRecommendation `json:"usernames,omitempty"` + Type *RecommendationType + UserSids []*string + Usernames []*UserRecommendation } // Pricing - Microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier available @@ -5744,22 +5744,22 @@ type PathRecommendation struct { // the free tier offers basic security features. type Pricing struct { // Pricing data - Properties *PricingProperties `json:"properties,omitempty"` + Properties *PricingProperties // 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 } // PricingList - List of pricing configurations response. type PricingList struct { // REQUIRED; List of pricing configurations - Value []*Pricing `json:"value,omitempty"` + Value []*Pricing } // PricingProperties - Pricing properties for the relevant scope @@ -5767,20 +5767,20 @@ type PricingProperties struct { // REQUIRED; The pricing tier value. Microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with // the standard tier available with a trial period. The standard tier offers advanced // security capabilities, while the free tier offers basic security features. - PricingTier *PricingTier `json:"pricingTier,omitempty"` + PricingTier *PricingTier // The sub-plan selected for a Standard pricing configuration, when more than one sub-plan is available. Each sub-plan enables // a set of security features. When not specified, full plan is applied. - SubPlan *string `json:"subPlan,omitempty"` + SubPlan *string // READ-ONLY; Optional. True if the plan is deprecated. If there are replacing plans they will appear in replacedBy property - Deprecated *bool `json:"deprecated,omitempty" azure:"ro"` + Deprecated *bool // READ-ONLY; The duration left for the subscriptions free trial period - in ISO 8601 format (e.g. P3Y6M4DT12H30M5S). - FreeTrialRemainingTime *string `json:"freeTrialRemainingTime,omitempty" azure:"ro"` + FreeTrialRemainingTime *string // READ-ONLY; Optional. List of plans that replace this plan. This property exists only if this plan is deprecated. - ReplacedBy []*string `json:"replacedBy,omitempty" azure:"ro"` + ReplacedBy []*string } // PricingsClientGetOptions contains the optional parameters for the PricingsClient.Get method. @@ -5801,22 +5801,22 @@ type PricingsClientUpdateOptions struct { // ProcessNotAllowed - Execution of a process that isn't allowed. Allow list consists of process names to allow. type ProcessNotAllowed struct { // REQUIRED; The values to allow. The format of the values depends on the rule type. - AllowlistValues []*string `json:"allowlistValues,omitempty"` + AllowlistValues []*string // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; The value type of the items in the list. - ValueType *ValueType `json:"valueType,omitempty" azure:"ro"` + ValueType *ValueType } // GetAllowlistCustomAlertRule implements the AllowlistCustomAlertRuleClassification interface for type ProcessNotAllowed. @@ -5856,78 +5856,78 @@ func (p *ProcessNotAllowed) GetListCustomAlertRule() *ListCustomAlertRule { // for Linux. type ProtectionMode struct { // The application control policy enforcement/protection mode of the machine group - Exe *EnforcementMode `json:"exe,omitempty"` + Exe *EnforcementMode // The application control policy enforcement/protection mode of the machine group - Executable *EnforcementMode `json:"executable,omitempty"` + Executable *EnforcementMode // The application control policy enforcement/protection mode of the machine group - Msi *EnforcementMode `json:"msi,omitempty"` + Msi *EnforcementMode // The application control policy enforcement/protection mode of the machine group - Script *EnforcementMode `json:"script,omitempty"` + Script *EnforcementMode } // ProxyServerProperties - For a non-Azure machine that is not connected directly to the internet, specify a proxy server // that the non-Azure machine can use. type ProxyServerProperties struct { // Proxy server IP - IP *string `json:"ip,omitempty"` + IP *string // Proxy server port - Port *string `json:"port,omitempty"` + Port *string } // PublisherInfo - Represents the publisher information of a process/rule type PublisherInfo struct { // The "OriginalName" field taken from the file's version resource - BinaryName *string `json:"binaryName,omitempty"` + BinaryName *string // The product name taken from the file's version resource - ProductName *string `json:"productName,omitempty"` + ProductName *string // The Subject field of the x.509 certificate used to sign the code, using the following fields - O = Organization, L = Locality, // S = State or Province, and C = Country - PublisherName *string `json:"publisherName,omitempty"` + PublisherName *string // The binary file version taken from the file's version resource - Version *string `json:"version,omitempty"` + Version *string } // QueryCheck - The rule query details. type QueryCheck struct { // Column names of expected result. - ColumnNames []*string `json:"columnNames,omitempty"` + ColumnNames []*string // Expected result. - ExpectedResult [][]*string `json:"expectedResult,omitempty"` + ExpectedResult [][]*string // The rule query. - Query *string `json:"query,omitempty"` + Query *string } // QueuePurgesNotInAllowedRange - Number of device queue purges is not in allowed range. type QueuePurgesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The maximum threshold. - MaxThreshold *int32 `json:"maxThreshold,omitempty"` + MaxThreshold *int32 // REQUIRED; The minimum threshold. - MinThreshold *int32 `json:"minThreshold,omitempty"` + MinThreshold *int32 // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // REQUIRED; The time window size in iso8601 format. - TimeWindowSize *string `json:"timeWindowSize,omitempty"` + TimeWindowSize *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type QueuePurgesNotInAllowedRange. @@ -5968,64 +5968,64 @@ func (q *QueuePurgesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindo // RecommendationConfigurationProperties - The type of IoT Security recommendation. type RecommendationConfigurationProperties struct { // REQUIRED; The type of IoT Security recommendation. - RecommendationType *RecommendationType `json:"recommendationType,omitempty"` + RecommendationType *RecommendationType // REQUIRED; Recommendation status. When the recommendation status is disabled recommendations are not generated. - Status *RecommendationConfigStatus `json:"status,omitempty"` + Status *RecommendationConfigStatus // READ-ONLY - Name *string `json:"name,omitempty" azure:"ro"` + Name *string } // RegulatoryComplianceAssessment - Regulatory compliance assessment details and state type RegulatoryComplianceAssessment struct { // Regulatory compliance assessment data - Properties *RegulatoryComplianceAssessmentProperties `json:"properties,omitempty"` + Properties *RegulatoryComplianceAssessmentProperties // 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 } // RegulatoryComplianceAssessmentList - List of regulatory compliance assessment response type RegulatoryComplianceAssessmentList struct { // REQUIRED - Value []*RegulatoryComplianceAssessment `json:"value,omitempty"` + Value []*RegulatoryComplianceAssessment // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // RegulatoryComplianceAssessmentProperties - Regulatory compliance assessment data type RegulatoryComplianceAssessmentProperties struct { // Aggregative state based on the assessment's scanned resources states - State *State `json:"state,omitempty"` + State *State // READ-ONLY; Link to more detailed assessment results data. The response type will be according to the assessmentType field - AssessmentDetailsLink *string `json:"assessmentDetailsLink,omitempty" azure:"ro"` + AssessmentDetailsLink *string // READ-ONLY; The expected type of assessment contained in the AssessmentDetailsLink - AssessmentType *string `json:"assessmentType,omitempty" azure:"ro"` + AssessmentType *string // READ-ONLY; The description of the regulatory compliance assessment - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The given assessment's related resources count with failed state. - FailedResources *int32 `json:"failedResources,omitempty" azure:"ro"` + FailedResources *int32 // READ-ONLY; The given assessment's related resources count with passed state. - PassedResources *int32 `json:"passedResources,omitempty" azure:"ro"` + PassedResources *int32 // READ-ONLY; The given assessment's related resources count with skipped state. - SkippedResources *int32 `json:"skippedResources,omitempty" azure:"ro"` + SkippedResources *int32 // READ-ONLY; The given assessment's related resources count with unsupported state. - UnsupportedResources *int32 `json:"unsupportedResources,omitempty" azure:"ro"` + UnsupportedResources *int32 } // RegulatoryComplianceAssessmentsClientGetOptions contains the optional parameters for the RegulatoryComplianceAssessmentsClient.Get @@ -6044,43 +6044,43 @@ type RegulatoryComplianceAssessmentsClientListOptions struct { // RegulatoryComplianceControl - Regulatory compliance control details and state type RegulatoryComplianceControl struct { // Regulatory compliance control data - Properties *RegulatoryComplianceControlProperties `json:"properties,omitempty"` + Properties *RegulatoryComplianceControlProperties // 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 } // RegulatoryComplianceControlList - List of regulatory compliance controls response type RegulatoryComplianceControlList struct { // REQUIRED; List of regulatory compliance controls - Value []*RegulatoryComplianceControl `json:"value,omitempty"` + Value []*RegulatoryComplianceControl // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // RegulatoryComplianceControlProperties - Regulatory compliance control data type RegulatoryComplianceControlProperties struct { // Aggregative state based on the control's supported assessments states - State *State `json:"state,omitempty"` + State *State // READ-ONLY; The description of the regulatory compliance control - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The number of supported regulatory compliance assessments of the given control with a failed state - FailedAssessments *int32 `json:"failedAssessments,omitempty" azure:"ro"` + FailedAssessments *int32 // READ-ONLY; The number of supported regulatory compliance assessments of the given control with a passed state - PassedAssessments *int32 `json:"passedAssessments,omitempty" azure:"ro"` + PassedAssessments *int32 // READ-ONLY; The number of supported regulatory compliance assessments of the given control with a skipped state - SkippedAssessments *int32 `json:"skippedAssessments,omitempty" azure:"ro"` + SkippedAssessments *int32 } // RegulatoryComplianceControlsClientGetOptions contains the optional parameters for the RegulatoryComplianceControlsClient.Get @@ -6099,43 +6099,43 @@ type RegulatoryComplianceControlsClientListOptions struct { // RegulatoryComplianceStandard - Regulatory compliance standard details and state type RegulatoryComplianceStandard struct { // Regulatory compliance standard data - Properties *RegulatoryComplianceStandardProperties `json:"properties,omitempty"` + Properties *RegulatoryComplianceStandardProperties // 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 } // RegulatoryComplianceStandardList - List of regulatory compliance standards response type RegulatoryComplianceStandardList struct { // REQUIRED - Value []*RegulatoryComplianceStandard `json:"value,omitempty"` + Value []*RegulatoryComplianceStandard // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // RegulatoryComplianceStandardProperties - Regulatory compliance standard data type RegulatoryComplianceStandardProperties struct { // Aggregative state based on the standard's supported controls states - State *State `json:"state,omitempty"` + State *State // READ-ONLY; The number of supported regulatory compliance controls of the given standard with a failed state - FailedControls *int32 `json:"failedControls,omitempty" azure:"ro"` + FailedControls *int32 // READ-ONLY; The number of supported regulatory compliance controls of the given standard with a passed state - PassedControls *int32 `json:"passedControls,omitempty" azure:"ro"` + PassedControls *int32 // READ-ONLY; The number of supported regulatory compliance controls of the given standard with a skipped state - SkippedControls *int32 `json:"skippedControls,omitempty" azure:"ro"` + SkippedControls *int32 // READ-ONLY; The number of regulatory compliance controls of the given standard which are unsupported by automated assessments - UnsupportedControls *int32 `json:"unsupportedControls,omitempty" azure:"ro"` + UnsupportedControls *int32 } // RegulatoryComplianceStandardsClientGetOptions contains the optional parameters for the RegulatoryComplianceStandardsClient.Get @@ -6154,37 +6154,37 @@ type RegulatoryComplianceStandardsClientListOptions struct { // Remediation details. type Remediation struct { // Is remediation automated. - Automated *bool `json:"automated,omitempty"` + Automated *bool // Remediation description. - Description *string `json:"description,omitempty"` + Description *string // Optional link to remediate in Azure Portal. - PortalLink *string `json:"portalLink,omitempty"` + PortalLink *string // Remediation script. - Scripts []*string `json:"scripts,omitempty"` + Scripts []*string } // RemediationEta - The ETA (estimated time of arrival) for remediation type RemediationEta struct { // REQUIRED; ETA for remediation. - Eta *time.Time `json:"eta,omitempty"` + Eta *time.Time // REQUIRED; Justification for change of Eta. - Justification *string `json:"justification,omitempty"` + Justification *string } // Resource - Describes an Azure resource. 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 } // ResourceDetailsClassification provides polymorphic access to related types. @@ -6199,7 +6199,7 @@ type ResourceDetailsClassification interface { // ResourceDetails - Details of the resource that was assessed type ResourceDetails struct { // REQUIRED; The platform where the assessed resource resides - Source *Source `json:"source,omitempty"` + Source *Source } // GetResourceDetails implements the ResourceDetailsClassification interface for type ResourceDetails. @@ -6218,7 +6218,7 @@ type ResourceIdentifierClassification interface { // group (tenant, workspace, subscription etc.). type ResourceIdentifier struct { // REQUIRED; There can be multiple identifiers of different type per alert, this field specify the identifier type. - Type *ResourceIdentifierType `json:"type,omitempty"` + Type *ResourceIdentifierType } // GetResourceIdentifier implements the ResourceIdentifierClassification interface for type ResourceIdentifier. @@ -6228,76 +6228,76 @@ func (r *ResourceIdentifier) GetResourceIdentifier() *ResourceIdentifier { retur // All other remote addresses are recommended to be blocked type Rule struct { // The rule's destination port - DestinationPort *int32 `json:"destinationPort,omitempty"` + DestinationPort *int32 // The rule's direction - Direction *Direction `json:"direction,omitempty"` + Direction *Direction // The remote IP addresses that should be able to communicate with the Azure resource on the rule's destination port and protocol - IPAddresses []*string `json:"ipAddresses,omitempty"` + IPAddresses []*string // The name of the rule - Name *string `json:"name,omitempty"` + Name *string // The rule's transport protocols - Protocols []*TransportProtocol `json:"protocols,omitempty"` + Protocols []*TransportProtocol } // RuleResults - Rule results. type RuleResults struct { // Rule results properties. - Properties *RuleResultsProperties `json:"properties,omitempty"` + Properties *RuleResultsProperties // 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 } // RuleResultsInput - Rule results input. type RuleResultsInput struct { // Take results from latest scan. - LatestScan *bool `json:"latestScan,omitempty"` + LatestScan *bool // Expected results to be inserted into the baseline. Leave this field empty it LatestScan == true. - Results [][]*string `json:"results,omitempty"` + Results [][]*string } // RuleResultsProperties - Rule results properties. type RuleResultsProperties struct { // Expected results in the baseline. - Results [][]*string `json:"results,omitempty"` + Results [][]*string } // RulesResults - A list of rules results. type RulesResults struct { // List of rule results. - Value []*RuleResults `json:"value,omitempty"` + Value []*RuleResults } // RulesResultsInput - Rules results input. type RulesResultsInput struct { // Take results from latest scan. - LatestScan *bool `json:"latestScan,omitempty"` + LatestScan *bool // Expected results to be inserted into the baseline. Leave this field empty it LatestScan == true. - Results map[string][][]*string `json:"results,omitempty"` + Results map[string][][]*string } // SQLServerVulnerabilityProperties - Details of the resource that was assessed type SQLServerVulnerabilityProperties struct { // REQUIRED; Sub-assessment resource type - AssessedResourceType *AssessedResourceType `json:"assessedResourceType,omitempty"` + AssessedResourceType *AssessedResourceType // READ-ONLY; The T-SQL query that runs on your SQL database to perform the particular check - Query *string `json:"query,omitempty" azure:"ro"` + Query *string // READ-ONLY; The resource type the sub assessment refers to in its resource details - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GetAdditionalData implements the AdditionalDataClassification interface for type SQLServerVulnerabilityProperties. @@ -6366,112 +6366,112 @@ type SQLVulnerabilityAssessmentScansClientListOptions struct { // Scan - A vulnerability assessment scan record. type Scan struct { // A vulnerability assessment scan record properties. - Properties *ScanProperties `json:"properties,omitempty"` + Properties *ScanProperties // 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 } // ScanProperties - A vulnerability assessment scan record properties. type ScanProperties struct { // The database name. - Database *string `json:"database,omitempty"` + Database *string // Scan results are valid until end time (UTC). - EndTime *time.Time `json:"endTime,omitempty"` + EndTime *time.Time // The number of failed rules with high severity. - HighSeverityFailedRulesCount *int32 `json:"highSeverityFailedRulesCount,omitempty"` + HighSeverityFailedRulesCount *int32 // Baseline created for this database, and has one or more rules. - IsBaselineApplied *bool `json:"isBaselineApplied,omitempty"` + IsBaselineApplied *bool // The number of failed rules with low severity. - LowSeverityFailedRulesCount *int32 `json:"lowSeverityFailedRulesCount,omitempty"` + LowSeverityFailedRulesCount *int32 // The number of failed rules with medium severity. - MediumSeverityFailedRulesCount *int32 `json:"mediumSeverityFailedRulesCount,omitempty"` + MediumSeverityFailedRulesCount *int32 // The SQL version. - SQLVersion *string `json:"sqlVersion,omitempty"` + SQLVersion *string // The server name. - Server *string `json:"server,omitempty"` + Server *string // The scan start time (UTC). - StartTime *time.Time `json:"startTime,omitempty"` + StartTime *time.Time // The scan status. - State *ScanState `json:"state,omitempty"` + State *ScanState // The number of total failed rules. - TotalFailedRulesCount *int32 `json:"totalFailedRulesCount,omitempty"` + TotalFailedRulesCount *int32 // The number of total passed rules. - TotalPassedRulesCount *int32 `json:"totalPassedRulesCount,omitempty"` + TotalPassedRulesCount *int32 // The number of total rules assessed. - TotalRulesCount *int32 `json:"totalRulesCount,omitempty"` + TotalRulesCount *int32 // The scan trigger type. - TriggerType *ScanTriggerType `json:"triggerType,omitempty"` + TriggerType *ScanTriggerType } // ScanResult - A vulnerability assessment scan result for a single rule. type ScanResult struct { // A vulnerability assessment scan result properties for a single rule. - Properties *ScanResultProperties `json:"properties,omitempty"` + Properties *ScanResultProperties // 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 } // ScanResultProperties - A vulnerability assessment scan result properties for a single rule. type ScanResultProperties struct { // The rule result adjusted with baseline. - BaselineAdjustedResult *BaselineAdjustedResult `json:"baselineAdjustedResult,omitempty"` + BaselineAdjustedResult *BaselineAdjustedResult // Indicated whether the results specified here are trimmed. - IsTrimmed *bool `json:"isTrimmed,omitempty"` + IsTrimmed *bool // The results of the query that was run. - QueryResults [][]*string `json:"queryResults,omitempty"` + QueryResults [][]*string // Remediation details. - Remediation *Remediation `json:"remediation,omitempty"` + Remediation *Remediation // The rule Id. - RuleID *string `json:"ruleId,omitempty"` + RuleID *string // vulnerability assessment rule metadata details. - RuleMetadata *VaRule `json:"ruleMetadata,omitempty"` + RuleMetadata *VaRule // The rule result status. - Status *RuleStatus `json:"status,omitempty"` + Status *RuleStatus } // ScanResults - A list of vulnerability assessment scan results. type ScanResults struct { // List of vulnerability assessment scan results. - Value []*ScanResult `json:"value,omitempty"` + Value []*ScanResult } // Scans - A list of vulnerability assessment scan records. type Scans struct { // List of vulnerability assessment scan records. - Value []*Scan `json:"value,omitempty"` + Value []*Scan } // ScopeElement - A more specific scope used to identify the alerts to suppress. @@ -6480,67 +6480,67 @@ type ScopeElement struct { AdditionalProperties map[string]any // The alert entity type to suppress by. - Field *string `json:"field,omitempty"` + Field *string } // ScoreDetails - Calculation result data type ScoreDetails struct { // READ-ONLY; Current score - Current *float64 `json:"current,omitempty" azure:"ro"` + Current *float64 // READ-ONLY; Maximum score available - Max *int32 `json:"max,omitempty" azure:"ro"` + Max *int32 // READ-ONLY; Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point - Percentage *float64 `json:"percentage,omitempty" azure:"ro"` + Percentage *float64 } // SecureScoreControlDefinitionItem - Information about the security control. type SecureScoreControlDefinitionItem struct { // Security Control Definition Properties. - Properties *SecureScoreControlDefinitionItemProperties `json:"properties,omitempty"` + Properties *SecureScoreControlDefinitionItemProperties // 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 } // SecureScoreControlDefinitionItemProperties - Security Control Definition Properties. type SecureScoreControlDefinitionItemProperties struct { // READ-ONLY; Array of assessments metadata IDs that are included in this security control - AssessmentDefinitions []*AzureResourceLink `json:"assessmentDefinitions,omitempty" azure:"ro"` + AssessmentDefinitions []*AzureResourceLink // READ-ONLY; User friendly description of the control - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; User friendly display name of the control - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; Maximum control score (0..10) - MaxScore *int32 `json:"maxScore,omitempty" azure:"ro"` + MaxScore *int32 // READ-ONLY; Source object from which the control was created - Source *SecureScoreControlDefinitionSource `json:"source,omitempty" azure:"ro"` + Source *SecureScoreControlDefinitionSource } // SecureScoreControlDefinitionList - List of security controls definition type SecureScoreControlDefinitionList struct { // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; Collection of security controls definition in this page - Value []*SecureScoreControlDefinitionItem `json:"value,omitempty" azure:"ro"` + Value []*SecureScoreControlDefinitionItem } // SecureScoreControlDefinitionSource - The type of the security control (For example, BuiltIn) type SecureScoreControlDefinitionSource struct { // The type of security control (for example, BuiltIn) - SourceType *ControlType `json:"sourceType,omitempty"` + SourceType *ControlType } // SecureScoreControlDefinitionsClientListBySubscriptionOptions contains the optional parameters for the SecureScoreControlDefinitionsClient.NewListBySubscriptionPager @@ -6558,63 +6558,63 @@ type SecureScoreControlDefinitionsClientListOptions struct { // SecureScoreControlDetails - Details of the security control, its score, and the health status of the relevant resources. type SecureScoreControlDetails struct { // Calculation result data in control level - Properties *SecureScoreControlScoreDetails `json:"properties,omitempty"` + Properties *SecureScoreControlScoreDetails // 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 } // SecureScoreControlList - List of security controls type SecureScoreControlList struct { // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; Collection of security controls in this page - Value []*SecureScoreControlDetails `json:"value,omitempty" azure:"ro"` + Value []*SecureScoreControlDetails } // SecureScoreControlScore - Calculation result data type SecureScoreControlScore struct { // READ-ONLY; Actual score for the control = (achieved points / total points) * max score. if total points is zeroed, the // return number is 0.00 - Current *float64 `json:"current,omitempty" azure:"ro"` + Current *float64 // READ-ONLY; Maximum control score (0..10) - Max *int32 `json:"max,omitempty" azure:"ro"` + Max *int32 // READ-ONLY; Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point - Percentage *float64 `json:"percentage,omitempty" azure:"ro"` + Percentage *float64 } // SecureScoreControlScoreDetails - Calculation result data in control level type SecureScoreControlScoreDetails struct { // Information about the security control. - Definition *SecureScoreControlDefinitionItem `json:"definition,omitempty"` + Definition *SecureScoreControlDefinitionItem // READ-ONLY; User friendly display name of the control - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; Number of healthy resources in the control - HealthyResourceCount *int32 `json:"healthyResourceCount,omitempty" azure:"ro"` + HealthyResourceCount *int32 // READ-ONLY; Number of not applicable resources in the control - NotApplicableResourceCount *int32 `json:"notApplicableResourceCount,omitempty" azure:"ro"` + NotApplicableResourceCount *int32 // READ-ONLY; Actual score object for the control - Score *ScoreDetails `json:"score,omitempty" azure:"ro"` + Score *ScoreDetails // READ-ONLY; Number of unhealthy resources in the control - UnhealthyResourceCount *int32 `json:"unhealthyResourceCount,omitempty" azure:"ro"` + UnhealthyResourceCount *int32 // READ-ONLY; The relative weight for this specific control in each of your subscriptions. Used when calculating an aggregated // score for this control across all of your subscriptions. - Weight *int64 `json:"weight,omitempty" azure:"ro"` + Weight *int64 } // SecureScoreControlsClientListBySecureScoreOptions contains the optional parameters for the SecureScoreControlsClient.NewListBySecureScorePager @@ -6633,28 +6633,28 @@ type SecureScoreControlsClientListOptions struct { // SecureScoreItem - Secure score item data model type SecureScoreItem 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; Secure score item - Properties *SecureScoreItemProperties `json:"properties,omitempty" azure:"ro"` + Properties *SecureScoreItemProperties // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SecureScoreItemProperties - Describes properties of a calculated secure score. type SecureScoreItemProperties struct { // READ-ONLY; The initiative’s name - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; score object - Score *ScoreDetails `json:"score,omitempty" azure:"ro"` + Score *ScoreDetails // READ-ONLY; The relative weight for each subscription. Used when calculating an aggregated secure score for multiple subscriptions. - Weight *int64 `json:"weight,omitempty" azure:"ro"` + Weight *int64 } // SecureScoresClientGetOptions contains the optional parameters for the SecureScoresClient.Get method. @@ -6670,43 +6670,43 @@ type SecureScoresClientListOptions struct { // SecureScoresList - List of secure scores type SecureScoresList struct { // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; Collection of secure scores in this page - Value []*SecureScoreItem `json:"value,omitempty" azure:"ro"` + Value []*SecureScoreItem } // SensitivityLabel - The sensitivity label. type SensitivityLabel struct { // The description of the sensitivity label. - Description *string `json:"description,omitempty"` + Description *string // The name of the sensitivity label. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Indicates whether the label is enabled or not. - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool // The order of the sensitivity label. - Order *int32 `json:"order,omitempty"` + Order *int32 // The rank of the sensitivity label. - Rank *Rank `json:"rank,omitempty"` + Rank *Rank } // ServerVulnerabilityAssessment - Describes the server vulnerability assessment details on a resource type ServerVulnerabilityAssessment struct { // describes ServerVulnerabilityAssessment properties. - Properties *ServerVulnerabilityAssessmentProperties `json:"properties,omitempty"` + Properties *ServerVulnerabilityAssessmentProperties // 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 } // ServerVulnerabilityAssessmentClientBeginDeleteOptions contains the optional parameters for the ServerVulnerabilityAssessmentClient.BeginDelete @@ -6737,39 +6737,39 @@ type ServerVulnerabilityAssessmentClientListByExtendedResourceOptions struct { // ServerVulnerabilityAssessmentProperties - describes ServerVulnerabilityAssessment properties. type ServerVulnerabilityAssessmentProperties struct { // READ-ONLY; The provisioningState of the vulnerability assessment capability on the VM - ProvisioningState *ServerVulnerabilityAssessmentPropertiesProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ServerVulnerabilityAssessmentPropertiesProvisioningState } // ServerVulnerabilityAssessmentsList - List of server vulnerability assessments type ServerVulnerabilityAssessmentsList struct { - Value []*ServerVulnerabilityAssessment `json:"value,omitempty"` + Value []*ServerVulnerabilityAssessment } // ServerVulnerabilityProperties - Additional context fields for server vulnerability assessment type ServerVulnerabilityProperties struct { // REQUIRED; Sub-assessment resource type - AssessedResourceType *AssessedResourceType `json:"assessedResourceType,omitempty"` + AssessedResourceType *AssessedResourceType // READ-ONLY; List of CVEs - Cve []*CVE `json:"cve,omitempty" azure:"ro"` + Cve []*CVE // READ-ONLY; Dictionary from cvss version to cvss details object - Cvss map[string]*CVSS `json:"cvss,omitempty" azure:"ro"` + Cvss map[string]*CVSS // READ-ONLY; Indicates whether a patch is available or not - Patchable *bool `json:"patchable,omitempty" azure:"ro"` + Patchable *bool // READ-ONLY; Published time - PublishedTime *time.Time `json:"publishedTime,omitempty" azure:"ro"` + PublishedTime *time.Time // READ-ONLY; Threat name - Threat *string `json:"threat,omitempty" azure:"ro"` + Threat *string // READ-ONLY; Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered - Type *string `json:"type,omitempty" azure:"ro"` + Type *string // READ-ONLY - VendorReferences []*VendorReference `json:"vendorReferences,omitempty" azure:"ro"` + VendorReferences []*VendorReference } // GetAdditionalData implements the AdditionalDataClassification interface for type ServerVulnerabilityProperties. @@ -6782,11 +6782,11 @@ func (s *ServerVulnerabilityProperties) GetAdditionalData() *AdditionalData { // ServicePrincipalProperties - Details of the service principal. type ServicePrincipalProperties struct { // Application ID of service principal. - ApplicationID *string `json:"applicationId,omitempty"` + ApplicationID *string // A secret string that the application uses to prove its identity, also can be referred to as application password (write // only). - Secret *string `json:"secret,omitempty"` + Secret *string } // SettingClassification provides polymorphic access to related types. @@ -6801,16 +6801,16 @@ type SettingClassification interface { // Setting - The kind of the security setting type Setting struct { // REQUIRED; the kind of the settings string - Kind *SettingKind `json:"kind,omitempty"` + Kind *SettingKind // 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 } // GetSetting implements the SettingClassification interface for type Setting. @@ -6834,25 +6834,25 @@ type SettingsClientUpdateOptions struct { // SettingsList - Subscription settings list. type SettingsList struct { // The settings list. - Value []SettingClassification `json:"value,omitempty"` + Value []SettingClassification // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // Software - Represents a software data type Software struct { // REQUIRED; Properties of the Software Inventory resource - Properties *SoftwareProperties `json:"properties,omitempty"` + Properties *SoftwareProperties // 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 } // SoftwareInventoriesClientGetOptions contains the optional parameters for the SoftwareInventoriesClient.Get method. @@ -6875,76 +6875,76 @@ type SoftwareInventoriesClientListBySubscriptionOptions struct { // SoftwareProperties - Software Inventory resource properties type SoftwareProperties struct { // Unique identifier for the virtual machine in the service. - DeviceID *string `json:"deviceId,omitempty"` + DeviceID *string // The end of support date in case the product is upcoming end of support. - EndOfSupportDate *string `json:"endOfSupportDate,omitempty"` + EndOfSupportDate *string // End of support status. - EndOfSupportStatus *EndOfSupportStatus `json:"endOfSupportStatus,omitempty"` + EndOfSupportStatus *EndOfSupportStatus // First time that the software was seen in the device. - FirstSeenAt *string `json:"firstSeenAt,omitempty"` + FirstSeenAt *string // Number of weaknesses. - NumberOfKnownVulnerabilities *int32 `json:"numberOfKnownVulnerabilities,omitempty"` + NumberOfKnownVulnerabilities *int32 // Platform of the operating system running on the device. - OSPlatform *string `json:"osPlatform,omitempty"` + OSPlatform *string // Name of the software product. - SoftwareName *string `json:"softwareName,omitempty"` + SoftwareName *string // Name of the software vendor. - Vendor *string `json:"vendor,omitempty"` + Vendor *string // Version number of the software product. - Version *string `json:"version,omitempty"` + Version *string } // SoftwaresList - Represents the software inventory of the virtual machine. type SoftwaresList struct { - Value []*Software `json:"value,omitempty"` + Value []*Software // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } type Solution struct { - Properties *SolutionProperties `json:"properties,omitempty"` + Properties *SolutionProperties // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Location where the resource is stored - Location *string `json:"location,omitempty" azure:"ro"` + Location *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 } type SolutionList struct { - Value []*Solution `json:"value,omitempty"` + Value []*Solution // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } type SolutionProperties struct { // REQUIRED; The security solutions' status - ProtectionStatus *string `json:"protectionStatus,omitempty"` + ProtectionStatus *string // REQUIRED; The security family provisioning State - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ProvisioningState *ProvisioningState // REQUIRED; The security family of the security solution - SecurityFamily *SecurityFamily `json:"securityFamily,omitempty"` + SecurityFamily *SecurityFamily // REQUIRED; The security solutions' template - Template *string `json:"template,omitempty"` + Template *string } // SolutionsClientGetOptions contains the optional parameters for the SolutionsClient.Get method. @@ -6959,19 +6959,19 @@ type SolutionsClientListOptions struct { type SolutionsReferenceData struct { // REQUIRED - Properties *SolutionsReferenceDataProperties `json:"properties,omitempty"` + Properties *SolutionsReferenceDataProperties // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Location where the resource is stored - Location *string `json:"location,omitempty" azure:"ro"` + Location *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 } // SolutionsReferenceDataClientListByHomeRegionOptions contains the optional parameters for the SolutionsReferenceDataClient.ListByHomeRegion @@ -6986,102 +6986,102 @@ type SolutionsReferenceDataClientListOptions struct { } type SolutionsReferenceDataList struct { - Value []*SolutionsReferenceData `json:"value,omitempty"` + Value []*SolutionsReferenceData } type SolutionsReferenceDataProperties struct { // REQUIRED; The security solutions' vendor name - AlertVendorName *string `json:"alertVendorName,omitempty"` + AlertVendorName *string // REQUIRED; The security solutions' package info url - PackageInfoURL *string `json:"packageInfoUrl,omitempty"` + PackageInfoURL *string // REQUIRED; The security solutions' product name - ProductName *string `json:"productName,omitempty"` + ProductName *string // REQUIRED; The security solutions' publisher - Publisher *string `json:"publisher,omitempty"` + Publisher *string // REQUIRED; The security solutions' publisher display name - PublisherDisplayName *string `json:"publisherDisplayName,omitempty"` + PublisherDisplayName *string // REQUIRED; The security family of the security solution - SecurityFamily *SecurityFamily `json:"securityFamily,omitempty"` + SecurityFamily *SecurityFamily // REQUIRED; The security solutions' template - Template *string `json:"template,omitempty"` + Template *string } // SubAssessment - Security sub-assessment on a resource type SubAssessment struct { // Describes properties of an sub-assessment. - Properties *SubAssessmentProperties `json:"properties,omitempty"` + Properties *SubAssessmentProperties // 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 } // SubAssessmentList - List of security sub-assessments type SubAssessmentList struct { // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY - Value []*SubAssessment `json:"value,omitempty" azure:"ro"` + Value []*SubAssessment } // SubAssessmentProperties - Describes properties of an sub-assessment. type SubAssessmentProperties struct { // Details of the sub-assessment - AdditionalData AdditionalDataClassification `json:"additionalData,omitempty"` + AdditionalData AdditionalDataClassification // Details of the resource that was assessed - ResourceDetails ResourceDetailsClassification `json:"resourceDetails,omitempty"` + ResourceDetails ResourceDetailsClassification // Status of the sub-assessment - Status *SubAssessmentStatus `json:"status,omitempty"` + Status *SubAssessmentStatus // READ-ONLY; Category of the sub-assessment - Category *string `json:"category,omitempty" azure:"ro"` + Category *string // READ-ONLY; Human readable description of the assessment status - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; User friendly display name of the sub-assessment - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; Vulnerability ID - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Description of the impact of this sub-assessment - Impact *string `json:"impact,omitempty" azure:"ro"` + Impact *string // READ-ONLY; Information on how to remediate this sub-assessment - Remediation *string `json:"remediation,omitempty" azure:"ro"` + Remediation *string // READ-ONLY; The date and time the sub-assessment was generated - TimeGenerated *time.Time `json:"timeGenerated,omitempty" azure:"ro"` + TimeGenerated *time.Time } // SubAssessmentStatus - Status of the sub-assessment type SubAssessmentStatus struct { // READ-ONLY; Programmatic code for the cause of the assessment status - Cause *string `json:"cause,omitempty" azure:"ro"` + Cause *string // READ-ONLY; Programmatic code for the status of the assessment - Code *SubAssessmentStatusCode `json:"code,omitempty" azure:"ro"` + Code *SubAssessmentStatusCode // READ-ONLY; Human readable description of the assessment status - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The sub-assessment severity level - Severity *Severity `json:"severity,omitempty" azure:"ro"` + Severity *Severity } // SubAssessmentsClientGetOptions contains the optional parameters for the SubAssessmentsClient.Get method. @@ -7108,64 +7108,64 @@ type SubscriptionGovernanceRulesExecuteStatusClientBeginGetOptions struct { type SuppressionAlertsScope struct { // REQUIRED; All the conditions inside need to be true in order to suppress the alert - AllOf []*ScopeElement `json:"allOf,omitempty"` + AllOf []*ScopeElement } // 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 } // Tags - A list of key value pairs that describe the resource. type Tags struct { // A list of key value pairs that describe the resource. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // TagsResource - A container holding only the Tags for a resource, allowing the user to update the tags. type TagsResource struct { // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // Task - Security task that we recommend to do in order to strengthen security type Task struct { // Describes properties of a task. - Properties *TaskProperties `json:"properties,omitempty"` + Properties *TaskProperties // 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 } // TaskList - List of security task recommendations type TaskList struct { // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY - Value []*Task `json:"value,omitempty" azure:"ro"` + Value []*Task } // TaskParameters - Changing set of properties, depending on the task type that is derived from the name field @@ -7174,25 +7174,25 @@ type TaskParameters struct { AdditionalProperties map[string]any // READ-ONLY; Name of the task type - Name *string `json:"name,omitempty" azure:"ro"` + Name *string } // TaskProperties - Describes properties of a task. type TaskProperties struct { // Changing set of properties, depending on the task type that is derived from the name field - SecurityTaskParameters *TaskParameters `json:"securityTaskParameters,omitempty"` + SecurityTaskParameters *TaskParameters // READ-ONLY; The time this task was discovered in UTC - CreationTimeUTC *time.Time `json:"creationTimeUtc,omitempty" azure:"ro"` + CreationTimeUTC *time.Time // READ-ONLY; The time this task's details were last changed in UTC - LastStateChangeTimeUTC *time.Time `json:"lastStateChangeTimeUtc,omitempty" azure:"ro"` + LastStateChangeTimeUTC *time.Time // READ-ONLY; State of the task (Active, Resolved etc.) - State *string `json:"state,omitempty" azure:"ro"` + State *string // READ-ONLY; Additional data on the state of the task - SubState *string `json:"subState,omitempty" azure:"ro"` + SubState *string } // TasksClientGetResourceGroupLevelTaskOptions contains the optional parameters for the TasksClient.GetResourceGroupLevelTask @@ -7256,22 +7256,22 @@ type ThresholdCustomAlertRuleClassification interface { // given range. type ThresholdCustomAlertRule struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The maximum threshold. - MaxThreshold *int32 `json:"maxThreshold,omitempty"` + MaxThreshold *int32 // REQUIRED; The minimum threshold. - MinThreshold *int32 `json:"minThreshold,omitempty"` + MinThreshold *int32 // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type ThresholdCustomAlertRule. @@ -7305,25 +7305,25 @@ type TimeWindowCustomAlertRuleClassification interface { // in a time window is within the given range. type TimeWindowCustomAlertRule struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The maximum threshold. - MaxThreshold *int32 `json:"maxThreshold,omitempty"` + MaxThreshold *int32 // REQUIRED; The minimum threshold. - MinThreshold *int32 `json:"minThreshold,omitempty"` + MinThreshold *int32 // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // REQUIRED; The time window size in iso8601 format. - TimeWindowSize *string `json:"timeWindowSize,omitempty"` + TimeWindowSize *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type TimeWindowCustomAlertRule. @@ -7371,119 +7371,119 @@ type TopologyClientListOptions struct { type TopologyList struct { // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY - Value []*TopologyResource `json:"value,omitempty" azure:"ro"` + Value []*TopologyResource } type TopologyResource struct { // READ-ONLY; Resource Id - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Location where the resource is stored - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; Resource name - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY - Properties *TopologyResourceProperties `json:"properties,omitempty" azure:"ro"` + Properties *TopologyResourceProperties // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } type TopologyResourceProperties struct { // READ-ONLY; The UTC time on which the topology was calculated - CalculatedDateTime *time.Time `json:"calculatedDateTime,omitempty" azure:"ro"` + CalculatedDateTime *time.Time // READ-ONLY; Azure resources which are part of this topology resource - TopologyResources []*TopologySingleResource `json:"topologyResources,omitempty" azure:"ro"` + TopologyResources []*TopologySingleResource } type TopologySingleResource struct { // READ-ONLY; Azure resources connected to this resource which are in lower level in the topology view - Children []*TopologySingleResourceChild `json:"children,omitempty" azure:"ro"` + Children []*TopologySingleResourceChild // READ-ONLY; The location of this resource - Location *string `json:"location,omitempty" azure:"ro"` + Location *string // READ-ONLY; Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.) - NetworkZones *string `json:"networkZones,omitempty" azure:"ro"` + NetworkZones *string // READ-ONLY; Azure resources connected to this resource which are in higher level in the topology view - Parents []*TopologySingleResourceParent `json:"parents,omitempty" azure:"ro"` + Parents []*TopologySingleResourceParent // READ-ONLY; Indicates if the resource has security recommendations - RecommendationsExist *bool `json:"recommendationsExist,omitempty" azure:"ro"` + RecommendationsExist *bool // READ-ONLY; Azure resource id - ResourceID *string `json:"resourceId,omitempty" azure:"ro"` + ResourceID *string // READ-ONLY; The security severity of the resource - Severity *string `json:"severity,omitempty" azure:"ro"` + Severity *string // READ-ONLY; Score of the resource based on its security severity - TopologyScore *int32 `json:"topologyScore,omitempty" azure:"ro"` + TopologyScore *int32 } type TopologySingleResourceChild struct { // READ-ONLY; Azure resource id which serves as child resource in topology view - ResourceID *string `json:"resourceId,omitempty" azure:"ro"` + ResourceID *string } type TopologySingleResourceParent struct { // READ-ONLY; Azure resource id which serves as parent resource in topology view - ResourceID *string `json:"resourceId,omitempty" azure:"ro"` + ResourceID *string } // TrackedResource - Describes an Azure tracked resource. type TrackedResource struct { // Entity tag is used for comparing two or more entities from the same requested resource. - Etag *string `json:"etag,omitempty"` + Etag *string // Kind of the resource - Kind *string `json:"kind,omitempty"` + Kind *string // Location where the resource is stored - Location *string `json:"location,omitempty"` + Location *string // A list of key value pairs that describe the resource. - 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 } // TwinUpdatesNotInAllowedRange - Number of twin updates is not in allowed range. type TwinUpdatesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The maximum threshold. - MaxThreshold *int32 `json:"maxThreshold,omitempty"` + MaxThreshold *int32 // REQUIRED; The minimum threshold. - MinThreshold *int32 `json:"minThreshold,omitempty"` + MinThreshold *int32 // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // REQUIRED; The time window size in iso8601 format. - TimeWindowSize *string `json:"timeWindowSize,omitempty"` + TimeWindowSize *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type TwinUpdatesNotInAllowedRange. @@ -7524,25 +7524,25 @@ func (t *TwinUpdatesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindo // UnauthorizedOperationsNotInAllowedRange - Number of unauthorized operations is not in allowed range. type UnauthorizedOperationsNotInAllowedRange struct { // REQUIRED; Status of the custom alert. - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED; The maximum threshold. - MaxThreshold *int32 `json:"maxThreshold,omitempty"` + MaxThreshold *int32 // REQUIRED; The minimum threshold. - MinThreshold *int32 `json:"minThreshold,omitempty"` + MinThreshold *int32 // REQUIRED; The type of the custom alert rule. - RuleType *string `json:"ruleType,omitempty"` + RuleType *string // REQUIRED; The time window size in iso8601 format. - TimeWindowSize *string `json:"timeWindowSize,omitempty"` + TimeWindowSize *string // READ-ONLY; The description of the custom alert. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name of the custom alert. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string } // GetCustomAlertRule implements the CustomAlertRuleClassification interface for type UnauthorizedOperationsNotInAllowedRange. @@ -7583,125 +7583,125 @@ func (u *UnauthorizedOperationsNotInAllowedRange) GetTimeWindowCustomAlertRule() // UpdateIoTSecuritySolutionProperties - Update Security Solution setting data type UpdateIoTSecuritySolutionProperties struct { // List of the configuration status for each recommendation type. - RecommendationsConfiguration []*RecommendationConfigurationProperties `json:"recommendationsConfiguration,omitempty"` + RecommendationsConfiguration []*RecommendationConfigurationProperties // Properties of the IoT Security solution's user defined resources. - UserDefinedResources *UserDefinedResourcesProperties `json:"userDefinedResources,omitempty"` + UserDefinedResources *UserDefinedResourcesProperties } type UpdateIotSecuritySolutionData struct { // Security Solution data - Properties *UpdateIoTSecuritySolutionProperties `json:"properties,omitempty"` + Properties *UpdateIoTSecuritySolutionProperties // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string } // UserDefinedResourcesProperties - Properties of the IoT Security solution's user defined resources. type UserDefinedResourcesProperties struct { // REQUIRED; Azure Resource Graph query which represents the security solution's user defined resources. Required to start // with "where type != "Microsoft.Devices/IotHubs"" - Query *string `json:"query,omitempty"` + Query *string // REQUIRED; List of Azure subscription ids on which the user defined resources query should be executed. - QuerySubscriptions []*string `json:"querySubscriptions,omitempty"` + QuerySubscriptions []*string } // UserRecommendation - Represents a user that is recommended to be allowed for a certain rule type UserRecommendation struct { // The recommendation action of the machine or rule - RecommendationAction *RecommendationAction `json:"recommendationAction,omitempty"` + RecommendationAction *RecommendationAction // Represents a user that is recommended to be allowed for a certain rule - Username *string `json:"username,omitempty"` + Username *string } // VMRecommendation - Represents a machine that is part of a machine group type VMRecommendation struct { // The configuration status of the machines group or machine or rule - ConfigurationStatus *ConfigurationStatus `json:"configurationStatus,omitempty"` + ConfigurationStatus *ConfigurationStatus // The machine supportability of Enforce feature - EnforcementSupport *EnforcementSupport `json:"enforcementSupport,omitempty"` + EnforcementSupport *EnforcementSupport // The recommendation action of the machine or rule - RecommendationAction *RecommendationAction `json:"recommendationAction,omitempty"` + RecommendationAction *RecommendationAction // The full resource id of the machine - ResourceID *string `json:"resourceId,omitempty"` + ResourceID *string } // VaRule - vulnerability assessment rule metadata details. type VaRule struct { // The benchmark references. - BenchmarkReferences []*BenchmarkReference `json:"benchmarkReferences,omitempty"` + BenchmarkReferences []*BenchmarkReference // The rule category. - Category *string `json:"category,omitempty"` + Category *string // The rule description. - Description *string `json:"description,omitempty"` + Description *string // The rule query details. - QueryCheck *QueryCheck `json:"queryCheck,omitempty"` + QueryCheck *QueryCheck // The rule rationale. - Rationale *string `json:"rationale,omitempty"` + Rationale *string // The rule Id. - RuleID *string `json:"ruleId,omitempty"` + RuleID *string // The rule type. - RuleType *RuleType `json:"ruleType,omitempty"` + RuleType *RuleType // The rule severity. - Severity *RuleSeverity `json:"severity,omitempty"` + Severity *RuleSeverity // The rule title. - Title *string `json:"title,omitempty"` + Title *string } // VendorReference - Vendor reference type VendorReference struct { // READ-ONLY; Link url - Link *string `json:"link,omitempty" azure:"ro"` + Link *string // READ-ONLY; Link title - Title *string `json:"title,omitempty" azure:"ro"` + Title *string } // WorkspaceSetting - Configures where to store the OMS agent data for workspaces under a scope type WorkspaceSetting struct { // Workspace setting data - Properties *WorkspaceSettingProperties `json:"properties,omitempty"` + Properties *WorkspaceSettingProperties // 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 } // WorkspaceSettingList - List of workspace settings response type WorkspaceSettingList struct { // REQUIRED; List of workspace settings - Value []*WorkspaceSetting `json:"value,omitempty"` + Value []*WorkspaceSetting // READ-ONLY; The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // WorkspaceSettingProperties - Workspace setting data type WorkspaceSettingProperties struct { // REQUIRED; All the VMs in this scope will send their security data to the mentioned workspace unless overridden by a setting // with more specific scope - Scope *string `json:"scope,omitempty"` + Scope *string // REQUIRED; The full Azure ID of the workspace to save the data in - WorkspaceID *string `json:"workspaceId,omitempty"` + WorkspaceID *string } // WorkspaceSettingsClientCreateOptions contains the optional parameters for the WorkspaceSettingsClient.Create method. diff --git a/sdk/resourcemanager/security/armsecurity/models_serde.go b/sdk/resourcemanager/security/armsecurity/models_serde.go index 9379bde20147..c785a1475fdd 100644 --- a/sdk/resourcemanager/security/armsecurity/models_serde.go +++ b/sdk/resourcemanager/security/armsecurity/models_serde.go @@ -1662,7 +1662,7 @@ func (a AscLocation) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "id", a.ID) populate(objectMap, "name", a.Name) - populate(objectMap, "properties", &a.Properties) + populateAny(objectMap, "properties", a.Properties) populate(objectMap, "type", a.Type) return json.Marshal(objectMap) } @@ -6252,7 +6252,7 @@ func (d *DefenderForServersAwsOfferingDefenderForServers) UnmarshalJSON(data []b // MarshalJSON implements the json.Marshaller interface for type DefenderForServersAwsOfferingMdeAutoProvisioning. func (d DefenderForServersAwsOfferingMdeAutoProvisioning) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "configuration", &d.Configuration) + populateAny(objectMap, "configuration", d.Configuration) populate(objectMap, "enabled", d.Enabled) return json.Marshal(objectMap) } @@ -6543,7 +6543,7 @@ func (d *DefenderForServersGcpOfferingDefenderForServers) UnmarshalJSON(data []b // MarshalJSON implements the json.Marshaller interface for type DefenderForServersGcpOfferingMdeAutoProvisioning. func (d DefenderForServersGcpOfferingMdeAutoProvisioning) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "configuration", &d.Configuration) + populateAny(objectMap, "configuration", d.Configuration) populate(objectMap, "enabled", d.Enabled) return json.Marshal(objectMap) } @@ -7064,7 +7064,7 @@ func (e *EnvironmentData) 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) } @@ -8555,7 +8555,7 @@ func (i IngestionSetting) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "id", i.ID) populate(objectMap, "name", i.Name) - populate(objectMap, "properties", &i.Properties) + populateAny(objectMap, "properties", i.Properties) populate(objectMap, "type", i.Type) return json.Marshal(objectMap) } @@ -14313,6 +14313,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 populateByteArray(m map[string]any, k string, b []byte, f runtime.Base64Encoding) { if azcore.IsNullValue(b) { m[k] = nil diff --git a/sdk/resourcemanager/securityinsights/armsecurityinsights/CHANGELOG.md b/sdk/resourcemanager/securityinsights/armsecurityinsights/CHANGELOG.md index 83c7e274d6dd..366992186ca0 100644 --- a/sdk/resourcemanager/securityinsights/armsecurityinsights/CHANGELOG.md +++ b/sdk/resourcemanager/securityinsights/armsecurityinsights/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 1.1.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + + ## 1.1.0 (2023-04-07) ### Features Added diff --git a/sdk/resourcemanager/securityinsights/armsecurityinsights/autorest.md b/sdk/resourcemanager/securityinsights/armsecurityinsights/autorest.md index 7e6754e8407b..e1fa0077ac6a 100644 --- a/sdk/resourcemanager/securityinsights/armsecurityinsights/autorest.md +++ b/sdk/resourcemanager/securityinsights/armsecurityinsights/autorest.md @@ -8,7 +8,7 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/securityinsights/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/securityinsights/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 tag: package-2021-10 diff --git a/sdk/resourcemanager/securityinsights/armsecurityinsights/constants.go b/sdk/resourcemanager/securityinsights/armsecurityinsights/constants.go index e6d0067e8acf..b2021f6e9ad4 100644 --- a/sdk/resourcemanager/securityinsights/armsecurityinsights/constants.go +++ b/sdk/resourcemanager/securityinsights/armsecurityinsights/constants.go @@ -11,7 +11,7 @@ package armsecurityinsights const ( moduleName = "armsecurityinsights" - moduleVersion = "v1.1.0" + moduleVersion = "v1.1.1" ) // ActionType - The type of the automation rule action diff --git a/sdk/resourcemanager/securityinsights/armsecurityinsights/models.go b/sdk/resourcemanager/securityinsights/armsecurityinsights/models.go index 744971d93d02..769fccbe6745 100644 --- a/sdk/resourcemanager/securityinsights/armsecurityinsights/models.go +++ b/sdk/resourcemanager/securityinsights/armsecurityinsights/models.go @@ -14,25 +14,25 @@ import "time" // AADDataConnector - Represents AAD (Azure Active Directory) data connector. type AADDataConnector struct { // REQUIRED; The data connector kind - Kind *DataConnectorKind `json:"kind,omitempty"` + Kind *DataConnectorKind // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // AAD (Azure Active Directory) data connector properties. - Properties *AADDataConnectorProperties `json:"properties,omitempty"` + Properties *AADDataConnectorProperties // 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 } // GetDataConnector implements the DataConnectorClassification interface for type AADDataConnector. @@ -50,34 +50,34 @@ func (a *AADDataConnector) GetDataConnector() *DataConnector { // AADDataConnectorProperties - AAD (Azure Active Directory) data connector properties. type AADDataConnectorProperties struct { // The available data types for the connector. - DataTypes *AlertsDataTypeOfDataConnector `json:"dataTypes,omitempty"` + DataTypes *AlertsDataTypeOfDataConnector // The tenant id to connect to, and get the data from. - TenantID *string `json:"tenantId,omitempty"` + TenantID *string } // AATPDataConnector - Represents AATP (Azure Advanced Threat Protection) data connector. type AATPDataConnector struct { // REQUIRED; The data connector kind - Kind *DataConnectorKind `json:"kind,omitempty"` + Kind *DataConnectorKind // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // AATP (Azure Advanced Threat Protection) data connector properties. - Properties *AATPDataConnectorProperties `json:"properties,omitempty"` + Properties *AATPDataConnectorProperties // 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 } // GetDataConnector implements the DataConnectorClassification interface for type AATPDataConnector. @@ -95,34 +95,34 @@ func (a *AATPDataConnector) GetDataConnector() *DataConnector { // AATPDataConnectorProperties - AATP (Azure Advanced Threat Protection) data connector properties. type AATPDataConnectorProperties struct { // The available data types for the connector. - DataTypes *AlertsDataTypeOfDataConnector `json:"dataTypes,omitempty"` + DataTypes *AlertsDataTypeOfDataConnector // The tenant id to connect to, and get the data from. - TenantID *string `json:"tenantId,omitempty"` + TenantID *string } // ASCDataConnector - Represents ASC (Azure Security Center) data connector. type ASCDataConnector struct { // REQUIRED; The data connector kind - Kind *DataConnectorKind `json:"kind,omitempty"` + Kind *DataConnectorKind // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // ASC (Azure Security Center) data connector properties. - Properties *ASCDataConnectorProperties `json:"properties,omitempty"` + Properties *ASCDataConnectorProperties // 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 } // GetDataConnector implements the DataConnectorClassification interface for type ASCDataConnector. @@ -140,31 +140,31 @@ func (a *ASCDataConnector) GetDataConnector() *DataConnector { // ASCDataConnectorProperties - ASC (Azure Security Center) data connector properties. type ASCDataConnectorProperties struct { // The available data types for the connector. - DataTypes *AlertsDataTypeOfDataConnector `json:"dataTypes,omitempty"` + DataTypes *AlertsDataTypeOfDataConnector // The subscription id to connect to, and get the data from. - SubscriptionID *string `json:"subscriptionId,omitempty"` + SubscriptionID *string } // AccountEntity - Represents an account entity. type AccountEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // Account entity properties - Properties *AccountEntityProperties `json:"properties,omitempty"` + Properties *AccountEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type AccountEntity. @@ -181,108 +181,108 @@ func (a *AccountEntity) GetEntity() *Entity { // AccountEntityProperties - Account entity property bag. type AccountEntityProperties struct { // READ-ONLY; The Azure Active Directory tenant id. - AADTenantID *string `json:"aadTenantId,omitempty" azure:"ro"` + AADTenantID *string // READ-ONLY; The Azure Active Directory user id. - AADUserID *string `json:"aadUserId,omitempty" azure:"ro"` + AADUserID *string // READ-ONLY; The name of the account. This field should hold only the name without any domain added to it, i.e. administrator. - AccountName *string `json:"accountName,omitempty" azure:"ro"` + AccountName *string // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The fully qualified domain DNS name. - DNSDomain *string `json:"dnsDomain,omitempty" azure:"ro"` + DNSDomain *string // READ-ONLY; The display name of the account. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; The Host entity id that contains the account in case it is a local account (not domain joined) - HostEntityID *string `json:"hostEntityId,omitempty" azure:"ro"` + HostEntityID *string // READ-ONLY; Determines whether this is a domain account. - IsDomainJoined *bool `json:"isDomainJoined,omitempty" azure:"ro"` + IsDomainJoined *bool // READ-ONLY; The NetBIOS domain name as it appears in the alert format - domain\username. Examples: NT AUTHORITY. - NtDomain *string `json:"ntDomain,omitempty" azure:"ro"` + NtDomain *string // READ-ONLY; The objectGUID attribute is a single-value attribute that is the unique identifier for the object, assigned // by active directory. - ObjectGUID *string `json:"objectGuid,omitempty" azure:"ro"` + ObjectGUID *string // READ-ONLY; The Azure Active Directory Passport User ID. - Puid *string `json:"puid,omitempty" azure:"ro"` + Puid *string // READ-ONLY; The account security identifier, e.g. S-1-5-18. - Sid *string `json:"sid,omitempty" azure:"ro"` + Sid *string // READ-ONLY; The user principal name suffix for the account, in some cases it is also the domain name. Examples: contoso.com. - UpnSuffix *string `json:"upnSuffix,omitempty" azure:"ro"` + UpnSuffix *string } // ActionRequest - Action for alert rule. type ActionRequest struct { // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // Action properties for put request - Properties *ActionRequestProperties `json:"properties,omitempty"` + Properties *ActionRequestProperties // 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 } // ActionRequestProperties - Action property bag. type ActionRequestProperties struct { // REQUIRED; Logic App Resource Id, /subscriptions/{my-subscription}/resourceGroups/{my-resource-group}/providers/Microsoft.Logic/workflows/{my-workflow-id}. - LogicAppResourceID *string `json:"logicAppResourceId,omitempty"` + LogicAppResourceID *string // REQUIRED; Logic App Callback URL for this specific workflow. - TriggerURI *string `json:"triggerUri,omitempty"` + TriggerURI *string } // ActionResponse - Action for alert rule. type ActionResponse struct { // Etag of the action. - Etag *string `json:"etag,omitempty"` + Etag *string // Action properties for get request - Properties *ActionResponseProperties `json:"properties,omitempty"` + Properties *ActionResponseProperties // 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 } // ActionResponseProperties - Action property bag. type ActionResponseProperties struct { // REQUIRED; Logic App Resource Id, /subscriptions/{my-subscription}/resourceGroups/{my-resource-group}/providers/Microsoft.Logic/workflows/{my-workflow-id}. - LogicAppResourceID *string `json:"logicAppResourceId,omitempty"` + LogicAppResourceID *string // The name of the logic app's workflow. - WorkflowID *string `json:"workflowId,omitempty"` + WorkflowID *string } // ActionsClientCreateOrUpdateOptions contains the optional parameters for the ActionsClient.CreateOrUpdate method. @@ -308,25 +308,25 @@ type ActionsClientListByAlertRuleOptions struct { // ActionsList - List all the actions. type ActionsList struct { // REQUIRED; Array of actions. - Value []*ActionResponse `json:"value,omitempty"` + Value []*ActionResponse // READ-ONLY; URL to fetch the next set of actions. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // AlertDetailsOverride - Settings for how to dynamically override alert static details type AlertDetailsOverride struct { // the format containing columns name(s) to override the alert description - AlertDescriptionFormat *string `json:"alertDescriptionFormat,omitempty"` + AlertDescriptionFormat *string // the format containing columns name(s) to override the alert name - AlertDisplayNameFormat *string `json:"alertDisplayNameFormat,omitempty"` + AlertDisplayNameFormat *string // the column name to take the alert severity from - AlertSeverityColumnName *string `json:"alertSeverityColumnName,omitempty"` + AlertSeverityColumnName *string // the column name to take the alert tactics from - AlertTacticsColumnName *string `json:"alertTacticsColumnName,omitempty"` + AlertTacticsColumnName *string } // AlertRuleClassification provides polymorphic access to related types. @@ -341,22 +341,22 @@ type AlertRuleClassification interface { // AlertRule - Alert rule. type AlertRule struct { // REQUIRED; The alert rule kind - Kind *AlertRuleKind `json:"kind,omitempty"` + Kind *AlertRuleKind // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + 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; 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 } // GetAlertRule implements the AlertRuleClassification interface for type AlertRule. @@ -374,19 +374,19 @@ type AlertRuleTemplateClassification interface { // AlertRuleTemplate - Alert rule template. type AlertRuleTemplate struct { // REQUIRED; The alert rule kind - Kind *AlertRuleKind `json:"kind,omitempty"` + Kind *AlertRuleKind // 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 } // GetAlertRuleTemplate implements the AlertRuleTemplateClassification interface for type AlertRuleTemplate. @@ -395,10 +395,10 @@ func (a *AlertRuleTemplate) GetAlertRuleTemplate() *AlertRuleTemplate { return a // AlertRuleTemplateDataSource - alert rule template data sources type AlertRuleTemplateDataSource struct { // The connector id that provides the following data types - ConnectorID *string `json:"connectorId,omitempty"` + ConnectorID *string // The data types used by the alert rule template - DataTypes []*string `json:"dataTypes,omitempty"` + DataTypes []*string } // AlertRuleTemplatesClientGetOptions contains the optional parameters for the AlertRuleTemplatesClient.Get method. @@ -414,10 +414,10 @@ type AlertRuleTemplatesClientListOptions struct { // AlertRuleTemplatesList - List all the alert rule templates. type AlertRuleTemplatesList struct { // REQUIRED; Array of alert rule templates. - Value []AlertRuleTemplateClassification `json:"value,omitempty"` + Value []AlertRuleTemplateClassification // READ-ONLY; URL to fetch the next set of alert rule templates. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // AlertRulesClientCreateOrUpdateOptions contains the optional parameters for the AlertRulesClient.CreateOrUpdate method. @@ -443,36 +443,36 @@ type AlertRulesClientListOptions struct { // AlertRulesList - List all the alert rules. type AlertRulesList struct { // REQUIRED; Array of alert rules. - Value []AlertRuleClassification `json:"value,omitempty"` + Value []AlertRuleClassification // READ-ONLY; URL to fetch the next set of alert rules. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // AlertsDataTypeOfDataConnector - Alerts data type for data connectors. type AlertsDataTypeOfDataConnector struct { // Alerts data type connection. - Alerts *DataConnectorDataTypeCommon `json:"alerts,omitempty"` + Alerts *DataConnectorDataTypeCommon } type AutomationRule struct { // REQUIRED; Automation rule properties - Properties *AutomationRuleProperties `json:"properties,omitempty"` + Properties *AutomationRuleProperties // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + 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; 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 } // AutomationRuleActionClassification provides polymorphic access to related types. @@ -487,10 +487,10 @@ type AutomationRuleActionClassification interface { // AutomationRuleAction - Describes an automation rule action type AutomationRuleAction struct { // REQUIRED; The type of the automation rule action - ActionType *ActionType `json:"actionType,omitempty"` + ActionType *ActionType // REQUIRED - Order *int32 `json:"order,omitempty"` + Order *int32 } // GetAutomationRuleAction implements the AutomationRuleActionClassification interface for type AutomationRuleAction. @@ -508,7 +508,7 @@ type AutomationRuleConditionClassification interface { // AutomationRuleCondition - Describes an automation rule condition type AutomationRuleCondition struct { // REQUIRED - ConditionType *ConditionType `json:"conditionType,omitempty"` + ConditionType *ConditionType } // GetAutomationRuleCondition implements the AutomationRuleConditionClassification interface for type AutomationRuleCondition. @@ -517,11 +517,11 @@ func (a *AutomationRuleCondition) GetAutomationRuleCondition() *AutomationRuleCo // AutomationRuleModifyPropertiesAction - Describes an automation rule action to modify an object's properties. type AutomationRuleModifyPropertiesAction struct { // REQUIRED; The type of the automation rule action - ActionType *ActionType `json:"actionType,omitempty"` + ActionType *ActionType // REQUIRED - Order *int32 `json:"order,omitempty"` - ActionConfiguration *IncidentPropertiesAction `json:"actionConfiguration,omitempty"` + Order *int32 + ActionConfiguration *IncidentPropertiesAction } // GetAutomationRuleAction implements the AutomationRuleActionClassification interface for type AutomationRuleModifyPropertiesAction. @@ -535,46 +535,46 @@ func (a *AutomationRuleModifyPropertiesAction) GetAutomationRuleAction() *Automa // AutomationRuleProperties - Automation rule properties type AutomationRuleProperties struct { // REQUIRED; The actions to execute when the automation rule is triggered - Actions []AutomationRuleActionClassification `json:"actions,omitempty"` + Actions []AutomationRuleActionClassification // REQUIRED; The display name of the automation rule - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // REQUIRED; The order of execution of the automation rule - Order *int32 `json:"order,omitempty"` + Order *int32 // REQUIRED; Describes automation rule triggering logic - TriggeringLogic *AutomationRuleTriggeringLogic `json:"triggeringLogic,omitempty"` + TriggeringLogic *AutomationRuleTriggeringLogic // READ-ONLY; Information on the client (user or application) that made some action - CreatedBy *ClientInfo `json:"createdBy,omitempty" azure:"ro"` + CreatedBy *ClientInfo // READ-ONLY; The time the automation rule was created - CreatedTimeUTC *time.Time `json:"createdTimeUtc,omitempty" azure:"ro"` + CreatedTimeUTC *time.Time // READ-ONLY; Information on the client (user or application) that made some action - LastModifiedBy *ClientInfo `json:"lastModifiedBy,omitempty" azure:"ro"` + LastModifiedBy *ClientInfo // READ-ONLY; The last time the automation rule was updated - LastModifiedTimeUTC *time.Time `json:"lastModifiedTimeUtc,omitempty" azure:"ro"` + LastModifiedTimeUTC *time.Time } type AutomationRulePropertyValuesCondition struct { - Operator *AutomationRulePropertyConditionSupportedOperator `json:"operator,omitempty"` + Operator *AutomationRulePropertyConditionSupportedOperator // The property to evaluate in an automation rule property condition - PropertyName *AutomationRulePropertyConditionSupportedProperty `json:"propertyName,omitempty"` - PropertyValues []*string `json:"propertyValues,omitempty"` + PropertyName *AutomationRulePropertyConditionSupportedProperty + PropertyValues []*string } // AutomationRuleRunPlaybookAction - Describes an automation rule action to run a playbook type AutomationRuleRunPlaybookAction struct { // REQUIRED; The type of the automation rule action - ActionType *ActionType `json:"actionType,omitempty"` + ActionType *ActionType // REQUIRED - Order *int32 `json:"order,omitempty"` - ActionConfiguration *PlaybookActionProperties `json:"actionConfiguration,omitempty"` + Order *int32 + ActionConfiguration *PlaybookActionProperties } // GetAutomationRuleAction implements the AutomationRuleActionClassification interface for type AutomationRuleRunPlaybookAction. @@ -588,19 +588,19 @@ func (a *AutomationRuleRunPlaybookAction) GetAutomationRuleAction() *AutomationR // AutomationRuleTriggeringLogic - Describes automation rule triggering logic type AutomationRuleTriggeringLogic struct { // REQUIRED; Determines whether the automation rule is enabled or disabled - IsEnabled *bool `json:"isEnabled,omitempty"` + IsEnabled *bool // REQUIRED - TriggersOn *TriggersOn `json:"triggersOn,omitempty"` + TriggersOn *TriggersOn // REQUIRED - TriggersWhen *TriggersWhen `json:"triggersWhen,omitempty"` + TriggersWhen *TriggersWhen // The conditions to evaluate to determine if the automation rule should be triggered on a given object - Conditions []AutomationRuleConditionClassification `json:"conditions,omitempty"` + Conditions []AutomationRuleConditionClassification // Determines when the automation rule should automatically expire and be disabled. - ExpirationTimeUTC *time.Time `json:"expirationTimeUtc,omitempty"` + ExpirationTimeUTC *time.Time } // AutomationRulesClientCreateOrUpdateOptions contains the optional parameters for the AutomationRulesClient.CreateOrUpdate @@ -626,32 +626,32 @@ type AutomationRulesClientListOptions struct { } type AutomationRulesList struct { - NextLink *string `json:"nextLink,omitempty"` - Value []*AutomationRule `json:"value,omitempty"` + NextLink *string + Value []*AutomationRule } // AwsCloudTrailDataConnector - Represents Amazon Web Services CloudTrail data connector. type AwsCloudTrailDataConnector struct { // REQUIRED; The data connector kind - Kind *DataConnectorKind `json:"kind,omitempty"` + Kind *DataConnectorKind // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // Amazon Web Services CloudTrail data connector properties. - Properties *AwsCloudTrailDataConnectorProperties `json:"properties,omitempty"` + Properties *AwsCloudTrailDataConnectorProperties // 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 } // GetDataConnector implements the DataConnectorClassification interface for type AwsCloudTrailDataConnector. @@ -669,43 +669,43 @@ func (a *AwsCloudTrailDataConnector) GetDataConnector() *DataConnector { // AwsCloudTrailDataConnectorDataTypes - The available data types for Amazon Web Services CloudTrail data connector. type AwsCloudTrailDataConnectorDataTypes struct { // Logs data type. - Logs *AwsCloudTrailDataConnectorDataTypesLogs `json:"logs,omitempty"` + Logs *AwsCloudTrailDataConnectorDataTypesLogs } // AwsCloudTrailDataConnectorDataTypesLogs - Logs data type. type AwsCloudTrailDataConnectorDataTypesLogs struct { // Describe whether this data type connection is enabled or not. - State *DataTypeState `json:"state,omitempty"` + State *DataTypeState } // AwsCloudTrailDataConnectorProperties - Amazon Web Services CloudTrail data connector properties. type AwsCloudTrailDataConnectorProperties struct { // The Aws Role Arn (with CloudTrailReadOnly policy) that is used to access the Aws account. - AwsRoleArn *string `json:"awsRoleArn,omitempty"` + AwsRoleArn *string // The available data types for the connector. - DataTypes *AwsCloudTrailDataConnectorDataTypes `json:"dataTypes,omitempty"` + DataTypes *AwsCloudTrailDataConnectorDataTypes } // AzureResourceEntity - Represents an azure resource entity. type AzureResourceEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // AzureResource entity properties - Properties *AzureResourceEntityProperties `json:"properties,omitempty"` + Properties *AzureResourceEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type AzureResourceEntity. @@ -722,89 +722,89 @@ func (a *AzureResourceEntity) GetEntity() *Entity { // AzureResourceEntityProperties - AzureResource entity property bag. type AzureResourceEntityProperties struct { // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; The azure resource id of the resource - ResourceID *string `json:"resourceId,omitempty" azure:"ro"` + ResourceID *string // READ-ONLY; The subscription id of the resource - SubscriptionID *string `json:"subscriptionId,omitempty" azure:"ro"` + SubscriptionID *string } // Bookmark - Represents a bookmark in Azure Security Insights. type Bookmark struct { // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // Bookmark properties - Properties *BookmarkProperties `json:"properties,omitempty"` + Properties *BookmarkProperties // 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 } // BookmarkList - List all the bookmarks. type BookmarkList struct { // REQUIRED; Array of bookmarks. - Value []*Bookmark `json:"value,omitempty"` + Value []*Bookmark // READ-ONLY; URL to fetch the next set of cases. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // BookmarkProperties - Describes bookmark properties type BookmarkProperties struct { // REQUIRED; The display name of the bookmark - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // REQUIRED; The query of the bookmark. - Query *string `json:"query,omitempty"` + Query *string // The time the bookmark was created - Created *time.Time `json:"created,omitempty"` + Created *time.Time // Describes a user that created the bookmark - CreatedBy *UserInfo `json:"createdBy,omitempty"` + CreatedBy *UserInfo // The bookmark event time - EventTime *time.Time `json:"eventTime,omitempty"` + EventTime *time.Time // Describes an incident that relates to bookmark - IncidentInfo *IncidentInfo `json:"incidentInfo,omitempty"` + IncidentInfo *IncidentInfo // List of labels relevant to this bookmark - Labels []*string `json:"labels,omitempty"` + Labels []*string // The notes of the bookmark - Notes *string `json:"notes,omitempty"` + Notes *string // The end time for the query - QueryEndTime *time.Time `json:"queryEndTime,omitempty"` + QueryEndTime *time.Time // The query result of the bookmark. - QueryResult *string `json:"queryResult,omitempty"` + QueryResult *string // The start time for the query - QueryStartTime *time.Time `json:"queryStartTime,omitempty"` + QueryStartTime *time.Time // The last time the bookmark was updated - Updated *time.Time `json:"updated,omitempty"` + Updated *time.Time // Describes a user that updated the bookmark - UpdatedBy *UserInfo `json:"updatedBy,omitempty"` + UpdatedBy *UserInfo } // BookmarksClientCreateOrUpdateOptions contains the optional parameters for the BookmarksClient.CreateOrUpdate method. @@ -830,37 +830,37 @@ type BookmarksClientListOptions struct { // ClientInfo - Information on the client (user or application) that made some action type ClientInfo struct { // The email of the client. - Email *string `json:"email,omitempty"` + Email *string // The name of the client. - Name *string `json:"name,omitempty"` + Name *string // The object id of the client. - ObjectID *string `json:"objectId,omitempty"` + ObjectID *string // The user principal name of the client. - UserPrincipalName *string `json:"userPrincipalName,omitempty"` + UserPrincipalName *string } // CloudApplicationEntity - Represents a cloud application entity. type CloudApplicationEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // CloudApplication entity properties - Properties *CloudApplicationEntityProperties `json:"properties,omitempty"` + Properties *CloudApplicationEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type CloudApplicationEntity. @@ -877,42 +877,42 @@ func (c *CloudApplicationEntity) GetEntity() *Entity { // CloudApplicationEntityProperties - CloudApplication entity property bag. type CloudApplicationEntityProperties struct { // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The technical identifier of the application. - AppID *int32 `json:"appId,omitempty" azure:"ro"` + AppID *int32 // READ-ONLY; The name of the related cloud application. - AppName *string `json:"appName,omitempty" azure:"ro"` + AppName *string // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; The user defined instance name of the cloud application. It is often used to distinguish between several applications // of the same type that a customer has. - InstanceName *string `json:"instanceName,omitempty" azure:"ro"` + InstanceName *string } // DNSEntity - Represents a dns entity. type DNSEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // Dns entity properties - Properties *DNSEntityProperties `json:"properties,omitempty"` + Properties *DNSEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type DNSEntity. @@ -929,23 +929,23 @@ func (d *DNSEntity) GetEntity() *Entity { // DNSEntityProperties - Dns entity property bag. type DNSEntityProperties struct { // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; An ip entity id for the dns server resolving the request - DNSServerIPEntityID *string `json:"dnsServerIpEntityId,omitempty" azure:"ro"` + DNSServerIPEntityID *string // READ-ONLY; The name of the dns record associated with the alert - DomainName *string `json:"domainName,omitempty" azure:"ro"` + DomainName *string // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; An ip entity id for the dns request client - HostIPAddressEntityID *string `json:"hostIpAddressEntityId,omitempty" azure:"ro"` + HostIPAddressEntityID *string // READ-ONLY; Ip entity identifiers for the resolved ip address. - IPAddressEntityIDs []*string `json:"ipAddressEntityIds,omitempty" azure:"ro"` + IPAddressEntityIDs []*string } // DataConnectorClassification provides polymorphic access to related types. @@ -961,22 +961,22 @@ type DataConnectorClassification interface { // DataConnector - Data connector. type DataConnector struct { // REQUIRED; The data connector kind - Kind *DataConnectorKind `json:"kind,omitempty"` + Kind *DataConnectorKind // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + 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; 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 } // GetDataConnector implements the DataConnectorClassification interface for type DataConnector. @@ -985,16 +985,16 @@ func (d *DataConnector) GetDataConnector() *DataConnector { return d } // DataConnectorDataTypeCommon - Common field for data type in data connectors. type DataConnectorDataTypeCommon struct { // Describe whether this data type connection is enabled or not. - State *DataTypeState `json:"state,omitempty"` + State *DataTypeState } // DataConnectorList - List all the data connectors. type DataConnectorList struct { // REQUIRED; Array of data connectors. - Value []DataConnectorClassification `json:"value,omitempty"` + Value []DataConnectorClassification // READ-ONLY; URL to fetch the next set of data connectors. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // DataConnectorsClientCreateOrUpdateOptions contains the optional parameters for the DataConnectorsClient.CreateOrUpdate @@ -1033,19 +1033,19 @@ type EntityClassification interface { // Entity - Specific entity. type Entity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // 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 } // GetEntity implements the EntityClassification interface for type Entity. @@ -1054,46 +1054,46 @@ func (e *Entity) GetEntity() *Entity { return e } // EntityMapping - Single entity mapping for the alert rule type EntityMapping struct { // The V3 type of the mapped entity - EntityType *EntityMappingType `json:"entityType,omitempty"` + EntityType *EntityMappingType // array of field mappings for the given entity mapping - FieldMappings []*FieldMapping `json:"fieldMappings,omitempty"` + FieldMappings []*FieldMapping } // EventGroupingSettings - Event grouping settings property bag. type EventGroupingSettings struct { // The event grouping aggregation kinds - AggregationKind *EventGroupingAggregationKind `json:"aggregationKind,omitempty"` + AggregationKind *EventGroupingAggregationKind } // FieldMapping - A single field mapping of the mapped entity type FieldMapping struct { // the column name to be mapped to the identifier - ColumnName *string `json:"columnName,omitempty"` + ColumnName *string // the V3 identifier of the entity - Identifier *string `json:"identifier,omitempty"` + Identifier *string } // FileEntity - Represents a file entity. type FileEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // File entity properties - Properties *FileEntityProperties `json:"properties,omitempty"` + Properties *FileEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type FileEntity. @@ -1110,44 +1110,44 @@ func (f *FileEntity) GetEntity() *Entity { // FileEntityProperties - File entity property bag. type FileEntityProperties struct { // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The full path to the file. - Directory *string `json:"directory,omitempty" azure:"ro"` + Directory *string // READ-ONLY; The file hash entity identifiers associated with this file - FileHashEntityIDs []*string `json:"fileHashEntityIds,omitempty" azure:"ro"` + FileHashEntityIDs []*string // READ-ONLY; The file name without path (some alerts might not include path). - FileName *string `json:"fileName,omitempty" azure:"ro"` + FileName *string // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; The Host entity id which the file belongs to - HostEntityID *string `json:"hostEntityId,omitempty" azure:"ro"` + HostEntityID *string } // FileHashEntity - Represents a file hash entity. type FileHashEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // FileHash entity properties - Properties *FileHashEntityProperties `json:"properties,omitempty"` + Properties *FileHashEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type FileHashEntity. @@ -1164,41 +1164,41 @@ func (f *FileHashEntity) GetEntity() *Entity { // FileHashEntityProperties - FileHash entity property bag. type FileHashEntityProperties struct { // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The hash algorithm type. - Algorithm *FileHashAlgorithm `json:"algorithm,omitempty" azure:"ro"` + Algorithm *FileHashAlgorithm // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; The file hash value. - HashValue *string `json:"hashValue,omitempty" azure:"ro"` + HashValue *string } // FusionAlertRule - Represents Fusion alert rule. type FusionAlertRule struct { // REQUIRED; The alert rule kind - Kind *AlertRuleKind `json:"kind,omitempty"` + Kind *AlertRuleKind // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // Fusion alert rule properties - Properties *FusionAlertRuleProperties `json:"properties,omitempty"` + Properties *FusionAlertRuleProperties // 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 } // GetAlertRule implements the AlertRuleClassification interface for type FusionAlertRule. @@ -1216,46 +1216,46 @@ func (f *FusionAlertRule) GetAlertRule() *AlertRule { // FusionAlertRuleProperties - Fusion alert rule base property bag. type FusionAlertRuleProperties struct { // REQUIRED; The Name of the alert rule template used to create this rule. - AlertRuleTemplateName *string `json:"alertRuleTemplateName,omitempty"` + AlertRuleTemplateName *string // REQUIRED; Determines whether this alert rule is enabled or disabled. - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool // READ-ONLY; The description of the alert rule. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The display name for alerts created by this alert rule. - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; The last time that this alert has been modified. - LastModifiedUTC *time.Time `json:"lastModifiedUtc,omitempty" azure:"ro"` + LastModifiedUTC *time.Time // READ-ONLY; The severity for alerts created by this alert rule. - Severity *AlertSeverity `json:"severity,omitempty" azure:"ro"` + Severity *AlertSeverity // READ-ONLY; The tactics of the alert rule - Tactics []*AttackTactic `json:"tactics,omitempty" azure:"ro"` + Tactics []*AttackTactic } // FusionAlertRuleTemplate - Represents Fusion alert rule template. type FusionAlertRuleTemplate struct { // REQUIRED; The alert rule kind - Kind *AlertRuleKind `json:"kind,omitempty"` + Kind *AlertRuleKind // Fusion alert rule template properties - Properties *FusionAlertRuleTemplateProperties `json:"properties,omitempty"` + Properties *FusionAlertRuleTemplateProperties // 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 } // GetAlertRuleTemplate implements the AlertRuleTemplateClassification interface for type FusionAlertRuleTemplate. @@ -1272,107 +1272,107 @@ func (f *FusionAlertRuleTemplate) GetAlertRuleTemplate() *AlertRuleTemplate { // FusionAlertRuleTemplateProperties - Represents Fusion alert rule template properties type FusionAlertRuleTemplateProperties struct { // the number of alert rules that were created by this template - AlertRulesCreatedByTemplateCount *int32 `json:"alertRulesCreatedByTemplateCount,omitempty"` + AlertRulesCreatedByTemplateCount *int32 // The description of the alert rule template. - Description *string `json:"description,omitempty"` + Description *string // The display name for alert rule template. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // The required data connectors for this template - RequiredDataConnectors []*AlertRuleTemplateDataSource `json:"requiredDataConnectors,omitempty"` + RequiredDataConnectors []*AlertRuleTemplateDataSource // The severity for alerts created by this alert rule. - Severity *AlertSeverity `json:"severity,omitempty"` + Severity *AlertSeverity // The alert rule template status. - Status *TemplateStatus `json:"status,omitempty"` + Status *TemplateStatus // The tactics of the alert rule template - Tactics []*AttackTactic `json:"tactics,omitempty"` + Tactics []*AttackTactic // READ-ONLY; The time that this alert rule template has been added. - CreatedDateUTC *time.Time `json:"createdDateUTC,omitempty" azure:"ro"` + CreatedDateUTC *time.Time // READ-ONLY; The time that this alert rule template was last updated. - LastUpdatedDateUTC *time.Time `json:"lastUpdatedDateUTC,omitempty" azure:"ro"` + LastUpdatedDateUTC *time.Time } // GeoLocation - The geo-location context attached to the ip entity type GeoLocation struct { // READ-ONLY; Autonomous System Number - Asn *int32 `json:"asn,omitempty" azure:"ro"` + Asn *int32 // READ-ONLY; City name - City *string `json:"city,omitempty" azure:"ro"` + City *string // READ-ONLY; The country code according to ISO 3166 format - CountryCode *string `json:"countryCode,omitempty" azure:"ro"` + CountryCode *string // READ-ONLY; Country name according to ISO 3166 Alpha 2: the lowercase of the English Short Name - CountryName *string `json:"countryName,omitempty" azure:"ro"` + CountryName *string // READ-ONLY; The longitude of the identified location, expressed as a floating point number with range of -180 to 180, with // positive numbers representing East and negative numbers representing West. Latitude and // longitude are derived from the city or postal code. - Latitude *float64 `json:"latitude,omitempty" azure:"ro"` + Latitude *float64 // READ-ONLY; The latitude of the identified location, expressed as a floating point number with range of - 90 to 90, with // positive numbers representing North and negative numbers representing South. Latitude and // longitude are derived from the city or postal code. - Longitude *float64 `json:"longitude,omitempty" azure:"ro"` + Longitude *float64 // READ-ONLY; State name - State *string `json:"state,omitempty" azure:"ro"` + State *string } // GroupingConfiguration - Grouping configuration property bag. type GroupingConfiguration struct { // REQUIRED; Grouping enabled - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool // REQUIRED; Limit the group to alerts created within the lookback duration (in ISO 8601 duration format) - LookbackDuration *string `json:"lookbackDuration,omitempty"` + LookbackDuration *string // REQUIRED; Grouping matching method. When method is Selected at least one of groupByEntities, groupByAlertDetails, groupByCustomDetails // must be provided and not empty. - MatchingMethod *MatchingMethod `json:"matchingMethod,omitempty"` + MatchingMethod *MatchingMethod // REQUIRED; Re-open closed matching incidents - ReopenClosedIncident *bool `json:"reopenClosedIncident,omitempty"` + ReopenClosedIncident *bool // A list of alert details to group by (when matchingMethod is Selected) - GroupByAlertDetails []*AlertDetail `json:"groupByAlertDetails,omitempty"` + GroupByAlertDetails []*AlertDetail // A list of custom details keys to group by (when matchingMethod is Selected). Only keys defined in the current alert rule // may be used. - GroupByCustomDetails []*string `json:"groupByCustomDetails,omitempty"` + GroupByCustomDetails []*string // A list of entity types to group by (when matchingMethod is Selected). Only entities defined in the current alert rule may // be used. - GroupByEntities []*EntityMappingType `json:"groupByEntities,omitempty"` + GroupByEntities []*EntityMappingType } // HostEntity - Represents a host entity. type HostEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // Host entity properties - Properties *HostEntityProperties `json:"properties,omitempty"` + Properties *HostEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type HostEntity. @@ -1389,60 +1389,60 @@ func (h *HostEntity) GetEntity() *Entity { // HostEntityProperties - Host entity property bag. type HostEntityProperties struct { // The operating system type. - OSFamily *OSFamily `json:"osFamily,omitempty"` + OSFamily *OSFamily // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The azure resource id of the VM. - AzureID *string `json:"azureID,omitempty" azure:"ro"` + AzureID *string // READ-ONLY; The DNS domain that this host belongs to. Should contain the compete DNS suffix for the domain - DNSDomain *string `json:"dnsDomain,omitempty" azure:"ro"` + DNSDomain *string // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; The hostname without the domain suffix. - HostName *string `json:"hostName,omitempty" azure:"ro"` + HostName *string // READ-ONLY; Determines whether this host belongs to a domain. - IsDomainJoined *bool `json:"isDomainJoined,omitempty" azure:"ro"` + IsDomainJoined *bool // READ-ONLY; The host name (pre-windows2000). - NetBiosName *string `json:"netBiosName,omitempty" azure:"ro"` + NetBiosName *string // READ-ONLY; The NT domain that this host belongs to. - NtDomain *string `json:"ntDomain,omitempty" azure:"ro"` + NtDomain *string // READ-ONLY; A free text representation of the operating system. This field is meant to hold specific versions the are more // fine grained than OSFamily or future values not supported by OSFamily enumeration - OSVersion *string `json:"osVersion,omitempty" azure:"ro"` + OSVersion *string // READ-ONLY; The OMS agent id, if the host has OMS agent installed. - OmsAgentID *string `json:"omsAgentID,omitempty" azure:"ro"` + OmsAgentID *string } // HuntingBookmark - Represents a Hunting bookmark entity. type HuntingBookmark struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // HuntingBookmark entity properties - Properties *HuntingBookmarkProperties `json:"properties,omitempty"` + Properties *HuntingBookmarkProperties // 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 } // GetEntity implements the EntityClassification interface for type HuntingBookmark. @@ -1459,65 +1459,65 @@ func (h *HuntingBookmark) GetEntity() *Entity { // HuntingBookmarkProperties - Describes bookmark properties type HuntingBookmarkProperties struct { // REQUIRED; The display name of the bookmark - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // REQUIRED; The query of the bookmark. - Query *string `json:"query,omitempty"` + Query *string // The time the bookmark was created - Created *time.Time `json:"created,omitempty"` + Created *time.Time // Describes a user that created the bookmark - CreatedBy *UserInfo `json:"createdBy,omitempty"` + CreatedBy *UserInfo // The time of the event - EventTime *time.Time `json:"eventTime,omitempty"` + EventTime *time.Time // Describes an incident that relates to bookmark - IncidentInfo *IncidentInfo `json:"incidentInfo,omitempty"` + IncidentInfo *IncidentInfo // List of labels relevant to this bookmark - Labels []*string `json:"labels,omitempty"` + Labels []*string // The notes of the bookmark - Notes *string `json:"notes,omitempty"` + Notes *string // The query result of the bookmark. - QueryResult *string `json:"queryResult,omitempty"` + QueryResult *string // The last time the bookmark was updated - Updated *time.Time `json:"updated,omitempty"` + Updated *time.Time // Describes a user that updated the bookmark - UpdatedBy *UserInfo `json:"updatedBy,omitempty"` + UpdatedBy *UserInfo // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string } // IPEntity - Represents an ip entity. type IPEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // Ip entity properties - Properties *IPEntityProperties `json:"properties,omitempty"` + Properties *IPEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type IPEntity. @@ -1534,116 +1534,116 @@ func (i *IPEntity) GetEntity() *Entity { // IPEntityProperties - Ip entity property bag. type IPEntityProperties struct { // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The IP address as string, e.g. 127.0.0.1 (either in Ipv4 or Ipv6) - Address *string `json:"address,omitempty" azure:"ro"` + Address *string // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; The geo-location context attached to the ip entity - Location *GeoLocation `json:"location,omitempty" azure:"ro"` + Location *GeoLocation // READ-ONLY; A list of TI contexts attached to the ip entity. - ThreatIntelligence []*ThreatIntelligence `json:"threatIntelligence,omitempty" azure:"ro"` + ThreatIntelligence []*ThreatIntelligence } // Incident - Represents an incident in Azure Security Insights. type Incident struct { // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // Incident properties - Properties *IncidentProperties `json:"properties,omitempty"` + Properties *IncidentProperties // 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 } // IncidentAdditionalData - Incident additional data property bag. type IncidentAdditionalData struct { // READ-ONLY; List of product names of alerts in the incident - AlertProductNames []*string `json:"alertProductNames,omitempty" azure:"ro"` + AlertProductNames []*string // READ-ONLY; The number of alerts in the incident - AlertsCount *int32 `json:"alertsCount,omitempty" azure:"ro"` + AlertsCount *int32 // READ-ONLY; The number of bookmarks in the incident - BookmarksCount *int32 `json:"bookmarksCount,omitempty" azure:"ro"` + BookmarksCount *int32 // READ-ONLY; The number of comments in the incident - CommentsCount *int32 `json:"commentsCount,omitempty" azure:"ro"` + CommentsCount *int32 // READ-ONLY; The tactics associated with incident - Tactics []*AttackTactic `json:"tactics,omitempty" azure:"ro"` + Tactics []*AttackTactic } // IncidentAlertList - List of incident alerts. type IncidentAlertList struct { // REQUIRED; Array of incident alerts. - Value []*SecurityAlert `json:"value,omitempty"` + Value []*SecurityAlert } // IncidentBookmarkList - List of incident bookmarks. type IncidentBookmarkList struct { // REQUIRED; Array of incident bookmarks. - Value []*HuntingBookmark `json:"value,omitempty"` + Value []*HuntingBookmark } // IncidentComment - Represents an incident comment type IncidentComment struct { // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // Incident comment properties - Properties *IncidentCommentProperties `json:"properties,omitempty"` + Properties *IncidentCommentProperties // 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 } // IncidentCommentList - List of incident comments. type IncidentCommentList struct { // REQUIRED; Array of comments. - Value []*IncidentComment `json:"value,omitempty"` + Value []*IncidentComment // READ-ONLY; URL to fetch the next set of comments. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // IncidentCommentProperties - Incident comment property bag. type IncidentCommentProperties struct { // REQUIRED; The comment message - Message *string `json:"message,omitempty"` + Message *string // READ-ONLY; Describes the client that created the comment - Author *ClientInfo `json:"author,omitempty" azure:"ro"` + Author *ClientInfo // READ-ONLY; The time the comment was created - CreatedTimeUTC *time.Time `json:"createdTimeUtc,omitempty" azure:"ro"` + CreatedTimeUTC *time.Time // READ-ONLY; The time the comment was updated - LastModifiedTimeUTC *time.Time `json:"lastModifiedTimeUtc,omitempty" azure:"ro"` + LastModifiedTimeUTC *time.Time } // IncidentCommentsClientCreateOrUpdateOptions contains the optional parameters for the IncidentCommentsClient.CreateOrUpdate @@ -1679,171 +1679,171 @@ type IncidentCommentsClientListOptions struct { // IncidentConfiguration - Incident Configuration property bag. type IncidentConfiguration struct { // REQUIRED; Create incidents from alerts triggered by this analytics rule - CreateIncident *bool `json:"createIncident,omitempty"` + CreateIncident *bool // Set how the alerts that are triggered by this analytics rule, are grouped into incidents - GroupingConfiguration *GroupingConfiguration `json:"groupingConfiguration,omitempty"` + GroupingConfiguration *GroupingConfiguration } // IncidentEntitiesResponse - The incident related entities response. type IncidentEntitiesResponse struct { // Array of the incident related entities. - Entities []EntityClassification `json:"entities,omitempty"` + Entities []EntityClassification // The metadata from the incident related entities results. - MetaData []*IncidentEntitiesResultsMetadata `json:"metaData,omitempty"` + MetaData []*IncidentEntitiesResultsMetadata } // IncidentEntitiesResultsMetadata - Information of a specific aggregation in the incident related entities result. type IncidentEntitiesResultsMetadata struct { // REQUIRED; Total number of aggregations of the given kind in the incident related entities result. - Count *int32 `json:"count,omitempty"` + Count *int32 // REQUIRED; The kind of the aggregated entity. - EntityKind *EntityKindEnum `json:"entityKind,omitempty"` + EntityKind *EntityKindEnum } // IncidentInfo - Describes related incident information for the bookmark type IncidentInfo struct { // Incident Id - IncidentID *string `json:"incidentId,omitempty"` + IncidentID *string // Relation Name - RelationName *string `json:"relationName,omitempty"` + RelationName *string // The severity of the incident - Severity *IncidentSeverity `json:"severity,omitempty"` + Severity *IncidentSeverity // The title of the incident - Title *string `json:"title,omitempty"` + Title *string } // IncidentLabel - Represents an incident label type IncidentLabel struct { // REQUIRED; The name of the label - LabelName *string `json:"labelName,omitempty"` + LabelName *string // READ-ONLY; The type of the label - LabelType *IncidentLabelType `json:"labelType,omitempty" azure:"ro"` + LabelType *IncidentLabelType } // IncidentList - List all the incidents. type IncidentList struct { // REQUIRED; Array of incidents. - Value []*Incident `json:"value,omitempty"` + Value []*Incident // READ-ONLY; URL to fetch the next set of incidents. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // IncidentOwnerInfo - Information on the user an incident is assigned to type IncidentOwnerInfo struct { // The name of the user the incident is assigned to. - AssignedTo *string `json:"assignedTo,omitempty"` + AssignedTo *string // The email of the user the incident is assigned to. - Email *string `json:"email,omitempty"` + Email *string // The object id of the user the incident is assigned to. - ObjectID *string `json:"objectId,omitempty"` + ObjectID *string // The user principal name of the user the incident is assigned to. - UserPrincipalName *string `json:"userPrincipalName,omitempty"` + UserPrincipalName *string } // IncidentOwnerInfoAutoGenerated - Information on the user an incident is assigned to type IncidentOwnerInfoAutoGenerated struct { // The name of the user the incident is assigned to. - AssignedTo *string `json:"assignedTo,omitempty"` + AssignedTo *string // The email of the user the incident is assigned to. - Email *string `json:"email,omitempty"` + Email *string // The object id of the user the incident is assigned to. - ObjectID *string `json:"objectId,omitempty"` + ObjectID *string // The type of the owner the incident is assigned to. - OwnerType *OwnerType `json:"ownerType,omitempty"` + OwnerType *OwnerType // The user principal name of the user the incident is assigned to. - UserPrincipalName *string `json:"userPrincipalName,omitempty"` + UserPrincipalName *string } // IncidentProperties - Describes incident properties type IncidentProperties struct { // REQUIRED; The severity of the incident - Severity *IncidentSeverity `json:"severity,omitempty"` + Severity *IncidentSeverity // REQUIRED; The status of the incident - Status *IncidentStatus `json:"status,omitempty"` + Status *IncidentStatus // REQUIRED; The title of the incident - Title *string `json:"title,omitempty"` + Title *string // The reason the incident was closed - Classification *IncidentClassification `json:"classification,omitempty"` + Classification *IncidentClassification // Describes the reason the incident was closed - ClassificationComment *string `json:"classificationComment,omitempty"` + ClassificationComment *string // The classification reason the incident was closed with - ClassificationReason *IncidentClassificationReason `json:"classificationReason,omitempty"` + ClassificationReason *IncidentClassificationReason // The description of the incident - Description *string `json:"description,omitempty"` + Description *string // The time of the first activity in the incident - FirstActivityTimeUTC *time.Time `json:"firstActivityTimeUtc,omitempty"` + FirstActivityTimeUTC *time.Time // List of labels relevant to this incident - Labels []*IncidentLabel `json:"labels,omitempty"` + Labels []*IncidentLabel // The time of the last activity in the incident - LastActivityTimeUTC *time.Time `json:"lastActivityTimeUtc,omitempty"` + LastActivityTimeUTC *time.Time // Describes a user that the incident is assigned to - Owner *IncidentOwnerInfo `json:"owner,omitempty"` + Owner *IncidentOwnerInfo // READ-ONLY; Additional data on the incident - AdditionalData *IncidentAdditionalData `json:"additionalData,omitempty" azure:"ro"` + AdditionalData *IncidentAdditionalData // READ-ONLY; The time the incident was created - CreatedTimeUTC *time.Time `json:"createdTimeUtc,omitempty" azure:"ro"` + CreatedTimeUTC *time.Time // READ-ONLY; A sequential number - IncidentNumber *int32 `json:"incidentNumber,omitempty" azure:"ro"` + IncidentNumber *int32 // READ-ONLY; The deep-link url to the incident in Azure portal - IncidentURL *string `json:"incidentUrl,omitempty" azure:"ro"` + IncidentURL *string // READ-ONLY; The last time the incident was updated - LastModifiedTimeUTC *time.Time `json:"lastModifiedTimeUtc,omitempty" azure:"ro"` + LastModifiedTimeUTC *time.Time // READ-ONLY; List of resource ids of Analytic rules related to the incident - RelatedAnalyticRuleIDs []*string `json:"relatedAnalyticRuleIds,omitempty" azure:"ro"` + RelatedAnalyticRuleIDs []*string } type IncidentPropertiesAction struct { // The reason the incident was closed - Classification *IncidentClassification `json:"classification,omitempty"` + Classification *IncidentClassification // Describes the reason the incident was closed - ClassificationComment *string `json:"classificationComment,omitempty"` + ClassificationComment *string // The classification reason the incident was closed with - ClassificationReason *IncidentClassificationReason `json:"classificationReason,omitempty"` + ClassificationReason *IncidentClassificationReason // List of labels to add to the incident - Labels []*IncidentLabel `json:"labels,omitempty"` + Labels []*IncidentLabel // Information on the user an incident is assigned to - Owner *IncidentOwnerInfoAutoGenerated `json:"owner,omitempty"` + Owner *IncidentOwnerInfoAutoGenerated // The severity of the incident - Severity *IncidentSeverity `json:"severity,omitempty"` + Severity *IncidentSeverity // The status of the incident - Status *IncidentStatus `json:"status,omitempty"` + Status *IncidentStatus } // IncidentRelationsClientCreateOrUpdateOptions contains the optional parameters for the IncidentRelationsClient.CreateOrUpdate @@ -1923,22 +1923,22 @@ type IncidentsClientListOptions struct { // IoTDeviceEntity - Represents an IoT device entity. type IoTDeviceEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // IoTDevice entity properties - Properties *IoTDeviceEntityProperties `json:"properties,omitempty"` + Properties *IoTDeviceEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type IoTDeviceEntity. @@ -1955,86 +1955,86 @@ func (i *IoTDeviceEntity) GetEntity() *Entity { // IoTDeviceEntityProperties - IoTDevice entity property bag. type IoTDeviceEntityProperties struct { // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The ID of the IoT Device in the IoT Hub - DeviceID *string `json:"deviceId,omitempty" azure:"ro"` + DeviceID *string // READ-ONLY; The friendly name of the device - DeviceName *string `json:"deviceName,omitempty" azure:"ro"` + DeviceName *string // READ-ONLY; The type of the device - DeviceType *string `json:"deviceType,omitempty" azure:"ro"` + DeviceType *string // READ-ONLY; The ID of the edge device - EdgeID *string `json:"edgeId,omitempty" azure:"ro"` + EdgeID *string // READ-ONLY; The firmware version of the device - FirmwareVersion *string `json:"firmwareVersion,omitempty" azure:"ro"` + FirmwareVersion *string // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; The Host entity id of this device - HostEntityID *string `json:"hostEntityId,omitempty" azure:"ro"` + HostEntityID *string // READ-ONLY; The IP entity if of this device - IPAddressEntityID *string `json:"ipAddressEntityId,omitempty" azure:"ro"` + IPAddressEntityID *string // READ-ONLY; The AzureResource entity id of the IoT Hub - IotHubEntityID *string `json:"iotHubEntityId,omitempty" azure:"ro"` + IotHubEntityID *string // READ-ONLY; The ID of the security agent running on the device - IotSecurityAgentID *string `json:"iotSecurityAgentId,omitempty" azure:"ro"` + IotSecurityAgentID *string // READ-ONLY; The MAC address of the device - MacAddress *string `json:"macAddress,omitempty" azure:"ro"` + MacAddress *string // READ-ONLY; The model of the device - Model *string `json:"model,omitempty" azure:"ro"` + Model *string // READ-ONLY; The operating system of the device - OperatingSystem *string `json:"operatingSystem,omitempty" azure:"ro"` + OperatingSystem *string // READ-ONLY; A list of protocols of the IoTDevice entity. - Protocols []*string `json:"protocols,omitempty" azure:"ro"` + Protocols []*string // READ-ONLY; The serial number of the device - SerialNumber *string `json:"serialNumber,omitempty" azure:"ro"` + SerialNumber *string // READ-ONLY; The source of the device - Source *string `json:"source,omitempty" azure:"ro"` + Source *string // READ-ONLY; A list of TI contexts attached to the IoTDevice entity. - ThreatIntelligence []*ThreatIntelligence `json:"threatIntelligence,omitempty" azure:"ro"` + ThreatIntelligence []*ThreatIntelligence // READ-ONLY; The vendor of the device - Vendor *string `json:"vendor,omitempty" azure:"ro"` + Vendor *string } // MCASDataConnector - Represents MCAS (Microsoft Cloud App Security) data connector. type MCASDataConnector struct { // REQUIRED; The data connector kind - Kind *DataConnectorKind `json:"kind,omitempty"` + Kind *DataConnectorKind // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // MCAS (Microsoft Cloud App Security) data connector properties. - Properties *MCASDataConnectorProperties `json:"properties,omitempty"` + Properties *MCASDataConnectorProperties // 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 } // GetDataConnector implements the DataConnectorClassification interface for type MCASDataConnector. @@ -2052,43 +2052,43 @@ func (m *MCASDataConnector) GetDataConnector() *DataConnector { // MCASDataConnectorDataTypes - The available data types for MCAS (Microsoft Cloud App Security) data connector. type MCASDataConnectorDataTypes struct { // Alerts data type connection. - Alerts *DataConnectorDataTypeCommon `json:"alerts,omitempty"` + Alerts *DataConnectorDataTypeCommon // Discovery log data type connection. - DiscoveryLogs *DataConnectorDataTypeCommon `json:"discoveryLogs,omitempty"` + DiscoveryLogs *DataConnectorDataTypeCommon } // MCASDataConnectorProperties - MCAS (Microsoft Cloud App Security) data connector properties. type MCASDataConnectorProperties struct { // The available data types for the connector. - DataTypes *MCASDataConnectorDataTypes `json:"dataTypes,omitempty"` + DataTypes *MCASDataConnectorDataTypes // The tenant id to connect to, and get the data from. - TenantID *string `json:"tenantId,omitempty"` + TenantID *string } // MDATPDataConnector - Represents MDATP (Microsoft Defender Advanced Threat Protection) data connector. type MDATPDataConnector struct { // REQUIRED; The data connector kind - Kind *DataConnectorKind `json:"kind,omitempty"` + Kind *DataConnectorKind // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // MDATP (Microsoft Defender Advanced Threat Protection) data connector properties. - Properties *MDATPDataConnectorProperties `json:"properties,omitempty"` + Properties *MDATPDataConnectorProperties // 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 } // GetDataConnector implements the DataConnectorClassification interface for type MDATPDataConnector. @@ -2106,31 +2106,31 @@ func (m *MDATPDataConnector) GetDataConnector() *DataConnector { // MDATPDataConnectorProperties - MDATP (Microsoft Defender Advanced Threat Protection) data connector properties. type MDATPDataConnectorProperties struct { // The available data types for the connector. - DataTypes *AlertsDataTypeOfDataConnector `json:"dataTypes,omitempty"` + DataTypes *AlertsDataTypeOfDataConnector // The tenant id to connect to, and get the data from. - TenantID *string `json:"tenantId,omitempty"` + TenantID *string } // MailClusterEntity - Represents a mail cluster entity. type MailClusterEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // Mail cluster entity properties - Properties *MailClusterEntityProperties `json:"properties,omitempty"` + Properties *MailClusterEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type MailClusterEntity. @@ -2147,77 +2147,77 @@ func (m *MailClusterEntity) GetEntity() *Entity { // MailClusterEntityProperties - Mail cluster entity property bag. type MailClusterEntityProperties struct { // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The cluster group - ClusterGroup *string `json:"clusterGroup,omitempty" azure:"ro"` + ClusterGroup *string // READ-ONLY; The cluster query end time - ClusterQueryEndTime *time.Time `json:"clusterQueryEndTime,omitempty" azure:"ro"` + ClusterQueryEndTime *time.Time // READ-ONLY; The cluster query start time - ClusterQueryStartTime *time.Time `json:"clusterQueryStartTime,omitempty" azure:"ro"` + ClusterQueryStartTime *time.Time // READ-ONLY; The id of the cluster source - ClusterSourceIdentifier *string `json:"clusterSourceIdentifier,omitempty" azure:"ro"` + ClusterSourceIdentifier *string // READ-ONLY; The type of the cluster source - ClusterSourceType *string `json:"clusterSourceType,omitempty" azure:"ro"` + ClusterSourceType *string // READ-ONLY; Count of mail messages by DeliveryStatus string representation - CountByDeliveryStatus any `json:"countByDeliveryStatus,omitempty" azure:"ro"` + CountByDeliveryStatus any // READ-ONLY; Count of mail messages by ProtectionStatus string representation - CountByProtectionStatus any `json:"countByProtectionStatus,omitempty" azure:"ro"` + CountByProtectionStatus any // READ-ONLY; Count of mail messages by ThreatType string representation - CountByThreatType any `json:"countByThreatType,omitempty" azure:"ro"` + CountByThreatType any // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; Is this a volume anomaly mail cluster - IsVolumeAnomaly *bool `json:"isVolumeAnomaly,omitempty" azure:"ro"` + IsVolumeAnomaly *bool // READ-ONLY; The number of mail messages that are part of the mail cluster - MailCount *int32 `json:"mailCount,omitempty" azure:"ro"` + MailCount *int32 // READ-ONLY; The mail message IDs that are part of the mail cluster - NetworkMessageIDs []*string `json:"networkMessageIds,omitempty" azure:"ro"` + NetworkMessageIDs []*string // READ-ONLY; The query that was used to identify the messages of the mail cluster - Query *string `json:"query,omitempty" azure:"ro"` + Query *string // READ-ONLY; The query time - QueryTime *time.Time `json:"queryTime,omitempty" azure:"ro"` + QueryTime *time.Time // READ-ONLY; The source of the mail cluster (default is 'O365 ATP') - Source *string `json:"source,omitempty" azure:"ro"` + Source *string // READ-ONLY; The threats of mail messages that are part of the mail cluster - Threats []*string `json:"threats,omitempty" azure:"ro"` + Threats []*string } // MailMessageEntity - Represents a mail message entity. type MailMessageEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // Mail message entity properties - Properties *MailMessageEntityProperties `json:"properties,omitempty"` + Properties *MailMessageEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type MailMessageEntity. @@ -2234,108 +2234,108 @@ func (m *MailMessageEntity) GetEntity() *Entity { // MailMessageEntityProperties - Mail message entity property bag. type MailMessageEntityProperties struct { // The directionality of this mail message - AntispamDirection *AntispamMailDirection `json:"antispamDirection,omitempty"` + AntispamDirection *AntispamMailDirection // The bodyFingerprintBin1 - BodyFingerprintBin1 *int32 `json:"bodyFingerprintBin1,omitempty"` + BodyFingerprintBin1 *int32 // The bodyFingerprintBin2 - BodyFingerprintBin2 *int32 `json:"bodyFingerprintBin2,omitempty"` + BodyFingerprintBin2 *int32 // The bodyFingerprintBin3 - BodyFingerprintBin3 *int32 `json:"bodyFingerprintBin3,omitempty"` + BodyFingerprintBin3 *int32 // The bodyFingerprintBin4 - BodyFingerprintBin4 *int32 `json:"bodyFingerprintBin4,omitempty"` + BodyFingerprintBin4 *int32 // The bodyFingerprintBin5 - BodyFingerprintBin5 *int32 `json:"bodyFingerprintBin5,omitempty"` + BodyFingerprintBin5 *int32 // The delivery action of this mail message like Delivered, Blocked, Replaced etc - DeliveryAction *DeliveryAction `json:"deliveryAction,omitempty"` + DeliveryAction *DeliveryAction // The delivery location of this mail message like Inbox, JunkFolder etc - DeliveryLocation *DeliveryLocation `json:"deliveryLocation,omitempty"` + DeliveryLocation *DeliveryLocation // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The File entity ids of this mail message's attachments - FileEntityIDs []*string `json:"fileEntityIds,omitempty" azure:"ro"` + FileEntityIDs []*string // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; The internet message id of this mail message - InternetMessageID *string `json:"internetMessageId,omitempty" azure:"ro"` + InternetMessageID *string // READ-ONLY; The language of this mail message - Language *string `json:"language,omitempty" azure:"ro"` + Language *string // READ-ONLY; The network message id of this mail message - NetworkMessageID *string `json:"networkMessageId,omitempty" azure:"ro"` + NetworkMessageID *string // READ-ONLY; The p1 sender's email address - P1Sender *string `json:"p1Sender,omitempty" azure:"ro"` + P1Sender *string // READ-ONLY; The p1 sender's display name - P1SenderDisplayName *string `json:"p1SenderDisplayName,omitempty" azure:"ro"` + P1SenderDisplayName *string // READ-ONLY; The p1 sender's domain - P1SenderDomain *string `json:"p1SenderDomain,omitempty" azure:"ro"` + P1SenderDomain *string // READ-ONLY; The p2 sender's email address - P2Sender *string `json:"p2Sender,omitempty" azure:"ro"` + P2Sender *string // READ-ONLY; The p2 sender's display name - P2SenderDisplayName *string `json:"p2SenderDisplayName,omitempty" azure:"ro"` + P2SenderDisplayName *string // READ-ONLY; The p2 sender's domain - P2SenderDomain *string `json:"p2SenderDomain,omitempty" azure:"ro"` + P2SenderDomain *string // READ-ONLY; The receive date of this message - ReceiveDate *time.Time `json:"receiveDate,omitempty" azure:"ro"` + ReceiveDate *time.Time // READ-ONLY; The recipient of this mail message. Note that in case of multiple recipients the mail message is forked and // each copy has one recipient - Recipient *string `json:"recipient,omitempty" azure:"ro"` + Recipient *string // READ-ONLY; The sender's IP address - SenderIP *string `json:"senderIP,omitempty" azure:"ro"` + SenderIP *string // READ-ONLY; The subject of this mail message - Subject *string `json:"subject,omitempty" azure:"ro"` + Subject *string // READ-ONLY; The threat detection methods - ThreatDetectionMethods []*string `json:"threatDetectionMethods,omitempty" azure:"ro"` + ThreatDetectionMethods []*string // READ-ONLY; The threats of this mail message - Threats []*string `json:"threats,omitempty" azure:"ro"` + Threats []*string // READ-ONLY; The Urls contained in this mail message - Urls []*string `json:"urls,omitempty" azure:"ro"` + Urls []*string } // MailboxEntity - Represents a mailbox entity. type MailboxEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // Mailbox entity properties - Properties *MailboxEntityProperties `json:"properties,omitempty"` + Properties *MailboxEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type MailboxEntity. @@ -2352,45 +2352,45 @@ func (m *MailboxEntity) GetEntity() *Entity { // MailboxEntityProperties - Mailbox entity property bag. type MailboxEntityProperties struct { // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The mailbox's display name - DisplayName *string `json:"displayName,omitempty" azure:"ro"` + DisplayName *string // READ-ONLY; The AzureAD identifier of mailbox. Similar to AadUserId in account entity but this property is specific to mailbox // object on office side - ExternalDirectoryObjectID *string `json:"externalDirectoryObjectId,omitempty" azure:"ro"` + ExternalDirectoryObjectID *string // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; The mailbox's primary address - MailboxPrimaryAddress *string `json:"mailboxPrimaryAddress,omitempty" azure:"ro"` + MailboxPrimaryAddress *string // READ-ONLY; The mailbox's UPN - Upn *string `json:"upn,omitempty" azure:"ro"` + Upn *string } // MalwareEntity - Represents a malware entity. type MalwareEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // File entity properties - Properties *MalwareEntityProperties `json:"properties,omitempty"` + Properties *MalwareEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type MalwareEntity. @@ -2407,47 +2407,47 @@ func (m *MalwareEntity) GetEntity() *Entity { // MalwareEntityProperties - Malware entity property bag. type MalwareEntityProperties struct { // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The malware category by the vendor, e.g. Trojan - Category *string `json:"category,omitempty" azure:"ro"` + Category *string // READ-ONLY; List of linked file entity identifiers on which the malware was found - FileEntityIDs []*string `json:"fileEntityIds,omitempty" azure:"ro"` + FileEntityIDs []*string // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; The malware name by the vendor, e.g. Win32/Toga!rfn - MalwareName *string `json:"malwareName,omitempty" azure:"ro"` + MalwareName *string // READ-ONLY; List of linked process entity identifiers on which the malware was found. - ProcessEntityIDs []*string `json:"processEntityIds,omitempty" azure:"ro"` + ProcessEntityIDs []*string } // MicrosoftSecurityIncidentCreationAlertRule - Represents MicrosoftSecurityIncidentCreation rule. type MicrosoftSecurityIncidentCreationAlertRule struct { // REQUIRED; The alert rule kind - Kind *AlertRuleKind `json:"kind,omitempty"` + Kind *AlertRuleKind // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // MicrosoftSecurityIncidentCreation rule properties - Properties *MicrosoftSecurityIncidentCreationAlertRuleProperties `json:"properties,omitempty"` + Properties *MicrosoftSecurityIncidentCreationAlertRuleProperties // 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 } // GetAlertRule implements the AlertRuleClassification interface for type MicrosoftSecurityIncidentCreationAlertRule. @@ -2465,52 +2465,52 @@ func (m *MicrosoftSecurityIncidentCreationAlertRule) GetAlertRule() *AlertRule { // MicrosoftSecurityIncidentCreationAlertRuleProperties - MicrosoftSecurityIncidentCreation rule property bag. type MicrosoftSecurityIncidentCreationAlertRuleProperties struct { // REQUIRED; The display name for alerts created by this alert rule. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // REQUIRED; Determines whether this alert rule is enabled or disabled. - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool // REQUIRED; The alerts' productName on which the cases will be generated - ProductFilter *MicrosoftSecurityProductName `json:"productFilter,omitempty"` + ProductFilter *MicrosoftSecurityProductName // The Name of the alert rule template used to create this rule. - AlertRuleTemplateName *string `json:"alertRuleTemplateName,omitempty"` + AlertRuleTemplateName *string // The description of the alert rule. - Description *string `json:"description,omitempty"` + Description *string // the alerts' displayNames on which the cases will not be generated - DisplayNamesExcludeFilter []*string `json:"displayNamesExcludeFilter,omitempty"` + DisplayNamesExcludeFilter []*string // the alerts' displayNames on which the cases will be generated - DisplayNamesFilter []*string `json:"displayNamesFilter,omitempty"` + DisplayNamesFilter []*string // the alerts' severities on which the cases will be generated - SeveritiesFilter []*AlertSeverity `json:"severitiesFilter,omitempty"` + SeveritiesFilter []*AlertSeverity // READ-ONLY; The last time that this alert has been modified. - LastModifiedUTC *time.Time `json:"lastModifiedUtc,omitempty" azure:"ro"` + LastModifiedUTC *time.Time } // MicrosoftSecurityIncidentCreationAlertRuleTemplate - Represents MicrosoftSecurityIncidentCreation rule template. type MicrosoftSecurityIncidentCreationAlertRuleTemplate struct { // REQUIRED; The alert rule kind - Kind *AlertRuleKind `json:"kind,omitempty"` + Kind *AlertRuleKind // MicrosoftSecurityIncidentCreation rule template properties - Properties *MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties `json:"properties,omitempty"` + Properties *MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties // 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 } // GetAlertRuleTemplate implements the AlertRuleTemplateClassification interface for type MicrosoftSecurityIncidentCreationAlertRuleTemplate. @@ -2527,61 +2527,61 @@ func (m *MicrosoftSecurityIncidentCreationAlertRuleTemplate) GetAlertRuleTemplat // MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties - MicrosoftSecurityIncidentCreation rule template properties type MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties struct { // REQUIRED; The alerts' productName on which the cases will be generated - ProductFilter *MicrosoftSecurityProductName `json:"productFilter,omitempty"` + ProductFilter *MicrosoftSecurityProductName // the number of alert rules that were created by this template - AlertRulesCreatedByTemplateCount *int32 `json:"alertRulesCreatedByTemplateCount,omitempty"` + AlertRulesCreatedByTemplateCount *int32 // The description of the alert rule template. - Description *string `json:"description,omitempty"` + Description *string // The display name for alert rule template. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // the alerts' displayNames on which the cases will not be generated - DisplayNamesExcludeFilter []*string `json:"displayNamesExcludeFilter,omitempty"` + DisplayNamesExcludeFilter []*string // the alerts' displayNames on which the cases will be generated - DisplayNamesFilter []*string `json:"displayNamesFilter,omitempty"` + DisplayNamesFilter []*string // The required data connectors for this template - RequiredDataConnectors []*AlertRuleTemplateDataSource `json:"requiredDataConnectors,omitempty"` + RequiredDataConnectors []*AlertRuleTemplateDataSource // the alerts' severities on which the cases will be generated - SeveritiesFilter []*AlertSeverity `json:"severitiesFilter,omitempty"` + SeveritiesFilter []*AlertSeverity // The alert rule template status. - Status *TemplateStatus `json:"status,omitempty"` + Status *TemplateStatus // READ-ONLY; The time that this alert rule template has been added. - CreatedDateUTC *time.Time `json:"createdDateUTC,omitempty" azure:"ro"` + CreatedDateUTC *time.Time // READ-ONLY; The time that this alert rule template was last updated. - LastUpdatedDateUTC *time.Time `json:"lastUpdatedDateUTC,omitempty" azure:"ro"` + LastUpdatedDateUTC *time.Time } // OfficeDataConnector - Represents office data connector. type OfficeDataConnector struct { // REQUIRED; The data connector kind - Kind *DataConnectorKind `json:"kind,omitempty"` + Kind *DataConnectorKind // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // Office data connector properties. - Properties *OfficeDataConnectorProperties `json:"properties,omitempty"` + Properties *OfficeDataConnectorProperties // 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 } // GetDataConnector implements the DataConnectorClassification interface for type OfficeDataConnector. @@ -2599,70 +2599,70 @@ func (o *OfficeDataConnector) GetDataConnector() *DataConnector { // OfficeDataConnectorDataTypes - The available data types for office data connector. type OfficeDataConnectorDataTypes struct { // Exchange data type connection. - Exchange *OfficeDataConnectorDataTypesExchange `json:"exchange,omitempty"` + Exchange *OfficeDataConnectorDataTypesExchange // SharePoint data type connection. - SharePoint *OfficeDataConnectorDataTypesSharePoint `json:"sharePoint,omitempty"` + SharePoint *OfficeDataConnectorDataTypesSharePoint // Teams data type connection. - Teams *OfficeDataConnectorDataTypesTeams `json:"teams,omitempty"` + Teams *OfficeDataConnectorDataTypesTeams } // OfficeDataConnectorDataTypesExchange - Exchange data type connection. type OfficeDataConnectorDataTypesExchange struct { // Describe whether this data type connection is enabled or not. - State *DataTypeState `json:"state,omitempty"` + State *DataTypeState } // OfficeDataConnectorDataTypesSharePoint - SharePoint data type connection. type OfficeDataConnectorDataTypesSharePoint struct { // Describe whether this data type connection is enabled or not. - State *DataTypeState `json:"state,omitempty"` + State *DataTypeState } // OfficeDataConnectorDataTypesTeams - Teams data type connection. type OfficeDataConnectorDataTypesTeams struct { // Describe whether this data type connection is enabled or not. - State *DataTypeState `json:"state,omitempty"` + State *DataTypeState } // OfficeDataConnectorProperties - Office data connector properties. type OfficeDataConnectorProperties struct { // The available data types for the connector. - DataTypes *OfficeDataConnectorDataTypes `json:"dataTypes,omitempty"` + DataTypes *OfficeDataConnectorDataTypes // The tenant id to connect to, and get the data from. - TenantID *string `json:"tenantId,omitempty"` + TenantID *string } // Operation provided by provider type Operation struct { // Properties of the operation - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // Indicates whether the operation is a data action - IsDataAction *bool `json:"isDataAction,omitempty"` + IsDataAction *bool // Name of the operation - Name *string `json:"name,omitempty"` + Name *string // The origin of the operation - Origin *string `json:"origin,omitempty"` + Origin *string } // OperationDisplay - Properties of the operation type OperationDisplay struct { // Description of the operation - Description *string `json:"description,omitempty"` + Description *string // Operation name - Operation *string `json:"operation,omitempty"` + Operation *string // Provider name - Provider *string `json:"provider,omitempty"` + Provider *string // Resource name - Resource *string `json:"resource,omitempty"` + Resource *string } // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. @@ -2673,39 +2673,39 @@ type OperationsClientListOptions struct { // OperationsList - Lists the operations available in the SecurityInsights RP. type OperationsList struct { // REQUIRED; Array of operations - Value []*Operation `json:"value,omitempty"` + Value []*Operation // READ-ONLY; URL to fetch the next set of operations. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } type PlaybookActionProperties struct { // REQUIRED; The resource id of the playbook resource - LogicAppResourceID *string `json:"logicAppResourceId,omitempty"` + LogicAppResourceID *string // The tenant id of the playbook resource - TenantID *string `json:"tenantId,omitempty"` + TenantID *string } // ProcessEntity - Represents a process entity. type ProcessEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // Process entity properties - Properties *ProcessEntityProperties `json:"properties,omitempty"` + Properties *ProcessEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type ProcessEntity. @@ -2722,45 +2722,45 @@ func (p *ProcessEntity) GetEntity() *Entity { // ProcessEntityProperties - Process entity property bag. type ProcessEntityProperties struct { // The elevation token associated with the process. - ElevationToken *ElevationToken `json:"elevationToken,omitempty"` + ElevationToken *ElevationToken // READ-ONLY; The account entity id running the processes. - AccountEntityID *string `json:"accountEntityId,omitempty" azure:"ro"` + AccountEntityID *string // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The command line used to create the process - CommandLine *string `json:"commandLine,omitempty" azure:"ro"` + CommandLine *string // READ-ONLY; The time when the process started to run - CreationTimeUTC *time.Time `json:"creationTimeUtc,omitempty" azure:"ro"` + CreationTimeUTC *time.Time // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; The host entity id on which the process was running - HostEntityID *string `json:"hostEntityId,omitempty" azure:"ro"` + HostEntityID *string // READ-ONLY; The session entity id in which the process was running - HostLogonSessionEntityID *string `json:"hostLogonSessionEntityId,omitempty" azure:"ro"` + HostLogonSessionEntityID *string // READ-ONLY; Image file entity id - ImageFileEntityID *string `json:"imageFileEntityId,omitempty" azure:"ro"` + ImageFileEntityID *string // READ-ONLY; The parent process entity id. - ParentProcessEntityID *string `json:"parentProcessEntityId,omitempty" azure:"ro"` + ParentProcessEntityID *string // READ-ONLY; The process ID - ProcessID *string `json:"processId,omitempty" azure:"ro"` + ProcessID *string } // PropertyConditionProperties - Describes an automation rule condition that evaluates a property's value type PropertyConditionProperties struct { // REQUIRED - ConditionType *ConditionType `json:"conditionType,omitempty"` - ConditionProperties *AutomationRulePropertyValuesCondition `json:"conditionProperties,omitempty"` + ConditionType *ConditionType + ConditionProperties *AutomationRulePropertyValuesCondition } // GetAutomationRuleCondition implements the AutomationRuleConditionClassification interface for type PropertyConditionProperties. @@ -2773,22 +2773,22 @@ func (p *PropertyConditionProperties) GetAutomationRuleCondition() *AutomationRu // RegistryKeyEntity - Represents a registry key entity. type RegistryKeyEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // RegistryKey entity properties - Properties *RegistryKeyEntityProperties `json:"properties,omitempty"` + Properties *RegistryKeyEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type RegistryKeyEntity. @@ -2805,38 +2805,38 @@ func (r *RegistryKeyEntity) GetEntity() *Entity { // RegistryKeyEntityProperties - RegistryKey entity property bag. type RegistryKeyEntityProperties struct { // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; the hive that holds the registry key. - Hive *RegistryHive `json:"hive,omitempty" azure:"ro"` + Hive *RegistryHive // READ-ONLY; The registry key path. - Key *string `json:"key,omitempty" azure:"ro"` + Key *string } // RegistryValueEntity - Represents a registry value entity. type RegistryValueEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // RegistryKey entity properties - Properties *RegistryValueEntityProperties `json:"properties,omitempty"` + Properties *RegistryValueEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type RegistryValueEntity. @@ -2853,93 +2853,93 @@ func (r *RegistryValueEntity) GetEntity() *Entity { // RegistryValueEntityProperties - RegistryValue entity property bag. type RegistryValueEntityProperties struct { // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; The registry key entity id. - KeyEntityID *string `json:"keyEntityId,omitempty" azure:"ro"` + KeyEntityID *string // READ-ONLY; String formatted representation of the value data. - ValueData *string `json:"valueData,omitempty" azure:"ro"` + ValueData *string // READ-ONLY; The registry value name. - ValueName *string `json:"valueName,omitempty" azure:"ro"` + ValueName *string // READ-ONLY; Specifies the data types to use when storing values in the registry, or identifies the data type of a value // in the registry. - ValueType *RegistryValueKind `json:"valueType,omitempty" azure:"ro"` + ValueType *RegistryValueKind } // Relation - Represents a relation between two resources type Relation struct { // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // Relation properties - Properties *RelationProperties `json:"properties,omitempty"` + Properties *RelationProperties // 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 } // RelationList - List of relations. type RelationList struct { // REQUIRED; Array of relations. - Value []*Relation `json:"value,omitempty"` + Value []*Relation // READ-ONLY; URL to fetch the next set of relations. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // RelationProperties - Relation property bag. type RelationProperties struct { // REQUIRED; The resource ID of the related resource - RelatedResourceID *string `json:"relatedResourceId,omitempty"` + RelatedResourceID *string // READ-ONLY; The resource kind of the related resource - RelatedResourceKind *string `json:"relatedResourceKind,omitempty" azure:"ro"` + RelatedResourceKind *string // READ-ONLY; The name of the related resource - RelatedResourceName *string `json:"relatedResourceName,omitempty" azure:"ro"` + RelatedResourceName *string // READ-ONLY; The resource type of the related resource - RelatedResourceType *string `json:"relatedResourceType,omitempty" azure:"ro"` + RelatedResourceType *string } // ScheduledAlertRule - Represents scheduled alert rule. type ScheduledAlertRule struct { // REQUIRED; The alert rule kind - Kind *AlertRuleKind `json:"kind,omitempty"` + Kind *AlertRuleKind // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // Scheduled alert rule properties - Properties *ScheduledAlertRuleProperties `json:"properties,omitempty"` + Properties *ScheduledAlertRuleProperties // 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 } // GetAlertRule implements the AlertRuleClassification interface for type ScheduledAlertRule. @@ -2957,85 +2957,85 @@ func (s *ScheduledAlertRule) GetAlertRule() *AlertRule { // ScheduledAlertRuleProperties - Scheduled alert rule base property bag. type ScheduledAlertRuleProperties struct { // REQUIRED; The display name for alerts created by this alert rule. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // REQUIRED; Determines whether this alert rule is enabled or disabled. - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool // REQUIRED; The suppression (in ISO 8601 duration format) to wait since last time this alert rule been triggered. - SuppressionDuration *string `json:"suppressionDuration,omitempty"` + SuppressionDuration *string // REQUIRED; Determines whether the suppression for this alert rule is enabled or disabled. - SuppressionEnabled *bool `json:"suppressionEnabled,omitempty"` + SuppressionEnabled *bool // The alert details override settings - AlertDetailsOverride *AlertDetailsOverride `json:"alertDetailsOverride,omitempty"` + AlertDetailsOverride *AlertDetailsOverride // The Name of the alert rule template used to create this rule. - AlertRuleTemplateName *string `json:"alertRuleTemplateName,omitempty"` + AlertRuleTemplateName *string // Dictionary of string key-value pairs of columns to be attached to the alert - CustomDetails map[string]*string `json:"customDetails,omitempty"` + CustomDetails map[string]*string // The description of the alert rule. - Description *string `json:"description,omitempty"` + Description *string // Array of the entity mappings of the alert rule - EntityMappings []*EntityMapping `json:"entityMappings,omitempty"` + EntityMappings []*EntityMapping // The event grouping settings. - EventGroupingSettings *EventGroupingSettings `json:"eventGroupingSettings,omitempty"` + EventGroupingSettings *EventGroupingSettings // The settings of the incidents that created from alerts triggered by this analytics rule - IncidentConfiguration *IncidentConfiguration `json:"incidentConfiguration,omitempty"` + IncidentConfiguration *IncidentConfiguration // The query that creates alerts for this rule. - Query *string `json:"query,omitempty"` + Query *string // The frequency (in ISO 8601 duration format) for this alert rule to run. - QueryFrequency *string `json:"queryFrequency,omitempty"` + QueryFrequency *string // The period (in ISO 8601 duration format) that this alert rule looks at. - QueryPeriod *string `json:"queryPeriod,omitempty"` + QueryPeriod *string // The severity for alerts created by this alert rule. - Severity *AlertSeverity `json:"severity,omitempty"` + Severity *AlertSeverity // The tactics of the alert rule - Tactics []*AttackTactic `json:"tactics,omitempty"` + Tactics []*AttackTactic // The version of the alert rule template used to create this rule - in format , where all are numbers, for example 0 - TemplateVersion *string `json:"templateVersion,omitempty"` + TemplateVersion *string // The operation against the threshold that triggers alert rule. - TriggerOperator *TriggerOperator `json:"triggerOperator,omitempty"` + TriggerOperator *TriggerOperator // The threshold triggers this alert rule. - TriggerThreshold *int32 `json:"triggerThreshold,omitempty"` + TriggerThreshold *int32 // READ-ONLY; The last time that this alert rule has been modified. - LastModifiedUTC *time.Time `json:"lastModifiedUtc,omitempty" azure:"ro"` + LastModifiedUTC *time.Time } // ScheduledAlertRuleTemplate - Represents scheduled alert rule template. type ScheduledAlertRuleTemplate struct { // REQUIRED; The alert rule kind - Kind *AlertRuleKind `json:"kind,omitempty"` + Kind *AlertRuleKind // Scheduled alert rule template properties - Properties *ScheduledAlertRuleTemplateProperties `json:"properties,omitempty"` + Properties *ScheduledAlertRuleTemplateProperties // 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 } // GetAlertRuleTemplate implements the AlertRuleTemplateClassification interface for type ScheduledAlertRuleTemplate. @@ -3052,82 +3052,82 @@ func (s *ScheduledAlertRuleTemplate) GetAlertRuleTemplate() *AlertRuleTemplate { // ScheduledAlertRuleTemplateProperties - Scheduled alert rule template properties type ScheduledAlertRuleTemplateProperties struct { // The alert details override settings - AlertDetailsOverride *AlertDetailsOverride `json:"alertDetailsOverride,omitempty"` + AlertDetailsOverride *AlertDetailsOverride // the number of alert rules that were created by this template - AlertRulesCreatedByTemplateCount *int32 `json:"alertRulesCreatedByTemplateCount,omitempty"` + AlertRulesCreatedByTemplateCount *int32 // Dictionary of string key-value pairs of columns to be attached to the alert - CustomDetails map[string]*string `json:"customDetails,omitempty"` + CustomDetails map[string]*string // The description of the alert rule template. - Description *string `json:"description,omitempty"` + Description *string // The display name for alert rule template. - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Array of the entity mappings of the alert rule - EntityMappings []*EntityMapping `json:"entityMappings,omitempty"` + EntityMappings []*EntityMapping // The event grouping settings. - EventGroupingSettings *EventGroupingSettings `json:"eventGroupingSettings,omitempty"` + EventGroupingSettings *EventGroupingSettings // The query that creates alerts for this rule. - Query *string `json:"query,omitempty"` + Query *string // The frequency (in ISO 8601 duration format) for this alert rule to run. - QueryFrequency *string `json:"queryFrequency,omitempty"` + QueryFrequency *string // The period (in ISO 8601 duration format) that this alert rule looks at. - QueryPeriod *string `json:"queryPeriod,omitempty"` + QueryPeriod *string // The required data connectors for this template - RequiredDataConnectors []*AlertRuleTemplateDataSource `json:"requiredDataConnectors,omitempty"` + RequiredDataConnectors []*AlertRuleTemplateDataSource // The severity for alerts created by this alert rule. - Severity *AlertSeverity `json:"severity,omitempty"` + Severity *AlertSeverity // The alert rule template status. - Status *TemplateStatus `json:"status,omitempty"` + Status *TemplateStatus // The tactics of the alert rule template - Tactics []*AttackTactic `json:"tactics,omitempty"` + Tactics []*AttackTactic // The operation against the threshold that triggers alert rule. - TriggerOperator *TriggerOperator `json:"triggerOperator,omitempty"` + TriggerOperator *TriggerOperator // The threshold triggers this alert rule. - TriggerThreshold *int32 `json:"triggerThreshold,omitempty"` + TriggerThreshold *int32 // The version of this template - in format , where all are numbers. For example . - Version *string `json:"version,omitempty"` + Version *string // READ-ONLY; The time that this alert rule template has been added. - CreatedDateUTC *time.Time `json:"createdDateUTC,omitempty" azure:"ro"` + CreatedDateUTC *time.Time // READ-ONLY; The time that this alert rule template was last updated. - LastUpdatedDateUTC *time.Time `json:"lastUpdatedDateUTC,omitempty" azure:"ro"` + LastUpdatedDateUTC *time.Time } // SecurityAlert - Represents a security alert entity. type SecurityAlert struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // SecurityAlert entity properties - Properties *SecurityAlertProperties `json:"properties,omitempty"` + Properties *SecurityAlertProperties // 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 } // GetEntity implements the EntityClassification interface for type SecurityAlert. @@ -3144,117 +3144,117 @@ func (s *SecurityAlert) GetEntity() *Entity { // SecurityAlertProperties - SecurityAlert entity property bag. type SecurityAlertProperties struct { // The severity of the alert - Severity *AlertSeverity `json:"severity,omitempty"` + Severity *AlertSeverity // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The display name of the alert. - AlertDisplayName *string `json:"alertDisplayName,omitempty" azure:"ro"` + AlertDisplayName *string // READ-ONLY; The uri link of the alert. - AlertLink *string `json:"alertLink,omitempty" azure:"ro"` + AlertLink *string // READ-ONLY; The type name of the alert. - AlertType *string `json:"alertType,omitempty" azure:"ro"` + AlertType *string // READ-ONLY; Display name of the main entity being reported on. - CompromisedEntity *string `json:"compromisedEntity,omitempty" azure:"ro"` + CompromisedEntity *string // READ-ONLY; The confidence level of this alert. - ConfidenceLevel *ConfidenceLevel `json:"confidenceLevel,omitempty" azure:"ro"` + ConfidenceLevel *ConfidenceLevel // READ-ONLY; The confidence reasons - ConfidenceReasons []*SecurityAlertPropertiesConfidenceReasonsItem `json:"confidenceReasons,omitempty" azure:"ro"` + ConfidenceReasons []*SecurityAlertPropertiesConfidenceReasonsItem // READ-ONLY; The confidence score of the alert. - ConfidenceScore *float64 `json:"confidenceScore,omitempty" azure:"ro"` + ConfidenceScore *float64 // READ-ONLY; The confidence score calculation status, i.e. indicating if score calculation is pending for this alert, not // applicable or final. - ConfidenceScoreStatus *ConfidenceScoreStatus `json:"confidenceScoreStatus,omitempty" azure:"ro"` + ConfidenceScoreStatus *ConfidenceScoreStatus // READ-ONLY; Alert description. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The impact end time of the alert (the time of the last event contributing to the alert). - EndTimeUTC *time.Time `json:"endTimeUtc,omitempty" azure:"ro"` + EndTimeUTC *time.Time // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; Holds the alert intent stage(s) mapping for this alert. - Intent *KillChainIntent `json:"intent,omitempty" azure:"ro"` + Intent *KillChainIntent // READ-ONLY; The time the alert was made available for consumption. - ProcessingEndTime *time.Time `json:"processingEndTime,omitempty" azure:"ro"` + ProcessingEndTime *time.Time // READ-ONLY; The name of a component inside the product which generated the alert. - ProductComponentName *string `json:"productComponentName,omitempty" azure:"ro"` + ProductComponentName *string // READ-ONLY; The name of the product which published this alert. - ProductName *string `json:"productName,omitempty" azure:"ro"` + ProductName *string // READ-ONLY; The version of the product generating the alert. - ProductVersion *string `json:"productVersion,omitempty" azure:"ro"` + ProductVersion *string // READ-ONLY; The identifier of the alert inside the product which generated the alert. - ProviderAlertID *string `json:"providerAlertId,omitempty" azure:"ro"` + ProviderAlertID *string // READ-ONLY; Manual action items to take to remediate the alert. - RemediationSteps []*string `json:"remediationSteps,omitempty" azure:"ro"` + RemediationSteps []*string // READ-ONLY; The list of resource identifiers of the alert. - ResourceIdentifiers []any `json:"resourceIdentifiers,omitempty" azure:"ro"` + ResourceIdentifiers []any // READ-ONLY; The impact start time of the alert (the time of the first event contributing to the alert). - StartTimeUTC *time.Time `json:"startTimeUtc,omitempty" azure:"ro"` + StartTimeUTC *time.Time // READ-ONLY; The lifecycle status of the alert. - Status *AlertStatus `json:"status,omitempty" azure:"ro"` + Status *AlertStatus // READ-ONLY; Holds the product identifier of the alert for the product. - SystemAlertID *string `json:"systemAlertId,omitempty" azure:"ro"` + SystemAlertID *string // READ-ONLY; The tactics of the alert - Tactics []*AttackTactic `json:"tactics,omitempty" azure:"ro"` + Tactics []*AttackTactic // READ-ONLY; The time the alert was generated. - TimeGenerated *time.Time `json:"timeGenerated,omitempty" azure:"ro"` + TimeGenerated *time.Time // READ-ONLY; The name of the vendor that raise the alert. - VendorName *string `json:"vendorName,omitempty" azure:"ro"` + VendorName *string } // SecurityAlertPropertiesConfidenceReasonsItem - confidence reason item type SecurityAlertPropertiesConfidenceReasonsItem struct { // READ-ONLY; The reason's description - Reason *string `json:"reason,omitempty" azure:"ro"` + Reason *string // READ-ONLY; The type (category) of the reason - ReasonType *string `json:"reasonType,omitempty" azure:"ro"` + ReasonType *string } // SecurityGroupEntity - Represents a security group entity. type SecurityGroupEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // SecurityGroup entity properties - Properties *SecurityGroupEntityProperties `json:"properties,omitempty"` + Properties *SecurityGroupEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type SecurityGroupEntity. @@ -3271,47 +3271,47 @@ func (s *SecurityGroupEntity) GetEntity() *Entity { // SecurityGroupEntityProperties - SecurityGroup entity property bag. type SecurityGroupEntityProperties struct { // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The group distinguished name - DistinguishedName *string `json:"distinguishedName,omitempty" azure:"ro"` + DistinguishedName *string // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; A single-value attribute that is the unique identifier for the object, assigned by active directory. - ObjectGUID *string `json:"objectGuid,omitempty" azure:"ro"` + ObjectGUID *string // READ-ONLY; The SID attribute is a single-value attribute that specifies the security identifier (SID) of the group - Sid *string `json:"sid,omitempty" azure:"ro"` + Sid *string } // SentinelOnboardingState - Sentinel onboarding state type SentinelOnboardingState struct { // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // The Sentinel onboarding state object - Properties *SentinelOnboardingStateProperties `json:"properties,omitempty"` + Properties *SentinelOnboardingStateProperties // 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 } // SentinelOnboardingStateProperties - The Sentinel onboarding state properties type SentinelOnboardingStateProperties struct { // Flag that indicates the status of the CMK setting - CustomerManagedKey *bool `json:"customerManagedKey,omitempty"` + CustomerManagedKey *bool } // SentinelOnboardingStatesClientCreateOptions contains the optional parameters for the SentinelOnboardingStatesClient.Create @@ -3341,28 +3341,28 @@ type SentinelOnboardingStatesClientListOptions struct { // SentinelOnboardingStatesList - List of the Sentinel onboarding states type SentinelOnboardingStatesList struct { // REQUIRED; Array of Sentinel onboarding states - Value []*SentinelOnboardingState `json:"value,omitempty"` + Value []*SentinelOnboardingState } // SubmissionMailEntity - Represents a submission mail entity. type SubmissionMailEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // Submission mail entity properties - Properties *SubmissionMailEntityProperties `json:"properties,omitempty"` + Properties *SubmissionMailEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type SubmissionMailEntity. @@ -3379,86 +3379,86 @@ func (s *SubmissionMailEntity) GetEntity() *Entity { // SubmissionMailEntityProperties - Submission mail entity property bag. type SubmissionMailEntityProperties struct { // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; The network message id of email to which submission belongs - NetworkMessageID *string `json:"networkMessageId,omitempty" azure:"ro"` + NetworkMessageID *string // READ-ONLY; The recipient of the mail - Recipient *string `json:"recipient,omitempty" azure:"ro"` + Recipient *string // READ-ONLY; The submission type for the given instance. This maps to Junk, Phish, Malware or NotJunk. - ReportType *string `json:"reportType,omitempty" azure:"ro"` + ReportType *string // READ-ONLY; The sender of the mail - Sender *string `json:"sender,omitempty" azure:"ro"` + Sender *string // READ-ONLY; The sender's IP - SenderIP *string `json:"senderIp,omitempty" azure:"ro"` + SenderIP *string // READ-ONLY; The subject of submission mail - Subject *string `json:"subject,omitempty" azure:"ro"` + Subject *string // READ-ONLY; The submission date - SubmissionDate *time.Time `json:"submissionDate,omitempty" azure:"ro"` + SubmissionDate *time.Time // READ-ONLY; The submission id - SubmissionID *string `json:"submissionId,omitempty" azure:"ro"` + SubmissionID *string // READ-ONLY; The submitter - Submitter *string `json:"submitter,omitempty" azure:"ro"` + Submitter *string // READ-ONLY; The Time stamp when the message is received (Mail) - Timestamp *time.Time `json:"timestamp,omitempty" azure:"ro"` + Timestamp *time.Time } // 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 } // TIDataConnector - Represents threat intelligence data connector. type TIDataConnector struct { // REQUIRED; The data connector kind - Kind *DataConnectorKind `json:"kind,omitempty"` + Kind *DataConnectorKind // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // TI (Threat Intelligence) data connector properties. - Properties *TIDataConnectorProperties `json:"properties,omitempty"` + Properties *TIDataConnectorProperties // 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 } // GetDataConnector implements the DataConnectorClassification interface for type TIDataConnector. @@ -3476,124 +3476,124 @@ func (t *TIDataConnector) GetDataConnector() *DataConnector { // TIDataConnectorDataTypes - The available data types for TI (Threat Intelligence) data connector. type TIDataConnectorDataTypes struct { // Data type for indicators connection. - Indicators *TIDataConnectorDataTypesIndicators `json:"indicators,omitempty"` + Indicators *TIDataConnectorDataTypesIndicators } // TIDataConnectorDataTypesIndicators - Data type for indicators connection. type TIDataConnectorDataTypesIndicators struct { // Describe whether this data type connection is enabled or not. - State *DataTypeState `json:"state,omitempty"` + State *DataTypeState } // TIDataConnectorProperties - TI (Threat Intelligence) data connector properties. type TIDataConnectorProperties struct { // The available data types for the connector. - DataTypes *TIDataConnectorDataTypes `json:"dataTypes,omitempty"` + DataTypes *TIDataConnectorDataTypes // The tenant id to connect to, and get the data from. - TenantID *string `json:"tenantId,omitempty"` + TenantID *string // The lookback period for the feed to be imported. - TipLookbackPeriod *time.Time `json:"tipLookbackPeriod,omitempty"` + TipLookbackPeriod *time.Time } // ThreatIntelligence property bag. type ThreatIntelligence struct { // READ-ONLY; Confidence (must be between 0 and 1) - Confidence *float64 `json:"confidence,omitempty" azure:"ro"` + Confidence *float64 // READ-ONLY; Name of the provider from whom this Threat Intelligence information was received - ProviderName *string `json:"providerName,omitempty" azure:"ro"` + ProviderName *string // READ-ONLY; Report link - ReportLink *string `json:"reportLink,omitempty" azure:"ro"` + ReportLink *string // READ-ONLY; Threat description (free text) - ThreatDescription *string `json:"threatDescription,omitempty" azure:"ro"` + ThreatDescription *string // READ-ONLY; Threat name (e.g. "Jedobot malware") - ThreatName *string `json:"threatName,omitempty" azure:"ro"` + ThreatName *string // READ-ONLY; Threat type (e.g. "Botnet") - ThreatType *string `json:"threatType,omitempty" azure:"ro"` + ThreatType *string } // ThreatIntelligenceAppendTags - Array of tags to be appended to the threat intelligence indicator. type ThreatIntelligenceAppendTags struct { // List of tags to be appended. - ThreatIntelligenceTags []*string `json:"threatIntelligenceTags,omitempty"` + ThreatIntelligenceTags []*string } // ThreatIntelligenceExternalReference - Describes external reference type ThreatIntelligenceExternalReference struct { // External reference description - Description *string `json:"description,omitempty"` + Description *string // External reference ID - ExternalID *string `json:"externalId,omitempty"` + ExternalID *string // External reference hashes - Hashes map[string]*string `json:"hashes,omitempty"` + Hashes map[string]*string // External reference source name - SourceName *string `json:"sourceName,omitempty"` + SourceName *string // External reference URL - URL *string `json:"url,omitempty"` + URL *string } // ThreatIntelligenceFilteringCriteria - Filtering criteria for querying threat intelligence indicators. type ThreatIntelligenceFilteringCriteria struct { // Ids of threat intelligence indicators - IDs []*string `json:"ids,omitempty"` + IDs []*string // Parameter to include/exclude disabled indicators. - IncludeDisabled *bool `json:"includeDisabled,omitempty"` + IncludeDisabled *bool // Keywords for searching threat intelligence indicators - Keywords []*string `json:"keywords,omitempty"` + Keywords []*string // Maximum confidence. - MaxConfidence *int32 `json:"maxConfidence,omitempty"` + MaxConfidence *int32 // End time for ValidUntil filter. - MaxValidUntil *string `json:"maxValidUntil,omitempty"` + MaxValidUntil *string // Minimum confidence. - MinConfidence *int32 `json:"minConfidence,omitempty"` + MinConfidence *int32 // Start time for ValidUntil filter. - MinValidUntil *string `json:"minValidUntil,omitempty"` + MinValidUntil *string // Page size - PageSize *int32 `json:"pageSize,omitempty"` + PageSize *int32 // Pattern types - PatternTypes []*string `json:"patternTypes,omitempty"` + PatternTypes []*string // Skip token. - SkipToken *string `json:"skipToken,omitempty"` + SkipToken *string // Columns to sort by and sorting order - SortBy []*ThreatIntelligenceSortingCriteria `json:"sortBy,omitempty"` + SortBy []*ThreatIntelligenceSortingCriteria // Sources of threat intelligence indicators - Sources []*string `json:"sources,omitempty"` + Sources []*string // Threat types of threat intelligence indicators - ThreatTypes []*string `json:"threatTypes,omitempty"` + ThreatTypes []*string } // ThreatIntelligenceGranularMarkingModel - Describes threat granular marking model entity type ThreatIntelligenceGranularMarkingModel struct { // Language granular marking model - Language *string `json:"language,omitempty"` + Language *string // marking reference granular marking model - MarkingRef *int32 `json:"markingRef,omitempty"` + MarkingRef *int32 // granular marking model selectors - Selectors []*string `json:"selectors,omitempty"` + Selectors []*string } // ThreatIntelligenceIndicatorClientAppendTagsOptions contains the optional parameters for the ThreatIntelligenceIndicatorClient.AppendTags @@ -3647,25 +3647,25 @@ type ThreatIntelligenceIndicatorMetricsClientListOptions struct { // ThreatIntelligenceIndicatorModel - Threat intelligence indicator entity. type ThreatIntelligenceIndicatorModel struct { // REQUIRED; The kind of the entity. - Kind *ThreatIntelligenceResourceInnerKind `json:"kind,omitempty"` + Kind *ThreatIntelligenceResourceInnerKind // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // Threat Intelligence Entity properties - Properties *ThreatIntelligenceIndicatorProperties `json:"properties,omitempty"` + Properties *ThreatIntelligenceIndicatorProperties // 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 } // GetThreatIntelligenceInformation implements the ThreatIntelligenceInformationClassification interface for type ThreatIntelligenceIndicatorModel. @@ -3683,95 +3683,95 @@ func (t *ThreatIntelligenceIndicatorModel) GetThreatIntelligenceInformation() *T // ThreatIntelligenceIndicatorProperties - Describes threat intelligence entity properties type ThreatIntelligenceIndicatorProperties struct { // Confidence of threat intelligence entity - Confidence *int32 `json:"confidence,omitempty"` + Confidence *int32 // Created by - Created *string `json:"created,omitempty"` + Created *string // Created by reference of threat intelligence entity - CreatedByRef *string `json:"createdByRef,omitempty"` + CreatedByRef *string // Is threat intelligence entity defanged - Defanged *bool `json:"defanged,omitempty"` + Defanged *bool // Description of a threat intelligence entity - Description *string `json:"description,omitempty"` + Description *string // Display name of a threat intelligence entity - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Extensions map - Extensions map[string]any `json:"extensions,omitempty"` + Extensions map[string]any // External ID of threat intelligence entity - ExternalID *string `json:"externalId,omitempty"` + ExternalID *string // External last updated time in UTC - ExternalLastUpdatedTimeUTC *string `json:"externalLastUpdatedTimeUtc,omitempty"` + ExternalLastUpdatedTimeUTC *string // External References - ExternalReferences []*ThreatIntelligenceExternalReference `json:"externalReferences,omitempty"` + ExternalReferences []*ThreatIntelligenceExternalReference // Granular Markings - GranularMarkings []*ThreatIntelligenceGranularMarkingModel `json:"granularMarkings,omitempty"` + GranularMarkings []*ThreatIntelligenceGranularMarkingModel // Indicator types of threat intelligence entities - IndicatorTypes []*string `json:"indicatorTypes,omitempty"` + IndicatorTypes []*string // Kill chain phases - KillChainPhases []*ThreatIntelligenceKillChainPhase `json:"killChainPhases,omitempty"` + KillChainPhases []*ThreatIntelligenceKillChainPhase // Labels of threat intelligence entity - Labels []*string `json:"labels,omitempty"` + Labels []*string // Language of threat intelligence entity - Language *string `json:"language,omitempty"` + Language *string // Last updated time in UTC - LastUpdatedTimeUTC *string `json:"lastUpdatedTimeUtc,omitempty"` + LastUpdatedTimeUTC *string // Modified by - Modified *string `json:"modified,omitempty"` + Modified *string // Threat intelligence entity object marking references - ObjectMarkingRefs []*string `json:"objectMarkingRefs,omitempty"` + ObjectMarkingRefs []*string // Parsed patterns - ParsedPattern []*ThreatIntelligenceParsedPattern `json:"parsedPattern,omitempty"` + ParsedPattern []*ThreatIntelligenceParsedPattern // Pattern of a threat intelligence entity - Pattern *string `json:"pattern,omitempty"` + Pattern *string // Pattern type of a threat intelligence entity - PatternType *string `json:"patternType,omitempty"` + PatternType *string // Pattern version of a threat intelligence entity - PatternVersion *string `json:"patternVersion,omitempty"` + PatternVersion *string // Is threat intelligence entity revoked - Revoked *bool `json:"revoked,omitempty"` + Revoked *bool // Source of a threat intelligence entity - Source *string `json:"source,omitempty"` + Source *string // List of tags - ThreatIntelligenceTags []*string `json:"threatIntelligenceTags,omitempty"` + ThreatIntelligenceTags []*string // Threat types - ThreatTypes []*string `json:"threatTypes,omitempty"` + ThreatTypes []*string // Valid from - ValidFrom *string `json:"validFrom,omitempty"` + ValidFrom *string // Valid until - ValidUntil *string `json:"validUntil,omitempty"` + ValidUntil *string // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string } // ThreatIntelligenceIndicatorsClientListOptions contains the optional parameters for the ThreatIntelligenceIndicatorsClient.NewListPager @@ -3801,22 +3801,22 @@ type ThreatIntelligenceInformationClassification interface { // ThreatIntelligenceInformation - Threat intelligence information object. type ThreatIntelligenceInformation struct { // REQUIRED; The kind of the entity. - Kind *ThreatIntelligenceResourceInnerKind `json:"kind,omitempty"` + Kind *ThreatIntelligenceResourceInnerKind // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + 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; 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 } // GetThreatIntelligenceInformation implements the ThreatIntelligenceInformationClassification interface for type ThreatIntelligenceInformation. @@ -3827,103 +3827,103 @@ func (t *ThreatIntelligenceInformation) GetThreatIntelligenceInformation() *Thre // ThreatIntelligenceInformationList - List of all the threat intelligence information objects. type ThreatIntelligenceInformationList struct { // REQUIRED; Array of threat intelligence information objects. - Value []ThreatIntelligenceInformationClassification `json:"value,omitempty"` + Value []ThreatIntelligenceInformationClassification // READ-ONLY; URL to fetch the next set of information objects. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // ThreatIntelligenceKillChainPhase - Describes threat kill chain phase entity type ThreatIntelligenceKillChainPhase struct { // Kill chainName name - KillChainName *string `json:"killChainName,omitempty"` + KillChainName *string // Phase name - PhaseName *string `json:"phaseName,omitempty"` + PhaseName *string } // ThreatIntelligenceMetric - Describes threat intelligence metric type ThreatIntelligenceMetric struct { // Last updated indicator metric - LastUpdatedTimeUTC *string `json:"lastUpdatedTimeUtc,omitempty"` + LastUpdatedTimeUTC *string // Pattern type metrics - PatternTypeMetrics []*ThreatIntelligenceMetricEntity `json:"patternTypeMetrics,omitempty"` + PatternTypeMetrics []*ThreatIntelligenceMetricEntity // Source metrics - SourceMetrics []*ThreatIntelligenceMetricEntity `json:"sourceMetrics,omitempty"` + SourceMetrics []*ThreatIntelligenceMetricEntity // Threat type metrics - ThreatTypeMetrics []*ThreatIntelligenceMetricEntity `json:"threatTypeMetrics,omitempty"` + ThreatTypeMetrics []*ThreatIntelligenceMetricEntity } // ThreatIntelligenceMetricEntity - Describes threat intelligence metric entity type ThreatIntelligenceMetricEntity struct { // Metric name - MetricName *string `json:"metricName,omitempty"` + MetricName *string // Metric value - MetricValue *int32 `json:"metricValue,omitempty"` + MetricValue *int32 } // ThreatIntelligenceMetrics - Threat intelligence metrics. type ThreatIntelligenceMetrics struct { // Threat intelligence metrics. - Properties *ThreatIntelligenceMetric `json:"properties,omitempty"` + Properties *ThreatIntelligenceMetric } // ThreatIntelligenceMetricsList - List of all the threat intelligence metric fields (type/threat type/source). type ThreatIntelligenceMetricsList struct { // REQUIRED; Array of threat intelligence metric fields (type/threat type/source). - Value []*ThreatIntelligenceMetrics `json:"value,omitempty"` + Value []*ThreatIntelligenceMetrics } // ThreatIntelligenceParsedPattern - Describes parsed pattern entity type ThreatIntelligenceParsedPattern struct { // Pattern type key - PatternTypeKey *string `json:"patternTypeKey,omitempty"` + PatternTypeKey *string // Pattern type keys - PatternTypeValues []*ThreatIntelligenceParsedPatternTypeValue `json:"patternTypeValues,omitempty"` + PatternTypeValues []*ThreatIntelligenceParsedPatternTypeValue } // ThreatIntelligenceParsedPatternTypeValue - Describes threat kill chain phase entity type ThreatIntelligenceParsedPatternTypeValue struct { // Value of parsed pattern - Value *string `json:"value,omitempty"` + Value *string // Type of the value - ValueType *string `json:"valueType,omitempty"` + ValueType *string } // ThreatIntelligenceSortingCriteria - List of available columns for sorting type ThreatIntelligenceSortingCriteria struct { // Column name - ItemKey *string `json:"itemKey,omitempty"` + ItemKey *string // Sorting order (ascending/descending/unsorted). - SortOrder *ThreatIntelligenceSortingOrder `json:"sortOrder,omitempty"` + SortOrder *ThreatIntelligenceSortingOrder } // URLEntity - Represents a url entity. type URLEntity struct { // REQUIRED; The kind of the entity. - Kind *EntityKindEnum `json:"kind,omitempty"` + Kind *EntityKindEnum // Url entity properties - Properties *URLEntityProperties `json:"properties,omitempty"` + Properties *URLEntityProperties // 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 } // GetEntity implements the EntityClassification interface for type URLEntity. @@ -3940,110 +3940,110 @@ func (u *URLEntity) GetEntity() *Entity { // URLEntityProperties - Url entity property bag. type URLEntityProperties struct { // READ-ONLY; A bag of custom fields that should be part of the entity and will be presented to the user. - AdditionalData map[string]any `json:"additionalData,omitempty" azure:"ro"` + AdditionalData map[string]any // READ-ONLY; The graph item display name which is a short humanly readable description of the graph item instance. This property // is optional and might be system generated. - FriendlyName *string `json:"friendlyName,omitempty" azure:"ro"` + FriendlyName *string // READ-ONLY; A full URL the entity points to - URL *string `json:"url,omitempty" azure:"ro"` + URL *string } // UserInfo - User information that made some action type UserInfo struct { // The object id of the user. - ObjectID *string `json:"objectId,omitempty"` + ObjectID *string // READ-ONLY; The email of the user. - Email *string `json:"email,omitempty" azure:"ro"` + Email *string // READ-ONLY; The name of the user. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string } // Watchlist - Represents a Watchlist in Azure Security Insights. type Watchlist struct { // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // Watchlist properties - Properties *WatchlistProperties `json:"properties,omitempty"` + Properties *WatchlistProperties // 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 } // WatchlistItem - Represents a Watchlist Item in Azure Security Insights. type WatchlistItem struct { // Etag of the azure resource - Etag *string `json:"etag,omitempty"` + Etag *string // Watchlist Item properties - Properties *WatchlistItemProperties `json:"properties,omitempty"` + Properties *WatchlistItemProperties // 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 } // WatchlistItemList - List all the watchlist items. type WatchlistItemList struct { // REQUIRED; Array of watchlist items. - Value []*WatchlistItem `json:"value,omitempty"` + Value []*WatchlistItem // READ-ONLY; URL to fetch the next set of watchlist items. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // WatchlistItemProperties - Describes watchlist item properties type WatchlistItemProperties struct { // REQUIRED; key-value pairs for a watchlist item - ItemsKeyValue any `json:"itemsKeyValue,omitempty"` + ItemsKeyValue any // The time the watchlist item was created - Created *time.Time `json:"created,omitempty"` + Created *time.Time // Describes a user that created the watchlist item - CreatedBy *UserInfo `json:"createdBy,omitempty"` + CreatedBy *UserInfo // key-value pairs for a watchlist item entity mapping - EntityMapping any `json:"entityMapping,omitempty"` + EntityMapping any // A flag that indicates if the watchlist item is deleted or not - IsDeleted *bool `json:"isDeleted,omitempty"` + IsDeleted *bool // The tenantId to which the watchlist item belongs to - TenantID *string `json:"tenantId,omitempty"` + TenantID *string // The last time the watchlist item was updated - Updated *time.Time `json:"updated,omitempty"` + Updated *time.Time // Describes a user that updated the watchlist item - UpdatedBy *UserInfo `json:"updatedBy,omitempty"` + UpdatedBy *UserInfo // The id (a Guid) of the watchlist item - WatchlistItemID *string `json:"watchlistItemId,omitempty"` + WatchlistItemID *string // The type of the watchlist item - WatchlistItemType *string `json:"watchlistItemType,omitempty"` + WatchlistItemType *string } // WatchlistItemsClientCreateOrUpdateOptions contains the optional parameters for the WatchlistItemsClient.CreateOrUpdate @@ -4073,76 +4073,76 @@ type WatchlistItemsClientListOptions struct { // WatchlistList - List all the watchlists. type WatchlistList struct { // REQUIRED; Array of watchlist. - Value []*Watchlist `json:"value,omitempty"` + Value []*Watchlist // READ-ONLY; URL to fetch the next set of watchlists. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // WatchlistProperties - Describes watchlist properties type WatchlistProperties struct { // REQUIRED; The display name of the watchlist - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // REQUIRED; The search key is used to optimize query performance when using watchlists for joins with other data. For example, // enable a column with IP addresses to be the designated SearchKey field, then use this // field as the key field when joining to other event data by IP address. - ItemsSearchKey *string `json:"itemsSearchKey,omitempty"` + ItemsSearchKey *string // REQUIRED; The provider of the watchlist - Provider *string `json:"provider,omitempty"` + Provider *string // REQUIRED; The source of the watchlist - Source *Source `json:"source,omitempty"` + Source *Source // The content type of the raw content. For now, only text/csv is valid - ContentType *string `json:"contentType,omitempty"` + ContentType *string // The time the watchlist was created - Created *time.Time `json:"created,omitempty"` + Created *time.Time // Describes a user that created the watchlist - CreatedBy *UserInfo `json:"createdBy,omitempty"` + CreatedBy *UserInfo // The default duration of a watchlist (in ISO 8601 duration format) - DefaultDuration *string `json:"defaultDuration,omitempty"` + DefaultDuration *string // A description of the watchlist - Description *string `json:"description,omitempty"` + Description *string // A flag that indicates if the watchlist is deleted or not - IsDeleted *bool `json:"isDeleted,omitempty"` + IsDeleted *bool // List of labels relevant to this watchlist - Labels []*string `json:"labels,omitempty"` + Labels []*string // The number of lines in a csv content to skip before the header - NumberOfLinesToSkip *int32 `json:"numberOfLinesToSkip,omitempty"` + NumberOfLinesToSkip *int32 // The raw content that represents to watchlist items to create. Example : This line will be skipped header1,header2 value1,value2 - RawContent *string `json:"rawContent,omitempty"` + RawContent *string // The tenantId where the watchlist belongs to - TenantID *string `json:"tenantId,omitempty"` + TenantID *string // The last time the watchlist was updated - Updated *time.Time `json:"updated,omitempty"` + Updated *time.Time // Describes a user that updated the watchlist - UpdatedBy *UserInfo `json:"updatedBy,omitempty"` + UpdatedBy *UserInfo // The status of the Watchlist upload : New, InProgress or Complete. Note : When a Watchlist upload status is InProgress, // the Watchlist cannot be deleted - UploadStatus *string `json:"uploadStatus,omitempty"` + UploadStatus *string // The alias of the watchlist - WatchlistAlias *string `json:"watchlistAlias,omitempty"` + WatchlistAlias *string // The id (a Guid) of the watchlist - WatchlistID *string `json:"watchlistId,omitempty"` + WatchlistID *string // The type of the watchlist - WatchlistType *string `json:"watchlistType,omitempty"` + WatchlistType *string } // WatchlistsClientCreateOrUpdateOptions contains the optional parameters for the WatchlistsClient.CreateOrUpdate method. diff --git a/sdk/resourcemanager/securityinsights/armsecurityinsights/models_serde.go b/sdk/resourcemanager/securityinsights/armsecurityinsights/models_serde.go index 1a24a1d659eb..803d5f2ed787 100644 --- a/sdk/resourcemanager/securityinsights/armsecurityinsights/models_serde.go +++ b/sdk/resourcemanager/securityinsights/armsecurityinsights/models_serde.go @@ -3890,9 +3890,9 @@ func (m MailClusterEntityProperties) MarshalJSON() ([]byte, error) { populateTimeRFC3339(objectMap, "clusterQueryStartTime", m.ClusterQueryStartTime) populate(objectMap, "clusterSourceIdentifier", m.ClusterSourceIdentifier) populate(objectMap, "clusterSourceType", m.ClusterSourceType) - populate(objectMap, "countByDeliveryStatus", &m.CountByDeliveryStatus) - populate(objectMap, "countByProtectionStatus", &m.CountByProtectionStatus) - populate(objectMap, "countByThreatType", &m.CountByThreatType) + populateAny(objectMap, "countByDeliveryStatus", m.CountByDeliveryStatus) + populateAny(objectMap, "countByProtectionStatus", m.CountByProtectionStatus) + populateAny(objectMap, "countByThreatType", m.CountByThreatType) populate(objectMap, "friendlyName", m.FriendlyName) populate(objectMap, "isVolumeAnomaly", m.IsVolumeAnomaly) populate(objectMap, "mailCount", m.MailCount) @@ -7341,9 +7341,9 @@ func (w WatchlistItemProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "created", w.Created) populate(objectMap, "createdBy", w.CreatedBy) - populate(objectMap, "entityMapping", &w.EntityMapping) + populateAny(objectMap, "entityMapping", w.EntityMapping) populate(objectMap, "isDeleted", w.IsDeleted) - populate(objectMap, "itemsKeyValue", &w.ItemsKeyValue) + populateAny(objectMap, "itemsKeyValue", w.ItemsKeyValue) populate(objectMap, "tenantId", w.TenantID) populateTimeRFC3339(objectMap, "updated", w.Updated) populate(objectMap, "updatedBy", w.UpdatedBy) @@ -7543,6 +7543,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/servicebus/armservicebus/CHANGELOG.md b/sdk/resourcemanager/servicebus/armservicebus/CHANGELOG.md index 8d916ce57dba..07240a5f6d1e 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/CHANGELOG.md +++ b/sdk/resourcemanager/servicebus/armservicebus/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 1.1.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + + ## 1.1.0 (2023-04-07) ### Features Added diff --git a/sdk/resourcemanager/servicebus/armservicebus/autorest.md b/sdk/resourcemanager/servicebus/armservicebus/autorest.md index 17d67c93cf67..b69cecf9b72d 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/autorest.md +++ b/sdk/resourcemanager/servicebus/armservicebus/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/servicebus/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/servicebus/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.1.0 +module-version: 1.1.1 tag: package-2021-11 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/servicebus/armservicebus/constants.go b/sdk/resourcemanager/servicebus/armservicebus/constants.go index c794c00da922..fe5d817a951e 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/constants.go +++ b/sdk/resourcemanager/servicebus/armservicebus/constants.go @@ -11,7 +11,7 @@ package armservicebus const ( moduleName = "armservicebus" - moduleVersion = "v1.1.0" + moduleVersion = "v1.1.1" ) type AccessRights string diff --git a/sdk/resourcemanager/servicebus/armservicebus/models.go b/sdk/resourcemanager/servicebus/armservicebus/models.go index 8f6a94a57db1..1dc6a0124cf4 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/models.go +++ b/sdk/resourcemanager/servicebus/armservicebus/models.go @@ -14,87 +14,87 @@ import "time" // AccessKeys - Namespace/ServiceBus Connection String type AccessKeys struct { // READ-ONLY; Primary connection string of the alias if GEO DR is enabled - AliasPrimaryConnectionString *string `json:"aliasPrimaryConnectionString,omitempty" azure:"ro"` + AliasPrimaryConnectionString *string // READ-ONLY; Secondary connection string of the alias if GEO DR is enabled - AliasSecondaryConnectionString *string `json:"aliasSecondaryConnectionString,omitempty" azure:"ro"` + AliasSecondaryConnectionString *string // READ-ONLY; A string that describes the authorization rule. - KeyName *string `json:"keyName,omitempty" azure:"ro"` + KeyName *string // READ-ONLY; Primary connection string of the created namespace authorization rule. - PrimaryConnectionString *string `json:"primaryConnectionString,omitempty" azure:"ro"` + PrimaryConnectionString *string // READ-ONLY; A base64-encoded 256-bit primary key for signing and validating the SAS token. - PrimaryKey *string `json:"primaryKey,omitempty" azure:"ro"` + PrimaryKey *string // READ-ONLY; Secondary connection string of the created namespace authorization rule. - SecondaryConnectionString *string `json:"secondaryConnectionString,omitempty" azure:"ro"` + SecondaryConnectionString *string // READ-ONLY; A base64-encoded 256-bit primary key for signing and validating the SAS token. - SecondaryKey *string `json:"secondaryKey,omitempty" azure:"ro"` + SecondaryKey *string } // Action - Represents the filter actions which are allowed for the transformation of a message that have been matched by // a filter expression. type Action struct { // This property is reserved for future use. An integer value showing the compatibility level, currently hard-coded to 20. - CompatibilityLevel *int32 `json:"compatibilityLevel,omitempty"` + CompatibilityLevel *int32 // Value that indicates whether the rule action requires preprocessing. - RequiresPreprocessing *bool `json:"requiresPreprocessing,omitempty"` + RequiresPreprocessing *bool // SQL expression. e.g. MyProperty='ABC' - SQLExpression *string `json:"sqlExpression,omitempty"` + SQLExpression *string } // ArmDisasterRecovery - Single item in List or Get Alias(Disaster Recovery configuration) operation type ArmDisasterRecovery struct { // Properties required to the Create Or Update Alias(Disaster Recovery configurations) - Properties *ArmDisasterRecoveryProperties `json:"properties,omitempty"` + Properties *ArmDisasterRecoveryProperties // 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 geo-location where the resource lives - 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 system meta data relating to this resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ArmDisasterRecoveryListResult - The result of the List Alias(Disaster Recovery configuration) operation. type ArmDisasterRecoveryListResult struct { // List of Alias(Disaster Recovery configurations) - Value []*ArmDisasterRecovery `json:"value,omitempty"` + Value []*ArmDisasterRecovery // READ-ONLY; Link to the next set of results. Not empty if Value contains incomplete list of Alias(Disaster Recovery configuration) - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // ArmDisasterRecoveryProperties - Properties required to the Create Or Update Alias(Disaster Recovery configurations) type ArmDisasterRecoveryProperties struct { // Primary/Secondary eventhub namespace name, which is part of GEO DR pairing - AlternateName *string `json:"alternateName,omitempty"` + AlternateName *string // ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing - PartnerNamespace *string `json:"partnerNamespace,omitempty"` + PartnerNamespace *string // READ-ONLY; Number of entities pending to be replicated. - PendingReplicationOperationsCount *int64 `json:"pendingReplicationOperationsCount,omitempty" azure:"ro"` + PendingReplicationOperationsCount *int64 // READ-ONLY; Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or 'Succeeded' // or 'Failed' - ProvisioningState *ProvisioningStateDR `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ProvisioningStateDR // READ-ONLY; role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary' - Role *RoleDisasterRecovery `json:"role,omitempty" azure:"ro"` + Role *RoleDisasterRecovery } // CheckNameAvailability - Description of a Check Name availability request properties. @@ -102,61 +102,61 @@ type CheckNameAvailability struct { // REQUIRED; The Name to check the namespace name availability and The namespace name can contain only letters, numbers, and // hyphens. The namespace must start with a letter, and it must end with a letter or // number. - Name *string `json:"name,omitempty"` + Name *string } // CheckNameAvailabilityResult - Description of a Check Name availability request properties. type CheckNameAvailabilityResult struct { // Value indicating namespace is availability, true if the namespace is available; otherwise, false. - NameAvailable *bool `json:"nameAvailable,omitempty"` + NameAvailable *bool // The reason for unavailability of a namespace. - Reason *UnavailableReason `json:"reason,omitempty"` + Reason *UnavailableReason // READ-ONLY; The detailed info regarding the reason associated with the namespace. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string } // ConnectionState information. type ConnectionState struct { // Description of the connection state. - Description *string `json:"description,omitempty"` + Description *string // Status of the connection. - Status *PrivateLinkConnectionStatus `json:"status,omitempty"` + Status *PrivateLinkConnectionStatus } // CorrelationFilter - Represents the correlation filter expression. type CorrelationFilter struct { // Content type of the message. - ContentType *string `json:"contentType,omitempty"` + ContentType *string // Identifier of the correlation. - CorrelationID *string `json:"correlationId,omitempty"` + CorrelationID *string // Application specific label. - Label *string `json:"label,omitempty"` + Label *string // Identifier of the message. - MessageID *string `json:"messageId,omitempty"` + MessageID *string // dictionary object for custom filters - Properties map[string]*string `json:"properties,omitempty"` + Properties map[string]*string // Address of the queue to reply to. - ReplyTo *string `json:"replyTo,omitempty"` + ReplyTo *string // Session identifier to reply to. - ReplyToSessionID *string `json:"replyToSessionId,omitempty"` + ReplyToSessionID *string // Value that indicates whether the rule action requires preprocessing. - RequiresPreprocessing *bool `json:"requiresPreprocessing,omitempty"` + RequiresPreprocessing *bool // Session identifier. - SessionID *string `json:"sessionId,omitempty"` + SessionID *string // Address to send to. - To *string `json:"to,omitempty"` + To *string } // DisasterRecoveryConfigsClientBreakPairingOptions contains the optional parameters for the DisasterRecoveryConfigsClient.BreakPairing @@ -222,156 +222,156 @@ type DisasterRecoveryConfigsClientListOptions struct { // Encryption - Properties to configure Encryption type Encryption struct { // Enumerates the possible value of keySource for Encryption - KeySource *string `json:"keySource,omitempty"` + KeySource *string // Properties of KeyVault - KeyVaultProperties []*KeyVaultProperties `json:"keyVaultProperties,omitempty"` + KeyVaultProperties []*KeyVaultProperties // Enable Infrastructure Encryption (Double Encryption) - RequireInfrastructureEncryption *bool `json:"requireInfrastructureEncryption,omitempty"` + RequireInfrastructureEncryption *bool } // 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 - The resource management error response. type ErrorResponse struct { // The error object. - Error *ErrorResponseError `json:"error,omitempty"` + Error *ErrorResponseError } // ErrorResponseError - The error object. type ErrorResponseError 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 } // FailoverProperties - Safe failover is to indicate the service should wait for pending replication to finish before switching // to the secondary. type FailoverProperties struct { // Safe failover is to indicate the service should wait for pending replication to finish before switching to the secondary. - Properties *FailoverPropertiesProperties `json:"properties,omitempty"` + Properties *FailoverPropertiesProperties } // FailoverPropertiesProperties - Safe failover is to indicate the service should wait for pending replication to finish before // switching to the secondary. type FailoverPropertiesProperties struct { // Safe failover is to indicate the service should wait for pending replication to finish before switching to the secondary. - IsSafeFailover *bool `json:"IsSafeFailover,omitempty"` + IsSafeFailover *bool } // Identity - Properties to configure User Assigned Identities for Bring your Own Keys type Identity struct { // Type of managed service identity. - Type *ManagedServiceIdentityType `json:"type,omitempty"` + Type *ManagedServiceIdentityType // Properties for User Assigned Identities - UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities,omitempty"` + UserAssignedIdentities map[string]*UserAssignedIdentity // READ-ONLY; ObjectId from the KeyVault - PrincipalID *string `json:"principalId,omitempty" azure:"ro"` + PrincipalID *string // READ-ONLY; TenantId from the KeyVault - TenantID *string `json:"tenantId,omitempty" azure:"ro"` + TenantID *string } // KeyVaultProperties - Properties to configure keyVault Properties type KeyVaultProperties struct { - Identity *UserAssignedIdentityProperties `json:"identity,omitempty"` + Identity *UserAssignedIdentityProperties // 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 KeyVault - KeyVersion *string `json:"keyVersion,omitempty"` + KeyVersion *string } // MessageCountDetails - Message Count Details. type MessageCountDetails struct { // READ-ONLY; Number of active messages in the queue, topic, or subscription. - ActiveMessageCount *int64 `json:"activeMessageCount,omitempty" azure:"ro"` + ActiveMessageCount *int64 // READ-ONLY; Number of messages that are dead lettered. - DeadLetterMessageCount *int64 `json:"deadLetterMessageCount,omitempty" azure:"ro"` + DeadLetterMessageCount *int64 // READ-ONLY; Number of scheduled messages. - ScheduledMessageCount *int64 `json:"scheduledMessageCount,omitempty" azure:"ro"` + ScheduledMessageCount *int64 // READ-ONLY; Number of messages transferred into dead letters. - TransferDeadLetterMessageCount *int64 `json:"transferDeadLetterMessageCount,omitempty" azure:"ro"` + TransferDeadLetterMessageCount *int64 // READ-ONLY; Number of messages transferred to another queue, topic, or subscription. - TransferMessageCount *int64 `json:"transferMessageCount,omitempty" azure:"ro"` + TransferMessageCount *int64 } // MigrationConfigListResult - The result of the List migrationConfigurations operation. type MigrationConfigListResult struct { // List of Migration Configs - Value []*MigrationConfigProperties `json:"value,omitempty"` + Value []*MigrationConfigProperties // READ-ONLY; Link to the next set of results. Not empty if Value contains incomplete list of migrationConfigurations - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // MigrationConfigProperties - Single item in List or Get Migration Config operation type MigrationConfigProperties struct { // Properties required to the Create Migration Configuration - Properties *MigrationConfigPropertiesProperties `json:"properties,omitempty"` + Properties *MigrationConfigPropertiesProperties // 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 geo-location where the resource lives - 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 system meta data relating to this resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // MigrationConfigPropertiesProperties - Properties required to the Create Migration Configuration type MigrationConfigPropertiesProperties struct { // REQUIRED; Name to access Standard Namespace after migration - PostMigrationName *string `json:"postMigrationName,omitempty"` + PostMigrationName *string // REQUIRED; Existing premium Namespace ARM Id name which has no entities, will be used for migration - TargetNamespace *string `json:"targetNamespace,omitempty"` + TargetNamespace *string // READ-ONLY; State in which Standard to Premium Migration is, possible values : Unknown, Reverting, Completing, Initiating, // Syncing, Active - MigrationState *string `json:"migrationState,omitempty" azure:"ro"` + MigrationState *string // READ-ONLY; Number of entities pending to be replicated. - PendingReplicationOperationsCount *int64 `json:"pendingReplicationOperationsCount,omitempty" azure:"ro"` + PendingReplicationOperationsCount *int64 // READ-ONLY; Provisioning state of Migration Configuration - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // MigrationConfigsClientBeginCreateAndStartMigrationOptions contains the optional parameters for the MigrationConfigsClient.BeginCreateAndStartMigration @@ -410,19 +410,19 @@ type MigrationConfigsClientRevertOptions struct { // NWRuleSetIPRules - Description of NetWorkRuleSet - IpRules resource. type NWRuleSetIPRules struct { // The IP Filter Action - Action *NetworkRuleIPAction `json:"action,omitempty"` + Action *NetworkRuleIPAction // IP Mask - IPMask *string `json:"ipMask,omitempty"` + IPMask *string } // NWRuleSetVirtualNetworkRules - Description of VirtualNetworkRules - NetworkRules resource. type NWRuleSetVirtualNetworkRules struct { // Value that indicates whether to ignore missing VNet Service Endpoint - IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty"` + IgnoreMissingVnetServiceEndpoint *bool // Subnet properties - Subnet *Subnet `json:"subnet,omitempty"` + Subnet *Subnet } // NamespacesClientBeginCreateOrUpdateOptions contains the optional parameters for the NamespacesClient.BeginCreateOrUpdate @@ -519,92 +519,92 @@ type NamespacesClientUpdateOptions struct { // NetworkRuleSet - Description of NetworkRuleSet resource. type NetworkRuleSet struct { // NetworkRuleSet properties - Properties *NetworkRuleSetProperties `json:"properties,omitempty"` + Properties *NetworkRuleSetProperties // 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 geo-location where the resource lives - 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 system meta data relating to this resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // NetworkRuleSetListResult - The response of the List NetworkRuleSet operation. type NetworkRuleSetListResult struct { // Link to the next set of results. Not empty if Value contains incomplete list of NetworkRuleSet. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // Result of the List NetworkRuleSet operation. - Value []*NetworkRuleSet `json:"value,omitempty"` + Value []*NetworkRuleSet } // NetworkRuleSetProperties - NetworkRuleSet properties type NetworkRuleSetProperties struct { // Default Action for Network Rule Set - DefaultAction *DefaultAction `json:"defaultAction,omitempty"` + DefaultAction *DefaultAction // List of IpRules - IPRules []*NWRuleSetIPRules `json:"ipRules,omitempty"` + IPRules []*NWRuleSetIPRules // This determines if traffic is allowed over public network. By default it is enabled. - PublicNetworkAccess *PublicNetworkAccessFlag `json:"publicNetworkAccess,omitempty"` + PublicNetworkAccess *PublicNetworkAccessFlag // Value that indicates whether Trusted Service Access is Enabled or not. - TrustedServiceAccessEnabled *bool `json:"trustedServiceAccessEnabled,omitempty"` + TrustedServiceAccessEnabled *bool // List VirtualNetwork Rules - VirtualNetworkRules []*NWRuleSetVirtualNetworkRules `json:"virtualNetworkRules,omitempty"` + VirtualNetworkRules []*NWRuleSetVirtualNetworkRules } // Operation - A Service Bus REST API operation type Operation struct { // Display of the operation - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // Indicates whether the operation is a data action - IsDataAction *bool `json:"isDataAction,omitempty"` + IsDataAction *bool // Origin of the operation - Origin *string `json:"origin,omitempty"` + Origin *string // Properties of the operation - Properties any `json:"properties,omitempty"` + Properties any // READ-ONLY; Operation name: {provider}/{resource}/{operation} - Name *string `json:"name,omitempty" azure:"ro"` + Name *string } // OperationDisplay - Operation display payload 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; Resource provider of the operation - Provider *string `json:"provider,omitempty" azure:"ro"` + Provider *string // READ-ONLY; Resource of the operation - Resource *string `json:"resource,omitempty" azure:"ro"` + Resource *string } // OperationListResult - Result of the request to list ServiceBus operations. It contains a list of operations and a 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 ServiceBus operations supported by the Microsoft.ServiceBus resource provider. - Value []*Operation `json:"value,omitempty" azure:"ro"` + Value []*Operation } // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. @@ -615,49 +615,49 @@ type OperationsClientListOptions struct { // PrivateEndpoint information. type PrivateEndpoint struct { // The ARM identifier for Private Endpoint. - ID *string `json:"id,omitempty"` + ID *string } // PrivateEndpointConnection - Properties of the PrivateEndpointConnection. type PrivateEndpointConnection struct { // Properties of the PrivateEndpointConnection. - 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 geo-location where the resource lives - 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 system meta data relating to this resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PrivateEndpointConnectionListResult - Result of the list of all private endpoint connections operation. type PrivateEndpointConnectionListResult struct { // A link for the next page of private endpoint connection resources. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // A collection of private endpoint connection resources. - Value []*PrivateEndpointConnection `json:"value,omitempty"` + Value []*PrivateEndpointConnection } // PrivateEndpointConnectionProperties - Properties of the private endpoint connection resource. type PrivateEndpointConnectionProperties struct { // The Private Endpoint resource for this Connection. - PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpoint *PrivateEndpoint // Details about the state of the connection. - PrivateLinkServiceConnectionState *ConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceConnectionState *ConnectionState // Provisioning state of the Private Endpoint Connection. - ProvisioningState *EndPointProvisioningState `json:"provisioningState,omitempty"` + ProvisioningState *EndPointProvisioningState } // PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete @@ -688,27 +688,27 @@ type PrivateEndpointConnectionsClientListOptions struct { // PrivateLinkResource - Information of the private link resource. type PrivateLinkResource struct { // Fully qualified identifier of the resource. - ID *string `json:"id,omitempty"` + ID *string // Name of the resource - Name *string `json:"name,omitempty"` + Name *string // Properties of the private link resource. - Properties *PrivateLinkResourceProperties `json:"properties,omitempty"` + Properties *PrivateLinkResourceProperties // Type of the resource - Type *string `json:"type,omitempty"` + Type *string } // PrivateLinkResourceProperties - Properties of PrivateLinkResource type PrivateLinkResourceProperties struct { - GroupID *string `json:"groupId,omitempty"` + GroupID *string // Required Members - RequiredMembers []*string `json:"requiredMembers,omitempty"` + RequiredMembers []*string // Required Zone Names - RequiredZoneNames []*string `json:"requiredZoneNames,omitempty"` + RequiredZoneNames []*string } // PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method. @@ -719,25 +719,25 @@ type PrivateLinkResourcesClientGetOptions struct { // PrivateLinkResourcesListResult - Result of the List private link resources operation. type PrivateLinkResourcesListResult struct { // A link for the next page of private link resources. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // A collection of private link resources - Value []*PrivateLinkResource `json:"value,omitempty"` + Value []*PrivateLinkResource } // ProxyResource - Common fields that are returned in the response for all Azure Resource Manager resources 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 geo-location where the resource lives - 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 type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // QueuesClientCreateOrUpdateAuthorizationRuleOptions contains the optional parameters for the QueuesClient.CreateOrUpdateAuthorizationRule @@ -802,86 +802,86 @@ type QueuesClientRegenerateKeysOptions struct { // needs to be reset. type RegenerateAccessKeyParameters struct { // REQUIRED; The access key to regenerate. - KeyType *KeyType `json:"keyType,omitempty"` + KeyType *KeyType // Optional, if the key value provided, is reset for KeyType value or autogenerate Key value set for keyType - Key *string `json:"key,omitempty"` + Key *string } // Resource - The Resource definition for other than namespace. 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 } // ResourceNamespacePatch - The Resource definition. type ResourceNamespacePatch 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 } // Rule - Description of Rule Resource. type Rule struct { // Properties of Rule resource - Properties *Ruleproperties `json:"properties,omitempty"` + Properties *Ruleproperties // 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 geo-location where the resource lives - 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 system meta data relating to this resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // RuleListResult - The response of the List rule operation. type RuleListResult struct { // Link to the next set of results. Not empty if Value contains incomplete list of rules - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // Result of the List Rules operation. - Value []*Rule `json:"value,omitempty"` + Value []*Rule } // Ruleproperties - Description of Rule Resource. type Ruleproperties struct { // Represents the filter actions which are allowed for the transformation of a message that have been matched by a filter // expression. - Action *Action `json:"action,omitempty"` + Action *Action // Properties of correlationFilter - CorrelationFilter *CorrelationFilter `json:"correlationFilter,omitempty"` + CorrelationFilter *CorrelationFilter // Filter type that is evaluated against a BrokeredMessage. - FilterType *FilterType `json:"filterType,omitempty"` + FilterType *FilterType // Properties of sqlFilter - SQLFilter *SQLFilter `json:"sqlFilter,omitempty"` + SQLFilter *SQLFilter } // RulesClientCreateOrUpdateOptions contains the optional parameters for the RulesClient.CreateOrUpdate method. @@ -913,510 +913,510 @@ type RulesClientListBySubscriptionsOptions struct { // SBAuthorizationRule - Description of a namespace authorization rule. type SBAuthorizationRule struct { // AuthorizationRule properties. - Properties *SBAuthorizationRuleProperties `json:"properties,omitempty"` + Properties *SBAuthorizationRuleProperties // 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 geo-location where the resource lives - 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 system meta data relating to this resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SBAuthorizationRuleListResult - The response to the List Namespace operation. type SBAuthorizationRuleListResult struct { // Link to the next set of results. Not empty if Value contains incomplete list of Authorization Rules. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // Result of the List Authorization Rules operation. - Value []*SBAuthorizationRule `json:"value,omitempty"` + Value []*SBAuthorizationRule } // SBAuthorizationRuleProperties - AuthorizationRule properties. type SBAuthorizationRuleProperties struct { // REQUIRED; The rights associated with the rule. - Rights []*AccessRights `json:"rights,omitempty"` + Rights []*AccessRights } // SBClientAffineProperties - Properties specific to client affine subscriptions. type SBClientAffineProperties struct { // Indicates the Client ID of the application that created the client-affine subscription. - ClientID *string `json:"clientId,omitempty"` + ClientID *string // For client-affine subscriptions, this value indicates whether the subscription is durable or not. - IsDurable *bool `json:"isDurable,omitempty"` + IsDurable *bool // For client-affine subscriptions, this value indicates whether the subscription is shared or not. - IsShared *bool `json:"isShared,omitempty"` + IsShared *bool } // SBNamespace - Description of a namespace resource. type SBNamespace struct { // REQUIRED; The Geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // Properties of BYOK Identity description - Identity *Identity `json:"identity,omitempty"` + Identity *Identity // Properties of the namespace. - Properties *SBNamespaceProperties `json:"properties,omitempty"` + Properties *SBNamespaceProperties // Properties of SKU - SKU *SBSKU `json:"sku,omitempty"` + SKU *SBSKU // 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; The system meta data relating to this resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; Resource type - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SBNamespaceListResult - The response of the List Namespace operation. type SBNamespaceListResult struct { // Link to the next set of results. Not empty if Value contains incomplete list of Namespaces. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // Result of the List Namespace operation. - Value []*SBNamespace `json:"value,omitempty"` + Value []*SBNamespace } // SBNamespaceProperties - Properties of the namespace. type SBNamespaceProperties struct { // Alternate name for namespace - AlternateName *string `json:"alternateName,omitempty"` + AlternateName *string // This property disables SAS authentication for the Service Bus namespace. - DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` + DisableLocalAuth *bool // Properties of BYOK Encryption description - Encryption *Encryption `json:"encryption,omitempty"` + Encryption *Encryption // List of private endpoint connections. - PrivateEndpointConnections []*PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + PrivateEndpointConnections []*PrivateEndpointConnection // Enabling this property creates a Premium Service Bus Namespace in regions supported availability zones. - ZoneRedundant *bool `json:"zoneRedundant,omitempty"` + ZoneRedundant *bool // READ-ONLY; The time the namespace was created - CreatedAt *time.Time `json:"createdAt,omitempty" azure:"ro"` + CreatedAt *time.Time // READ-ONLY; Identifier for Azure Insights metrics - MetricID *string `json:"metricId,omitempty" azure:"ro"` + MetricID *string // READ-ONLY; Provisioning state of the namespace. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; Endpoint you can use to perform Service Bus operations. - ServiceBusEndpoint *string `json:"serviceBusEndpoint,omitempty" azure:"ro"` + ServiceBusEndpoint *string // READ-ONLY; Status of the namespace. - Status *string `json:"status,omitempty" azure:"ro"` + Status *string // READ-ONLY; The time the namespace was updated. - UpdatedAt *time.Time `json:"updatedAt,omitempty" azure:"ro"` + UpdatedAt *time.Time } // SBNamespaceUpdateParameters - Description of a namespace resource. type SBNamespaceUpdateParameters struct { // Properties of BYOK Identity description - Identity *Identity `json:"identity,omitempty"` + Identity *Identity // Resource location - Location *string `json:"location,omitempty"` + Location *string // Properties of the namespace. - Properties *SBNamespaceUpdateProperties `json:"properties,omitempty"` + Properties *SBNamespaceUpdateProperties // Properties of SKU - SKU *SBSKU `json:"sku,omitempty"` + SKU *SBSKU // 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 } // SBNamespaceUpdateProperties - Properties of the namespace. type SBNamespaceUpdateProperties struct { // Alternate name for namespace - AlternateName *string `json:"alternateName,omitempty"` + AlternateName *string // This property disables SAS authentication for the Service Bus namespace. - DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` + DisableLocalAuth *bool // Properties of BYOK Encryption description - Encryption *Encryption `json:"encryption,omitempty"` + Encryption *Encryption // List of private endpoint connections. - PrivateEndpointConnections []*PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + PrivateEndpointConnections []*PrivateEndpointConnection // READ-ONLY; The time the namespace was created - CreatedAt *time.Time `json:"createdAt,omitempty" azure:"ro"` + CreatedAt *time.Time // READ-ONLY; Identifier for Azure Insights metrics - MetricID *string `json:"metricId,omitempty" azure:"ro"` + MetricID *string // READ-ONLY; Provisioning state of the namespace. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; Endpoint you can use to perform Service Bus operations. - ServiceBusEndpoint *string `json:"serviceBusEndpoint,omitempty" azure:"ro"` + ServiceBusEndpoint *string // READ-ONLY; Status of the namespace. - Status *string `json:"status,omitempty" azure:"ro"` + Status *string // READ-ONLY; The time the namespace was updated. - UpdatedAt *time.Time `json:"updatedAt,omitempty" azure:"ro"` + UpdatedAt *time.Time } // SBQueue - Description of queue Resource. type SBQueue struct { // Queue Properties - Properties *SBQueueProperties `json:"properties,omitempty"` + Properties *SBQueueProperties // 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 geo-location where the resource lives - 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 system meta data relating to this resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SBQueueListResult - The response to the List Queues operation. type SBQueueListResult struct { // Link to the next set of results. Not empty if Value contains incomplete list of queues. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // Result of the List Queues operation. - Value []*SBQueue `json:"value,omitempty"` + Value []*SBQueue } // SBQueueProperties - The Queue Properties definition. type SBQueueProperties struct { // ISO 8061 timeSpan idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes. - AutoDeleteOnIdle *string `json:"autoDeleteOnIdle,omitempty"` + AutoDeleteOnIdle *string // A value that indicates whether this queue has dead letter support when a message expires. - DeadLetteringOnMessageExpiration *bool `json:"deadLetteringOnMessageExpiration,omitempty"` + DeadLetteringOnMessageExpiration *bool // ISO 8601 default message timespan to live value. This is the duration after which the message expires, starting from when // the message is sent to Service Bus. This is the default value used when // TimeToLive is not set on a message itself. - DefaultMessageTimeToLive *string `json:"defaultMessageTimeToLive,omitempty"` + DefaultMessageTimeToLive *string // ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes. - DuplicateDetectionHistoryTimeWindow *string `json:"duplicateDetectionHistoryTimeWindow,omitempty"` + DuplicateDetectionHistoryTimeWindow *string // Value that indicates whether server-side batched operations are enabled. - EnableBatchedOperations *bool `json:"enableBatchedOperations,omitempty"` + EnableBatchedOperations *bool // A value that indicates whether Express Entities are enabled. An express queue holds a message in memory temporarily before // writing it to persistent storage. - EnableExpress *bool `json:"enableExpress,omitempty"` + EnableExpress *bool // A value that indicates whether the queue is to be partitioned across multiple message brokers. - EnablePartitioning *bool `json:"enablePartitioning,omitempty"` + EnablePartitioning *bool // Queue/Topic name to forward the Dead Letter message - ForwardDeadLetteredMessagesTo *string `json:"forwardDeadLetteredMessagesTo,omitempty"` + ForwardDeadLetteredMessagesTo *string // Queue/Topic name to forward the messages - ForwardTo *string `json:"forwardTo,omitempty"` + ForwardTo *string // ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. // The maximum value for LockDuration is 5 minutes; the default value is 1 minute. - LockDuration *string `json:"lockDuration,omitempty"` + LockDuration *string // The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10. - MaxDeliveryCount *int32 `json:"maxDeliveryCount,omitempty"` + MaxDeliveryCount *int32 // Maximum size (in KB) of the message payload that can be accepted by the queue. This property is only used in Premium today // and default is 1024. - MaxMessageSizeInKilobytes *int64 `json:"maxMessageSizeInKilobytes,omitempty"` + MaxMessageSizeInKilobytes *int64 // The maximum size of the queue in megabytes, which is the size of memory allocated for the queue. Default is 1024. - MaxSizeInMegabytes *int32 `json:"maxSizeInMegabytes,omitempty"` + MaxSizeInMegabytes *int32 // A value indicating if this queue requires duplicate detection. - RequiresDuplicateDetection *bool `json:"requiresDuplicateDetection,omitempty"` + RequiresDuplicateDetection *bool // A value that indicates whether the queue supports the concept of sessions. - RequiresSession *bool `json:"requiresSession,omitempty"` + RequiresSession *bool // Enumerates the possible values for the status of a messaging entity. - Status *EntityStatus `json:"status,omitempty"` + Status *EntityStatus // READ-ONLY; Last time a message was sent, or the last time there was a receive request to this queue. - AccessedAt *time.Time `json:"accessedAt,omitempty" azure:"ro"` + AccessedAt *time.Time // READ-ONLY; Message Count Details. - CountDetails *MessageCountDetails `json:"countDetails,omitempty" azure:"ro"` + CountDetails *MessageCountDetails // READ-ONLY; The exact time the message was created. - CreatedAt *time.Time `json:"createdAt,omitempty" azure:"ro"` + CreatedAt *time.Time // READ-ONLY; The number of messages in the queue. - MessageCount *int64 `json:"messageCount,omitempty" azure:"ro"` + MessageCount *int64 // READ-ONLY; The size of the queue, in bytes. - SizeInBytes *int64 `json:"sizeInBytes,omitempty" azure:"ro"` + SizeInBytes *int64 // READ-ONLY; The exact time the message was updated. - UpdatedAt *time.Time `json:"updatedAt,omitempty" azure:"ro"` + UpdatedAt *time.Time } // SBSKU - SKU of the namespace. type SBSKU struct { // REQUIRED; Name of this SKU. - Name *SKUName `json:"name,omitempty"` + Name *SKUName // The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4. - Capacity *int32 `json:"capacity,omitempty"` + Capacity *int32 // The billing tier of this particular SKU. - Tier *SKUTier `json:"tier,omitempty"` + Tier *SKUTier } // SBSubscription - Description of subscription resource. type SBSubscription struct { // Properties of subscriptions resource. - Properties *SBSubscriptionProperties `json:"properties,omitempty"` + Properties *SBSubscriptionProperties // 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 geo-location where the resource lives - 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 system meta data relating to this resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SBSubscriptionListResult - The response to the List Subscriptions operation. type SBSubscriptionListResult struct { // Link to the next set of results. Not empty if Value contains incomplete list of subscriptions. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // Result of the List Subscriptions operation. - Value []*SBSubscription `json:"value,omitempty"` + Value []*SBSubscription } // SBSubscriptionProperties - Description of Subscription Resource. type SBSubscriptionProperties struct { // ISO 8061 timeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes. - AutoDeleteOnIdle *string `json:"autoDeleteOnIdle,omitempty"` + AutoDeleteOnIdle *string // Properties specific to client affine subscriptions. - ClientAffineProperties *SBClientAffineProperties `json:"clientAffineProperties,omitempty"` + ClientAffineProperties *SBClientAffineProperties // Value that indicates whether a subscription has dead letter support on filter evaluation exceptions. - DeadLetteringOnFilterEvaluationExceptions *bool `json:"deadLetteringOnFilterEvaluationExceptions,omitempty"` + DeadLetteringOnFilterEvaluationExceptions *bool // Value that indicates whether a subscription has dead letter support when a message expires. - DeadLetteringOnMessageExpiration *bool `json:"deadLetteringOnMessageExpiration,omitempty"` + DeadLetteringOnMessageExpiration *bool // ISO 8061 Default message timespan to live value. This is the duration after which the message expires, starting from when // the message is sent to Service Bus. This is the default value used when // TimeToLive is not set on a message itself. - DefaultMessageTimeToLive *string `json:"defaultMessageTimeToLive,omitempty"` + DefaultMessageTimeToLive *string // ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes. - DuplicateDetectionHistoryTimeWindow *string `json:"duplicateDetectionHistoryTimeWindow,omitempty"` + DuplicateDetectionHistoryTimeWindow *string // Value that indicates whether server-side batched operations are enabled. - EnableBatchedOperations *bool `json:"enableBatchedOperations,omitempty"` + EnableBatchedOperations *bool // Queue/Topic name to forward the Dead Letter message - ForwardDeadLetteredMessagesTo *string `json:"forwardDeadLetteredMessagesTo,omitempty"` + ForwardDeadLetteredMessagesTo *string // Queue/Topic name to forward the messages - ForwardTo *string `json:"forwardTo,omitempty"` + ForwardTo *string // Value that indicates whether the subscription has an affinity to the client id. - IsClientAffine *bool `json:"isClientAffine,omitempty"` + IsClientAffine *bool // ISO 8061 lock duration timespan for the subscription. The default value is 1 minute. - LockDuration *string `json:"lockDuration,omitempty"` + LockDuration *string // Number of maximum deliveries. - MaxDeliveryCount *int32 `json:"maxDeliveryCount,omitempty"` + MaxDeliveryCount *int32 // Value indicating if a subscription supports the concept of sessions. - RequiresSession *bool `json:"requiresSession,omitempty"` + RequiresSession *bool // Enumerates the possible values for the status of a messaging entity. - Status *EntityStatus `json:"status,omitempty"` + Status *EntityStatus // READ-ONLY; Last time there was a receive request to this subscription. - AccessedAt *time.Time `json:"accessedAt,omitempty" azure:"ro"` + AccessedAt *time.Time // READ-ONLY; Message count details - CountDetails *MessageCountDetails `json:"countDetails,omitempty" azure:"ro"` + CountDetails *MessageCountDetails // READ-ONLY; Exact time the message was created. - CreatedAt *time.Time `json:"createdAt,omitempty" azure:"ro"` + CreatedAt *time.Time // READ-ONLY; Number of messages. - MessageCount *int64 `json:"messageCount,omitempty" azure:"ro"` + MessageCount *int64 // READ-ONLY; The exact time the message was updated. - UpdatedAt *time.Time `json:"updatedAt,omitempty" azure:"ro"` + UpdatedAt *time.Time } // SBTopic - Description of topic resource. type SBTopic struct { // Properties of topic resource. - Properties *SBTopicProperties `json:"properties,omitempty"` + Properties *SBTopicProperties // 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 geo-location where the resource lives - 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 system meta data relating to this resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SBTopicListResult - The response to the List Topics operation. type SBTopicListResult struct { // Link to the next set of results. Not empty if Value contains incomplete list of topics. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // Result of the List Topics operation. - Value []*SBTopic `json:"value,omitempty"` + Value []*SBTopic } // SBTopicProperties - The Topic Properties definition. type SBTopicProperties struct { // ISO 8601 timespan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes. - AutoDeleteOnIdle *string `json:"autoDeleteOnIdle,omitempty"` + AutoDeleteOnIdle *string // ISO 8601 Default message timespan to live value. This is the duration after which the message expires, starting from when // the message is sent to Service Bus. This is the default value used when // TimeToLive is not set on a message itself. - DefaultMessageTimeToLive *string `json:"defaultMessageTimeToLive,omitempty"` + DefaultMessageTimeToLive *string // ISO8601 timespan structure that defines the duration of the duplicate detection history. The default value is 10 minutes. - DuplicateDetectionHistoryTimeWindow *string `json:"duplicateDetectionHistoryTimeWindow,omitempty"` + DuplicateDetectionHistoryTimeWindow *string // Value that indicates whether server-side batched operations are enabled. - EnableBatchedOperations *bool `json:"enableBatchedOperations,omitempty"` + EnableBatchedOperations *bool // Value that indicates whether Express Entities are enabled. An express topic holds a message in memory temporarily before // writing it to persistent storage. - EnableExpress *bool `json:"enableExpress,omitempty"` + EnableExpress *bool // Value that indicates whether the topic to be partitioned across multiple message brokers is enabled. - EnablePartitioning *bool `json:"enablePartitioning,omitempty"` + EnablePartitioning *bool // Maximum size (in KB) of the message payload that can be accepted by the topic. This property is only used in Premium today // and default is 1024. - MaxMessageSizeInKilobytes *int64 `json:"maxMessageSizeInKilobytes,omitempty"` + MaxMessageSizeInKilobytes *int64 // Maximum size of the topic in megabytes, which is the size of the memory allocated for the topic. Default is 1024. - MaxSizeInMegabytes *int32 `json:"maxSizeInMegabytes,omitempty"` + MaxSizeInMegabytes *int32 // Value indicating if this topic requires duplicate detection. - RequiresDuplicateDetection *bool `json:"requiresDuplicateDetection,omitempty"` + RequiresDuplicateDetection *bool // Enumerates the possible values for the status of a messaging entity. - Status *EntityStatus `json:"status,omitempty"` + Status *EntityStatus // Value that indicates whether the topic supports ordering. - SupportOrdering *bool `json:"supportOrdering,omitempty"` + SupportOrdering *bool // READ-ONLY; Last time the message was sent, or a request was received, for this topic. - AccessedAt *time.Time `json:"accessedAt,omitempty" azure:"ro"` + AccessedAt *time.Time // READ-ONLY; Message count details - CountDetails *MessageCountDetails `json:"countDetails,omitempty" azure:"ro"` + CountDetails *MessageCountDetails // READ-ONLY; Exact time the message was created. - CreatedAt *time.Time `json:"createdAt,omitempty" azure:"ro"` + CreatedAt *time.Time // READ-ONLY; Size of the topic, in bytes. - SizeInBytes *int64 `json:"sizeInBytes,omitempty" azure:"ro"` + SizeInBytes *int64 // READ-ONLY; Number of subscriptions. - SubscriptionCount *int32 `json:"subscriptionCount,omitempty" azure:"ro"` + SubscriptionCount *int32 // READ-ONLY; The exact time the message was updated. - UpdatedAt *time.Time `json:"updatedAt,omitempty" azure:"ro"` + UpdatedAt *time.Time } // SQLFilter - Represents a filter which is a composition of an expression and an action that is executed in the pub/sub pipeline. type SQLFilter struct { // This property is reserved for future use. An integer value showing the compatibility level, currently hard-coded to 20. - CompatibilityLevel *int32 `json:"compatibilityLevel,omitempty"` + CompatibilityLevel *int32 // Value that indicates whether the rule action requires preprocessing. - RequiresPreprocessing *bool `json:"requiresPreprocessing,omitempty"` + RequiresPreprocessing *bool // The SQL expression. e.g. MyProperty='ABC' - SQLExpression *string `json:"sqlExpression,omitempty"` + SQLExpression *string } // SQLRuleAction - Represents set of actions written in SQL language-based syntax that is performed against a ServiceBus.Messaging.BrokeredMessage type SQLRuleAction struct { // This property is reserved for future use. An integer value showing the compatibility level, currently hard-coded to 20. - CompatibilityLevel *int32 `json:"compatibilityLevel,omitempty"` + CompatibilityLevel *int32 // Value that indicates whether the rule action requires preprocessing. - RequiresPreprocessing *bool `json:"requiresPreprocessing,omitempty"` + RequiresPreprocessing *bool // SQL expression. e.g. MyProperty='ABC' - SQLExpression *string `json:"sqlExpression,omitempty"` + SQLExpression *string } // Subnet - Properties supplied for Subnet type Subnet struct { // REQUIRED; Resource ID of Virtual Network Subnet - ID *string `json:"id,omitempty"` + ID *string } // SubscriptionsClientCreateOrUpdateOptions contains the optional parameters for the SubscriptionsClient.CreateOrUpdate method. @@ -1448,22 +1448,22 @@ type SubscriptionsClientListByTopicOptions 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 type of identity that last modified the resource. - 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 } // TopicsClientCreateOrUpdateAuthorizationRuleOptions contains the optional parameters for the TopicsClient.CreateOrUpdateAuthorizationRule @@ -1527,31 +1527,31 @@ type TopicsClientRegenerateKeysOptions struct { // TrackedResource - The Resource definition. 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; 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 } // UserAssignedIdentity - Recognized Dictionary value. type UserAssignedIdentity struct { // READ-ONLY; Client Id of user assigned identity - ClientID *string `json:"clientId,omitempty" azure:"ro"` + ClientID *string // READ-ONLY; Principal Id of user assigned identity - PrincipalID *string `json:"principalId,omitempty" azure:"ro"` + PrincipalID *string } type UserAssignedIdentityProperties struct { // ARM ID of user Identity selected for encryption - UserAssignedIdentity *string `json:"userAssignedIdentity,omitempty"` + UserAssignedIdentity *string } diff --git a/sdk/resourcemanager/servicebus/armservicebus/models_serde.go b/sdk/resourcemanager/servicebus/armservicebus/models_serde.go index e03819292acf..f02d1fded5e6 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/models_serde.go +++ b/sdk/resourcemanager/servicebus/armservicebus/models_serde.go @@ -417,7 +417,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) } @@ -1001,7 +1001,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) } @@ -2857,6 +2857,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/servicefabricmesh/armservicefabricmesh/CHANGELOG.md b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/CHANGELOG.md index b4093ec4a1cd..e08676683a39 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/CHANGELOG.md +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/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-03-31) ### Features Added diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/autorest.md b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/autorest.md index a13f7de3b6be..7134bdba15ac 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/autorest.md +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/servicefabricmesh/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/servicefabricmesh/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/servicefabricmesh/armservicefabricmesh/constants.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/constants.go index 8f632309ef3b..cee360e7d8f8 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/constants.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/constants.go @@ -11,7 +11,7 @@ package armservicefabricmesh const ( moduleName = "armservicefabricmesh" - moduleVersion = "v0.6.0" + moduleVersion = "v0.6.1" ) // ApplicationScopedVolumeKind - Specifies the application-scoped volume kind. diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/models.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/models.go index c49de42e13d9..07c11dacca6f 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/models.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/models.go @@ -15,16 +15,16 @@ import "time" // or container groups). type AddRemoveReplicaScalingMechanism struct { // REQUIRED; The type of auto scaling mechanism. - Kind *AutoScalingMechanismKind `json:"kind,omitempty"` + Kind *AutoScalingMechanismKind // REQUIRED; Maximum number of containers (scale up won't be performed above this number). - MaxCount *int32 `json:"maxCount,omitempty"` + MaxCount *int32 // REQUIRED; Minimum number of containers (scale down won't be performed below this number). - MinCount *int32 `json:"minCount,omitempty"` + MinCount *int32 // REQUIRED; Each time auto scaling is performed, this number of containers will be added or removed. - ScaleIncrement *int32 `json:"scaleIncrement,omitempty"` + ScaleIncrement *int32 } // GetAutoScalingMechanism implements the AutoScalingMechanismClassification interface for type AddRemoveReplicaScalingMechanism. @@ -64,115 +64,115 @@ type ApplicationClientListBySubscriptionOptions struct { // ApplicationProperties - Describes properties of a application resource. type ApplicationProperties struct { // Internal - used by Visual Studio to setup the debugging session on the local development environment. - DebugParams *string `json:"debugParams,omitempty"` + DebugParams *string // User readable description of the application. - Description *string `json:"description,omitempty"` + Description *string // Describes the diagnostics definition and usage for an application resource. - Diagnostics *DiagnosticsDescription `json:"diagnostics,omitempty"` + Diagnostics *DiagnosticsDescription // Describes the services in the application. This property is used to create or modify services of the application. On get // only the name of the service is returned. The service description can be // obtained by querying for the service resource. - Services []*ServiceResourceDescription `json:"services,omitempty"` + Services []*ServiceResourceDescription // READ-ONLY; Describes the health state of an application resource. - HealthState *HealthState `json:"healthState,omitempty" azure:"ro"` + HealthState *HealthState // READ-ONLY; Names of the services in the application. - ServiceNames []*string `json:"serviceNames,omitempty" azure:"ro"` + ServiceNames []*string // READ-ONLY; Status of the application. - Status *ResourceStatus `json:"status,omitempty" azure:"ro"` + Status *ResourceStatus // READ-ONLY; Gives additional information about the current status of the application. - StatusDetails *string `json:"statusDetails,omitempty" azure:"ro"` + StatusDetails *string // READ-ONLY; When the application's health state is not 'Ok', this additional details from service fabric Health Manager // for the user to know why the application is marked unhealthy. - UnhealthyEvaluation *string `json:"unhealthyEvaluation,omitempty" azure:"ro"` + UnhealthyEvaluation *string } // ApplicationResourceDescription - This type describes an application resource. type ApplicationResourceDescription struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; This type describes properties of an application resource. - Properties *ApplicationResourceProperties `json:"properties,omitempty"` + Properties *ApplicationResourceProperties // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Fully qualified identifier 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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ApplicationResourceDescriptionList - A pageable list of application resources. type ApplicationResourceDescriptionList struct { // URI to fetch the next page of the list. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // One page of the list. - Value []*ApplicationResourceDescription `json:"value,omitempty"` + Value []*ApplicationResourceDescription } // ApplicationResourceProperties - This type describes properties of an application resource. type ApplicationResourceProperties struct { // Internal - used by Visual Studio to setup the debugging session on the local development environment. - DebugParams *string `json:"debugParams,omitempty"` + DebugParams *string // User readable description of the application. - Description *string `json:"description,omitempty"` + Description *string // Describes the diagnostics definition and usage for an application resource. - Diagnostics *DiagnosticsDescription `json:"diagnostics,omitempty"` + Diagnostics *DiagnosticsDescription // Describes the services in the application. This property is used to create or modify services of the application. On get // only the name of the service is returned. The service description can be // obtained by querying for the service resource. - Services []*ServiceResourceDescription `json:"services,omitempty"` + Services []*ServiceResourceDescription // READ-ONLY; Describes the health state of an application resource. - HealthState *HealthState `json:"healthState,omitempty" azure:"ro"` + HealthState *HealthState // READ-ONLY; State of the resource. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; Names of the services in the application. - ServiceNames []*string `json:"serviceNames,omitempty" azure:"ro"` + ServiceNames []*string // READ-ONLY; Status of the application. - Status *ResourceStatus `json:"status,omitempty" azure:"ro"` + Status *ResourceStatus // READ-ONLY; Gives additional information about the current status of the application. - StatusDetails *string `json:"statusDetails,omitempty" azure:"ro"` + StatusDetails *string // READ-ONLY; When the application's health state is not 'Ok', this additional details from service fabric Health Manager // for the user to know why the application is marked unhealthy. - UnhealthyEvaluation *string `json:"unhealthyEvaluation,omitempty" azure:"ro"` + UnhealthyEvaluation *string } // ApplicationScopedVolume - Describes a volume whose lifetime is scoped to the application's lifetime. type ApplicationScopedVolume struct { // REQUIRED; Describes parameters for creating application-scoped volumes. - CreationParameters ApplicationScopedVolumeCreationParametersClassification `json:"creationParameters,omitempty"` + CreationParameters ApplicationScopedVolumeCreationParametersClassification // REQUIRED; The path within the container at which the volume should be mounted. Only valid path characters are allowed. - DestinationPath *string `json:"destinationPath,omitempty"` + DestinationPath *string // REQUIRED; Name of the volume being referenced. - Name *string `json:"name,omitempty"` + Name *string // The flag indicating whether the volume is read only. Default is 'false'. - ReadOnly *bool `json:"readOnly,omitempty"` + ReadOnly *bool } // ApplicationScopedVolumeCreationParametersClassification provides polymorphic access to related types. @@ -187,10 +187,10 @@ type ApplicationScopedVolumeCreationParametersClassification interface { // ApplicationScopedVolumeCreationParameters - Describes parameters for creating application-scoped volumes. type ApplicationScopedVolumeCreationParameters struct { // REQUIRED; Specifies the application-scoped volume kind. - Kind *ApplicationScopedVolumeKind `json:"kind,omitempty"` + Kind *ApplicationScopedVolumeKind // User readable description of the volume. - Description *string `json:"description,omitempty"` + Description *string } // GetApplicationScopedVolumeCreationParameters implements the ApplicationScopedVolumeCreationParametersClassification interface @@ -203,13 +203,13 @@ func (a *ApplicationScopedVolumeCreationParameters) GetApplicationScopedVolumeCr // volumes provided by Service Fabric Volume Disks type ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk struct { // REQUIRED; Specifies the application-scoped volume kind. - Kind *ApplicationScopedVolumeKind `json:"kind,omitempty"` + Kind *ApplicationScopedVolumeKind // REQUIRED; Volume size - SizeDisk *SizeTypes `json:"sizeDisk,omitempty"` + SizeDisk *SizeTypes // User readable description of the volume. - Description *string `json:"description,omitempty"` + Description *string } // GetApplicationScopedVolumeCreationParameters implements the ApplicationScopedVolumeCreationParametersClassification interface @@ -234,7 +234,7 @@ type AutoScalingMechanismClassification interface { // actual mechanism. type AutoScalingMechanism struct { // REQUIRED; The type of auto scaling mechanism. - Kind *AutoScalingMechanismKind `json:"kind,omitempty"` + Kind *AutoScalingMechanismKind } // GetAutoScalingMechanism implements the AutoScalingMechanismClassification interface for type AutoScalingMechanism. @@ -253,7 +253,7 @@ type AutoScalingMetricClassification interface { // resources or metrics. type AutoScalingMetric struct { // REQUIRED; The type of auto scaling metric - Kind *AutoScalingMetricKind `json:"kind,omitempty"` + Kind *AutoScalingMetricKind } // GetAutoScalingMetric implements the AutoScalingMetricClassification interface for type AutoScalingMetric. @@ -262,22 +262,22 @@ func (a *AutoScalingMetric) GetAutoScalingMetric() *AutoScalingMetric { return a // AutoScalingPolicy - Describes the auto scaling policy type AutoScalingPolicy struct { // REQUIRED; The mechanism that is used to scale when auto scaling operation is invoked. - Mechanism AutoScalingMechanismClassification `json:"mechanism,omitempty"` + Mechanism AutoScalingMechanismClassification // REQUIRED; The name of the auto scaling policy. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Determines when auto scaling operation will be invoked. - Trigger AutoScalingTriggerClassification `json:"trigger,omitempty"` + Trigger AutoScalingTriggerClassification } // AutoScalingResourceMetric - Describes the resource that is used for triggering auto scaling. type AutoScalingResourceMetric struct { // REQUIRED; The type of auto scaling metric - Kind *AutoScalingMetricKind `json:"kind,omitempty"` + Kind *AutoScalingMetricKind // REQUIRED; Name of the resource. - Name *AutoScalingResourceMetricName `json:"name,omitempty"` + Name *AutoScalingResourceMetricName } // GetAutoScalingMetric implements the AutoScalingMetricClassification interface for type AutoScalingResourceMetric. @@ -299,7 +299,7 @@ type AutoScalingTriggerClassification interface { // AutoScalingTrigger - Describes the trigger for performing auto scaling operation. type AutoScalingTrigger struct { // REQUIRED; The type of auto scaling trigger - Kind *AutoScalingTriggerKind `json:"kind,omitempty"` + Kind *AutoScalingTriggerKind } // GetAutoScalingTrigger implements the AutoScalingTriggerClassification interface for type AutoScalingTrigger. @@ -308,34 +308,34 @@ func (a *AutoScalingTrigger) GetAutoScalingTrigger() *AutoScalingTrigger { retur // AvailableOperationDisplay - An operation available at the listed Azure resource provider. type AvailableOperationDisplay struct { // Description of the available operation. - Description *string `json:"description,omitempty"` + Description *string // Name of the available operation. - Operation *string `json:"operation,omitempty"` + Operation *string // Name of the operation provider. - Provider *string `json:"provider,omitempty"` + Provider *string // Name of the resource on which the operation is available. - Resource *string `json:"resource,omitempty"` + Resource *string } // AverageLoadScalingTrigger - Describes the average load trigger used for auto scaling. type AverageLoadScalingTrigger struct { // REQUIRED; The type of auto scaling trigger - Kind *AutoScalingTriggerKind `json:"kind,omitempty"` + Kind *AutoScalingTriggerKind // REQUIRED; Lower load threshold (if average load is below this threshold, service will scale down). - LowerLoadThreshold *float64 `json:"lowerLoadThreshold,omitempty"` + LowerLoadThreshold *float64 // REQUIRED; Description of the metric that is used for scaling. - Metric AutoScalingMetricClassification `json:"metric,omitempty"` + Metric AutoScalingMetricClassification // REQUIRED; Scale interval that indicates how often will this trigger be checked. - ScaleIntervalInSeconds *int32 `json:"scaleIntervalInSeconds,omitempty"` + ScaleIntervalInSeconds *int32 // REQUIRED; Upper load threshold (if average load is above this threshold, service will scale up). - UpperLoadThreshold *float64 `json:"upperLoadThreshold,omitempty"` + UpperLoadThreshold *float64 } // GetAutoScalingTrigger implements the AutoScalingTriggerClassification interface for type AverageLoadScalingTrigger. @@ -348,28 +348,28 @@ func (a *AverageLoadScalingTrigger) GetAutoScalingTrigger() *AutoScalingTrigger // AzureInternalMonitoringPipelineSinkDescription - Diagnostics settings for Geneva. type AzureInternalMonitoringPipelineSinkDescription struct { // REQUIRED; The kind of DiagnosticsSink. - Kind *DiagnosticsSinkKind `json:"kind,omitempty"` + Kind *DiagnosticsSinkKind // Azure Internal monitoring pipeline account. - AccountName *string `json:"accountName,omitempty"` + AccountName *string // Azure Internal monitoring pipeline autokey associated with the certificate. - AutoKeyConfigURL *string `json:"autoKeyConfigUrl,omitempty"` + AutoKeyConfigURL *string // A description of the sink. - Description *string `json:"description,omitempty"` + Description *string // Azure Internal monitoring agent fluentd configuration. - FluentdConfigURL any `json:"fluentdConfigUrl,omitempty"` + FluentdConfigURL any // Azure Internal monitoring agent configuration. - MaConfigURL *string `json:"maConfigUrl,omitempty"` + MaConfigURL *string // Name of the sink. This value is referenced by DiagnosticsReferenceDescription - Name *string `json:"name,omitempty"` + Name *string // Azure Internal monitoring pipeline account namespace. - Namespace *string `json:"namespace,omitempty"` + Namespace *string } // GetDiagnosticsSinkProperties implements the DiagnosticsSinkPropertiesClassification interface for type AzureInternalMonitoringPipelineSinkDescription. @@ -390,142 +390,142 @@ type CodePackageClientGetContainerLogsOptions struct { // ContainerCodePackageProperties - Describes a container and its runtime properties. type ContainerCodePackageProperties struct { // REQUIRED; The Container image to use. - Image *string `json:"image,omitempty"` + Image *string // REQUIRED; The name of the code package. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; The resources required by this container. - Resources *ResourceRequirements `json:"resources,omitempty"` + Resources *ResourceRequirements // Command array to execute within the container in exec form. - Commands []*string `json:"commands,omitempty"` + Commands []*string // Reference to sinks in DiagnosticsDescription. - Diagnostics *DiagnosticsRef `json:"diagnostics,omitempty"` + Diagnostics *DiagnosticsRef // The endpoints exposed by this container. - Endpoints []*EndpointProperties `json:"endpoints,omitempty"` + Endpoints []*EndpointProperties // Override for the default entry point in the container. - Entrypoint *string `json:"entrypoint,omitempty"` + Entrypoint *string // The environment variables to set in this container - EnvironmentVariables []*EnvironmentVariable `json:"environmentVariables,omitempty"` + EnvironmentVariables []*EnvironmentVariable // Image registry credential. - ImageRegistryCredential *ImageRegistryCredential `json:"imageRegistryCredential,omitempty"` + ImageRegistryCredential *ImageRegistryCredential // The labels to set in this container. - Labels []*ContainerLabel `json:"labels,omitempty"` + Labels []*ContainerLabel // A list of ReliableCollection resources used by this particular code package. Please refer to ReliableCollectionsRef for // more details. - ReliableCollectionsRefs []*ReliableCollectionsRef `json:"reliableCollectionsRefs,omitempty"` + ReliableCollectionsRefs []*ReliableCollectionsRef // The settings to set in this container. The setting file path can be fetched from environment variable "Fabric_SettingPath". // The path for Windows container is "C:\secrets". The path for Linux container // is "/var/secrets". - Settings []*Setting `json:"settings,omitempty"` + Settings []*Setting // Volumes to be attached to the container. The lifetime of these volumes is independent of the application's lifetime. - VolumeRefs []*VolumeReference `json:"volumeRefs,omitempty"` + VolumeRefs []*VolumeReference // Volumes to be attached to the container. The lifetime of these volumes is scoped to the application's lifetime. - Volumes []*ApplicationScopedVolume `json:"volumes,omitempty"` + Volumes []*ApplicationScopedVolume // READ-ONLY; Runtime information of a container instance. - InstanceView *ContainerInstanceView `json:"instanceView,omitempty" azure:"ro"` + InstanceView *ContainerInstanceView } // ContainerEvent - A container event. type ContainerEvent struct { // The count of the event. - Count *int32 `json:"count,omitempty"` + Count *int32 // Date/time of the first event. - FirstTimestamp *string `json:"firstTimestamp,omitempty"` + FirstTimestamp *string // Date/time of the last event. - LastTimestamp *string `json:"lastTimestamp,omitempty"` + LastTimestamp *string // The event message - Message *string `json:"message,omitempty"` + Message *string // The name of the container event. - Name *string `json:"name,omitempty"` + Name *string // The event type. - Type *string `json:"type,omitempty"` + Type *string } // ContainerInstanceView - Runtime information of a container instance. type ContainerInstanceView struct { // Current container instance state. - CurrentState *ContainerState `json:"currentState,omitempty"` + CurrentState *ContainerState // The events of this container instance. - Events []*ContainerEvent `json:"events,omitempty"` + Events []*ContainerEvent // Previous container instance state. - PreviousState *ContainerState `json:"previousState,omitempty"` + PreviousState *ContainerState // The number of times the container has been restarted. - RestartCount *int32 `json:"restartCount,omitempty"` + RestartCount *int32 } // ContainerLabel - Describes a container label. type ContainerLabel struct { // REQUIRED; The name of the container label. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; The value of the container label. - Value *string `json:"value,omitempty"` + Value *string } // ContainerLogs - Container logs. type ContainerLogs struct { // Container logs. - Content *string `json:"content,omitempty"` + Content *string } // ContainerState - The container state. type ContainerState struct { // Human-readable status of this state. - DetailStatus *string `json:"detailStatus,omitempty"` + DetailStatus *string // The container exit code. - ExitCode *string `json:"exitCode,omitempty"` + ExitCode *string // Date/time when the container state finished. - FinishTime *time.Time `json:"finishTime,omitempty"` + FinishTime *time.Time // Date/time when the container state started. - StartTime *time.Time `json:"startTime,omitempty"` + StartTime *time.Time // The state of this container - State *string `json:"state,omitempty"` + State *string } // DiagnosticsDescription - Describes the diagnostics options available type DiagnosticsDescription struct { // The sinks to be used if diagnostics is enabled. Sink choices can be overridden at the service and code package level. - DefaultSinkRefs []*string `json:"defaultSinkRefs,omitempty"` + DefaultSinkRefs []*string // Status of whether or not sinks are enabled. - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool // List of supported sinks that can be referenced. - Sinks []DiagnosticsSinkPropertiesClassification `json:"sinks,omitempty"` + Sinks []DiagnosticsSinkPropertiesClassification } // DiagnosticsRef - Reference to sinks in DiagnosticsDescription. type DiagnosticsRef struct { // Status of whether or not sinks are enabled. - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool // List of sinks to be used if enabled. References the list of sinks in DiagnosticsDescription. - SinkRefs []*string `json:"sinkRefs,omitempty"` + SinkRefs []*string } // DiagnosticsSinkPropertiesClassification provides polymorphic access to related types. @@ -540,13 +540,13 @@ type DiagnosticsSinkPropertiesClassification interface { // DiagnosticsSinkProperties - Properties of a DiagnosticsSink. type DiagnosticsSinkProperties struct { // REQUIRED; The kind of DiagnosticsSink. - Kind *DiagnosticsSinkKind `json:"kind,omitempty"` + Kind *DiagnosticsSinkKind // A description of the sink. - Description *string `json:"description,omitempty"` + Description *string // Name of the sink. This value is referenced by DiagnosticsReferenceDescription - Name *string `json:"name,omitempty"` + Name *string } // GetDiagnosticsSinkProperties implements the DiagnosticsSinkPropertiesClassification interface for type DiagnosticsSinkProperties. @@ -557,53 +557,53 @@ func (d *DiagnosticsSinkProperties) GetDiagnosticsSinkProperties() *DiagnosticsS // EndpointProperties - Describes a container endpoint. type EndpointProperties struct { // REQUIRED; The name of the endpoint. - Name *string `json:"name,omitempty"` + Name *string // Port used by the container. - Port *int32 `json:"port,omitempty"` + Port *int32 } // EndpointRef - Describes a reference to a service endpoint. type EndpointRef struct { // Name of the endpoint. - Name *string `json:"name,omitempty"` + Name *string } // EnvironmentVariable - Describes an environment variable for the container. type EnvironmentVariable struct { // 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 } // ErrorDetailsModel - Error model details information type ErrorDetailsModel struct { // REQUIRED - Code *string `json:"code,omitempty"` + Code *string // REQUIRED; Error message. - Message *string `json:"message,omitempty"` + Message *string } // ErrorErrorModel - Error model information type ErrorErrorModel struct { // REQUIRED - Code *string `json:"code,omitempty"` + Code *string // List of error message details. - Details []*ErrorDetailsModel `json:"details,omitempty"` - InnerError *string `json:"innerError,omitempty"` + Details []*ErrorDetailsModel + InnerError *string // Error message. - Message *string `json:"message,omitempty"` + Message *string } // ErrorModel - The error details. type ErrorModel struct { // REQUIRED; Error model information - Error *ErrorErrorModel `json:"error,omitempty"` + Error *ErrorErrorModel } // GatewayClientCreateOptions contains the optional parameters for the GatewayClient.Create method. @@ -636,180 +636,180 @@ type GatewayClientListBySubscriptionOptions struct { // GatewayDestination - Describes destination endpoint for routing traffic. type GatewayDestination struct { // REQUIRED; Name of the service fabric Mesh application. - ApplicationName *string `json:"applicationName,omitempty"` + ApplicationName *string // REQUIRED; name of the endpoint in the service. - EndpointName *string `json:"endpointName,omitempty"` + EndpointName *string // REQUIRED; service that contains the endpoint. - ServiceName *string `json:"serviceName,omitempty"` + ServiceName *string } // GatewayProperties - Describes properties of a gateway resource. type GatewayProperties struct { // REQUIRED; Network that the Application is using. - DestinationNetwork *NetworkRef `json:"destinationNetwork,omitempty"` + DestinationNetwork *NetworkRef // REQUIRED; Network the gateway should listen on for requests. - SourceNetwork *NetworkRef `json:"sourceNetwork,omitempty"` + SourceNetwork *NetworkRef // User readable description of the gateway. - Description *string `json:"description,omitempty"` + Description *string // Configuration for http connectivity for this gateway. - HTTP []*HTTPConfig `json:"http,omitempty"` + HTTP []*HTTPConfig // Configuration for tcp connectivity for this gateway. - TCP []*TCPConfig `json:"tcp,omitempty"` + TCP []*TCPConfig // READ-ONLY; IP address of the gateway. This is populated in the response and is ignored for incoming requests. - IPAddress *string `json:"ipAddress,omitempty" azure:"ro"` + IPAddress *string // READ-ONLY; Status of the resource. - Status *ResourceStatus `json:"status,omitempty" azure:"ro"` + Status *ResourceStatus // READ-ONLY; Gives additional information about the current status of the gateway. - StatusDetails *string `json:"statusDetails,omitempty" azure:"ro"` + StatusDetails *string } // GatewayResourceDescription - This type describes a gateway resource. type GatewayResourceDescription struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; This type describes properties of a gateway resource. - Properties *GatewayResourceProperties `json:"properties,omitempty"` + Properties *GatewayResourceProperties // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Fully qualified identifier 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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GatewayResourceDescriptionList - A pageable list of gateway resources. type GatewayResourceDescriptionList struct { // URI to fetch the next page of the list. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // One page of the list. - Value []*GatewayResourceDescription `json:"value,omitempty"` + Value []*GatewayResourceDescription } // GatewayResourceProperties - This type describes properties of a gateway resource. type GatewayResourceProperties struct { // REQUIRED; Network that the Application is using. - DestinationNetwork *NetworkRef `json:"destinationNetwork,omitempty"` + DestinationNetwork *NetworkRef // REQUIRED; Network the gateway should listen on for requests. - SourceNetwork *NetworkRef `json:"sourceNetwork,omitempty"` + SourceNetwork *NetworkRef // User readable description of the gateway. - Description *string `json:"description,omitempty"` + Description *string // Configuration for http connectivity for this gateway. - HTTP []*HTTPConfig `json:"http,omitempty"` + HTTP []*HTTPConfig // Configuration for tcp connectivity for this gateway. - TCP []*TCPConfig `json:"tcp,omitempty"` + TCP []*TCPConfig // READ-ONLY; IP address of the gateway. This is populated in the response and is ignored for incoming requests. - IPAddress *string `json:"ipAddress,omitempty" azure:"ro"` + IPAddress *string // READ-ONLY; State of the resource. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; Status of the resource. - Status *ResourceStatus `json:"status,omitempty" azure:"ro"` + Status *ResourceStatus // READ-ONLY; Gives additional information about the current status of the gateway. - StatusDetails *string `json:"statusDetails,omitempty" azure:"ro"` + StatusDetails *string } // HTTPConfig - Describes the http configuration for external connectivity for this network. type HTTPConfig struct { // REQUIRED; description for routing. - Hosts []*HTTPHostConfig `json:"hosts,omitempty"` + Hosts []*HTTPHostConfig // REQUIRED; http gateway config name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Specifies the port at which the service endpoint below needs to be exposed. - Port *int32 `json:"port,omitempty"` + Port *int32 } // HTTPHostConfig - Describes the hostname properties for http routing. type HTTPHostConfig struct { // REQUIRED; http hostname config name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Route information to use for routing. Routes are processed in the order they are specified. Specify routes that // are more specific before routes that can handle general cases. - Routes []*HTTPRouteConfig `json:"routes,omitempty"` + Routes []*HTTPRouteConfig } // HTTPRouteConfig - Describes the hostname properties for http routing. type HTTPRouteConfig struct { // REQUIRED; Describes destination endpoint for routing traffic. - Destination *GatewayDestination `json:"destination,omitempty"` + Destination *GatewayDestination // REQUIRED; Describes a rule for http route matching. - Match *HTTPRouteMatchRule `json:"match,omitempty"` + Match *HTTPRouteMatchRule // REQUIRED; http route name. - Name *string `json:"name,omitempty"` + Name *string } // HTTPRouteMatchHeader - Describes header information for http route matching. type HTTPRouteMatchHeader struct { // REQUIRED; Name of header to match in request. - Name *string `json:"name,omitempty"` + Name *string // how to match header value - Type *HeaderMatchType `json:"type,omitempty"` + Type *HeaderMatchType // Value of header to match in request. - Value *string `json:"value,omitempty"` + Value *string } // HTTPRouteMatchPath - Path to match for routing. type HTTPRouteMatchPath struct { // REQUIRED; how to match value in the Uri - Type *PathMatchType `json:"type,omitempty"` + Type *PathMatchType // REQUIRED; Uri path to match for request. - Value *string `json:"value,omitempty"` + Value *string // replacement string for matched part of the Uri. - Rewrite *string `json:"rewrite,omitempty"` + Rewrite *string } // HTTPRouteMatchRule - Describes a rule for http route matching. type HTTPRouteMatchRule struct { // REQUIRED; Path to match for routing. - Path *HTTPRouteMatchPath `json:"path,omitempty"` + Path *HTTPRouteMatchPath // headers and their values to match in request. - Headers []*HTTPRouteMatchHeader `json:"headers,omitempty"` + Headers []*HTTPRouteMatchHeader } // ImageRegistryCredential - Image registry credential. type ImageRegistryCredential struct { // REQUIRED; Docker image registry server, without protocol such as http and https. - Server *string `json:"server,omitempty"` + Server *string // REQUIRED; The username for the private registry. - Username *string `json:"username,omitempty"` + Username *string // The password for the private registry. The password is required for create or update operations, however it is not returned // in the get or list operations. - Password *string `json:"password,omitempty"` + Password *string } // InlinedValueSecretResourceProperties - Describes the properties of a secret resource whose value is provided explicitly @@ -817,23 +817,23 @@ type ImageRegistryCredential struct { // version is stored encrypted, and delivered as plaintext into the context of applications referencing it. type InlinedValueSecretResourceProperties struct { // REQUIRED; Describes the kind of secret. - Kind *SecretKind `json:"kind,omitempty"` + Kind *SecretKind // The type of the content stored in the secret value. The value of this property is opaque to Service Fabric. Once set, the // value of this property cannot be changed. - ContentType *string `json:"contentType,omitempty"` + ContentType *string // User readable description of the secret. - Description *string `json:"description,omitempty"` + Description *string // READ-ONLY; State of the resource. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; Status of the resource. - Status *ResourceStatus `json:"status,omitempty" azure:"ro"` + Status *ResourceStatus // READ-ONLY; Gives additional information about the current status of the secret. - StatusDetails *string `json:"statusDetails,omitempty" azure:"ro"` + StatusDetails *string } // GetSecretResourceProperties implements the SecretResourcePropertiesClassification interface for type InlinedValueSecretResourceProperties. @@ -860,22 +860,22 @@ func (i *InlinedValueSecretResourceProperties) GetSecretResourcePropertiesBase() // cluster. type LocalNetworkResourceProperties struct { // REQUIRED; The type of a Service Fabric container network. - Kind *NetworkKind `json:"kind,omitempty"` + Kind *NetworkKind // User readable description of the network. - Description *string `json:"description,omitempty"` + Description *string // Address space for the local container network. - NetworkAddressPrefix *string `json:"networkAddressPrefix,omitempty"` + NetworkAddressPrefix *string // READ-ONLY; State of the resource. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; Status of the network. - Status *ResourceStatus `json:"status,omitempty" azure:"ro"` + Status *ResourceStatus // READ-ONLY; Gives additional information about the current status of the network. - StatusDetails *string `json:"statusDetails,omitempty" azure:"ro"` + StatusDetails *string } // GetNetworkResourceProperties implements the NetworkResourcePropertiesClassification interface for type LocalNetworkResourceProperties. @@ -902,13 +902,13 @@ func (l *LocalNetworkResourceProperties) GetNetworkResourcePropertiesBase() *Net // including it in the parent resource. type ManagedProxyResource struct { // The name of the resource - Name *string `json:"name,omitempty"` + Name *string // READ-ONLY; Fully qualified identifier for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // NetworkClientCreateOptions contains the optional parameters for the NetworkClient.Create method. @@ -941,40 +941,40 @@ type NetworkClientListBySubscriptionOptions struct { // NetworkRef - Describes a network reference in a service. type NetworkRef struct { // A list of endpoints that are exposed on this network. - EndpointRefs []*EndpointRef `json:"endpointRefs,omitempty"` + EndpointRefs []*EndpointRef // Name of the network - Name *string `json:"name,omitempty"` + Name *string } // NetworkResourceDescription - This type describes a network resource. type NetworkResourceDescription struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; Describes properties of a network resource. - Properties NetworkResourcePropertiesClassification `json:"properties,omitempty"` + Properties NetworkResourcePropertiesClassification // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Fully qualified identifier 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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // NetworkResourceDescriptionList - A pageable list of network resources. type NetworkResourceDescriptionList struct { // URI to fetch the next page of the list. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // One page of the list. - Value []*NetworkResourceDescription `json:"value,omitempty"` + Value []*NetworkResourceDescription } // NetworkResourcePropertiesClassification provides polymorphic access to related types. @@ -990,19 +990,19 @@ type NetworkResourcePropertiesClassification interface { // NetworkResourceProperties - Describes properties of a network resource. type NetworkResourceProperties struct { // REQUIRED; The type of a Service Fabric container network. - Kind *NetworkKind `json:"kind,omitempty"` + Kind *NetworkKind // User readable description of the network. - Description *string `json:"description,omitempty"` + Description *string // READ-ONLY; State of the resource. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; Status of the network. - Status *ResourceStatus `json:"status,omitempty" azure:"ro"` + Status *ResourceStatus // READ-ONLY; Gives additional information about the current status of the network. - StatusDetails *string `json:"statusDetails,omitempty" azure:"ro"` + StatusDetails *string } // GetNetworkResourceProperties implements the NetworkResourcePropertiesClassification interface for type NetworkResourceProperties. @@ -1030,10 +1030,10 @@ type NetworkResourcePropertiesBaseClassification interface { // NetworkResourcePropertiesBase - This type describes the properties of a network resource, including its kind. type NetworkResourcePropertiesBase struct { // REQUIRED; The type of a Service Fabric container network. - Kind *NetworkKind `json:"kind,omitempty"` + Kind *NetworkKind // READ-ONLY; State of the resource. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetNetworkResourcePropertiesBase implements the NetworkResourcePropertiesBaseClassification interface for type NetworkResourcePropertiesBase. @@ -1044,25 +1044,25 @@ func (n *NetworkResourcePropertiesBase) GetNetworkResourcePropertiesBase() *Netw // OperationListResult - Describes the result of the request to list Service Fabric operations. type OperationListResult struct { // List of Service Fabric operations supported by the Microsoft.ServiceFabric resource provider. - Value []*OperationResult `json:"value,omitempty"` + Value []*OperationResult // 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 } // OperationResult - List of operations available at the listed Azure resource provider. type OperationResult struct { // The object that represents the operation. - Display *AvailableOperationDisplay `json:"display,omitempty"` + Display *AvailableOperationDisplay // The name of the operation. - Name *string `json:"name,omitempty"` + Name *string // The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // Origin result - Origin *string `json:"origin,omitempty"` + Origin *string } // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. @@ -1073,53 +1073,53 @@ type OperationsClientListOptions struct { // ProvisionedResourceProperties - Describes common properties of a provisioned resource. type ProvisionedResourceProperties struct { // READ-ONLY; State of the resource. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // ProxyResource - The resource model definition for Azure Resource Manager proxy resource. It will have everything other // than required location and tags. type ProxyResource struct { // READ-ONLY; Fully qualified identifier 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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ReliableCollectionsRef - Specifying this parameter adds support for reliable collections type ReliableCollectionsRef struct { // REQUIRED; Name of ReliableCollection resource. Right now it's not used and you can use any string. - Name *string `json:"name,omitempty"` + Name *string // False (the default) if ReliableCollections state is persisted to disk as usual. True if you do not want to persist state, // in which case replication is still enabled and you can use ReliableCollections // as distributed cache. - DoNotPersistState *bool `json:"doNotPersistState,omitempty"` + DoNotPersistState *bool } // Resource - The resource model definition for Azure Resource Manager resource. type Resource struct { // READ-ONLY; Fully qualified identifier 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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ResourceLimits - This type describes the resource limits for a given container. It describes the most amount of resources // a container is allowed to use before being restarted. type ResourceLimits struct { // CPU limits in cores. At present, only full cores are supported. - CPU *float64 `json:"cpu,omitempty"` + CPU *float64 // The memory limit in GB. - MemoryInGB *float64 `json:"memoryInGB,omitempty"` + MemoryInGB *float64 } // ResourceRequests - This type describes the requested resources for a given container. It describes the least amount of @@ -1127,19 +1127,19 @@ type ResourceLimits struct { // the specified limits before being restarted. Currently, the requested resources are treated as limits. type ResourceRequests struct { // REQUIRED; Requested number of CPU cores. At present, only full cores are supported. - CPU *float64 `json:"cpu,omitempty"` + CPU *float64 // REQUIRED; The memory request in GB for this container. - MemoryInGB *float64 `json:"memoryInGB,omitempty"` + MemoryInGB *float64 } // ResourceRequirements - This type describes the resource requirements for a container or a service. type ResourceRequirements struct { // REQUIRED; Describes the requested resources for a given container. - Requests *ResourceRequests `json:"requests,omitempty"` + Requests *ResourceRequests // Describes the maximum limits on the resources for a given container. - Limits *ResourceLimits `json:"limits,omitempty"` + Limits *ResourceLimits } // SecretClientCreateOptions contains the optional parameters for the SecretClient.Create method. @@ -1172,31 +1172,31 @@ type SecretClientListBySubscriptionOptions struct { // SecretResourceDescription - This type describes a secret resource. type SecretResourceDescription struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; Describes the properties of a secret resource. - Properties SecretResourcePropertiesClassification `json:"properties,omitempty"` + Properties SecretResourcePropertiesClassification // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Fully qualified identifier 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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SecretResourceDescriptionList - A pageable list of secret resources. type SecretResourceDescriptionList struct { // URI to fetch the next page of the list. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // One page of the list. - Value []*SecretResourceDescription `json:"value,omitempty"` + Value []*SecretResourceDescription } // SecretResourcePropertiesClassification provides polymorphic access to related types. @@ -1212,23 +1212,23 @@ type SecretResourcePropertiesClassification interface { // SecretResourceProperties - Describes the properties of a secret resource. type SecretResourceProperties struct { // REQUIRED; Describes the kind of secret. - Kind *SecretKind `json:"kind,omitempty"` + Kind *SecretKind // The type of the content stored in the secret value. The value of this property is opaque to Service Fabric. Once set, the // value of this property cannot be changed. - ContentType *string `json:"contentType,omitempty"` + ContentType *string // User readable description of the secret. - Description *string `json:"description,omitempty"` + Description *string // READ-ONLY; State of the resource. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; Status of the resource. - Status *ResourceStatus `json:"status,omitempty" azure:"ro"` + Status *ResourceStatus // READ-ONLY; Gives additional information about the current status of the secret. - StatusDetails *string `json:"statusDetails,omitempty" azure:"ro"` + StatusDetails *string } // GetSecretResourceProperties implements the SecretResourcePropertiesClassification interface for type SecretResourceProperties. @@ -1254,10 +1254,10 @@ type SecretResourcePropertiesBaseClassification interface { // SecretResourcePropertiesBase - This type describes the properties of a secret resource, including its kind. type SecretResourcePropertiesBase struct { // REQUIRED; Describes the kind of secret. - Kind *SecretKind `json:"kind,omitempty"` + Kind *SecretKind // READ-ONLY; State of the resource. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // GetSecretResourcePropertiesBase implements the SecretResourcePropertiesBaseClassification interface for type SecretResourcePropertiesBase. @@ -1268,7 +1268,7 @@ func (s *SecretResourcePropertiesBase) GetSecretResourcePropertiesBase() *Secret // SecretValue - This type represents the unencrypted value of the secret. type SecretValue struct { // The actual value of the secret. - Value *string `json:"value,omitempty"` + Value *string } // SecretValueClientCreateOptions contains the optional parameters for the SecretValueClient.Create method. @@ -1299,48 +1299,48 @@ type SecretValueClientListValueOptions struct { // SecretValueProperties - This type describes properties of secret value resource. type SecretValueProperties struct { // The actual value of the secret. - Value *string `json:"value,omitempty"` + Value *string } // SecretValueResourceDescription - This type describes a value of a secret resource. The name of this resource is the version // identifier corresponding to this secret value. type SecretValueResourceDescription struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; This type describes properties of a secret value resource. - Properties *SecretValueResourceProperties `json:"properties,omitempty"` + Properties *SecretValueResourceProperties // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Fully qualified identifier 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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SecretValueResourceDescriptionList - A pageable list of values of a secret resource. The information does not include only // the name of the value and not the actual unencrypted value. type SecretValueResourceDescriptionList struct { // URI to fetch the next page of the list. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // One page of the list. - Value []*SecretValueResourceDescription `json:"value,omitempty"` + Value []*SecretValueResourceDescription } // SecretValueResourceProperties - This type describes properties of a secret value resource. type SecretValueResourceProperties struct { // The actual value of the secret. - Value *string `json:"value,omitempty"` + Value *string // READ-ONLY; State of the resource. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // ServiceClientGetOptions contains the optional parameters for the ServiceClient.Get method. @@ -1356,26 +1356,26 @@ type ServiceClientListOptions struct { // ServiceProperties - Describes properties of a service resource. type ServiceProperties struct { // Auto scaling policies - AutoScalingPolicies []*AutoScalingPolicy `json:"autoScalingPolicies,omitempty"` + AutoScalingPolicies []*AutoScalingPolicy // User readable description of the service. - Description *string `json:"description,omitempty"` + Description *string // The number of replicas of the service to create. Defaults to 1 if not specified. - ReplicaCount *int32 `json:"replicaCount,omitempty"` + ReplicaCount *int32 // READ-ONLY; Describes the health state of an application resource. - HealthState *HealthState `json:"healthState,omitempty" azure:"ro"` + HealthState *HealthState // READ-ONLY; Status of the service. - Status *ResourceStatus `json:"status,omitempty" azure:"ro"` + Status *ResourceStatus // READ-ONLY; Gives additional information about the current status of the service. - StatusDetails *string `json:"statusDetails,omitempty" azure:"ro"` + StatusDetails *string // READ-ONLY; When the service's health state is not 'Ok', this additional details from service fabric Health Manager for // the user to know why the service is marked unhealthy. - UnhealthyEvaluation *string `json:"unhealthyEvaluation,omitempty" azure:"ro"` + UnhealthyEvaluation *string } // ServiceReplicaClientGetOptions contains the optional parameters for the ServiceReplicaClient.Get method. @@ -1393,28 +1393,28 @@ type ServiceReplicaDescription struct { // REQUIRED; Describes the set of code packages that forms the service. A code package describes the container and the properties // for running it. All the code packages are started together on the same host and // share the same context (network, process etc.). - CodePackages []*ContainerCodePackageProperties `json:"codePackages,omitempty"` + CodePackages []*ContainerCodePackageProperties // REQUIRED; The operation system required by the code in service. - OSType *OperatingSystemType `json:"osType,omitempty"` + OSType *OperatingSystemType // REQUIRED; Name of the replica. - ReplicaName *string `json:"replicaName,omitempty"` + ReplicaName *string // Reference to sinks in DiagnosticsDescription. - Diagnostics *DiagnosticsRef `json:"diagnostics,omitempty"` + Diagnostics *DiagnosticsRef // The names of the private networks that this service needs to be part of. - NetworkRefs []*NetworkRef `json:"networkRefs,omitempty"` + NetworkRefs []*NetworkRef } // ServiceReplicaDescriptionList - A pageable list of service replicas. type ServiceReplicaDescriptionList struct { // URI to fetch the next page of the list. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // One page of the list. - Value []*ServiceReplicaDescription `json:"value,omitempty"` + Value []*ServiceReplicaDescription } // ServiceReplicaProperties - Describes the properties of a service replica. @@ -1422,40 +1422,40 @@ type ServiceReplicaProperties struct { // REQUIRED; Describes the set of code packages that forms the service. A code package describes the container and the properties // for running it. All the code packages are started together on the same host and // share the same context (network, process etc.). - CodePackages []*ContainerCodePackageProperties `json:"codePackages,omitempty"` + CodePackages []*ContainerCodePackageProperties // REQUIRED; The operation system required by the code in service. - OSType *OperatingSystemType `json:"osType,omitempty"` + OSType *OperatingSystemType // Reference to sinks in DiagnosticsDescription. - Diagnostics *DiagnosticsRef `json:"diagnostics,omitempty"` + Diagnostics *DiagnosticsRef // The names of the private networks that this service needs to be part of. - NetworkRefs []*NetworkRef `json:"networkRefs,omitempty"` + NetworkRefs []*NetworkRef } // ServiceResourceDescription - This type describes a service resource. type ServiceResourceDescription struct { // REQUIRED; This type describes properties of a service resource. - Properties *ServiceResourceProperties `json:"properties,omitempty"` + Properties *ServiceResourceProperties // The name of the resource - Name *string `json:"name,omitempty"` + Name *string // READ-ONLY; Fully qualified identifier for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ServiceResourceDescriptionList - A pageable list of service resources. type ServiceResourceDescriptionList struct { // URI to fetch the next page of the list. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // One page of the list. - Value []*ServiceResourceDescription `json:"value,omitempty"` + Value []*ServiceResourceDescription } // ServiceResourceProperties - This type describes properties of a service resource. @@ -1463,41 +1463,41 @@ type ServiceResourceProperties struct { // REQUIRED; Describes the set of code packages that forms the service. A code package describes the container and the properties // for running it. All the code packages are started together on the same host and // share the same context (network, process etc.). - CodePackages []*ContainerCodePackageProperties `json:"codePackages,omitempty"` + CodePackages []*ContainerCodePackageProperties // REQUIRED; The operation system required by the code in service. - OSType *OperatingSystemType `json:"osType,omitempty"` + OSType *OperatingSystemType // Auto scaling policies - AutoScalingPolicies []*AutoScalingPolicy `json:"autoScalingPolicies,omitempty"` + AutoScalingPolicies []*AutoScalingPolicy // User readable description of the service. - Description *string `json:"description,omitempty"` + Description *string // Reference to sinks in DiagnosticsDescription. - Diagnostics *DiagnosticsRef `json:"diagnostics,omitempty"` + Diagnostics *DiagnosticsRef // The names of the private networks that this service needs to be part of. - NetworkRefs []*NetworkRef `json:"networkRefs,omitempty"` + NetworkRefs []*NetworkRef // The number of replicas of the service to create. Defaults to 1 if not specified. - ReplicaCount *int32 `json:"replicaCount,omitempty"` + ReplicaCount *int32 // READ-ONLY; Describes the health state of an application resource. - HealthState *HealthState `json:"healthState,omitempty" azure:"ro"` + HealthState *HealthState // READ-ONLY; State of the resource. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; Status of the service. - Status *ResourceStatus `json:"status,omitempty" azure:"ro"` + Status *ResourceStatus // READ-ONLY; Gives additional information about the current status of the service. - StatusDetails *string `json:"statusDetails,omitempty" azure:"ro"` + StatusDetails *string // READ-ONLY; When the service's health state is not 'Ok', this additional details from service fabric Health Manager for // the user to know why the service is marked unhealthy. - UnhealthyEvaluation *string `json:"unhealthyEvaluation,omitempty" azure:"ro"` + UnhealthyEvaluation *string } // Setting - Describes a setting for the container. The setting file path can be fetched from environment variable "Fabric_SettingPath". @@ -1505,40 +1505,40 @@ type ServiceResourceProperties struct { // is "/var/secrets". type Setting struct { // The name of the setting. - Name *string `json:"name,omitempty"` + Name *string // The value of the setting. - Value *string `json:"value,omitempty"` + Value *string } // TCPConfig - Describes the tcp configuration for external connectivity for this network. type TCPConfig struct { // REQUIRED; Describes destination endpoint for routing traffic. - Destination *GatewayDestination `json:"destination,omitempty"` + Destination *GatewayDestination // REQUIRED; tcp gateway config name. - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Specifies the port at which the service endpoint below needs to be exposed. - Port *int32 `json:"port,omitempty"` + Port *int32 } // TrackedResource - The resource model definition for Azure Resource Manager tracked top-level resource. 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 identifier 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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // VolumeClientCreateOptions contains the optional parameters for the VolumeClient.Create method. @@ -1571,92 +1571,92 @@ type VolumeClientListBySubscriptionOptions struct { // VolumeProperties - Describes properties of a volume resource. type VolumeProperties struct { // REQUIRED; Provider of the volume. - Provider *VolumeProvider `json:"provider,omitempty"` + Provider *VolumeProvider // This type describes a volume provided by an Azure Files file share. - AzureFileParameters *VolumeProviderParametersAzureFile `json:"azureFileParameters,omitempty"` + AzureFileParameters *VolumeProviderParametersAzureFile // User readable description of the volume. - Description *string `json:"description,omitempty"` + Description *string // READ-ONLY; Status of the volume. - Status *ResourceStatus `json:"status,omitempty" azure:"ro"` + Status *ResourceStatus // READ-ONLY; Gives additional information about the current status of the volume. - StatusDetails *string `json:"statusDetails,omitempty" azure:"ro"` + StatusDetails *string } // VolumeProviderParametersAzureFile - This type describes a volume provided by an Azure Files file share. type VolumeProviderParametersAzureFile struct { // REQUIRED; Name of the Azure storage account for the File Share. - AccountName *string `json:"accountName,omitempty"` + AccountName *string // REQUIRED; Name of the Azure Files file share that provides storage for the volume. - ShareName *string `json:"shareName,omitempty"` + ShareName *string // Access key of the Azure storage account for the File Share. - AccountKey *string `json:"accountKey,omitempty"` + AccountKey *string } // VolumeReference - Describes a reference to a volume resource. type VolumeReference struct { // REQUIRED; The path within the container at which the volume should be mounted. Only valid path characters are allowed. - DestinationPath *string `json:"destinationPath,omitempty"` + DestinationPath *string // REQUIRED; Name of the volume being referenced. - Name *string `json:"name,omitempty"` + Name *string // The flag indicating whether the volume is read only. Default is 'false'. - ReadOnly *bool `json:"readOnly,omitempty"` + ReadOnly *bool } // VolumeResourceDescription - This type describes a volume resource. type VolumeResourceDescription struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; This type describes properties of a volume resource. - Properties *VolumeResourceProperties `json:"properties,omitempty"` + Properties *VolumeResourceProperties // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; Fully qualified identifier 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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // VolumeResourceDescriptionList - A pageable list of volume resources. type VolumeResourceDescriptionList struct { // URI to fetch the next page of the list. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // One page of the list. - Value []*VolumeResourceDescription `json:"value,omitempty"` + Value []*VolumeResourceDescription } // VolumeResourceProperties - This type describes properties of a volume resource. type VolumeResourceProperties struct { // REQUIRED; Provider of the volume. - Provider *VolumeProvider `json:"provider,omitempty"` + Provider *VolumeProvider // This type describes a volume provided by an Azure Files file share. - AzureFileParameters *VolumeProviderParametersAzureFile `json:"azureFileParameters,omitempty"` + AzureFileParameters *VolumeProviderParametersAzureFile // User readable description of the volume. - Description *string `json:"description,omitempty"` + Description *string // READ-ONLY; State of the resource. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string // READ-ONLY; Status of the volume. - Status *ResourceStatus `json:"status,omitempty" azure:"ro"` + Status *ResourceStatus // READ-ONLY; Gives additional information about the current status of the volume. - StatusDetails *string `json:"statusDetails,omitempty" azure:"ro"` + StatusDetails *string } diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/models_serde.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/models_serde.go index 2328b6c667ad..49969737ecb3 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/models_serde.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/models_serde.go @@ -595,7 +595,7 @@ func (a AzureInternalMonitoringPipelineSinkDescription) MarshalJSON() ([]byte, e populate(objectMap, "accountName", a.AccountName) populate(objectMap, "autoKeyConfigUrl", a.AutoKeyConfigURL) populate(objectMap, "description", a.Description) - populate(objectMap, "fluentdConfigUrl", &a.FluentdConfigURL) + populateAny(objectMap, "fluentdConfigUrl", a.FluentdConfigURL) objectMap["kind"] = DiagnosticsSinkKindAzureInternalMonitoringPipeline populate(objectMap, "maConfigUrl", a.MaConfigURL) populate(objectMap, "name", a.Name) @@ -3249,6 +3249,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/servicelinker/armservicelinker/CHANGELOG.md b/sdk/resourcemanager/servicelinker/armservicelinker/CHANGELOG.md index ff576b1e349e..6700635d4f5a 100644 --- a/sdk/resourcemanager/servicelinker/armservicelinker/CHANGELOG.md +++ b/sdk/resourcemanager/servicelinker/armservicelinker/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 1.1.1 (2023-04-14) +### Bug Fixes + +- Fix serialization bug of empty value of `any` type. + + ## 1.1.0 (2023-03-31) ### Features Added diff --git a/sdk/resourcemanager/servicelinker/armservicelinker/autorest.md b/sdk/resourcemanager/servicelinker/armservicelinker/autorest.md index a8ffd758443c..1564e6ebeea1 100644 --- a/sdk/resourcemanager/servicelinker/armservicelinker/autorest.md +++ b/sdk/resourcemanager/servicelinker/armservicelinker/autorest.md @@ -8,6 +8,6 @@ require: - https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/servicelinker/resource-manager/readme.md - https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/servicelinker/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/servicelinker/armservicelinker/constants.go b/sdk/resourcemanager/servicelinker/armservicelinker/constants.go index 863c7afbed50..8f2157d62164 100644 --- a/sdk/resourcemanager/servicelinker/armservicelinker/constants.go +++ b/sdk/resourcemanager/servicelinker/armservicelinker/constants.go @@ -11,7 +11,7 @@ package armservicelinker const ( moduleName = "armservicelinker" - 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/servicelinker/armservicelinker/models.go b/sdk/resourcemanager/servicelinker/armservicelinker/models.go index 791006def390..ddc0f53b0aca 100644 --- a/sdk/resourcemanager/servicelinker/armservicelinker/models.go +++ b/sdk/resourcemanager/servicelinker/armservicelinker/models.go @@ -24,7 +24,7 @@ type AuthInfoBaseClassification interface { // AuthInfoBase - The authentication info type AuthInfoBase struct { // REQUIRED; The authentication type. - AuthType *AuthType `json:"authType,omitempty"` + AuthType *AuthType } // GetAuthInfoBase implements the AuthInfoBaseClassification interface for type AuthInfoBase. @@ -33,10 +33,10 @@ func (a *AuthInfoBase) GetAuthInfoBase() *AuthInfoBase { return a } // AzureKeyVaultProperties - The resource properties when type is Azure Key Vault type AzureKeyVaultProperties struct { // REQUIRED; The azure resource type. - Type *AzureResourceType `json:"type,omitempty"` + Type *AzureResourceType // True if connect via Kubernetes CSI Driver. - ConnectAsKubernetesCsiDriver *bool `json:"connectAsKubernetesCsiDriver,omitempty"` + ConnectAsKubernetesCsiDriver *bool } // GetAzureResourcePropertiesBase implements the AzureResourcePropertiesBaseClassification interface for type AzureKeyVaultProperties. @@ -49,13 +49,13 @@ func (a *AzureKeyVaultProperties) GetAzureResourcePropertiesBase() *AzureResourc // AzureResource - The azure resource info when target service type is AzureResource type AzureResource struct { // REQUIRED; The target service type. - Type *TargetServiceType `json:"type,omitempty"` + Type *TargetServiceType // The Id of azure resource. - ID *string `json:"id,omitempty"` + ID *string // The azure resource connection related properties. - ResourceProperties AzureResourcePropertiesBaseClassification `json:"resourceProperties,omitempty"` + ResourceProperties AzureResourcePropertiesBaseClassification } // GetTargetServiceBase implements the TargetServiceBaseClassification interface for type AzureResource. @@ -77,7 +77,7 @@ type AzureResourcePropertiesBaseClassification interface { // AzureResourcePropertiesBase - The azure resource properties type AzureResourcePropertiesBase struct { // REQUIRED; The azure resource type. - Type *AzureResourceType `json:"type,omitempty"` + Type *AzureResourceType } // GetAzureResourcePropertiesBase implements the AzureResourcePropertiesBaseClassification interface for type AzureResourcePropertiesBase. @@ -88,10 +88,10 @@ func (a *AzureResourcePropertiesBase) GetAzureResourcePropertiesBase() *AzureRes // ConfluentBootstrapServer - The service properties when target service type is ConfluentBootstrapServer type ConfluentBootstrapServer struct { // REQUIRED; The target service type. - Type *TargetServiceType `json:"type,omitempty"` + Type *TargetServiceType // The endpoint of service. - Endpoint *string `json:"endpoint,omitempty"` + Endpoint *string } // GetTargetServiceBase implements the TargetServiceBaseClassification interface for type ConfluentBootstrapServer. @@ -104,10 +104,10 @@ func (c *ConfluentBootstrapServer) GetTargetServiceBase() *TargetServiceBase { // ConfluentSchemaRegistry - The service properties when target service type is ConfluentSchemaRegistry type ConfluentSchemaRegistry struct { // REQUIRED; The target service type. - Type *TargetServiceType `json:"type,omitempty"` + Type *TargetServiceType // The endpoint of service. - Endpoint *string `json:"endpoint,omitempty"` + Endpoint *string } // GetTargetServiceBase implements the TargetServiceBaseClassification interface for type ConfluentSchemaRegistry. @@ -120,35 +120,35 @@ func (c *ConfluentSchemaRegistry) GetTargetServiceBase() *TargetServiceBase { // 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 } // KeyVaultSecretReferenceSecretInfo - The secret info when type is keyVaultSecretReference. It's for scenario that user provides @@ -156,13 +156,13 @@ type ErrorResponse struct { // secretStore.keyVaultId. type KeyVaultSecretReferenceSecretInfo struct { // REQUIRED; The secret type. - SecretType *SecretType `json:"secretType,omitempty"` + SecretType *SecretType // Name of the Key Vault secret. - Name *string `json:"name,omitempty"` + Name *string // Version of the Key Vault secret. - Version *string `json:"version,omitempty"` + Version *string } // GetSecretInfoBase implements the SecretInfoBaseClassification interface for type KeyVaultSecretReferenceSecretInfo. @@ -176,10 +176,10 @@ func (k *KeyVaultSecretReferenceSecretInfo) GetSecretInfoBase() *SecretInfoBase // stored in user's keyvault and source is Web App, Spring Cloud or Container App. type KeyVaultSecretURISecretInfo struct { // REQUIRED; The secret type. - SecretType *SecretType `json:"secretType,omitempty"` + SecretType *SecretType // URI to the keyvault secret - Value *string `json:"value,omitempty"` + Value *string } // GetSecretInfoBase implements the SecretInfoBaseClassification interface for type KeyVaultSecretURISecretInfo. @@ -231,107 +231,107 @@ type LinkerClientListOptions struct { // LinkerList - The list of Linker. type LinkerList struct { // The link used to get the next page of Linker list. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // The list of Linkers. - Value []*LinkerResource `json:"value,omitempty"` + Value []*LinkerResource } // LinkerPatch - A linker to be updated. type LinkerPatch struct { // Linker properties - Properties *LinkerProperties `json:"properties,omitempty"` + Properties *LinkerProperties } // LinkerProperties - The properties of the linker. type LinkerProperties struct { // The authentication type. - AuthInfo AuthInfoBaseClassification `json:"authInfo,omitempty"` + AuthInfo AuthInfoBaseClassification // The application client type - ClientType *ClientType `json:"clientType,omitempty"` + ClientType *ClientType // connection scope in source service. - Scope *string `json:"scope,omitempty"` + Scope *string // An option to store secret value in secure place - SecretStore *SecretStore `json:"secretStore,omitempty"` + SecretStore *SecretStore // The target service properties - TargetService TargetServiceBaseClassification `json:"targetService,omitempty"` + TargetService TargetServiceBaseClassification // The VNet solution. - VNetSolution *VNetSolution `json:"vNetSolution,omitempty"` + VNetSolution *VNetSolution // READ-ONLY; The provisioning state. - ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *string } // LinkerResource - Linker of source and target resource type LinkerResource struct { // REQUIRED; The properties of the linker. - Properties *LinkerProperties `json:"properties,omitempty"` + Properties *LinkerProperties // 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 data. - 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 } // 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. @@ -343,37 +343,37 @@ type OperationsClientListOptions 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; 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 } // SecretAuthInfo - The authentication info when authType is secret type SecretAuthInfo struct { // REQUIRED; The authentication type. - AuthType *AuthType `json:"authType,omitempty"` + AuthType *AuthType // Username or account name for secret auth. - Name *string `json:"name,omitempty"` + Name *string // Password or key vault secret for secret auth. - SecretInfo SecretInfoBaseClassification `json:"secretInfo,omitempty"` + SecretInfo SecretInfoBaseClassification } // GetAuthInfoBase implements the AuthInfoBaseClassification interface for type SecretAuthInfo. @@ -395,7 +395,7 @@ type SecretInfoBaseClassification interface { // SecretInfoBase - The secret info type SecretInfoBase struct { // REQUIRED; The secret type. - SecretType *SecretType `json:"secretType,omitempty"` + SecretType *SecretType } // GetSecretInfoBase implements the SecretInfoBaseClassification interface for type SecretInfoBase. @@ -404,22 +404,22 @@ func (s *SecretInfoBase) GetSecretInfoBase() *SecretInfoBase { return s } // SecretStore - An option to store secret value in secure place type SecretStore struct { // The key vault id to store secret - KeyVaultID *string `json:"keyVaultId,omitempty"` + KeyVaultID *string } // ServicePrincipalCertificateAuthInfo - The authentication info when authType is servicePrincipal certificate type ServicePrincipalCertificateAuthInfo struct { // REQUIRED; The authentication type. - AuthType *AuthType `json:"authType,omitempty"` + AuthType *AuthType // REQUIRED; ServicePrincipal certificate for servicePrincipal auth. - Certificate *string `json:"certificate,omitempty"` + Certificate *string // REQUIRED; Application clientId for servicePrincipal auth. - ClientID *string `json:"clientId,omitempty"` + ClientID *string // REQUIRED; Principal Id for servicePrincipal auth. - PrincipalID *string `json:"principalId,omitempty"` + PrincipalID *string } // GetAuthInfoBase implements the AuthInfoBaseClassification interface for type ServicePrincipalCertificateAuthInfo. @@ -432,16 +432,16 @@ func (s *ServicePrincipalCertificateAuthInfo) GetAuthInfoBase() *AuthInfoBase { // ServicePrincipalSecretAuthInfo - The authentication info when authType is servicePrincipal secret type ServicePrincipalSecretAuthInfo struct { // REQUIRED; The authentication type. - AuthType *AuthType `json:"authType,omitempty"` + AuthType *AuthType // REQUIRED; ServicePrincipal application clientId for servicePrincipal auth. - ClientID *string `json:"clientId,omitempty"` + ClientID *string // REQUIRED; Principal Id for servicePrincipal auth. - PrincipalID *string `json:"principalId,omitempty"` + PrincipalID *string // REQUIRED; Secret for servicePrincipal auth. - Secret *string `json:"secret,omitempty"` + Secret *string } // GetAuthInfoBase implements the AuthInfoBaseClassification interface for type ServicePrincipalSecretAuthInfo. @@ -454,22 +454,22 @@ func (s *ServicePrincipalSecretAuthInfo) GetAuthInfoBase() *AuthInfoBase { // SourceConfiguration - A configuration item for source resource type SourceConfiguration struct { // The name of setting. - Name *string `json:"name,omitempty"` + Name *string // The value of setting - Value *string `json:"value,omitempty"` + Value *string } // SourceConfigurationResult - Configurations for source resource, include appSettings, connectionString and serviceBindings type SourceConfigurationResult struct { // The configuration properties for source resource. - Configurations []*SourceConfiguration `json:"configurations,omitempty"` + Configurations []*SourceConfiguration } // SystemAssignedIdentityAuthInfo - The authentication info when authType is systemAssignedIdentity type SystemAssignedIdentityAuthInfo struct { // REQUIRED; The authentication type. - AuthType *AuthType `json:"authType,omitempty"` + AuthType *AuthType } // GetAuthInfoBase implements the AuthInfoBaseClassification interface for type SystemAssignedIdentityAuthInfo. @@ -482,22 +482,22 @@ func (s *SystemAssignedIdentityAuthInfo) GetAuthInfoBase() *AuthInfoBase { // 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 } // TargetServiceBaseClassification provides polymorphic access to related types. @@ -512,7 +512,7 @@ type TargetServiceBaseClassification interface { // TargetServiceBase - The target service properties type TargetServiceBase struct { // REQUIRED; The target service type. - Type *TargetServiceType `json:"type,omitempty"` + Type *TargetServiceType } // GetTargetServiceBase implements the TargetServiceBaseClassification interface for type TargetServiceBase. @@ -521,13 +521,13 @@ func (t *TargetServiceBase) GetTargetServiceBase() *TargetServiceBase { return t // UserAssignedIdentityAuthInfo - The authentication info when authType is userAssignedIdentity type UserAssignedIdentityAuthInfo struct { // REQUIRED; The authentication type. - AuthType *AuthType `json:"authType,omitempty"` + AuthType *AuthType // Client Id for userAssignedIdentity. - ClientID *string `json:"clientId,omitempty"` + ClientID *string // Subscription id for userAssignedIdentity. - SubscriptionID *string `json:"subscriptionId,omitempty"` + SubscriptionID *string } // GetAuthInfoBase implements the AuthInfoBaseClassification interface for type UserAssignedIdentityAuthInfo. @@ -540,73 +540,73 @@ func (u *UserAssignedIdentityAuthInfo) GetAuthInfoBase() *AuthInfoBase { // VNetSolution - The VNet solution for linker type VNetSolution struct { // Type of VNet solution. - Type *VNetSolutionType `json:"type,omitempty"` + Type *VNetSolutionType } // ValidateOperationResult - The validation operation result for a linker. type ValidateOperationResult struct { // The validation result detail. - Properties *ValidateResult `json:"properties,omitempty"` + Properties *ValidateResult // Validated linker id. - ResourceID *string `json:"resourceId,omitempty"` + ResourceID *string // Validation operation status. - Status *string `json:"status,omitempty"` + Status *string } // ValidateResult - The validation result for a linker. type ValidateResult struct { // The authentication type. - AuthType *AuthType `json:"authType,omitempty"` + AuthType *AuthType // A boolean value indicating whether the connection is available or not - IsConnectionAvailable *bool `json:"isConnectionAvailable,omitempty"` + IsConnectionAvailable *bool // The linker name. - LinkerName *string `json:"linkerName,omitempty"` + LinkerName *string // The end time of the validation report. - ReportEndTimeUTC *time.Time `json:"reportEndTimeUtc,omitempty"` + ReportEndTimeUTC *time.Time // The start time of the validation report. - ReportStartTimeUTC *time.Time `json:"reportStartTimeUtc,omitempty"` + ReportStartTimeUTC *time.Time // The resource id of the linker source application. - SourceID *string `json:"sourceId,omitempty"` + SourceID *string // The resource Id of target service. - TargetID *string `json:"targetId,omitempty"` + TargetID *string // The detail of validation result - ValidationDetail []*ValidationResultItem `json:"validationDetail,omitempty"` + ValidationDetail []*ValidationResultItem } // ValidationResultItem - The validation item for a linker. type ValidationResultItem struct { // The display name of validation item - Description *string `json:"description,omitempty"` + Description *string // The error code of validation result - ErrorCode *string `json:"errorCode,omitempty"` + ErrorCode *string // The error message of validation result - ErrorMessage *string `json:"errorMessage,omitempty"` + ErrorMessage *string // The validation item name. - Name *string `json:"name,omitempty"` + Name *string // The result of validation - Result *ValidationResultStatus `json:"result,omitempty"` + Result *ValidationResultStatus } // ValueSecretInfo - The secret info when type is rawValue. It's for scenarios that user input the secret. type ValueSecretInfo struct { // REQUIRED; The secret type. - SecretType *SecretType `json:"secretType,omitempty"` + SecretType *SecretType // The actual value of the secret. - Value *string `json:"value,omitempty"` + Value *string } // GetSecretInfoBase implements the SecretInfoBaseClassification interface for type ValueSecretInfo. diff --git a/sdk/resourcemanager/servicelinker/armservicelinker/models_serde.go b/sdk/resourcemanager/servicelinker/armservicelinker/models_serde.go index 83d14646bc2e..0ebed505f276 100644 --- a/sdk/resourcemanager/servicelinker/armservicelinker/models_serde.go +++ b/sdk/resourcemanager/servicelinker/armservicelinker/models_serde.go @@ -201,7 +201,7 @@ func (c *ConfluentSchemaRegistry) 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) } @@ -1262,6 +1262,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