/// <summary>Snippet for GetWorkspace</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetWorkspaceResourceNames() { // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) WorkspaceName name = WorkspaceName.FromWorkspace("[WORKSPACE]"); // Make the request Workspace response = tablesServiceClient.GetWorkspace(name); }
/// <summary>Snippet for GetWorkspace</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetWorkspace() { // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) string name = "workspaces/[WORKSPACE]"; // Make the request Workspace response = tablesServiceClient.GetWorkspace(name); }
/// <summary>Snippet for GetRow</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetRow() { // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) string name = "tables/[TABLE]/rows/[ROW]"; // Make the request Row response = tablesServiceClient.GetRow(name); }
/// <summary>Snippet for GetTable</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetTableResourceNames() { // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) TableName name = TableName.FromTable("[TABLE]"); // Make the request Table response = tablesServiceClient.GetTable(name); }
/// <summary>Snippet for GetRow</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetRowResourceNames() { // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) RowName name = RowName.FromTableRow("[TABLE]", "[ROW]"); // Make the request Row response = tablesServiceClient.GetRow(name); }
/// <summary>Snippet for CreateRow</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateRow() { // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) string parent = ""; Row row = new Row(); // Make the request Row response = tablesServiceClient.CreateRow(parent, row); }
/// <summary>Snippet for UpdateRow</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void UpdateRow() { // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) Row row = new Row(); FieldMask updateMask = new FieldMask(); // Make the request Row response = tablesServiceClient.UpdateRow(row, updateMask); }
/// <summary>Snippet for GetTable</summary> public void GetTable() { // Snippet: GetTable(string, CallSettings) // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) string name = ""; // Make the request Table response = tablesServiceClient.GetTable(name); // End snippet }
/// <summary>Snippet for GetTable</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetTableRequestObject() { // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) GetTableRequest request = new GetTableRequest { TableName = TableName.FromTable("[TABLE]"), }; // Make the request Table response = tablesServiceClient.GetTable(request); }
/// <summary>Snippet for GetWorkspace</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetWorkspaceRequestObject() { // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) GetWorkspaceRequest request = new GetWorkspaceRequest { WorkspaceName = WorkspaceName.FromWorkspace("[WORKSPACE]"), }; // Make the request Workspace response = tablesServiceClient.GetWorkspace(request); }
/// <summary>Snippet for DeleteRow</summary> public void DeleteRowResourceNames() { // Snippet: DeleteRow(RowName, CallSettings) // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) RowName name = RowName.FromTableRow("[TABLE]", "[ROW]"); // Make the request tablesServiceClient.DeleteRow(name); // End snippet }
/// <summary>Snippet for UpdateRow</summary> public void UpdateRow() { // Snippet: UpdateRow(Row, FieldMask, CallSettings) // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) Row row = new Row(); FieldMask updateMask = new FieldMask(); // Make the request Row response = tablesServiceClient.UpdateRow(row, updateMask); // End snippet }
/// <summary>Snippet for DeleteRow</summary> public void DeleteRow() { // Snippet: DeleteRow(string, CallSettings) // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) string name = "tables/[TABLE]/rows/[ROW]"; // Make the request tablesServiceClient.DeleteRow(name); // End snippet }
/// <summary>Snippet for CreateRow</summary> public void CreateRow() { // Snippet: CreateRow(string, Row, CallSettings) // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) string parent = ""; Row row = new Row(); // Make the request Row response = tablesServiceClient.CreateRow(parent, row); // End snippet }
/// <summary>Snippet for GetTable</summary> public void GetTableRequestObject() { // Snippet: GetTable(GetTableRequest, CallSettings) // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) GetTableRequest request = new GetTableRequest { Name = "", }; // Make the request Table response = tablesServiceClient.GetTable(request); // End snippet }
/// <summary>Snippet for DeleteRow</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void DeleteRowRequestObject() { // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) DeleteRowRequest request = new DeleteRowRequest { RowName = RowName.FromTableRow("[TABLE]", "[ROW]"), }; // Make the request tablesServiceClient.DeleteRow(request); }
/// <summary>Snippet for GetRow</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetRowRequestObject() { // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) GetRowRequest request = new GetRowRequest { RowName = RowName.FromTableRow("[TABLE]", "[ROW]"), View = View.Unspecified, }; // Make the request Row response = tablesServiceClient.GetRow(request); }
/// <summary>Snippet for CreateRow</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateRowRequestObject() { // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) CreateRowRequest request = new CreateRowRequest { Parent = "", Row = new Row(), View = View.Unspecified, }; // Make the request Row response = tablesServiceClient.CreateRow(request); }
/// <summary>Snippet for UpdateRow</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void UpdateRowRequestObject() { // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) UpdateRowRequest request = new UpdateRowRequest { Row = new Row(), UpdateMask = new FieldMask(), View = View.Unspecified, }; // Make the request Row response = tablesServiceClient.UpdateRow(request); }
/// <summary>Snippet for ListRows</summary> public void ListRowsRequestObject() { // Snippet: ListRows(ListRowsRequest, CallSettings) // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) ListRowsRequest request = new ListRowsRequest { Parent = "", View = View.Unspecified, Filter = "", }; // Make the request PagedEnumerable <ListRowsResponse, Row> response = tablesServiceClient.ListRows(request); // Iterate over all response items, lazily performing RPCs as required foreach (Row item in response) { // Do something with each item Console.WriteLine(item); } // Or iterate over pages (of server-defined size), performing one RPC per page foreach (ListRowsResponse page in response.AsRawResponses()) { // Do something with each page of items Console.WriteLine("A page of results:"); foreach (Row item in page) { // Do something with each item Console.WriteLine(item); } } // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required int pageSize = 10; Page <Row> singlePage = response.ReadPage(pageSize); // Do something with the page of items Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); foreach (Row item in singlePage) { // Do something with each item Console.WriteLine(item); } // Store the pageToken, for when the next page is required. string nextPageToken = singlePage.NextPageToken; // End snippet }
/// <summary>Snippet for BatchCreateRows</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void BatchCreateRowsRequestObject() { // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) BatchCreateRowsRequest request = new BatchCreateRowsRequest { Parent = "", Requests = { new CreateRowRequest(), }, }; // Make the request BatchCreateRowsResponse response = tablesServiceClient.BatchCreateRows(request); }
/// <summary>Snippet for BatchDeleteRows</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void BatchDeleteRowsRequestObject() { // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) BatchDeleteRowsRequest request = new BatchDeleteRowsRequest { ParentAsTableName = TableName.FromTable("[TABLE]"), RowNames = { RowName.FromTableRow("[TABLE]", "[ROW]"), }, }; // Make the request tablesServiceClient.BatchDeleteRows(request); }
/// <summary>Snippet for BatchUpdateRows</summary> public void BatchUpdateRowsRequestObject() { // Snippet: BatchUpdateRows(BatchUpdateRowsRequest, CallSettings) // Create client TablesServiceClient tablesServiceClient = TablesServiceClient.Create(); // Initialize request argument(s) BatchUpdateRowsRequest request = new BatchUpdateRowsRequest { Parent = "", Requests = { new UpdateRowRequest(), }, }; // Make the request BatchUpdateRowsResponse response = tablesServiceClient.BatchUpdateRows(request); // End snippet }