<commit_before>/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

package storageaccount

import (
	"encoding/json"
	"fmt"
	"strings"

	"github.com/r3labs/terraform/helper/schema"

	aes "github.com/ernestio/crypto/aes"
	"github.com/ernestio/ernestprovider/event"
	"github.com/ernestio/ernestprovider/providers/azure"
)

// Event : This is the Ernest representation of an azure networkinterface
type Event struct {
	event.Base
	ID                     string            `json:"id"`
	Name                   string            `json:"name" validate:"required"`
	ResourceGroupName      string            `json:"resource_group_name" validate:"required"`
	Location               string            `json:"location" validate:"required"`
	AccountKind            string            `json:"account_kind"`
	AccountType            string            `json:"account_type" validate:"required"`
	PrimaryLocation        string            `json:"primary_location"`
	SecondaryLocation      string            `json:"secondary_location"`
	PrimaryBlobEndpoint    string            `json:"primary_blob_endpoint"`
	SecondaryBlobEndpoint  string            `json:"secondary_blob_endpoint"`
	PrimaryQueueEndpoint   string            `json:"primary_queue_endpoint"`
	SecondaryQueueEndpoint string            `json:"secondary_queue_endpoint"`
	PrimaryTableEndpoint   string            `json:"primary_table_endpoint"`
	SecondaryTableEndpoint string            `json:"secondary_table_endpoint"`
	PrimaryFileEndpoint    string            `json:"primary_file_endpoint"`
	PrimaryAccessKey       string            `json:"primary_access_key"`
	SecondaryAccessKey     string            `json:"secondary_access_key"`<commit_msg>Storage_account to enable blob encryption<commit_after>/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

package storageaccount

import (
	"encoding/json"
	"fmt"
	"strings"

	"github.com/r3labs/terraform/helper/schema"

	aes "github.com/ernestio/crypto/aes"
	"github.com/ernestio/ernestprovider/event"
	"github.com/ernestio/ernestprovider/providers/azure"
)

// Event : This is the Ernest representation of an azure networkinterface
type Event struct {
	event.Base
	ID                     string            `json:"id"`
	Name                   string            `json:"name" validate:"required"`
	ResourceGroupName      string            `json:"resource_group_name" validate:"required"`
	Location               string            `json:"location" validate:"required"`
	AccountKind            string            `json:"account_kind"`
	AccountType            string            `json:"account_type" validate:"required"`
	PrimaryLocation        string            `json:"primary_location"`
	SecondaryLocation      string            `json:"secondary_location"`
	PrimaryBlobEndpoint    string            `json:"primary_blob_endpoint"`
	SecondaryBlobEndpoint  string            `json:"secondary_blob_endpoint"`
	PrimaryQueueEndpoint   string            `json:"primary_queue_endpoint"`
	SecondaryQueueEndpoint string            `json:"secondary_queue_endpoint"`
	PrimaryTableEndpoint   string            `json:"primary_table_endpoint"`
	SecondaryTableEndpoint string            `json:"secondary_table_endpoint"`
	PrimaryFileEndpoint    string            `json:"primary_file_endpoint"`
	PrimaryAccessKey       string            `json:"primary_access_key"`
	SecondaryAccessKey     string            `json:"secondary_access_key"`
	EnableBlobEncryption   bool              `json:"enable_blob_encryption"`
{'fraction_non_alphanumeric': 0.08584257791864765, 'fraction_numerical': 0.002641310089804543, 'mean_word_length': 2.787, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1355328', 'n_tokens_mistral': 984, 'n_tokens_neox': 955, 'n_words': 236}