コード例 #1
0
        public async Task <CreateNetworkInterfaceResponse> CreateNetworkInterfaceAsync(string subnetId)
        {
            var request = new CreateNetworkInterfaceRequest
            {
                SubnetId = subnetId
            };

            var response = await _cloudComputeClient.CreateNetworkInterfaceAsync(request);

            return(response);
        }
コード例 #2
0
 /// <summary>
 ///  创建网卡接口,只能创建辅助网卡
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public async Task <CreateNetworkInterfaceResponse> CreateNetworkInterface(CreateNetworkInterfaceRequest request)
 {
     return(await new CreateNetworkInterfaceExecutor().Client(this).Execute <CreateNetworkInterfaceResponse, CreateNetworkInterfaceResult, CreateNetworkInterfaceRequest>(request).ConfigureAwait(false));
 }
コード例 #3
0
 /// <summary>
 ///  创建网卡接口,只能创建辅助网卡
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public CreateNetworkInterfaceResponse CreateNetworkInterface(CreateNetworkInterfaceRequest request)
 {
     return(new CreateNetworkInterfaceExecutor().Client(this).Execute <CreateNetworkInterfaceResponse, CreateNetworkInterfaceResult, CreateNetworkInterfaceRequest>(request));
 }