Class SpreadsheetsResource.ValuesResource.UpdateRequest
Sets values in a range of a spreadsheet. The caller must specify the spreadsheet ID, range, and a valueInputOption.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.Sheets.v4
Assembly: Google.Apis.Sheets.v4.dll
Syntax
public class 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 |
|---|---|---|
| Google.Apis.Services.IClientService | service | |
| ValueRange | body | |
| System.String | spreadsheetId | |
| System.String | range |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| System.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 |
|---|---|
| System.Nullable<System.Boolean> |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| System.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 |
|---|---|
| System.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 DateTimeRenderOption.SERIAL_NUMBER.
Declaration
[RequestParameter("responseDateTimeRenderOption", RequestParameterType.Query)]
public virtual SpreadsheetsResource.ValuesResource.UpdateRequest.ResponseDateTimeRenderOptionEnum? ResponseDateTimeRenderOption { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<SpreadsheetsResource.ValuesResource.UpdateRequest.ResponseDateTimeRenderOptionEnum> |
ResponseValueRenderOption
Determines how values in the response should be rendered. The default render option is ValueRenderOption.FORMATTED_VALUE.
Declaration
[RequestParameter("responseValueRenderOption", RequestParameterType.Query)]
public virtual SpreadsheetsResource.ValuesResource.UpdateRequest.ResponseValueRenderOptionEnum? ResponseValueRenderOption { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<SpreadsheetsResource.ValuesResource.UpdateRequest.ResponseValueRenderOptionEnum> |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
SpreadsheetId
The ID of the spreadsheet to update.
Declaration
[RequestParameter("spreadsheetId", RequestParameterType.Path)]
public virtual string SpreadsheetId { get; }
Property Value
| Type | Description |
|---|---|
| System.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 |
|---|---|
| System.Nullable<SpreadsheetsResource.ValuesResource.UpdateRequest.ValueInputOptionEnum> |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| System.Object |
Overrides
InitParameters()
Initializes Update parameter list.
Declaration
protected override void InitParameters()