Class SpreadsheetsResource.ValuesResource.UpdateRequest
Sets values in a range of a spreadsheet. The caller must specify the spreadsheet ID, range, and a valueInputOption.
Inheritance
Inherited Members
Namespace: Google.Apis.Sheets.v4
Assembly: Google.Apis.Sheets.v4.dll
Syntax
public class SpreadsheetsResource.ValuesResource.UpdateRequest : SheetsBaseServiceRequest<UpdateValuesResponse>, IClientServiceRequest<UpdateValuesResponse>, IClientServiceRequest
Constructors
UpdateRequest(IClientService, ValueRange, string, string)
Constructs a new Update request.
Declaration
public UpdateRequest(IClientService service, ValueRange body, string spreadsheetId, string range)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
ValueRange | body | |
string | spreadsheetId | |
string | range |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
IncludeValuesInResponse
Determines if the update response should include the values of the cells that were updated. By default, responses do not include the updated values. If the range to write was larger than the range actually written, the response includes all values in the requested range (excluding trailing empty rows and columns).
Declaration
[RequestParameter("includeValuesInResponse", RequestParameterType.Query)]
public virtual bool? IncludeValuesInResponse { get; set; }
Property Value
Type | Description |
---|---|
bool? |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Range
The A1 notation of the values to update.
Declaration
[RequestParameter("range", RequestParameterType.Path)]
public virtual string Range { get; }
Property Value
Type | Description |
---|---|
string |
ResponseDateTimeRenderOption
Determines how dates, times, and durations in the response should be rendered. This is ignored if response_value_render_option is FORMATTED_VALUE. The default dateTime render option is SERIAL_NUMBER.
Declaration
[RequestParameter("responseDateTimeRenderOption", RequestParameterType.Query)]
public virtual SpreadsheetsResource.ValuesResource.UpdateRequest.ResponseDateTimeRenderOptionEnum? ResponseDateTimeRenderOption { get; set; }
Property Value
Type | Description |
---|---|
SpreadsheetsResource.ValuesResource.UpdateRequest.ResponseDateTimeRenderOptionEnum? |
ResponseValueRenderOption
Determines how values in the response should be rendered. The default render option is FORMATTED_VALUE.
Declaration
[RequestParameter("responseValueRenderOption", RequestParameterType.Query)]
public virtual SpreadsheetsResource.ValuesResource.UpdateRequest.ResponseValueRenderOptionEnum? ResponseValueRenderOption { get; set; }
Property Value
Type | Description |
---|---|
SpreadsheetsResource.ValuesResource.UpdateRequest.ResponseValueRenderOptionEnum? |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
SpreadsheetId
The ID of the spreadsheet to update.
Declaration
[RequestParameter("spreadsheetId", RequestParameterType.Path)]
public virtual string SpreadsheetId { get; }
Property Value
Type | Description |
---|---|
string |
ValueInputOption
How the input data should be interpreted.
Declaration
[RequestParameter("valueInputOption", RequestParameterType.Query)]
public virtual SpreadsheetsResource.ValuesResource.UpdateRequest.ValueInputOptionEnum? ValueInputOption { get; set; }
Property Value
Type | Description |
---|---|
SpreadsheetsResource.ValuesResource.UpdateRequest.ValueInputOptionEnum? |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Update parameter list.
Declaration
protected override void InitParameters()