Example #1
0
 public Client(Darabonba.import.Models.Config config, string secondParam) : base(config, secondParam)
 {
     this._protocol    = config.Protocol;
     this._pathname    = secondParam;
     this._boolVirtual = true;
     this._configs[0]  = config;
 }
Example #2
0
        public static List <object> Array0(Dictionary <string, object> req)
        {
            Darabonba.import.Models.Config        temp   = new Darabonba.import.Models.Config();
            List <Darabonba.import.Models.Config> anyArr = new List <Darabonba.import.Models.Config>
            {
                temp
            };

            return(new List <object>
            {
            });
        }
Example #3
0
        public async Task <Dictionary <string, object> > Complex2Async(ComplexRequest request, List <string> str, Dictionary <string, string> val)
        {
            request.Validate();
            TeaRequest request_ = new TeaRequest();
            string     name     = "complex";

            Darabonba.import.Models.Config config = new Darabonba.import.Models.Config();
            Darabonba.import.Client        client = new Darabonba.import.Client(config);
            request_.Protocol = "HTTP";
            request_.Port     = 80;
            request_.Method   = "GET";
            request_.Pathname = "/";
            request_.Query    = new Dictionary <string, string>
            {
                { "date", "2019" },
                { "protocol", request_.Protocol },
            };
            TeaResponse response_ = await TeaCore.DoActionAsync(request_);

            return;
        }
Example #4
0
        public async Task <Dictionary <string, object> > Complex2Async(ComplexRequest request, List <string> str, Dictionary <string, string> val, List <List <List <string> > > complexList)
        {
            request.Validate();
            TeaRequest request_ = new TeaRequest();
            string     name     = "complex";

            Darabonba.import.Models.Config config = new Darabonba.import.Models.Config();
            Darabonba.import.Client        client = new Darabonba.import.Client(config, "testSecond");
            Darabonba.import.Models.Request.RequestSubmodel subModel    = new Darabonba.import.Models.Request.RequestSubmodel();
            List <List <List <List <string> > > >           nestingList = new List <List <List <List <string> > > >
            {
                new List <List <List <string> > >
                {
                    new List <List <string> >
                    {
                        new List <string>
                        {
                            "test"
                        }
                    }
                }
            };

            request_.Protocol = "HTTP";
            request_.Port     = 80;
            request_.Method   = "GET";
            request_.Pathname = "/";
            request_.Query    = new Dictionary <string, string>
            {
                { "date", "2019" },
                { "protocol", request_.Protocol },
            };
            return(new Dictionary <string, object>()
            {
            });

            TeaResponse response_ = await TeaCore.DoActionAsync(request_);

            return;
        }
Example #5
0
 public Client(Darabonba.import.Models.Config config) : base(config)
 {
     this._protocol = config.Protocol;
 }