<commit_before>provider "oneview" {
	ov_username = "<ov-username>"
	ov_password = "<<PASSWORD>>"
	ov_endpoint = "<ov-endpoint>"
	ov_sslverify = false
	ov_apiversion = <ov-apiversion>
	ov_ifmatch = "*"
}

data "oneview_scope" "scope" {
	name = "Scope_Sample"
}

resource "oneview_enclosure_group" "eg_inst" {
	name = "TestEnclosureGroup"
	description = "Testing creation of Enclosure Group"
	ip_addressing_mode = "External"
	enclosure_count = 3
	initial_scope_uris = ["${data.oneview_scope.scope.uri}"]
	interconnect_bay_mappings = [
	{
		interconnect_bay = 1
		logical_interconnect_group_uri = "/rest/sas-logical-interconnect-groups/a14f144f-359d-4ce2-b2c1-446382a30ad0"
	},
	{
		interconnect_bay = 4
		logical_interconnect_group_uri = "/rest/sas-logical-interconnect-groups/a14f144f-359d-4ce2-b2c1-446382a30ad0"
	},
	]
}

# Updates teh resource created above
# To update uncomment the below lines and add the values to the attributes mentioned
/*resource "oneview_enclosure_group" "eg_inst" {
	name = "TestEnclosureGroup_Renamed"
	uri = "/rest/enclosure-groups/fc32bafe-ed6e-46ac-8f08-9988820059bc"
	enclosure_count = 3 
	ip_addressing_mode = "External"
	power_mode = "RedundantPowerFeed"
	interconnect_bay_mappings = [
        {
                interconnect_bay = 1
                logical_interconnect_group_uri = "/rest/sas-logical-interconnect-groups/a14f144f-359d-4ce2-b2c1-446382a30ad0"
        },
        {
                interconnect_bay = 4
                logical_interconnect_group_uri = "/rest/sas-logical-interconnect-groups/a14f144f-359d-4ce2-b2c1-446382a30ad0"
        },
        ]
	interconnect_bay_mapping_count = 2
	type = "EnclosureGroupV7"
	stacking_mode = "Enclosure"
}*/<commit_msg>Added example for data source<commit_after>provider "oneview" {
	ov_username = "<ov-username>"
	ov_password = "<<PASSWORD>>"
	ov_endpoint = "<ov-endpoint>"
	ov_sslverify = false
	ov_apiversion = <ov-apiversion>
	ov_ifmatch = "*"
}

data "oneview_scope" "scope" {
	name = "Scope_Sample"
}

resource "oneview_enclosure_group" "eg_inst" {
	name = "TestEnclosureGroup"
	description = "Testing creation of Enclosure Group"
	ip_addressing_mode = "External"
	enclosure_count = 3
	initial_scope_uris = ["${data.oneview_scope.scope.uri}"]
	interconnect_bay_mappings = [
	{
		interconnect_bay = 1
		logical_interconnect_group_uri = "/rest/sas-logical-interconnect-groups/a14f144f-359d-4ce2-b2c1-446382a30ad0"
	},
	{
		interconnect_bay = 4
		logical_interconnect_group_uri = "/rest/sas-logical-interconnect-groups/a14f144f-359d-4ce2-b2c1-446382a30ad0"
	},
	]
}

# Updates teh resource created above
# To update uncomment the below lines and add the values to the attributes mentioned
/*resource "oneview_enclosure_group" "eg_inst" {
	name = "TestEnclosureGroup_Renamed"
	uri = "/rest/enclosure-groups/fc32bafe-ed6e-46ac-8f08-9988820059bc"
	enclosure_count = 3 
	ip_addressing_mode = "External"
	power_mode = "RedundantPowerFeed"
	interconnect_bay_mappings = [
        {
                interconnect_bay = 1
                logical_interconnect_group_uri = "/rest/sas-logical-interconnect-groups/a14f144f-359d-4ce2-b2c1-446382a30ad0"
        },
        {
                interconnect_bay = 4
                logical_interconnect_group_uri = "/rest/sas-logical-interconnect-groups/a14f144f-359d-4ce2-b2c1-446382a30ad0"
        },
        ]
	interconnect_bay_mapping_count = 2
	type = "EnclosureGroupV7"
	stacking_mode = "Enclosure"
}*/

/* Test for data source

data "oneview_enclosure_group" "enclosure_group" {
        name = "EnclosureGroupDemo"
}

output "oneview_enclosure_group_value" {
        value = "${data.oneview_enclosure_group.enclosure_group.uri}"
}*/
{'fraction_non_alphanumeric': 0.10822629133643072, 'fraction_numerical': 0.06012571740912818, 'mean_word_length': 3.9931787175989086, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '7219375', 'n_tokens_mistral': 1508, 'n_tokens_neox': 1364, 'n_words': 199}