Beispiel #1
0
        public ComplexRequest Complex3(ComplexRequest request)
        {
            request.Validate();
            TeaRequest request_ = new TeaRequest();
            string     name     = "complex";

            request_.Protocol = TemplateString();
            request_.Port     = 80;
            request_.Method   = "GET";
            request_.Pathname = "/";
            request_.Body     = TeaCore.BytesReadable("body");
            request_.Query    = new Dictionary <string, string>
            {
                { "date", "2019" },
            };
            TeaResponse response_ = TeaCore.DoAction(request_);

            TeaResponse resp = response_;

            Darabonba.import.Models.Request req = new Darabonba.import.Models.Request
            {
                Accesskey = request.AccessKey,
                Region    = resp.StatusMessage,
            };
            Client.Array0(request.ToMap());
            req.Accesskey = "accesskey";
            req.Accesskey = request.AccessKey;
            Client.PrintNull();
            Darabonba.import.Common.Array(request.ToMap(), "1");
            return(TeaModel.ToObject <ComplexRequest>(TeaConverter.merge <string>
                                                      (
                                                          request_.Query
                                                      )));
        }
 public static void Sample(Darabonba.import.Client client)
 {
     Darabonba.import.Models.RuntimeObject runtime = new Darabonba.import.Models.RuntimeObject();
     Darabonba.import.Models.Request       request = new Darabonba.import.Models.Request
     {
         Accesskey = "accesskey",
         Region    = "region",
     };
     client.Print(runtime);
 }
Beispiel #3
0
        public async Task <ComplexRequest> Complex3Async(ComplexRequest request)
        {
            request.Validate();
            TeaRequest request_ = new TeaRequest();
            string     name     = "complex";

            request_.Protocol = await TemplateStringAsync();

            request_.Port     = 80;
            request_.Method   = "GET";
            request_.Pathname = "/";
            request_.Body     = TeaCore.BytesReadable("body");
            request_.Query    = new Dictionary <string, string>
            {
                { "date", "2019" },
            };
            TeaResponse response_ = await TeaCore.DoActionAsync(request_);

            if (true)
            {
                throw new TeaRetryableException(request_, response_);
            }
            TeaResponse resp = response_;

            Darabonba.import.Models.Request req = new Darabonba.import.Models.Request
            {
                Accesskey = request.AccessKey,
                Region    = resp.StatusMessage,
            };
            Array0(request.ToMap());
            req.Accesskey = "accesskey";
            req.Accesskey = request.AccessKey;
            await PrintNullAsync(typeof(Config));

            Darabonba.import.Common.Array(request.ToMap(), "1");
            return(TeaModel.ToObject <ComplexRequest>(TeaConverter.merge <string>
                                                      (
                                                          request_.Query
                                                      )));
        }
Beispiel #4
0
        public static string MapAccess2(Darabonba.import.Models.Request request)
        {
            string configInfo = request.Configs.Extra.Get("name");

            return(configInfo);
        }