<commit_before>﻿// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

namespace Microsoft.Azure.Commands.Network.Models
{
    using Newtonsoft.Json;

    public class PSVirtualNetworkGatewayConnection : PSTopLevelResource
    {
        public string AuthorizationKey { get; set; }
        public PSVirtualNetworkGateway VirtualNetworkGateway1 { get; set; }

        public PSVirtualNetworkGateway VirtualNetworkGateway2 { get; set; }

        public PSLocalNetworkGateway LocalNetworkGateway2 { get; set; }

        public PSResourceId Peer { get; set; }

        public string ConnectionType { get; set; }

        public int RoutingWeight { get; set; }

        public string SharedKey { get; set; }

        public string ConnectionStatus { get; set; }

        public ulong EgressBytesTransferred { get; set; }

        public ulong IngressBytesTransferred { get; set; }

        [JsonIgnore]
        public string VirtualNetworkGateway1Text
        {
            get { return JsonConvert.SerializeObject(VirtualNetworkGateway1.Id, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
        }

        [JsonIgnore]
        public string VirtualNetworkGateway2Text
        {
            get { return JsonConvert.SerializeObject(VirtualNetworkGateway2.Id, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
        }

        [JsonIgnore]
        public string LocalNetworkGateway2Text
        {
            get { return JsonConvert.SerializeObject(LocalNetworkGateway2.Id, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
        }

        [JsonIgnore]
        public string PeerText
        {
            get { return JsonConvert.SerializeObject(Peer.Id, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
        }
    }
}<commit_msg>Add extra parameter in connection API<commit_after>﻿// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

namespace Microsoft.Azure.Commands.Network.Models
{
    using Newtonsoft.Json;

    public class PSVirtualNetworkGatewayConnection : PSTopLevelResource
    {
        public string AuthorizationKey { get; set; }
        public PSVirtualNetworkGateway VirtualNetworkGateway1 { get; set; }

        public PSVirtualNetworkGateway VirtualNetworkGateway2 { get; set; }

        public PSLocalNetworkGateway LocalNetworkGateway2 { get; set; }

        public PSResourceId Peer { get; set; }

        public string ConnectionType { get; set; }

        public int RoutingWeight { get; set; }

        public string SharedKey { get; set; }

        public string ConnectionStatus { get; set; }

        public ulong EgressBytesTransferred { get; set; }

        public ulong IngressBytesTransferred { get; set; }

        public string ProvisioningState { get; set; }

        [JsonIgnore]
        public string VirtualNetworkGateway1Text
        {
            get { return JsonConvert.SerializeObject(VirtualNetworkGateway1.Id, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
        }

        [JsonIgnore]
        public string VirtualNetworkGateway2Text
        {
            get { return JsonConvert.SerializeObject(VirtualNetworkGateway2.Id, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
        }

        [JsonIgnore]
        public string LocalNetworkGateway2Text
        {
            get { return JsonConvert.SerializeObject(LocalNetworkGateway2.Id, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
        }

        [JsonIgnore]
        public string PeerText
        {
            get { return JsonConvert.SerializeObject(Peer.Id, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
        }
    }
}
{'fraction_non_alphanumeric': 0.13189671187070406, 'fraction_numerical': 0.004830020434701839, 'mean_word_length': 2.4075949367088607, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3114402', 'n_tokens_mistral': 1259, 'n_tokens_neox': 1250, 'n_words': 396}