public async Task <CreateNetworkInterfaceResponse> CreateNetworkInterfaceAsync(string subnetId) { var request = new CreateNetworkInterfaceRequest { SubnetId = subnetId }; var response = await _cloudComputeClient.CreateNetworkInterfaceAsync(request); return(response); }
/// <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)); }
/// <summary> /// 创建网卡接口,只能创建辅助网卡 /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public CreateNetworkInterfaceResponse CreateNetworkInterface(CreateNetworkInterfaceRequest request) { return(new CreateNetworkInterfaceExecutor().Client(this).Execute <CreateNetworkInterfaceResponse, CreateNetworkInterfaceResult, CreateNetworkInterfaceRequest>(request)); }