From ea2396cb9c6b20a45bf4167bc48352876602b159 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 20 Sep 2017 00:35:54 +0000 Subject: [PATCH] Autogenerated update (2017-09-20) Update: - container_v1 - oslogin_v1alpha - sheets_v4 - tagmanager_v2 - videointelligence_v1beta1 --- api_names_out.yaml | 173 ++++ generated/google/apis/container_v1.rb | 2 +- generated/google/apis/container_v1/classes.rb | 93 ++ .../apis/container_v1/representations.rb | 58 ++ generated/google/apis/container_v1/service.rb | 42 + generated/google/apis/oauth2_v2/service.rb | 2 +- generated/google/apis/oslogin_v1alpha.rb | 2 +- .../google/apis/oslogin_v1alpha/classes.rb | 3 +- .../apis/oslogin_v1alpha/representations.rb | 4 +- generated/google/apis/sheets_v4.rb | 2 +- generated/google/apis/sheets_v4/classes.rb | 906 ++++++++++++++++++ .../google/apis/sheets_v4/representations.rb | 389 ++++++++ generated/google/apis/sheets_v4/service.rb | 230 +++++ generated/google/apis/tagmanager_v2.rb | 2 +- .../google/apis/tagmanager_v2/classes.rb | 181 ++++ .../apis/tagmanager_v2/representations.rb | 75 ++ .../google/apis/videointelligence_v1beta1.rb | 6 +- .../apis/videointelligence_v1beta1/service.rb | 4 +- 18 files changed, 2161 insertions(+), 13 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index ef276aa5d..06323acb6 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -26775,6 +26775,7 @@ "/container:v1/Cluster/locations": locations "/container:v1/Cluster/locations/location": location "/container:v1/Cluster/loggingService": logging_service +"/container:v1/Cluster/maintenancePolicy": maintenance_policy "/container:v1/Cluster/masterAuth": master_auth "/container:v1/Cluster/masterAuthorizedNetworksConfig": master_authorized_networks_config "/container:v1/Cluster/monitoringService": monitoring_service @@ -26809,6 +26810,9 @@ "/container:v1/CreateClusterRequest/cluster": cluster "/container:v1/CreateNodePoolRequest": create_node_pool_request "/container:v1/CreateNodePoolRequest/nodePool": node_pool +"/container:v1/DailyMaintenanceWindow": daily_maintenance_window +"/container:v1/DailyMaintenanceWindow/duration": duration +"/container:v1/DailyMaintenanceWindow/startTime": start_time "/container:v1/Empty": empty "/container:v1/HorizontalPodAutoscaling": horizontal_pod_autoscaling "/container:v1/HorizontalPodAutoscaling/disabled": disabled @@ -26843,6 +26847,10 @@ "/container:v1/ListOperationsResponse/missingZones/missing_zone": missing_zone "/container:v1/ListOperationsResponse/operations": operations "/container:v1/ListOperationsResponse/operations/operation": operation +"/container:v1/MaintenancePolicy": maintenance_policy +"/container:v1/MaintenancePolicy/window": window +"/container:v1/MaintenanceWindow": maintenance_window +"/container:v1/MaintenanceWindow/dailyMaintenanceWindow": daily_maintenance_window "/container:v1/MasterAuth": master_auth "/container:v1/MasterAuth/clientCertificate": client_certificate "/container:v1/MasterAuth/clientCertificateConfig": client_certificate_config @@ -26929,6 +26937,8 @@ "/container:v1/SetLocationsRequest/locations/location": location "/container:v1/SetLoggingServiceRequest": set_logging_service_request "/container:v1/SetLoggingServiceRequest/loggingService": logging_service +"/container:v1/SetMaintenancePolicyRequest": set_maintenance_policy_request +"/container:v1/SetMaintenancePolicyRequest/maintenancePolicy": maintenance_policy "/container:v1/SetMasterAuthRequest": set_master_auth_request "/container:v1/SetMasterAuthRequest/action": action "/container:v1/SetMasterAuthRequest/update": update @@ -27041,6 +27051,10 @@ "/container:v1/container.projects.zones.clusters.resourceLabels/clusterId": cluster_id "/container:v1/container.projects.zones.clusters.resourceLabels/projectId": project_id "/container:v1/container.projects.zones.clusters.resourceLabels/zone": zone +"/container:v1/container.projects.zones.clusters.setMaintenancePolicy": set_cluster_maintenance_policy +"/container:v1/container.projects.zones.clusters.setMaintenancePolicy/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.setMaintenancePolicy/projectId": project_id +"/container:v1/container.projects.zones.clusters.setMaintenancePolicy/zone": zone "/container:v1/container.projects.zones.clusters.setMasterAuth": set_cluster_master_auth "/container:v1/container.projects.zones.clusters.setMasterAuth/clusterId": cluster_id "/container:v1/container.projects.zones.clusters.setMasterAuth/projectId": project_id @@ -51676,6 +51690,13 @@ "/sheets:v4/BasicFilter/range": range "/sheets:v4/BasicFilter/sortSpecs": sort_specs "/sheets:v4/BasicFilter/sortSpecs/sort_spec": sort_spec +"/sheets:v4/BatchClearValuesByDataFilterRequest": batch_clear_values_by_data_filter_request +"/sheets:v4/BatchClearValuesByDataFilterRequest/dataFilters": data_filters +"/sheets:v4/BatchClearValuesByDataFilterRequest/dataFilters/data_filter": data_filter +"/sheets:v4/BatchClearValuesByDataFilterResponse": batch_clear_values_by_data_filter_response +"/sheets:v4/BatchClearValuesByDataFilterResponse/clearedRanges": cleared_ranges +"/sheets:v4/BatchClearValuesByDataFilterResponse/clearedRanges/cleared_range": cleared_range +"/sheets:v4/BatchClearValuesByDataFilterResponse/spreadsheetId": spreadsheet_id "/sheets:v4/BatchClearValuesRequest": batch_clear_values_request "/sheets:v4/BatchClearValuesRequest/ranges": ranges "/sheets:v4/BatchClearValuesRequest/ranges/range": range @@ -51683,6 +51704,16 @@ "/sheets:v4/BatchClearValuesResponse/clearedRanges": cleared_ranges "/sheets:v4/BatchClearValuesResponse/clearedRanges/cleared_range": cleared_range "/sheets:v4/BatchClearValuesResponse/spreadsheetId": spreadsheet_id +"/sheets:v4/BatchGetValuesByDataFilterRequest": batch_get_values_by_data_filter_request +"/sheets:v4/BatchGetValuesByDataFilterRequest/dataFilters": data_filters +"/sheets:v4/BatchGetValuesByDataFilterRequest/dataFilters/data_filter": data_filter +"/sheets:v4/BatchGetValuesByDataFilterRequest/dateTimeRenderOption": date_time_render_option +"/sheets:v4/BatchGetValuesByDataFilterRequest/majorDimension": major_dimension +"/sheets:v4/BatchGetValuesByDataFilterRequest/valueRenderOption": value_render_option +"/sheets:v4/BatchGetValuesByDataFilterResponse": batch_get_values_by_data_filter_response +"/sheets:v4/BatchGetValuesByDataFilterResponse/spreadsheetId": spreadsheet_id +"/sheets:v4/BatchGetValuesByDataFilterResponse/valueRanges": value_ranges +"/sheets:v4/BatchGetValuesByDataFilterResponse/valueRanges/value_range": value_range "/sheets:v4/BatchGetValuesResponse": batch_get_values_response "/sheets:v4/BatchGetValuesResponse/spreadsheetId": spreadsheet_id "/sheets:v4/BatchGetValuesResponse/valueRanges": value_ranges @@ -51699,6 +51730,21 @@ "/sheets:v4/BatchUpdateSpreadsheetResponse/replies/reply": reply "/sheets:v4/BatchUpdateSpreadsheetResponse/spreadsheetId": spreadsheet_id "/sheets:v4/BatchUpdateSpreadsheetResponse/updatedSpreadsheet": updated_spreadsheet +"/sheets:v4/BatchUpdateValuesByDataFilterRequest": batch_update_values_by_data_filter_request +"/sheets:v4/BatchUpdateValuesByDataFilterRequest/data": data +"/sheets:v4/BatchUpdateValuesByDataFilterRequest/data/datum": datum +"/sheets:v4/BatchUpdateValuesByDataFilterRequest/includeValuesInResponse": include_values_in_response +"/sheets:v4/BatchUpdateValuesByDataFilterRequest/responseDateTimeRenderOption": response_date_time_render_option +"/sheets:v4/BatchUpdateValuesByDataFilterRequest/responseValueRenderOption": response_value_render_option +"/sheets:v4/BatchUpdateValuesByDataFilterRequest/valueInputOption": value_input_option +"/sheets:v4/BatchUpdateValuesByDataFilterResponse": batch_update_values_by_data_filter_response +"/sheets:v4/BatchUpdateValuesByDataFilterResponse/responses": responses +"/sheets:v4/BatchUpdateValuesByDataFilterResponse/responses/response": response +"/sheets:v4/BatchUpdateValuesByDataFilterResponse/spreadsheetId": spreadsheet_id +"/sheets:v4/BatchUpdateValuesByDataFilterResponse/totalUpdatedCells": total_updated_cells +"/sheets:v4/BatchUpdateValuesByDataFilterResponse/totalUpdatedColumns": total_updated_columns +"/sheets:v4/BatchUpdateValuesByDataFilterResponse/totalUpdatedRows": total_updated_rows +"/sheets:v4/BatchUpdateValuesByDataFilterResponse/totalUpdatedSheets": total_updated_sheets "/sheets:v4/BatchUpdateValuesRequest": batch_update_values_request "/sheets:v4/BatchUpdateValuesRequest/data": data "/sheets:v4/BatchUpdateValuesRequest/data/datum": datum @@ -51825,10 +51871,24 @@ "/sheets:v4/CopyPasteRequest/source": source "/sheets:v4/CopySheetToAnotherSpreadsheetRequest": copy_sheet_to_another_spreadsheet_request "/sheets:v4/CopySheetToAnotherSpreadsheetRequest/destinationSpreadsheetId": destination_spreadsheet_id +"/sheets:v4/CreateDeveloperMetadataRequest": create_developer_metadata_request +"/sheets:v4/CreateDeveloperMetadataRequest/developerMetadata": developer_metadata +"/sheets:v4/CreateDeveloperMetadataResponse": create_developer_metadata_response +"/sheets:v4/CreateDeveloperMetadataResponse/developerMetadata": developer_metadata "/sheets:v4/CutPasteRequest": cut_paste_request "/sheets:v4/CutPasteRequest/destination": destination "/sheets:v4/CutPasteRequest/pasteType": paste_type "/sheets:v4/CutPasteRequest/source": source +"/sheets:v4/DataFilter": data_filter +"/sheets:v4/DataFilter/a1Range": a1_range +"/sheets:v4/DataFilter/developerMetadataLookup": developer_metadata_lookup +"/sheets:v4/DataFilter/gridRange": grid_range +"/sheets:v4/DataFilterValueRange": data_filter_value_range +"/sheets:v4/DataFilterValueRange/dataFilter": data_filter +"/sheets:v4/DataFilterValueRange/majorDimension": major_dimension +"/sheets:v4/DataFilterValueRange/values": values +"/sheets:v4/DataFilterValueRange/values/value": value +"/sheets:v4/DataFilterValueRange/values/value/value": value "/sheets:v4/DataValidationRule": data_validation_rule "/sheets:v4/DataValidationRule/condition": condition "/sheets:v4/DataValidationRule/inputMessage": input_message @@ -51841,6 +51901,11 @@ "/sheets:v4/DeleteConditionalFormatRuleRequest/sheetId": sheet_id "/sheets:v4/DeleteConditionalFormatRuleResponse": delete_conditional_format_rule_response "/sheets:v4/DeleteConditionalFormatRuleResponse/rule": rule +"/sheets:v4/DeleteDeveloperMetadataRequest": delete_developer_metadata_request +"/sheets:v4/DeleteDeveloperMetadataRequest/dataFilter": data_filter +"/sheets:v4/DeleteDeveloperMetadataResponse": delete_developer_metadata_response +"/sheets:v4/DeleteDeveloperMetadataResponse/deletedDeveloperMetadata": deleted_developer_metadata +"/sheets:v4/DeleteDeveloperMetadataResponse/deletedDeveloperMetadata/deleted_developer_metadatum": deleted_developer_metadatum "/sheets:v4/DeleteDimensionRequest": delete_dimension_request "/sheets:v4/DeleteDimensionRequest/range": range "/sheets:v4/DeleteEmbeddedObjectRequest": delete_embedded_object_request @@ -51856,7 +51921,28 @@ "/sheets:v4/DeleteRangeRequest/shiftDimension": shift_dimension "/sheets:v4/DeleteSheetRequest": delete_sheet_request "/sheets:v4/DeleteSheetRequest/sheetId": sheet_id +"/sheets:v4/DeveloperMetadata": developer_metadata +"/sheets:v4/DeveloperMetadata/location": location +"/sheets:v4/DeveloperMetadata/metadataId": metadata_id +"/sheets:v4/DeveloperMetadata/metadataKey": metadata_key +"/sheets:v4/DeveloperMetadata/metadataValue": metadata_value +"/sheets:v4/DeveloperMetadata/visibility": visibility +"/sheets:v4/DeveloperMetadataLocation": developer_metadata_location +"/sheets:v4/DeveloperMetadataLocation/dimensionRange": dimension_range +"/sheets:v4/DeveloperMetadataLocation/locationType": location_type +"/sheets:v4/DeveloperMetadataLocation/sheetId": sheet_id +"/sheets:v4/DeveloperMetadataLocation/spreadsheet": spreadsheet +"/sheets:v4/DeveloperMetadataLookup": developer_metadata_lookup +"/sheets:v4/DeveloperMetadataLookup/locationMatchingStrategy": location_matching_strategy +"/sheets:v4/DeveloperMetadataLookup/locationType": location_type +"/sheets:v4/DeveloperMetadataLookup/metadataId": metadata_id +"/sheets:v4/DeveloperMetadataLookup/metadataKey": metadata_key +"/sheets:v4/DeveloperMetadataLookup/metadataLocation": metadata_location +"/sheets:v4/DeveloperMetadataLookup/metadataValue": metadata_value +"/sheets:v4/DeveloperMetadataLookup/visibility": visibility "/sheets:v4/DimensionProperties": dimension_properties +"/sheets:v4/DimensionProperties/developerMetadata": developer_metadata +"/sheets:v4/DimensionProperties/developerMetadata/developer_metadatum": developer_metadatum "/sheets:v4/DimensionProperties/hiddenByFilter": hidden_by_filter "/sheets:v4/DimensionProperties/hiddenByUser": hidden_by_user "/sheets:v4/DimensionProperties/pixelSize": pixel_size @@ -51928,6 +52014,10 @@ "/sheets:v4/FindReplaceResponse/rowsChanged": rows_changed "/sheets:v4/FindReplaceResponse/sheetsChanged": sheets_changed "/sheets:v4/FindReplaceResponse/valuesChanged": values_changed +"/sheets:v4/GetSpreadsheetByDataFilterRequest": get_spreadsheet_by_data_filter_request +"/sheets:v4/GetSpreadsheetByDataFilterRequest/dataFilters": data_filters +"/sheets:v4/GetSpreadsheetByDataFilterRequest/dataFilters/data_filter": data_filter +"/sheets:v4/GetSpreadsheetByDataFilterRequest/includeGridData": include_grid_data "/sheets:v4/GradientRule": gradient_rule "/sheets:v4/GradientRule/maxpoint": maxpoint "/sheets:v4/GradientRule/midpoint": midpoint @@ -51980,6 +52070,14 @@ "/sheets:v4/IterativeCalculationSettings": iterative_calculation_settings "/sheets:v4/IterativeCalculationSettings/convergenceThreshold": convergence_threshold "/sheets:v4/IterativeCalculationSettings/maxIterations": max_iterations +"/sheets:v4/MatchedDeveloperMetadata": matched_developer_metadata +"/sheets:v4/MatchedDeveloperMetadata/dataFilters": data_filters +"/sheets:v4/MatchedDeveloperMetadata/dataFilters/data_filter": data_filter +"/sheets:v4/MatchedDeveloperMetadata/developerMetadata": developer_metadata +"/sheets:v4/MatchedValueRange": matched_value_range +"/sheets:v4/MatchedValueRange/dataFilters": data_filters +"/sheets:v4/MatchedValueRange/dataFilters/data_filter": data_filter +"/sheets:v4/MatchedValueRange/valueRange": value_range "/sheets:v4/MergeCellsRequest": merge_cells_request "/sheets:v4/MergeCellsRequest/mergeType": merge_type "/sheets:v4/MergeCellsRequest/range": range @@ -52086,9 +52184,11 @@ "/sheets:v4/Request/autoResizeDimensions": auto_resize_dimensions "/sheets:v4/Request/clearBasicFilter": clear_basic_filter "/sheets:v4/Request/copyPaste": copy_paste +"/sheets:v4/Request/createDeveloperMetadata": create_developer_metadata "/sheets:v4/Request/cutPaste": cut_paste "/sheets:v4/Request/deleteBanding": delete_banding "/sheets:v4/Request/deleteConditionalFormatRule": delete_conditional_format_rule +"/sheets:v4/Request/deleteDeveloperMetadata": delete_developer_metadata "/sheets:v4/Request/deleteDimension": delete_dimension "/sheets:v4/Request/deleteEmbeddedObject": delete_embedded_object "/sheets:v4/Request/deleteFilterView": delete_filter_view @@ -52116,6 +52216,7 @@ "/sheets:v4/Request/updateCells": update_cells "/sheets:v4/Request/updateChartSpec": update_chart_spec "/sheets:v4/Request/updateConditionalFormatRule": update_conditional_format_rule +"/sheets:v4/Request/updateDeveloperMetadata": update_developer_metadata "/sheets:v4/Request/updateDimensionProperties": update_dimension_properties "/sheets:v4/Request/updateEmbeddedObjectPosition": update_embedded_object_position "/sheets:v4/Request/updateFilterView": update_filter_view @@ -52130,15 +52231,24 @@ "/sheets:v4/Response/addNamedRange": add_named_range "/sheets:v4/Response/addProtectedRange": add_protected_range "/sheets:v4/Response/addSheet": add_sheet +"/sheets:v4/Response/createDeveloperMetadata": create_developer_metadata "/sheets:v4/Response/deleteConditionalFormatRule": delete_conditional_format_rule +"/sheets:v4/Response/deleteDeveloperMetadata": delete_developer_metadata "/sheets:v4/Response/duplicateFilterView": duplicate_filter_view "/sheets:v4/Response/duplicateSheet": duplicate_sheet "/sheets:v4/Response/findReplace": find_replace "/sheets:v4/Response/updateConditionalFormatRule": update_conditional_format_rule +"/sheets:v4/Response/updateDeveloperMetadata": update_developer_metadata "/sheets:v4/Response/updateEmbeddedObjectPosition": update_embedded_object_position "/sheets:v4/RowData": row_data "/sheets:v4/RowData/values": values "/sheets:v4/RowData/values/value": value +"/sheets:v4/SearchDeveloperMetadataRequest": search_developer_metadata_request +"/sheets:v4/SearchDeveloperMetadataRequest/dataFilters": data_filters +"/sheets:v4/SearchDeveloperMetadataRequest/dataFilters/data_filter": data_filter +"/sheets:v4/SearchDeveloperMetadataResponse": search_developer_metadata_response +"/sheets:v4/SearchDeveloperMetadataResponse/matchedDeveloperMetadata": matched_developer_metadata +"/sheets:v4/SearchDeveloperMetadataResponse/matchedDeveloperMetadata/matched_developer_metadatum": matched_developer_metadatum "/sheets:v4/SetBasicFilterRequest": set_basic_filter_request "/sheets:v4/SetBasicFilterRequest/filter": filter "/sheets:v4/SetDataValidationRequest": set_data_validation_request @@ -52154,6 +52264,8 @@ "/sheets:v4/Sheet/conditionalFormats/conditional_format": conditional_format "/sheets:v4/Sheet/data": data "/sheets:v4/Sheet/data/datum": datum +"/sheets:v4/Sheet/developerMetadata": developer_metadata +"/sheets:v4/Sheet/developerMetadata/developer_metadatum": developer_metadatum "/sheets:v4/Sheet/filterViews": filter_views "/sheets:v4/Sheet/filterViews/filter_view": filter_view "/sheets:v4/Sheet/merges": merges @@ -52182,6 +52294,8 @@ "/sheets:v4/SourceAndDestination/fillLength": fill_length "/sheets:v4/SourceAndDestination/source": source "/sheets:v4/Spreadsheet": spreadsheet +"/sheets:v4/Spreadsheet/developerMetadata": developer_metadata +"/sheets:v4/Spreadsheet/developerMetadata/developer_metadatum": developer_metadatum "/sheets:v4/Spreadsheet/namedRanges": named_ranges "/sheets:v4/Spreadsheet/namedRanges/named_range": named_range "/sheets:v4/Spreadsheet/properties": properties @@ -52246,6 +52360,14 @@ "/sheets:v4/UpdateConditionalFormatRuleResponse/newRule": new_rule "/sheets:v4/UpdateConditionalFormatRuleResponse/oldIndex": old_index "/sheets:v4/UpdateConditionalFormatRuleResponse/oldRule": old_rule +"/sheets:v4/UpdateDeveloperMetadataRequest": update_developer_metadata_request +"/sheets:v4/UpdateDeveloperMetadataRequest/dataFilters": data_filters +"/sheets:v4/UpdateDeveloperMetadataRequest/dataFilters/data_filter": data_filter +"/sheets:v4/UpdateDeveloperMetadataRequest/developerMetadata": developer_metadata +"/sheets:v4/UpdateDeveloperMetadataRequest/fields": fields +"/sheets:v4/UpdateDeveloperMetadataResponse": update_developer_metadata_response +"/sheets:v4/UpdateDeveloperMetadataResponse/developerMetadata": developer_metadata +"/sheets:v4/UpdateDeveloperMetadataResponse/developerMetadata/developer_metadatum": developer_metadatum "/sheets:v4/UpdateDimensionPropertiesRequest": update_dimension_properties_request "/sheets:v4/UpdateDimensionPropertiesRequest/fields": fields "/sheets:v4/UpdateDimensionPropertiesRequest/properties": properties @@ -52271,6 +52393,13 @@ "/sheets:v4/UpdateSpreadsheetPropertiesRequest": update_spreadsheet_properties_request "/sheets:v4/UpdateSpreadsheetPropertiesRequest/fields": fields "/sheets:v4/UpdateSpreadsheetPropertiesRequest/properties": properties +"/sheets:v4/UpdateValuesByDataFilterResponse": update_values_by_data_filter_response +"/sheets:v4/UpdateValuesByDataFilterResponse/dataFilter": data_filter +"/sheets:v4/UpdateValuesByDataFilterResponse/updatedCells": updated_cells +"/sheets:v4/UpdateValuesByDataFilterResponse/updatedColumns": updated_columns +"/sheets:v4/UpdateValuesByDataFilterResponse/updatedData": updated_data +"/sheets:v4/UpdateValuesByDataFilterResponse/updatedRange": updated_range +"/sheets:v4/UpdateValuesByDataFilterResponse/updatedRows": updated_rows "/sheets:v4/UpdateValuesResponse": update_values_response "/sheets:v4/UpdateValuesResponse/spreadsheetId": spreadsheet_id "/sheets:v4/UpdateValuesResponse/updatedCells": updated_cells @@ -52290,10 +52419,17 @@ "/sheets:v4/sheets.spreadsheets.batchUpdate": batch_update_spreadsheet "/sheets:v4/sheets.spreadsheets.batchUpdate/spreadsheetId": spreadsheet_id "/sheets:v4/sheets.spreadsheets.create": create_spreadsheet +"/sheets:v4/sheets.spreadsheets.developerMetadata.get": get_spreadsheet_developer_metadatum +"/sheets:v4/sheets.spreadsheets.developerMetadata.get/metadataId": metadata_id +"/sheets:v4/sheets.spreadsheets.developerMetadata.get/spreadsheetId": spreadsheet_id +"/sheets:v4/sheets.spreadsheets.developerMetadata.search": search_developer_metadatum_developer_metadata +"/sheets:v4/sheets.spreadsheets.developerMetadata.search/spreadsheetId": spreadsheet_id "/sheets:v4/sheets.spreadsheets.get": get_spreadsheet "/sheets:v4/sheets.spreadsheets.get/includeGridData": include_grid_data "/sheets:v4/sheets.spreadsheets.get/ranges": ranges "/sheets:v4/sheets.spreadsheets.get/spreadsheetId": spreadsheet_id +"/sheets:v4/sheets.spreadsheets.getByDataFilter": get_spreadsheet_by_data_filter +"/sheets:v4/sheets.spreadsheets.getByDataFilter/spreadsheetId": spreadsheet_id "/sheets:v4/sheets.spreadsheets.sheets.copyTo": copy_spreadsheet "/sheets:v4/sheets.spreadsheets.sheets.copyTo/sheetId": sheet_id "/sheets:v4/sheets.spreadsheets.sheets.copyTo/spreadsheetId": spreadsheet_id @@ -52307,14 +52443,20 @@ "/sheets:v4/sheets.spreadsheets.values.append/valueInputOption": value_input_option "/sheets:v4/sheets.spreadsheets.values.batchClear": batch_clear_values "/sheets:v4/sheets.spreadsheets.values.batchClear/spreadsheetId": spreadsheet_id +"/sheets:v4/sheets.spreadsheets.values.batchClearByDataFilter": batch_spreadsheet_value_clear_by_data_filter +"/sheets:v4/sheets.spreadsheets.values.batchClearByDataFilter/spreadsheetId": spreadsheet_id "/sheets:v4/sheets.spreadsheets.values.batchGet": batch_get_spreadsheet_values "/sheets:v4/sheets.spreadsheets.values.batchGet/dateTimeRenderOption": date_time_render_option "/sheets:v4/sheets.spreadsheets.values.batchGet/majorDimension": major_dimension "/sheets:v4/sheets.spreadsheets.values.batchGet/ranges": ranges "/sheets:v4/sheets.spreadsheets.values.batchGet/spreadsheetId": spreadsheet_id "/sheets:v4/sheets.spreadsheets.values.batchGet/valueRenderOption": value_render_option +"/sheets:v4/sheets.spreadsheets.values.batchGetByDataFilter": batch_spreadsheet_value_get_by_data_filter +"/sheets:v4/sheets.spreadsheets.values.batchGetByDataFilter/spreadsheetId": spreadsheet_id "/sheets:v4/sheets.spreadsheets.values.batchUpdate": batch_update_values "/sheets:v4/sheets.spreadsheets.values.batchUpdate/spreadsheetId": spreadsheet_id +"/sheets:v4/sheets.spreadsheets.values.batchUpdateByDataFilter": batch_spreadsheet_value_update_by_data_filter +"/sheets:v4/sheets.spreadsheets.values.batchUpdateByDataFilter/spreadsheetId": spreadsheet_id "/sheets:v4/sheets.spreadsheets.values.clear": clear_values "/sheets:v4/sheets.spreadsheets.values.clear/range": range "/sheets:v4/sheets.spreadsheets.values.clear/spreadsheetId": spreadsheet_id @@ -56264,6 +56406,8 @@ "/tagmanager:v2/ContainerVersion/trigger/trigger": trigger "/tagmanager:v2/ContainerVersion/variable": variable "/tagmanager:v2/ContainerVersion/variable/variable": variable +"/tagmanager:v2/ContainerVersion/zone": zone +"/tagmanager:v2/ContainerVersion/zone/zone": zone "/tagmanager:v2/ContainerVersionHeader": container_version_header "/tagmanager:v2/ContainerVersionHeader/accountId": account_id "/tagmanager:v2/ContainerVersionHeader/containerId": container_id @@ -56275,6 +56419,7 @@ "/tagmanager:v2/ContainerVersionHeader/numTags": num_tags "/tagmanager:v2/ContainerVersionHeader/numTriggers": num_triggers "/tagmanager:v2/ContainerVersionHeader/numVariables": num_variables +"/tagmanager:v2/ContainerVersionHeader/numZones": num_zones "/tagmanager:v2/ContainerVersionHeader/path": path "/tagmanager:v2/CreateBuiltInVariableResponse": create_built_in_variable_response "/tagmanager:v2/CreateBuiltInVariableResponse/builtInVariable": built_in_variable @@ -56475,6 +56620,8 @@ "/tagmanager:v2/Trigger/maxTimerLengthSeconds": max_timer_length_seconds "/tagmanager:v2/Trigger/name": name "/tagmanager:v2/Trigger/notes": notes +"/tagmanager:v2/Trigger/parameter": parameter +"/tagmanager:v2/Trigger/parameter/parameter": parameter "/tagmanager:v2/Trigger/parentFolderId": parent_folder_id "/tagmanager:v2/Trigger/path": path "/tagmanager:v2/Trigger/selector": selector @@ -56556,6 +56703,32 @@ "/tagmanager:v2/WorkspaceProposalUser": workspace_proposal_user "/tagmanager:v2/WorkspaceProposalUser/gaiaId": gaia_id "/tagmanager:v2/WorkspaceProposalUser/type": type +"/tagmanager:v2/Zone": zone +"/tagmanager:v2/Zone/accountId": account_id +"/tagmanager:v2/Zone/boundary": boundary +"/tagmanager:v2/Zone/childContainer": child_container +"/tagmanager:v2/Zone/childContainer/child_container": child_container +"/tagmanager:v2/Zone/containerId": container_id +"/tagmanager:v2/Zone/fingerprint": fingerprint +"/tagmanager:v2/Zone/name": name +"/tagmanager:v2/Zone/notes": notes +"/tagmanager:v2/Zone/path": path +"/tagmanager:v2/Zone/tagManagerUrl": tag_manager_url +"/tagmanager:v2/Zone/typeRestriction": type_restriction +"/tagmanager:v2/Zone/workspaceId": workspace_id +"/tagmanager:v2/Zone/zoneId": zone_id +"/tagmanager:v2/ZoneBoundary": zone_boundary +"/tagmanager:v2/ZoneBoundary/condition": condition +"/tagmanager:v2/ZoneBoundary/condition/condition": condition +"/tagmanager:v2/ZoneBoundary/customEvaluationTriggerId": custom_evaluation_trigger_id +"/tagmanager:v2/ZoneBoundary/customEvaluationTriggerId/custom_evaluation_trigger_id": custom_evaluation_trigger_id +"/tagmanager:v2/ZoneChildContainer": zone_child_container +"/tagmanager:v2/ZoneChildContainer/nickname": nickname +"/tagmanager:v2/ZoneChildContainer/publicId": public_id +"/tagmanager:v2/ZoneTypeRestriction": zone_type_restriction +"/tagmanager:v2/ZoneTypeRestriction/enable": enable +"/tagmanager:v2/ZoneTypeRestriction/whitelistedTypeId": whitelisted_type_id +"/tagmanager:v2/ZoneTypeRestriction/whitelistedTypeId/whitelisted_type_id": whitelisted_type_id "/tagmanager:v2/fields": fields "/tagmanager:v2/key": key "/tagmanager:v2/quotaUser": quota_user diff --git a/generated/google/apis/container_v1.rb b/generated/google/apis/container_v1.rb index f7674ab63..c3edacfe1 100644 --- a/generated/google/apis/container_v1.rb +++ b/generated/google/apis/container_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1 VERSION = 'V1' - REVISION = '20170901' + REVISION = '20170908' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/container_v1/classes.rb b/generated/google/apis/container_v1/classes.rb index c38ec45ae..aabf378e1 100644 --- a/generated/google/apis/container_v1/classes.rb +++ b/generated/google/apis/container_v1/classes.rb @@ -301,6 +301,11 @@ module Google # @return [String] attr_accessor :logging_service + # MaintenancePolicy defines the maintenance policy to be used for the cluster. + # Corresponds to the JSON property `maintenancePolicy` + # @return [Google::Apis::ContainerV1::MaintenancePolicy] + attr_accessor :maintenance_policy + # The authentication information for accessing the master endpoint. # Authentication can be done using HTTP basic auth or using client # certificates. @@ -437,6 +442,7 @@ module Google @legacy_abac = args[:legacy_abac] if args.key?(:legacy_abac) @locations = args[:locations] if args.key?(:locations) @logging_service = args[:logging_service] if args.key?(:logging_service) + @maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy) @master_auth = args[:master_auth] if args.key?(:master_auth) @master_authorized_networks_config = args[:master_authorized_networks_config] if args.key?(:master_authorized_networks_config) @monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service) @@ -603,6 +609,36 @@ module Google end end + # Time window specified for daily maintenance operations. + class DailyMaintenanceWindow + include Google::Apis::Core::Hashable + + # [Output only] Duration of the time window, automatically chosen to be + # smallest possible in the given scenario. + # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) + # format "PTnHnMnS". + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # Time within the maintenance window to start the maintenance operations. + # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) + # format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @duration = args[:duration] if args.key?(:duration) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + # A generic empty message that you can re-use to avoid defining duplicated # empty messages in your APIs. A typical example is to use it as the request # or the response type of an API method. For instance: @@ -908,6 +944,44 @@ module Google end end + # MaintenancePolicy defines the maintenance policy to be used for the cluster. + class MaintenancePolicy + include Google::Apis::Core::Hashable + + # MaintenanceWindow defines the maintenance window to be used for the cluster. + # Corresponds to the JSON property `window` + # @return [Google::Apis::ContainerV1::MaintenanceWindow] + attr_accessor :window + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @window = args[:window] if args.key?(:window) + end + end + + # MaintenanceWindow defines the maintenance window to be used for the cluster. + class MaintenanceWindow + include Google::Apis::Core::Hashable + + # Time window specified for daily maintenance operations. + # Corresponds to the JSON property `dailyMaintenanceWindow` + # @return [Google::Apis::ContainerV1::DailyMaintenanceWindow] + attr_accessor :daily_maintenance_window + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @daily_maintenance_window = args[:daily_maintenance_window] if args.key?(:daily_maintenance_window) + end + end + # The authentication information for accessing the master endpoint. # Authentication can be done using HTTP basic auth or using client # certificates. @@ -1578,6 +1652,25 @@ module Google end end + # SetMaintenancePolicyRequest sets the maintenance policy for a cluster. + class SetMaintenancePolicyRequest + include Google::Apis::Core::Hashable + + # MaintenancePolicy defines the maintenance policy to be used for the cluster. + # Corresponds to the JSON property `maintenancePolicy` + # @return [Google::Apis::ContainerV1::MaintenancePolicy] + attr_accessor :maintenance_policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy) + end + end + # SetMasterAuthRequest updates the admin password of a cluster. class SetMasterAuthRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/container_v1/representations.rb b/generated/google/apis/container_v1/representations.rb index 8d6d940b3..c5a3b8695 100644 --- a/generated/google/apis/container_v1/representations.rb +++ b/generated/google/apis/container_v1/representations.rb @@ -88,6 +88,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DailyMaintenanceWindow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end @@ -142,6 +148,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MaintenancePolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MaintenanceWindow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class MasterAuth class Representation < Google::Apis::Core::JsonRepresentation; end @@ -232,6 +250,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SetMaintenancePolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SetMasterAuthRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -365,6 +389,8 @@ module Google collection :locations, as: 'locations' property :logging_service, as: 'loggingService' + property :maintenance_policy, as: 'maintenancePolicy', class: Google::Apis::ContainerV1::MaintenancePolicy, decorator: Google::Apis::ContainerV1::MaintenancePolicy::Representation + property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation property :master_authorized_networks_config, as: 'masterAuthorizedNetworksConfig', class: Google::Apis::ContainerV1::MasterAuthorizedNetworksConfig, decorator: Google::Apis::ContainerV1::MasterAuthorizedNetworksConfig::Representation @@ -429,6 +455,14 @@ module Google end end + class DailyMaintenanceWindow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :duration, as: 'duration' + property :start_time, as: 'startTime' + end + end + class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -506,6 +540,22 @@ module Google end end + class MaintenancePolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :window, as: 'window', class: Google::Apis::ContainerV1::MaintenanceWindow, decorator: Google::Apis::ContainerV1::MaintenanceWindow::Representation + + end + end + + class MaintenanceWindow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :daily_maintenance_window, as: 'dailyMaintenanceWindow', class: Google::Apis::ContainerV1::DailyMaintenanceWindow, decorator: Google::Apis::ContainerV1::DailyMaintenanceWindow::Representation + + end + end + class MasterAuth # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -663,6 +713,14 @@ module Google end end + class SetMaintenancePolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :maintenance_policy, as: 'maintenancePolicy', class: Google::Apis::ContainerV1::MaintenancePolicy, decorator: Google::Apis::ContainerV1::MaintenancePolicy::Representation + + end + end + class SetMasterAuthRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/container_v1/service.rb b/generated/google/apis/container_v1/service.rb index efbc3853f..09dd212f3 100644 --- a/generated/google/apis/container_v1/service.rb +++ b/generated/google/apis/container_v1/service.rb @@ -588,6 +588,48 @@ module Google execute_or_queue_command(command, &block) end + # Sets the maintenance policy for a cluster. + # @param [String] project_id + # The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # @param [String] zone + # The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # @param [String] cluster_id + # The name of the cluster to update. + # @param [Google::Apis::ContainerV1::SetMaintenancePolicyRequest] set_maintenance_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_cluster_maintenance_policy(project_id, zone, cluster_id, set_maintenance_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy', options) + command.request_representation = Google::Apis::ContainerV1::SetMaintenancePolicyRequest::Representation + command.request_object = set_maintenance_policy_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Used to set master auth materials. Currently supports :- # Changing the admin password of a specific cluster. # This can be either via password generation or explicitly set the password. diff --git a/generated/google/apis/oauth2_v2/service.rb b/generated/google/apis/oauth2_v2/service.rb index 286056b8b..03afb9d10 100644 --- a/generated/google/apis/oauth2_v2/service.rb +++ b/generated/google/apis/oauth2_v2/service.rb @@ -50,7 +50,7 @@ module Google def initialize super('https://www.googleapis.com/', '') - @batch_path = 'batch' + @batch_path = 'batch/oauth2/v2' end # diff --git a/generated/google/apis/oslogin_v1alpha.rb b/generated/google/apis/oslogin_v1alpha.rb index 63610025d..4fa8f8679 100644 --- a/generated/google/apis/oslogin_v1alpha.rb +++ b/generated/google/apis/oslogin_v1alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/compute/docs/oslogin/rest/ module OsloginV1alpha VERSION = 'V1alpha' - REVISION = '20170811' + REVISION = '20170918' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/oslogin_v1alpha/classes.rb b/generated/google/apis/oslogin_v1alpha/classes.rb index a932adce8..a14ef457c 100644 --- a/generated/google/apis/oslogin_v1alpha/classes.rb +++ b/generated/google/apis/oslogin_v1alpha/classes.rb @@ -172,7 +172,8 @@ module Google # @return [Fixnum] attr_accessor :expiration_time_usec - # [Output Only] The SHA-256 fingerprint of the SSH public key. + # The SHA-256 fingerprint of the SSH public key. + # Output only. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint diff --git a/generated/google/apis/oslogin_v1alpha/representations.rb b/generated/google/apis/oslogin_v1alpha/representations.rb index 266a26a55..de2bebae9 100644 --- a/generated/google/apis/oslogin_v1alpha/representations.rb +++ b/generated/google/apis/oslogin_v1alpha/representations.rb @@ -82,12 +82,12 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :gecos, as: 'gecos' - property :gid, as: 'gid' + property :gid, :numeric_string => true, as: 'gid' property :home_directory, as: 'homeDirectory' property :primary, as: 'primary' property :shell, as: 'shell' property :system_id, as: 'systemId' - property :uid, as: 'uid' + property :uid, :numeric_string => true, as: 'uid' property :username, as: 'username' end end diff --git a/generated/google/apis/sheets_v4.rb b/generated/google/apis/sheets_v4.rb index d1fcfc261..77140b5cd 100644 --- a/generated/google/apis/sheets_v4.rb +++ b/generated/google/apis/sheets_v4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/sheets/ module SheetsV4 VERSION = 'V4' - REVISION = '20170817' + REVISION = '20170915' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/sheets_v4/classes.rb b/generated/google/apis/sheets_v4/classes.rb index c9844c7bc..175a11f55 100644 --- a/generated/google/apis/sheets_v4/classes.rb +++ b/generated/google/apis/sheets_v4/classes.rb @@ -1224,6 +1224,55 @@ module Google end end + # The request for clearing more than one range selected by a + # DataFilter in a spreadsheet. + class BatchClearValuesByDataFilterRequest + include Google::Apis::Core::Hashable + + # The DataFilters used to determine which ranges to clear. + # Corresponds to the JSON property `dataFilters` + # @return [Array] + attr_accessor :data_filters + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_filters = args[:data_filters] if args.key?(:data_filters) + end + end + + # The response when clearing a range of values selected with + # DataFilters in a spreadsheet. + class BatchClearValuesByDataFilterResponse + include Google::Apis::Core::Hashable + + # The ranges that were cleared, in A1 notation. + # (If the requests were for an unbounded range or a ranger larger + # than the bounds of the sheet, this will be the actual ranges + # that were cleared, bounded to the sheet's limits.) + # Corresponds to the JSON property `clearedRanges` + # @return [Array] + attr_accessor :cleared_ranges + + # The spreadsheet the updates were applied to. + # Corresponds to the JSON property `spreadsheetId` + # @return [String] + attr_accessor :spreadsheet_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cleared_ranges = args[:cleared_ranges] if args.key?(:cleared_ranges) + @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id) + end + end + # The request for clearing more than one range of values in a spreadsheet. class BatchClearValuesRequest include Google::Apis::Core::Hashable @@ -1271,6 +1320,81 @@ module Google end end + # The request for retrieving a range of values in a spreadsheet selected by a + # set of DataFilters. + class BatchGetValuesByDataFilterRequest + include Google::Apis::Core::Hashable + + # The data filters used to match the ranges of values to retrieve. Ranges + # that match any of the specified data filters will be included in the + # response. + # Corresponds to the JSON property `dataFilters` + # @return [Array] + attr_accessor :data_filters + + # How dates, times, and durations should be represented in the output. + # This is ignored if value_render_option is + # FORMATTED_VALUE. + # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. + # Corresponds to the JSON property `dateTimeRenderOption` + # @return [String] + attr_accessor :date_time_render_option + + # The major dimension that results should use. + # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, + # then a request that selects that range and sets `majorDimension=ROWS` will + # return `[[1,2],[3,4]]`, + # whereas a request that sets `majorDimension=COLUMNS` will return + # `[[1,3],[2,4]]`. + # Corresponds to the JSON property `majorDimension` + # @return [String] + attr_accessor :major_dimension + + # How values should be represented in the output. + # The default render option is ValueRenderOption.FORMATTED_VALUE. + # Corresponds to the JSON property `valueRenderOption` + # @return [String] + attr_accessor :value_render_option + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_filters = args[:data_filters] if args.key?(:data_filters) + @date_time_render_option = args[:date_time_render_option] if args.key?(:date_time_render_option) + @major_dimension = args[:major_dimension] if args.key?(:major_dimension) + @value_render_option = args[:value_render_option] if args.key?(:value_render_option) + end + end + + # The response when retrieving more than one range of values in a spreadsheet + # selected by DataFilters. + class BatchGetValuesByDataFilterResponse + include Google::Apis::Core::Hashable + + # The ID of the spreadsheet the data was retrieved from. + # Corresponds to the JSON property `spreadsheetId` + # @return [String] + attr_accessor :spreadsheet_id + + # The requested values with the list of data filters that matched them. + # Corresponds to the JSON property `valueRanges` + # @return [Array] + attr_accessor :value_ranges + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id) + @value_ranges = args[:value_ranges] if args.key?(:value_ranges) + end + end + # The response when retrieving more than one range of values in a spreadsheet. class BatchGetValuesResponse include Google::Apis::Core::Hashable @@ -1374,6 +1498,114 @@ module Google end end + # The request for updating more than one range of values in a spreadsheet. + class BatchUpdateValuesByDataFilterRequest + include Google::Apis::Core::Hashable + + # The new values to apply to the spreadsheet. If more than one range is + # matched by the specified DataFilter the specified values will be + # applied to all of of those ranges. + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # Determines if the update response should include the values + # of the cells that were updated. By default, responses + # do not include the updated values. The `updatedData` field within + # each of the BatchUpdateValuesResponse.responses will contain + # the updated values. If the range to write was larger than than the range + # actually written, the response will include all values in the requested + # range (excluding trailing empty rows and columns). + # Corresponds to the JSON property `includeValuesInResponse` + # @return [Boolean] + attr_accessor :include_values_in_response + alias_method :include_values_in_response?, :include_values_in_response + + # 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. + # Corresponds to the JSON property `responseDateTimeRenderOption` + # @return [String] + attr_accessor :response_date_time_render_option + + # Determines how values in the response should be rendered. + # The default render option is ValueRenderOption.FORMATTED_VALUE. + # Corresponds to the JSON property `responseValueRenderOption` + # @return [String] + attr_accessor :response_value_render_option + + # How the input data should be interpreted. + # Corresponds to the JSON property `valueInputOption` + # @return [String] + attr_accessor :value_input_option + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data = args[:data] if args.key?(:data) + @include_values_in_response = args[:include_values_in_response] if args.key?(:include_values_in_response) + @response_date_time_render_option = args[:response_date_time_render_option] if args.key?(:response_date_time_render_option) + @response_value_render_option = args[:response_value_render_option] if args.key?(:response_value_render_option) + @value_input_option = args[:value_input_option] if args.key?(:value_input_option) + end + end + + # The response when updating a range of values in a spreadsheet. + class BatchUpdateValuesByDataFilterResponse + include Google::Apis::Core::Hashable + + # The response for each range updated. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + # The spreadsheet the updates were applied to. + # Corresponds to the JSON property `spreadsheetId` + # @return [String] + attr_accessor :spreadsheet_id + + # The total number of cells updated. + # Corresponds to the JSON property `totalUpdatedCells` + # @return [Fixnum] + attr_accessor :total_updated_cells + + # The total number of columns where at least one cell in the column was + # updated. + # Corresponds to the JSON property `totalUpdatedColumns` + # @return [Fixnum] + attr_accessor :total_updated_columns + + # The total number of rows where at least one cell in the row was updated. + # Corresponds to the JSON property `totalUpdatedRows` + # @return [Fixnum] + attr_accessor :total_updated_rows + + # The total number of sheets where at least one cell in the sheet was + # updated. + # Corresponds to the JSON property `totalUpdatedSheets` + # @return [Fixnum] + attr_accessor :total_updated_sheets + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @responses = args[:responses] if args.key?(:responses) + @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id) + @total_updated_cells = args[:total_updated_cells] if args.key?(:total_updated_cells) + @total_updated_columns = args[:total_updated_columns] if args.key?(:total_updated_columns) + @total_updated_rows = args[:total_updated_rows] if args.key?(:total_updated_rows) + @total_updated_sheets = args[:total_updated_sheets] if args.key?(:total_updated_sheets) + end + end + # The request for updating more than one range of values in a spreadsheet. class BatchUpdateValuesRequest include Google::Apis::Core::Hashable @@ -2894,6 +3126,58 @@ module Google end end + # A request to create developer metadata. + class CreateDeveloperMetadataRequest + include Google::Apis::Core::Hashable + + # Developer metadata associated with a location or object in a spreadsheet. + # Developer metadata may be used to associate arbitrary data with various + # parts of a spreadsheet and will remain associated at those locations as they + # move around and the spreadsheet is edited. For example, if developer + # metadata is associated with row 5 and another row is then subsequently + # inserted above row 5, that original metadata will still be associated with + # the row it was first associated with (what is now row 6). If the associated + # object is deleted its metadata will be deleted too. + # Corresponds to the JSON property `developerMetadata` + # @return [Google::Apis::SheetsV4::DeveloperMetadata] + attr_accessor :developer_metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata) + end + end + + # The response from creating developer metadata. + class CreateDeveloperMetadataResponse + include Google::Apis::Core::Hashable + + # Developer metadata associated with a location or object in a spreadsheet. + # Developer metadata may be used to associate arbitrary data with various + # parts of a spreadsheet and will remain associated at those locations as they + # move around and the spreadsheet is edited. For example, if developer + # metadata is associated with row 5 and another row is then subsequently + # inserted above row 5, that original metadata will still be associated with + # the row it was first associated with (what is now row 6). If the associated + # object is deleted its metadata will be deleted too. + # Corresponds to the JSON property `developerMetadata` + # @return [Google::Apis::SheetsV4::DeveloperMetadata] + attr_accessor :developer_metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata) + end + end + # Moves data from the source to the destination. class CutPasteRequest include Google::Apis::Core::Hashable @@ -2948,6 +3232,102 @@ module Google end end + # Filter that describes what data should be selected or returned from a + # request. + class DataFilter + include Google::Apis::Core::Hashable + + # Selects data that matches the specified A1 range. + # Corresponds to the JSON property `a1Range` + # @return [String] + attr_accessor :a1_range + + # Selects DeveloperMetadata that matches all of the specified fields. For + # example, if only a metadata ID is specified this will consider the + # DeveloperMetadata with that particular unique ID. If a metadata key is + # specified, all developer metadata with that key will be considered. If a + # key, visibility, and location type are all specified, then all + # developer metadata with that key, visibility, and associated with a + # location of that type will be considered. In general, this + # selects all DeveloperMetadata that matches the intersection of all the + # specified fields; any field or combination of fields may be specified. + # Corresponds to the JSON property `developerMetadataLookup` + # @return [Google::Apis::SheetsV4::DeveloperMetadataLookup] + attr_accessor :developer_metadata_lookup + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `gridRange` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :grid_range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @a1_range = args[:a1_range] if args.key?(:a1_range) + @developer_metadata_lookup = args[:developer_metadata_lookup] if args.key?(:developer_metadata_lookup) + @grid_range = args[:grid_range] if args.key?(:grid_range) + end + end + + # A range of values whose location is specified by a DataFilter. + class DataFilterValueRange + include Google::Apis::Core::Hashable + + # Filter that describes what data should be selected or returned from a + # request. + # Corresponds to the JSON property `dataFilter` + # @return [Google::Apis::SheetsV4::DataFilter] + attr_accessor :data_filter + + # The major dimension of the values. + # Corresponds to the JSON property `majorDimension` + # @return [String] + attr_accessor :major_dimension + + # The data to be written. If the provided values exceed any of the ranges + # matched by the data filter then the request will fail. If the provided + # values are less than the matched ranges only the specified values will be + # written, existing values in the matched ranges will remain unaffected. + # Corresponds to the JSON property `values` + # @return [Array>] + attr_accessor :values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_filter = args[:data_filter] if args.key?(:data_filter) + @major_dimension = args[:major_dimension] if args.key?(:major_dimension) + @values = args[:values] if args.key?(:values) + end + end + # A data validation rule. class DataValidationRule include Google::Apis::Core::Hashable @@ -3054,6 +3434,45 @@ module Google end end + # A request to delete developer metadata. + class DeleteDeveloperMetadataRequest + include Google::Apis::Core::Hashable + + # Filter that describes what data should be selected or returned from a + # request. + # Corresponds to the JSON property `dataFilter` + # @return [Google::Apis::SheetsV4::DataFilter] + attr_accessor :data_filter + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_filter = args[:data_filter] if args.key?(:data_filter) + end + end + + # The response from deleting developer metadata. + class DeleteDeveloperMetadataResponse + include Google::Apis::Core::Hashable + + # The metadata that was deleted. + # Corresponds to the JSON property `deletedDeveloperMetadata` + # @return [Array] + attr_accessor :deleted_developer_metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deleted_developer_metadata = args[:deleted_developer_metadata] if args.key?(:deleted_developer_metadata) + end + end + # Deletes the dimensions from the sheet. class DeleteDimensionRequest include Google::Apis::Core::Hashable @@ -3221,10 +3640,200 @@ module Google end end + # Developer metadata associated with a location or object in a spreadsheet. + # Developer metadata may be used to associate arbitrary data with various + # parts of a spreadsheet and will remain associated at those locations as they + # move around and the spreadsheet is edited. For example, if developer + # metadata is associated with row 5 and another row is then subsequently + # inserted above row 5, that original metadata will still be associated with + # the row it was first associated with (what is now row 6). If the associated + # object is deleted its metadata will be deleted too. + class DeveloperMetadata + include Google::Apis::Core::Hashable + + # A location where metadata may be associated in a spreadsheet. + # Corresponds to the JSON property `location` + # @return [Google::Apis::SheetsV4::DeveloperMetadataLocation] + attr_accessor :location + + # The spreadsheet-scoped unique ID that identifies the metadata. IDs may be + # specified when metadata is created, otherwise one will be randomly + # generated and assigned. Must be positive. + # Corresponds to the JSON property `metadataId` + # @return [Fixnum] + attr_accessor :metadata_id + + # The metadata key. There may be multiple metadata in a spreadsheet with the + # same key. Developer metadata must always have a key specified. + # Corresponds to the JSON property `metadataKey` + # @return [String] + attr_accessor :metadata_key + + # Data associated with the metadata's key. + # Corresponds to the JSON property `metadataValue` + # @return [String] + attr_accessor :metadata_value + + # The metadata visibility. Developer metadata must always have a visibility + # specified. + # Corresponds to the JSON property `visibility` + # @return [String] + attr_accessor :visibility + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @location = args[:location] if args.key?(:location) + @metadata_id = args[:metadata_id] if args.key?(:metadata_id) + @metadata_key = args[:metadata_key] if args.key?(:metadata_key) + @metadata_value = args[:metadata_value] if args.key?(:metadata_value) + @visibility = args[:visibility] if args.key?(:visibility) + end + end + + # A location where metadata may be associated in a spreadsheet. + class DeveloperMetadataLocation + include Google::Apis::Core::Hashable + + # A range along a single dimension on a sheet. + # All indexes are zero-based. + # Indexes are half open: the start index is inclusive + # and the end index is exclusive. + # Missing indexes indicate the range is unbounded on that side. + # Corresponds to the JSON property `dimensionRange` + # @return [Google::Apis::SheetsV4::DimensionRange] + attr_accessor :dimension_range + + # The type of location this object represents. This field is read-only. + # Corresponds to the JSON property `locationType` + # @return [String] + attr_accessor :location_type + + # The ID of the sheet when metadata is associated with an entire sheet. + # Corresponds to the JSON property `sheetId` + # @return [Fixnum] + attr_accessor :sheet_id + + # True when metadata is associated with an entire spreadsheet. + # Corresponds to the JSON property `spreadsheet` + # @return [Boolean] + attr_accessor :spreadsheet + alias_method :spreadsheet?, :spreadsheet + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dimension_range = args[:dimension_range] if args.key?(:dimension_range) + @location_type = args[:location_type] if args.key?(:location_type) + @sheet_id = args[:sheet_id] if args.key?(:sheet_id) + @spreadsheet = args[:spreadsheet] if args.key?(:spreadsheet) + end + end + + # Selects DeveloperMetadata that matches all of the specified fields. For + # example, if only a metadata ID is specified this will consider the + # DeveloperMetadata with that particular unique ID. If a metadata key is + # specified, all developer metadata with that key will be considered. If a + # key, visibility, and location type are all specified, then all + # developer metadata with that key, visibility, and associated with a + # location of that type will be considered. In general, this + # selects all DeveloperMetadata that matches the intersection of all the + # specified fields; any field or combination of fields may be specified. + class DeveloperMetadataLookup + include Google::Apis::Core::Hashable + + # Determines how this lookup matches the location. If this field is + # specified as EXACT, only developer metadata associated on the exact + # location specified will be matched. If this field is specified to + # INTERSECTING, + # developer metadata associated on intersecting locations will also be + # matched. If left unspecified, this field will assume a default value of + # INTERSECTING. + # If this field is specified, a metadataLocation + # must also be specified. + # Corresponds to the JSON property `locationMatchingStrategy` + # @return [String] + attr_accessor :location_matching_strategy + + # Limits the selected developer metadata to those entries which are + # associated with locations of the specified type. For example, specifying + # this as ROW will only consider + # developer metadata associated on rows. If left unspecified, all location + # types will be considered. This field cannot be specified as + # SPREADSHEET when the + # locationMatchingStrategy is + # specified as INTERSECTING or when the + # metadataLocation is specified as a + # non-spreadsheet location: spreadsheet metadata cannot intersect any other + # developer metadata location. This field also must be left unspecified when + # the + # locationMatchingStrategy is + # specified as EXACT. + # Corresponds to the JSON property `locationType` + # @return [String] + attr_accessor :location_type + + # Limits the selected developer metadata to that which has a matching + # DeveloperMetadata.metadata_id. + # Corresponds to the JSON property `metadataId` + # @return [Fixnum] + attr_accessor :metadata_id + + # Limits the selected developer metadata to that which has a matching + # DeveloperMetadata.metadata_key. + # Corresponds to the JSON property `metadataKey` + # @return [String] + attr_accessor :metadata_key + + # A location where metadata may be associated in a spreadsheet. + # Corresponds to the JSON property `metadataLocation` + # @return [Google::Apis::SheetsV4::DeveloperMetadataLocation] + attr_accessor :metadata_location + + # Limits the selected developer metadata to that which has a matching + # DeveloperMetadata.metadata_value. + # Corresponds to the JSON property `metadataValue` + # @return [String] + attr_accessor :metadata_value + + # Limits the selected developer metadata to that which has a matching + # DeveloperMetadata.visibility. If left unspecified, all developer + # metadata visibile to the requesting project will be considered. + # Corresponds to the JSON property `visibility` + # @return [String] + attr_accessor :visibility + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @location_matching_strategy = args[:location_matching_strategy] if args.key?(:location_matching_strategy) + @location_type = args[:location_type] if args.key?(:location_type) + @metadata_id = args[:metadata_id] if args.key?(:metadata_id) + @metadata_key = args[:metadata_key] if args.key?(:metadata_key) + @metadata_location = args[:metadata_location] if args.key?(:metadata_location) + @metadata_value = args[:metadata_value] if args.key?(:metadata_value) + @visibility = args[:visibility] if args.key?(:visibility) + end + end + # Properties about a dimension. class DimensionProperties include Google::Apis::Core::Hashable + # The developer metadata associated with a single row or column. + # Corresponds to the JSON property `developerMetadata` + # @return [Array] + attr_accessor :developer_metadata + # True if this dimension is being filtered. # This field is read-only. # Corresponds to the JSON property `hiddenByFilter` @@ -3249,6 +3858,7 @@ module Google # Update properties of this object def update!(**args) + @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata) @hidden_by_filter = args[:hidden_by_filter] if args.key?(:hidden_by_filter) @hidden_by_user = args[:hidden_by_user] if args.key?(:hidden_by_user) @pixel_size = args[:pixel_size] if args.key?(:pixel_size) @@ -3814,6 +4424,34 @@ module Google end end + # The request for retrieving a Spreadsheet. + class GetSpreadsheetByDataFilterRequest + include Google::Apis::Core::Hashable + + # The DataFilters used to select which ranges to retrieve from + # the spreadsheet. + # Corresponds to the JSON property `dataFilters` + # @return [Array] + attr_accessor :data_filters + + # True if grid data should be returned. + # This parameter is ignored if a field mask was set in the request. + # Corresponds to the JSON property `includeGridData` + # @return [Boolean] + attr_accessor :include_grid_data + alias_method :include_grid_data?, :include_grid_data + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_filters = args[:data_filters] if args.key?(:data_filters) + @include_grid_data = args[:include_grid_data] if args.key?(:include_grid_data) + end + end + # A rule that applies a gradient color scale format, based on # the interpolation points listed. The format of a cell will vary # based on its contents as compared to the values of the interpolation @@ -4475,6 +5113,65 @@ module Google end end + # A developer metadata entry and the data filters specified in the original + # request that matched it. + class MatchedDeveloperMetadata + include Google::Apis::Core::Hashable + + # All filters matching the returned developer metadata. + # Corresponds to the JSON property `dataFilters` + # @return [Array] + attr_accessor :data_filters + + # Developer metadata associated with a location or object in a spreadsheet. + # Developer metadata may be used to associate arbitrary data with various + # parts of a spreadsheet and will remain associated at those locations as they + # move around and the spreadsheet is edited. For example, if developer + # metadata is associated with row 5 and another row is then subsequently + # inserted above row 5, that original metadata will still be associated with + # the row it was first associated with (what is now row 6). If the associated + # object is deleted its metadata will be deleted too. + # Corresponds to the JSON property `developerMetadata` + # @return [Google::Apis::SheetsV4::DeveloperMetadata] + attr_accessor :developer_metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_filters = args[:data_filters] if args.key?(:data_filters) + @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata) + end + end + + # A value range that was matched by one or more data filers. + class MatchedValueRange + include Google::Apis::Core::Hashable + + # The DataFilters from the request that matched the range of + # values. + # Corresponds to the JSON property `dataFilters` + # @return [Array] + attr_accessor :data_filters + + # Data within a range of the spreadsheet. + # Corresponds to the JSON property `valueRange` + # @return [Google::Apis::SheetsV4::ValueRange] + attr_accessor :value_range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_filters = args[:data_filters] if args.key?(:data_filters) + @value_range = args[:value_range] if args.key?(:value_range) + end + end + # Merges all cells in the range. class MergeCellsRequest include Google::Apis::Core::Hashable @@ -5594,6 +6291,11 @@ module Google # @return [Google::Apis::SheetsV4::CopyPasteRequest] attr_accessor :copy_paste + # A request to create developer metadata. + # Corresponds to the JSON property `createDeveloperMetadata` + # @return [Google::Apis::SheetsV4::CreateDeveloperMetadataRequest] + attr_accessor :create_developer_metadata + # Moves data from the source to the destination. # Corresponds to the JSON property `cutPaste` # @return [Google::Apis::SheetsV4::CutPasteRequest] @@ -5610,6 +6312,11 @@ module Google # @return [Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest] attr_accessor :delete_conditional_format_rule + # A request to delete developer metadata. + # Corresponds to the JSON property `deleteDeveloperMetadata` + # @return [Google::Apis::SheetsV4::DeleteDeveloperMetadataRequest] + attr_accessor :delete_developer_metadata + # Deletes the dimensions from the sheet. # Corresponds to the JSON property `deleteDimension` # @return [Google::Apis::SheetsV4::DeleteDimensionRequest] @@ -5768,6 +6475,16 @@ module Google # @return [Google::Apis::SheetsV4::UpdateConditionalFormatRuleRequest] attr_accessor :update_conditional_format_rule + # A request to update properties of developer metadata. + # Updates the properties of the developer metadata selected by the filters to + # the values provided in the DeveloperMetadata resource. Callers must + # specify the properties they wish to update in the fields parameter, as well + # as specify at least one DataFilter matching the metadata they wish to + # update. + # Corresponds to the JSON property `updateDeveloperMetadata` + # @return [Google::Apis::SheetsV4::UpdateDeveloperMetadataRequest] + attr_accessor :update_developer_metadata + # Updates properties of dimensions within the specified range. # Corresponds to the JSON property `updateDimensionProperties` # @return [Google::Apis::SheetsV4::UpdateDimensionPropertiesRequest] @@ -5826,9 +6543,11 @@ module Google @auto_resize_dimensions = args[:auto_resize_dimensions] if args.key?(:auto_resize_dimensions) @clear_basic_filter = args[:clear_basic_filter] if args.key?(:clear_basic_filter) @copy_paste = args[:copy_paste] if args.key?(:copy_paste) + @create_developer_metadata = args[:create_developer_metadata] if args.key?(:create_developer_metadata) @cut_paste = args[:cut_paste] if args.key?(:cut_paste) @delete_banding = args[:delete_banding] if args.key?(:delete_banding) @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule) + @delete_developer_metadata = args[:delete_developer_metadata] if args.key?(:delete_developer_metadata) @delete_dimension = args[:delete_dimension] if args.key?(:delete_dimension) @delete_embedded_object = args[:delete_embedded_object] if args.key?(:delete_embedded_object) @delete_filter_view = args[:delete_filter_view] if args.key?(:delete_filter_view) @@ -5856,6 +6575,7 @@ module Google @update_cells = args[:update_cells] if args.key?(:update_cells) @update_chart_spec = args[:update_chart_spec] if args.key?(:update_chart_spec) @update_conditional_format_rule = args[:update_conditional_format_rule] if args.key?(:update_conditional_format_rule) + @update_developer_metadata = args[:update_developer_metadata] if args.key?(:update_developer_metadata) @update_dimension_properties = args[:update_dimension_properties] if args.key?(:update_dimension_properties) @update_embedded_object_position = args[:update_embedded_object_position] if args.key?(:update_embedded_object_position) @update_filter_view = args[:update_filter_view] if args.key?(:update_filter_view) @@ -5900,11 +6620,21 @@ module Google # @return [Google::Apis::SheetsV4::AddSheetResponse] attr_accessor :add_sheet + # The response from creating developer metadata. + # Corresponds to the JSON property `createDeveloperMetadata` + # @return [Google::Apis::SheetsV4::CreateDeveloperMetadataResponse] + attr_accessor :create_developer_metadata + # The result of deleting a conditional format rule. # Corresponds to the JSON property `deleteConditionalFormatRule` # @return [Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse] attr_accessor :delete_conditional_format_rule + # The response from deleting developer metadata. + # Corresponds to the JSON property `deleteDeveloperMetadata` + # @return [Google::Apis::SheetsV4::DeleteDeveloperMetadataResponse] + attr_accessor :delete_developer_metadata + # The result of a filter view being duplicated. # Corresponds to the JSON property `duplicateFilterView` # @return [Google::Apis::SheetsV4::DuplicateFilterViewResponse] @@ -5925,6 +6655,11 @@ module Google # @return [Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse] attr_accessor :update_conditional_format_rule + # The response from updating developer metadata. + # Corresponds to the JSON property `updateDeveloperMetadata` + # @return [Google::Apis::SheetsV4::UpdateDeveloperMetadataResponse] + attr_accessor :update_developer_metadata + # The result of updating an embedded object's position. # Corresponds to the JSON property `updateEmbeddedObjectPosition` # @return [Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionResponse] @@ -5942,11 +6677,14 @@ module Google @add_named_range = args[:add_named_range] if args.key?(:add_named_range) @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range) @add_sheet = args[:add_sheet] if args.key?(:add_sheet) + @create_developer_metadata = args[:create_developer_metadata] if args.key?(:create_developer_metadata) @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule) + @delete_developer_metadata = args[:delete_developer_metadata] if args.key?(:delete_developer_metadata) @duplicate_filter_view = args[:duplicate_filter_view] if args.key?(:duplicate_filter_view) @duplicate_sheet = args[:duplicate_sheet] if args.key?(:duplicate_sheet) @find_replace = args[:find_replace] if args.key?(:find_replace) @update_conditional_format_rule = args[:update_conditional_format_rule] if args.key?(:update_conditional_format_rule) + @update_developer_metadata = args[:update_developer_metadata] if args.key?(:update_developer_metadata) @update_embedded_object_position = args[:update_embedded_object_position] if args.key?(:update_embedded_object_position) end end @@ -5970,6 +6708,47 @@ module Google end end + # A request to retrieve all developer metadata matching the set of specified + # criteria. + class SearchDeveloperMetadataRequest + include Google::Apis::Core::Hashable + + # The data filters describing the criteria used to determine which + # DeveloperMetadata entries to return. DeveloperMetadata matching any of the + # specified filters will be included in the response. + # Corresponds to the JSON property `dataFilters` + # @return [Array] + attr_accessor :data_filters + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_filters = args[:data_filters] if args.key?(:data_filters) + end + end + + # A reply to a developer metadata search request. + class SearchDeveloperMetadataResponse + include Google::Apis::Core::Hashable + + # The metadata matching the criteria of the search request. + # Corresponds to the JSON property `matchedDeveloperMetadata` + # @return [Array] + attr_accessor :matched_developer_metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @matched_developer_metadata = args[:matched_developer_metadata] if args.key?(:matched_developer_metadata) + end + end + # Sets the basic filter associated with a sheet. class SetBasicFilterRequest include Google::Apis::Core::Hashable @@ -6072,6 +6851,11 @@ module Google # @return [Array] attr_accessor :data + # The developer metadata associated with a sheet. + # Corresponds to the JSON property `developerMetadata` + # @return [Array] + attr_accessor :developer_metadata + # The filter views in this sheet. # Corresponds to the JSON property `filterViews` # @return [Array] @@ -6103,6 +6887,7 @@ module Google @charts = args[:charts] if args.key?(:charts) @conditional_formats = args[:conditional_formats] if args.key?(:conditional_formats) @data = args[:data] if args.key?(:data) + @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata) @filter_views = args[:filter_views] if args.key?(:filter_views) @merges = args[:merges] if args.key?(:merges) @properties = args[:properties] if args.key?(:properties) @@ -6413,6 +7198,11 @@ module Google class Spreadsheet include Google::Apis::Core::Hashable + # The developer metadata associated with a spreadsheet. + # Corresponds to the JSON property `developerMetadata` + # @return [Array] + attr_accessor :developer_metadata + # The named ranges defined in a spreadsheet. # Corresponds to the JSON property `namedRanges` # @return [Array] @@ -6446,6 +7236,7 @@ module Google # Update properties of this object def update!(**args) + @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata) @named_ranges = args[:named_ranges] if args.key?(:named_ranges) @properties = args[:properties] if args.key?(:properties) @sheets = args[:sheets] if args.key?(:sheets) @@ -7107,6 +7898,70 @@ module Google end end + # A request to update properties of developer metadata. + # Updates the properties of the developer metadata selected by the filters to + # the values provided in the DeveloperMetadata resource. Callers must + # specify the properties they wish to update in the fields parameter, as well + # as specify at least one DataFilter matching the metadata they wish to + # update. + class UpdateDeveloperMetadataRequest + include Google::Apis::Core::Hashable + + # The filters matching the developer metadata entries to update. + # Corresponds to the JSON property `dataFilters` + # @return [Array] + attr_accessor :data_filters + + # Developer metadata associated with a location or object in a spreadsheet. + # Developer metadata may be used to associate arbitrary data with various + # parts of a spreadsheet and will remain associated at those locations as they + # move around and the spreadsheet is edited. For example, if developer + # metadata is associated with row 5 and another row is then subsequently + # inserted above row 5, that original metadata will still be associated with + # the row it was first associated with (what is now row 6). If the associated + # object is deleted its metadata will be deleted too. + # Corresponds to the JSON property `developerMetadata` + # @return [Google::Apis::SheetsV4::DeveloperMetadata] + attr_accessor :developer_metadata + + # The fields that should be updated. At least one field must be specified. + # The root `developerMetadata` is implied and should not be specified. + # A single `"*"` can be used as short-hand for listing every field. + # Corresponds to the JSON property `fields` + # @return [String] + attr_accessor :fields + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_filters = args[:data_filters] if args.key?(:data_filters) + @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata) + @fields = args[:fields] if args.key?(:fields) + end + end + + # The response from updating developer metadata. + class UpdateDeveloperMetadataResponse + include Google::Apis::Core::Hashable + + # The updated developer metadata. + # Corresponds to the JSON property `developerMetadata` + # @return [Array] + attr_accessor :developer_metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata) + end + end + # Updates properties of dimensions within the specified range. class UpdateDimensionPropertiesRequest include Google::Apis::Core::Hashable @@ -7339,6 +8194,57 @@ module Google end end + # The response when updating a range of values by a data filter in a + # spreadsheet. + class UpdateValuesByDataFilterResponse + include Google::Apis::Core::Hashable + + # Filter that describes what data should be selected or returned from a + # request. + # Corresponds to the JSON property `dataFilter` + # @return [Google::Apis::SheetsV4::DataFilter] + attr_accessor :data_filter + + # The number of cells updated. + # Corresponds to the JSON property `updatedCells` + # @return [Fixnum] + attr_accessor :updated_cells + + # The number of columns where at least one cell in the column was updated. + # Corresponds to the JSON property `updatedColumns` + # @return [Fixnum] + attr_accessor :updated_columns + + # Data within a range of the spreadsheet. + # Corresponds to the JSON property `updatedData` + # @return [Google::Apis::SheetsV4::ValueRange] + attr_accessor :updated_data + + # The range (in A1 notation) that updates were applied to. + # Corresponds to the JSON property `updatedRange` + # @return [String] + attr_accessor :updated_range + + # The number of rows where at least one cell in the row was updated. + # Corresponds to the JSON property `updatedRows` + # @return [Fixnum] + attr_accessor :updated_rows + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_filter = args[:data_filter] if args.key?(:data_filter) + @updated_cells = args[:updated_cells] if args.key?(:updated_cells) + @updated_columns = args[:updated_columns] if args.key?(:updated_columns) + @updated_data = args[:updated_data] if args.key?(:updated_data) + @updated_range = args[:updated_range] if args.key?(:updated_range) + @updated_rows = args[:updated_rows] if args.key?(:updated_rows) + end + end + # The response when updating a range of values in a spreadsheet. class UpdateValuesResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/sheets_v4/representations.rb b/generated/google/apis/sheets_v4/representations.rb index f502046b4..f88150ec3 100644 --- a/generated/google/apis/sheets_v4/representations.rb +++ b/generated/google/apis/sheets_v4/representations.rb @@ -172,6 +172,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BatchClearValuesByDataFilterRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BatchClearValuesByDataFilterResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BatchClearValuesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -184,6 +196,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BatchGetValuesByDataFilterRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BatchGetValuesByDataFilterResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BatchGetValuesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -202,6 +226,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BatchUpdateValuesByDataFilterRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BatchUpdateValuesByDataFilterResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BatchUpdateValuesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -346,12 +382,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CreateDeveloperMetadataRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreateDeveloperMetadataResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CutPasteRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class DataFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DataFilterValueRange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DataValidationRule class Representation < Google::Apis::Core::JsonRepresentation; end @@ -376,6 +436,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DeleteDeveloperMetadataRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeleteDeveloperMetadataResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DeleteDimensionRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -418,6 +490,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DeveloperMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeveloperMetadataLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeveloperMetadataLookup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DimensionProperties class Representation < Google::Apis::Core::JsonRepresentation; end @@ -508,6 +598,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GetSpreadsheetByDataFilterRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GradientRule class Representation < Google::Apis::Core::JsonRepresentation; end @@ -574,6 +670,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MatchedDeveloperMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MatchedValueRange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class MergeCellsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -700,6 +808,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SearchDeveloperMetadataRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SearchDeveloperMetadataResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SetBasicFilterRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -820,6 +940,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UpdateDeveloperMetadataRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateDeveloperMetadataResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UpdateDimensionPropertiesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -868,6 +1000,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UpdateValuesByDataFilterResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UpdateValuesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1120,6 +1258,22 @@ module Google end end + class BatchClearValuesByDataFilterRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :data_filters, as: 'dataFilters', class: Google::Apis::SheetsV4::DataFilter, decorator: Google::Apis::SheetsV4::DataFilter::Representation + + end + end + + class BatchClearValuesByDataFilterResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :cleared_ranges, as: 'clearedRanges' + property :spreadsheet_id, as: 'spreadsheetId' + end + end + class BatchClearValuesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1135,6 +1289,26 @@ module Google end end + class BatchGetValuesByDataFilterRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :data_filters, as: 'dataFilters', class: Google::Apis::SheetsV4::DataFilter, decorator: Google::Apis::SheetsV4::DataFilter::Representation + + property :date_time_render_option, as: 'dateTimeRenderOption' + property :major_dimension, as: 'majorDimension' + property :value_render_option, as: 'valueRenderOption' + end + end + + class BatchGetValuesByDataFilterResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :spreadsheet_id, as: 'spreadsheetId' + collection :value_ranges, as: 'valueRanges', class: Google::Apis::SheetsV4::MatchedValueRange, decorator: Google::Apis::SheetsV4::MatchedValueRange::Representation + + end + end + class BatchGetValuesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1166,6 +1340,31 @@ module Google end end + class BatchUpdateValuesByDataFilterRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :data, as: 'data', class: Google::Apis::SheetsV4::DataFilterValueRange, decorator: Google::Apis::SheetsV4::DataFilterValueRange::Representation + + property :include_values_in_response, as: 'includeValuesInResponse' + property :response_date_time_render_option, as: 'responseDateTimeRenderOption' + property :response_value_render_option, as: 'responseValueRenderOption' + property :value_input_option, as: 'valueInputOption' + end + end + + class BatchUpdateValuesByDataFilterResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :responses, as: 'responses', class: Google::Apis::SheetsV4::UpdateValuesByDataFilterResponse, decorator: Google::Apis::SheetsV4::UpdateValuesByDataFilterResponse::Representation + + property :spreadsheet_id, as: 'spreadsheetId' + property :total_updated_cells, as: 'totalUpdatedCells' + property :total_updated_columns, as: 'totalUpdatedColumns' + property :total_updated_rows, as: 'totalUpdatedRows' + property :total_updated_sheets, as: 'totalUpdatedSheets' + end + end + class BatchUpdateValuesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1458,6 +1657,22 @@ module Google end end + class CreateDeveloperMetadataRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :developer_metadata, as: 'developerMetadata', class: Google::Apis::SheetsV4::DeveloperMetadata, decorator: Google::Apis::SheetsV4::DeveloperMetadata::Representation + + end + end + + class CreateDeveloperMetadataResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :developer_metadata, as: 'developerMetadata', class: Google::Apis::SheetsV4::DeveloperMetadata, decorator: Google::Apis::SheetsV4::DeveloperMetadata::Representation + + end + end + class CutPasteRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1469,6 +1684,31 @@ module Google end end + class DataFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :a1_range, as: 'a1Range' + property :developer_metadata_lookup, as: 'developerMetadataLookup', class: Google::Apis::SheetsV4::DeveloperMetadataLookup, decorator: Google::Apis::SheetsV4::DeveloperMetadataLookup::Representation + + property :grid_range, as: 'gridRange', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + end + end + + class DataFilterValueRange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data_filter, as: 'dataFilter', class: Google::Apis::SheetsV4::DataFilter, decorator: Google::Apis::SheetsV4::DataFilter::Representation + + property :major_dimension, as: 'majorDimension' + collection :values, as: 'values', :class => Array do + include Representable::JSON::Collection + items + end + + end + end + class DataValidationRule # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1503,6 +1743,22 @@ module Google end end + class DeleteDeveloperMetadataRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data_filter, as: 'dataFilter', class: Google::Apis::SheetsV4::DataFilter, decorator: Google::Apis::SheetsV4::DataFilter::Representation + + end + end + + class DeleteDeveloperMetadataResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :deleted_developer_metadata, as: 'deletedDeveloperMetadata', class: Google::Apis::SheetsV4::DeveloperMetadata, decorator: Google::Apis::SheetsV4::DeveloperMetadata::Representation + + end + end + class DeleteDimensionRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1555,9 +1811,48 @@ module Google end end + class DeveloperMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :location, as: 'location', class: Google::Apis::SheetsV4::DeveloperMetadataLocation, decorator: Google::Apis::SheetsV4::DeveloperMetadataLocation::Representation + + property :metadata_id, as: 'metadataId' + property :metadata_key, as: 'metadataKey' + property :metadata_value, as: 'metadataValue' + property :visibility, as: 'visibility' + end + end + + class DeveloperMetadataLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dimension_range, as: 'dimensionRange', class: Google::Apis::SheetsV4::DimensionRange, decorator: Google::Apis::SheetsV4::DimensionRange::Representation + + property :location_type, as: 'locationType' + property :sheet_id, as: 'sheetId' + property :spreadsheet, as: 'spreadsheet' + end + end + + class DeveloperMetadataLookup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :location_matching_strategy, as: 'locationMatchingStrategy' + property :location_type, as: 'locationType' + property :metadata_id, as: 'metadataId' + property :metadata_key, as: 'metadataKey' + property :metadata_location, as: 'metadataLocation', class: Google::Apis::SheetsV4::DeveloperMetadataLocation, decorator: Google::Apis::SheetsV4::DeveloperMetadataLocation::Representation + + property :metadata_value, as: 'metadataValue' + property :visibility, as: 'visibility' + end + end + class DimensionProperties # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :developer_metadata, as: 'developerMetadata', class: Google::Apis::SheetsV4::DeveloperMetadata, decorator: Google::Apis::SheetsV4::DeveloperMetadata::Representation + property :hidden_by_filter, as: 'hiddenByFilter' property :hidden_by_user, as: 'hiddenByUser' property :pixel_size, as: 'pixelSize' @@ -1708,6 +2003,15 @@ module Google end end + class GetSpreadsheetByDataFilterRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :data_filters, as: 'dataFilters', class: Google::Apis::SheetsV4::DataFilter, decorator: Google::Apis::SheetsV4::DataFilter::Representation + + property :include_grid_data, as: 'includeGridData' + end + end + class GradientRule # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1823,6 +2127,26 @@ module Google end end + class MatchedDeveloperMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :data_filters, as: 'dataFilters', class: Google::Apis::SheetsV4::DataFilter, decorator: Google::Apis::SheetsV4::DataFilter::Representation + + property :developer_metadata, as: 'developerMetadata', class: Google::Apis::SheetsV4::DeveloperMetadata, decorator: Google::Apis::SheetsV4::DeveloperMetadata::Representation + + end + end + + class MatchedValueRange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :data_filters, as: 'dataFilters', class: Google::Apis::SheetsV4::DataFilter, decorator: Google::Apis::SheetsV4::DataFilter::Representation + + property :value_range, as: 'valueRange', class: Google::Apis::SheetsV4::ValueRange, decorator: Google::Apis::SheetsV4::ValueRange::Representation + + end + end + class MergeCellsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2053,12 +2377,16 @@ module Google property :copy_paste, as: 'copyPaste', class: Google::Apis::SheetsV4::CopyPasteRequest, decorator: Google::Apis::SheetsV4::CopyPasteRequest::Representation + property :create_developer_metadata, as: 'createDeveloperMetadata', class: Google::Apis::SheetsV4::CreateDeveloperMetadataRequest, decorator: Google::Apis::SheetsV4::CreateDeveloperMetadataRequest::Representation + property :cut_paste, as: 'cutPaste', class: Google::Apis::SheetsV4::CutPasteRequest, decorator: Google::Apis::SheetsV4::CutPasteRequest::Representation property :delete_banding, as: 'deleteBanding', class: Google::Apis::SheetsV4::DeleteBandingRequest, decorator: Google::Apis::SheetsV4::DeleteBandingRequest::Representation property :delete_conditional_format_rule, as: 'deleteConditionalFormatRule', class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest, decorator: Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest::Representation + property :delete_developer_metadata, as: 'deleteDeveloperMetadata', class: Google::Apis::SheetsV4::DeleteDeveloperMetadataRequest, decorator: Google::Apis::SheetsV4::DeleteDeveloperMetadataRequest::Representation + property :delete_dimension, as: 'deleteDimension', class: Google::Apis::SheetsV4::DeleteDimensionRequest, decorator: Google::Apis::SheetsV4::DeleteDimensionRequest::Representation property :delete_embedded_object, as: 'deleteEmbeddedObject', class: Google::Apis::SheetsV4::DeleteEmbeddedObjectRequest, decorator: Google::Apis::SheetsV4::DeleteEmbeddedObjectRequest::Representation @@ -2113,6 +2441,8 @@ module Google property :update_conditional_format_rule, as: 'updateConditionalFormatRule', class: Google::Apis::SheetsV4::UpdateConditionalFormatRuleRequest, decorator: Google::Apis::SheetsV4::UpdateConditionalFormatRuleRequest::Representation + property :update_developer_metadata, as: 'updateDeveloperMetadata', class: Google::Apis::SheetsV4::UpdateDeveloperMetadataRequest, decorator: Google::Apis::SheetsV4::UpdateDeveloperMetadataRequest::Representation + property :update_dimension_properties, as: 'updateDimensionProperties', class: Google::Apis::SheetsV4::UpdateDimensionPropertiesRequest, decorator: Google::Apis::SheetsV4::UpdateDimensionPropertiesRequest::Representation property :update_embedded_object_position, as: 'updateEmbeddedObjectPosition', class: Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionRequest, decorator: Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionRequest::Representation @@ -2145,8 +2475,12 @@ module Google property :add_sheet, as: 'addSheet', class: Google::Apis::SheetsV4::AddSheetResponse, decorator: Google::Apis::SheetsV4::AddSheetResponse::Representation + property :create_developer_metadata, as: 'createDeveloperMetadata', class: Google::Apis::SheetsV4::CreateDeveloperMetadataResponse, decorator: Google::Apis::SheetsV4::CreateDeveloperMetadataResponse::Representation + property :delete_conditional_format_rule, as: 'deleteConditionalFormatRule', class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse, decorator: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse::Representation + property :delete_developer_metadata, as: 'deleteDeveloperMetadata', class: Google::Apis::SheetsV4::DeleteDeveloperMetadataResponse, decorator: Google::Apis::SheetsV4::DeleteDeveloperMetadataResponse::Representation + property :duplicate_filter_view, as: 'duplicateFilterView', class: Google::Apis::SheetsV4::DuplicateFilterViewResponse, decorator: Google::Apis::SheetsV4::DuplicateFilterViewResponse::Representation property :duplicate_sheet, as: 'duplicateSheet', class: Google::Apis::SheetsV4::DuplicateSheetResponse, decorator: Google::Apis::SheetsV4::DuplicateSheetResponse::Representation @@ -2155,6 +2489,8 @@ module Google property :update_conditional_format_rule, as: 'updateConditionalFormatRule', class: Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse, decorator: Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse::Representation + property :update_developer_metadata, as: 'updateDeveloperMetadata', class: Google::Apis::SheetsV4::UpdateDeveloperMetadataResponse, decorator: Google::Apis::SheetsV4::UpdateDeveloperMetadataResponse::Representation + property :update_embedded_object_position, as: 'updateEmbeddedObjectPosition', class: Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionResponse, decorator: Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionResponse::Representation end @@ -2168,6 +2504,22 @@ module Google end end + class SearchDeveloperMetadataRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :data_filters, as: 'dataFilters', class: Google::Apis::SheetsV4::DataFilter, decorator: Google::Apis::SheetsV4::DataFilter::Representation + + end + end + + class SearchDeveloperMetadataResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :matched_developer_metadata, as: 'matchedDeveloperMetadata', class: Google::Apis::SheetsV4::MatchedDeveloperMetadata, decorator: Google::Apis::SheetsV4::MatchedDeveloperMetadata::Representation + + end + end + class SetBasicFilterRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2199,6 +2551,8 @@ module Google collection :data, as: 'data', class: Google::Apis::SheetsV4::GridData, decorator: Google::Apis::SheetsV4::GridData::Representation + collection :developer_metadata, as: 'developerMetadata', class: Google::Apis::SheetsV4::DeveloperMetadata, decorator: Google::Apis::SheetsV4::DeveloperMetadata::Representation + collection :filter_views, as: 'filterViews', class: Google::Apis::SheetsV4::FilterView, decorator: Google::Apis::SheetsV4::FilterView::Representation collection :merges, as: 'merges', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation @@ -2257,6 +2611,8 @@ module Google class Spreadsheet # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :developer_metadata, as: 'developerMetadata', class: Google::Apis::SheetsV4::DeveloperMetadata, decorator: Google::Apis::SheetsV4::DeveloperMetadata::Representation + collection :named_ranges, as: 'namedRanges', class: Google::Apis::SheetsV4::NamedRange, decorator: Google::Apis::SheetsV4::NamedRange::Representation property :properties, as: 'properties', class: Google::Apis::SheetsV4::SpreadsheetProperties, decorator: Google::Apis::SheetsV4::SpreadsheetProperties::Representation @@ -2405,6 +2761,25 @@ module Google end end + class UpdateDeveloperMetadataRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :data_filters, as: 'dataFilters', class: Google::Apis::SheetsV4::DataFilter, decorator: Google::Apis::SheetsV4::DataFilter::Representation + + property :developer_metadata, as: 'developerMetadata', class: Google::Apis::SheetsV4::DeveloperMetadata, decorator: Google::Apis::SheetsV4::DeveloperMetadata::Representation + + property :fields, as: 'fields' + end + end + + class UpdateDeveloperMetadataResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :developer_metadata, as: 'developerMetadata', class: Google::Apis::SheetsV4::DeveloperMetadata, decorator: Google::Apis::SheetsV4::DeveloperMetadata::Representation + + end + end + class UpdateDimensionPropertiesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2479,6 +2854,20 @@ module Google end end + class UpdateValuesByDataFilterResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data_filter, as: 'dataFilter', class: Google::Apis::SheetsV4::DataFilter, decorator: Google::Apis::SheetsV4::DataFilter::Representation + + property :updated_cells, as: 'updatedCells' + property :updated_columns, as: 'updatedColumns' + property :updated_data, as: 'updatedData', class: Google::Apis::SheetsV4::ValueRange, decorator: Google::Apis::SheetsV4::ValueRange::Representation + + property :updated_range, as: 'updatedRange' + property :updated_rows, as: 'updatedRows' + end + end + class UpdateValuesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/sheets_v4/service.rb b/generated/google/apis/sheets_v4/service.rb index dcf55e844..2e99d0d80 100644 --- a/generated/google/apis/sheets_v4/service.rb +++ b/generated/google/apis/sheets_v4/service.rb @@ -177,6 +177,127 @@ module Google execute_or_queue_command(command, &block) end + # Returns the spreadsheet at the given ID. + # The caller must specify the spreadsheet ID. + # This method differs from GetSpreadsheet in that it allows selecting + # which subsets of spreadsheet data to return by specifying a + # dataFilters parameter. + # Multiple DataFilters can be specified. Specifying one or + # more data filters will return the portions of the spreadsheet that + # intersect ranges matched by any of the filters. + # By default, data within grids will not be returned. + # You can include grid data one of two ways: + # * Specify a field mask listing your desired fields using the `fields` URL + # parameter in HTTP + # * Set the includeGridData + # parameter to true. If a field mask is set, the `includeGridData` + # parameter is ignored + # For large spreadsheets, it is recommended to retrieve only the specific + # fields of the spreadsheet that you want. + # @param [String] spreadsheet_id + # The spreadsheet to request. + # @param [Google::Apis::SheetsV4::GetSpreadsheetByDataFilterRequest] get_spreadsheet_by_data_filter_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SheetsV4::Spreadsheet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SheetsV4::Spreadsheet] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_spreadsheet_by_data_filter(spreadsheet_id, get_spreadsheet_by_data_filter_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}:getByDataFilter', options) + command.request_representation = Google::Apis::SheetsV4::GetSpreadsheetByDataFilterRequest::Representation + command.request_object = get_spreadsheet_by_data_filter_request_object + command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation + command.response_class = Google::Apis::SheetsV4::Spreadsheet + command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the developer metadata with the specified id. + # The caller must specify the spreadsheet ID and the developer metadata's + # unique metadataId. + # @param [String] spreadsheet_id + # The ID of the spreadsheet to retrieve metadata from. + # @param [Fixnum] metadata_id + # The ID of the developer metadata to retrieve. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SheetsV4::DeveloperMetadata] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SheetsV4::DeveloperMetadata] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_spreadsheet_developer_metadatum(spreadsheet_id, metadata_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/developerMetadata/{metadataId}', options) + command.response_representation = Google::Apis::SheetsV4::DeveloperMetadata::Representation + command.response_class = Google::Apis::SheetsV4::DeveloperMetadata + command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil? + command.params['metadataId'] = metadata_id unless metadata_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns all developer metadata matching the specified DataFilter. + # If the provided DataFilter represents a DeveloperMetadataLookup object, + # this will return all DeveloperMetadata entries selected by it. If the + # DataFilter represents a location in a spreadsheet, this will return all + # developer metadata associated with locations intersecting that region. + # @param [String] spreadsheet_id + # The ID of the spreadsheet to retrieve metadata from. + # @param [Google::Apis::SheetsV4::SearchDeveloperMetadataRequest] search_developer_metadata_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SheetsV4::SearchDeveloperMetadataResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SheetsV4::SearchDeveloperMetadataResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def search_developer_metadatum_developer_metadata(spreadsheet_id, search_developer_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/developerMetadata:search', options) + command.request_representation = Google::Apis::SheetsV4::SearchDeveloperMetadataRequest::Representation + command.request_object = search_developer_metadata_request_object + command.response_representation = Google::Apis::SheetsV4::SearchDeveloperMetadataResponse::Representation + command.response_class = Google::Apis::SheetsV4::SearchDeveloperMetadataResponse + command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Copies a single sheet from a spreadsheet to another spreadsheet. # Returns the properties of the newly created sheet. # @param [String] spreadsheet_id @@ -320,6 +441,43 @@ module Google execute_or_queue_command(command, &block) end + # Clears one or more ranges of values from a spreadsheet. + # The caller must specify the spreadsheet ID and one or more + # DataFilters. Ranges matching any of the specified data + # filters will be cleared. Only values are cleared -- all other properties + # of the cell (such as formatting, data validation, etc..) are kept. + # @param [String] spreadsheet_id + # The ID of the spreadsheet to update. + # @param [Google::Apis::SheetsV4::BatchClearValuesByDataFilterRequest] batch_clear_values_by_data_filter_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SheetsV4::BatchClearValuesByDataFilterResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SheetsV4::BatchClearValuesByDataFilterResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def batch_spreadsheet_value_clear_by_data_filter(spreadsheet_id, batch_clear_values_by_data_filter_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchClearByDataFilter', options) + command.request_representation = Google::Apis::SheetsV4::BatchClearValuesByDataFilterRequest::Representation + command.request_object = batch_clear_values_by_data_filter_request_object + command.response_representation = Google::Apis::SheetsV4::BatchClearValuesByDataFilterResponse::Representation + command.response_class = Google::Apis::SheetsV4::BatchClearValuesByDataFilterResponse + command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Returns one or more ranges of values from a spreadsheet. # The caller must specify the spreadsheet ID and one or more ranges. # @param [String] spreadsheet_id @@ -372,6 +530,42 @@ module Google execute_or_queue_command(command, &block) end + # Returns one or more ranges of values from a spreadsheet that match the + # specified data filters. The caller must specify the spreadsheet ID and + # one or more DataFilters. Ranges that match any of the data + # filters in the request will be returned. + # @param [String] spreadsheet_id + # The ID of the spreadsheet to retrieve data from. + # @param [Google::Apis::SheetsV4::BatchGetValuesByDataFilterRequest] batch_get_values_by_data_filter_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SheetsV4::BatchGetValuesByDataFilterResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SheetsV4::BatchGetValuesByDataFilterResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def batch_spreadsheet_value_get_by_data_filter(spreadsheet_id, batch_get_values_by_data_filter_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchGetByDataFilter', options) + command.request_representation = Google::Apis::SheetsV4::BatchGetValuesByDataFilterRequest::Representation + command.request_object = batch_get_values_by_data_filter_request_object + command.response_representation = Google::Apis::SheetsV4::BatchGetValuesByDataFilterResponse::Representation + command.response_class = Google::Apis::SheetsV4::BatchGetValuesByDataFilterResponse + command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Sets values in one or more ranges of a spreadsheet. # The caller must specify the spreadsheet ID, # a valueInputOption, and one or more @@ -408,6 +602,42 @@ module Google execute_or_queue_command(command, &block) end + # Sets values in one or more ranges of a spreadsheet. + # The caller must specify the spreadsheet ID, + # a valueInputOption, and one or more + # DataFilterValueRanges. + # @param [String] spreadsheet_id + # The ID of the spreadsheet to update. + # @param [Google::Apis::SheetsV4::BatchUpdateValuesByDataFilterRequest] batch_update_values_by_data_filter_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SheetsV4::BatchUpdateValuesByDataFilterResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SheetsV4::BatchUpdateValuesByDataFilterResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def batch_spreadsheet_value_update_by_data_filter(spreadsheet_id, batch_update_values_by_data_filter_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdateByDataFilter', options) + command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesByDataFilterRequest::Representation + command.request_object = batch_update_values_by_data_filter_request_object + command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesByDataFilterResponse::Representation + command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesByDataFilterResponse + command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Clears values from a spreadsheet. # The caller must specify the spreadsheet ID and range. # Only values are cleared -- all other properties of the cell (such as diff --git a/generated/google/apis/tagmanager_v2.rb b/generated/google/apis/tagmanager_v2.rb index 038c7ab45..326d74202 100644 --- a/generated/google/apis/tagmanager_v2.rb +++ b/generated/google/apis/tagmanager_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/tag-manager/api/v2/ module TagmanagerV2 VERSION = 'V2' - REVISION = '20170330' + REVISION = '20170915' # Delete your Google Tag Manager containers AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers' diff --git a/generated/google/apis/tagmanager_v2/classes.rb b/generated/google/apis/tagmanager_v2/classes.rb index 75a50866b..36bac4160 100644 --- a/generated/google/apis/tagmanager_v2/classes.rb +++ b/generated/google/apis/tagmanager_v2/classes.rb @@ -365,6 +365,11 @@ module Google # @return [Array] attr_accessor :variable + # The zones in the container that this version was taken from. + # Corresponds to the JSON property `zone` + # @return [Array] + attr_accessor :zone + def initialize(**args) update!(**args) end @@ -386,6 +391,7 @@ module Google @tag_manager_url = args[:tag_manager_url] if args.key?(:tag_manager_url) @trigger = args[:trigger] if args.key?(:trigger) @variable = args[:variable] if args.key?(:variable) + @zone = args[:zone] if args.key?(:zone) end end @@ -444,6 +450,11 @@ module Google # @return [String] attr_accessor :num_variables + # Number of zones in the container version. + # Corresponds to the JSON property `numZones` + # @return [String] + attr_accessor :num_zones + # GTM Container Versions's API relative path. # Corresponds to the JSON property `path` # @return [String] @@ -465,6 +476,7 @@ module Google @num_tags = args[:num_tags] if args.key?(:num_tags) @num_triggers = args[:num_triggers] if args.key?(:num_triggers) @num_variables = args[:num_variables] if args.key?(:num_variables) + @num_zones = args[:num_zones] if args.key?(:num_zones) @path = args[:path] if args.key?(:path) end end @@ -1847,6 +1859,11 @@ module Google # @return [String] attr_accessor :notes + # Additional parameters. + # Corresponds to the JSON property `parameter` + # @return [Array] + attr_accessor :parameter + # Parent folder id. # Corresponds to the JSON property `parentFolderId` # @return [String] @@ -1944,6 +1961,7 @@ module Google @max_timer_length_seconds = args[:max_timer_length_seconds] if args.key?(:max_timer_length_seconds) @name = args[:name] if args.key?(:name) @notes = args[:notes] if args.key?(:notes) + @parameter = args[:parameter] if args.key?(:parameter) @parent_folder_id = args[:parent_folder_id] if args.key?(:parent_folder_id) @path = args[:path] if args.key?(:path) @selector = args[:selector] if args.key?(:selector) @@ -2430,6 +2448,169 @@ module Google @type = args[:type] if args.key?(:type) end end + + # Represents a Google Tag Manager Zone's contents. + class Zone + include Google::Apis::Core::Hashable + + # GTM Account ID. + # Corresponds to the JSON property `accountId` + # @return [String] + attr_accessor :account_id + + # Represents a Zone's boundaries. + # Corresponds to the JSON property `boundary` + # @return [Google::Apis::TagmanagerV2::ZoneBoundary] + attr_accessor :boundary + + # Containers that are children of this Zone. + # Corresponds to the JSON property `childContainer` + # @return [Array] + attr_accessor :child_container + + # GTM Container ID. + # Corresponds to the JSON property `containerId` + # @return [String] + attr_accessor :container_id + + # The fingerprint of the GTM Zone as computed at storage time. This value is + # recomputed whenever the zone is modified. + # Corresponds to the JSON property `fingerprint` + # @return [String] + attr_accessor :fingerprint + + # Zone display name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # User notes on how to apply this zone in the container. + # Corresponds to the JSON property `notes` + # @return [String] + attr_accessor :notes + + # GTM Zone's API relative path. + # Corresponds to the JSON property `path` + # @return [String] + attr_accessor :path + + # Auto generated link to the tag manager UI + # Corresponds to the JSON property `tagManagerUrl` + # @return [String] + attr_accessor :tag_manager_url + + # Represents a Zone's type restrictions. + # Corresponds to the JSON property `typeRestriction` + # @return [Google::Apis::TagmanagerV2::ZoneTypeRestriction] + attr_accessor :type_restriction + + # GTM Workspace ID. + # Corresponds to the JSON property `workspaceId` + # @return [String] + attr_accessor :workspace_id + + # The Zone ID uniquely identifies the GTM Zone. + # Corresponds to the JSON property `zoneId` + # @return [String] + attr_accessor :zone_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @boundary = args[:boundary] if args.key?(:boundary) + @child_container = args[:child_container] if args.key?(:child_container) + @container_id = args[:container_id] if args.key?(:container_id) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @name = args[:name] if args.key?(:name) + @notes = args[:notes] if args.key?(:notes) + @path = args[:path] if args.key?(:path) + @tag_manager_url = args[:tag_manager_url] if args.key?(:tag_manager_url) + @type_restriction = args[:type_restriction] if args.key?(:type_restriction) + @workspace_id = args[:workspace_id] if args.key?(:workspace_id) + @zone_id = args[:zone_id] if args.key?(:zone_id) + end + end + + # Represents a Zone's boundaries. + class ZoneBoundary + include Google::Apis::Core::Hashable + + # The conditions that, when conjoined, make up the boundary. + # Corresponds to the JSON property `condition` + # @return [Array] + attr_accessor :condition + + # Custom evaluation trigger IDs. A zone will evaluate its boundary conditions + # when any of the listed triggers are true. + # Corresponds to the JSON property `customEvaluationTriggerId` + # @return [Array] + attr_accessor :custom_evaluation_trigger_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @condition = args[:condition] if args.key?(:condition) + @custom_evaluation_trigger_id = args[:custom_evaluation_trigger_id] if args.key?(:custom_evaluation_trigger_id) + end + end + + # Represents a child container of a Zone. + class ZoneChildContainer + include Google::Apis::Core::Hashable + + # The zone's nickname for the child container. + # Corresponds to the JSON property `nickname` + # @return [String] + attr_accessor :nickname + + # The child container's public id. + # Corresponds to the JSON property `publicId` + # @return [String] + attr_accessor :public_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @nickname = args[:nickname] if args.key?(:nickname) + @public_id = args[:public_id] if args.key?(:public_id) + end + end + + # Represents a Zone's type restrictions. + class ZoneTypeRestriction + include Google::Apis::Core::Hashable + + # True if type restrictions have been enabled for this Zone. + # Corresponds to the JSON property `enable` + # @return [Boolean] + attr_accessor :enable + alias_method :enable?, :enable + + # List of type public ids that have been whitelisted for use in this Zone. + # Corresponds to the JSON property `whitelistedTypeId` + # @return [Array] + attr_accessor :whitelisted_type_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enable = args[:enable] if args.key?(:enable) + @whitelisted_type_id = args[:whitelisted_type_id] if args.key?(:whitelisted_type_id) + end + end end end end diff --git a/generated/google/apis/tagmanager_v2/representations.rb b/generated/google/apis/tagmanager_v2/representations.rb index e3c806078..ec879b60f 100644 --- a/generated/google/apis/tagmanager_v2/representations.rb +++ b/generated/google/apis/tagmanager_v2/representations.rb @@ -340,6 +340,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Zone + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ZoneBoundary + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ZoneChildContainer + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ZoneTypeRestriction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Account # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -428,6 +452,8 @@ module Google collection :variable, as: 'variable', class: Google::Apis::TagmanagerV2::Variable, decorator: Google::Apis::TagmanagerV2::Variable::Representation + collection :zone, as: 'zone', class: Google::Apis::TagmanagerV2::Zone, decorator: Google::Apis::TagmanagerV2::Zone::Representation + end end @@ -444,6 +470,7 @@ module Google property :num_tags, as: 'numTags' property :num_triggers, as: 'numTriggers' property :num_variables, as: 'numVariables' + property :num_zones, as: 'numZones' property :path, as: 'path' end end @@ -847,6 +874,8 @@ module Google property :name, as: 'name' property :notes, as: 'notes' + collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV2::Parameter, decorator: Google::Apis::TagmanagerV2::Parameter::Representation + property :parent_folder_id, as: 'parentFolderId' property :path, as: 'path' property :selector, as: 'selector', class: Google::Apis::TagmanagerV2::Parameter, decorator: Google::Apis::TagmanagerV2::Parameter::Representation @@ -988,6 +1017,52 @@ module Google property :type, as: 'type' end end + + class Zone + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, as: 'accountId' + property :boundary, as: 'boundary', class: Google::Apis::TagmanagerV2::ZoneBoundary, decorator: Google::Apis::TagmanagerV2::ZoneBoundary::Representation + + collection :child_container, as: 'childContainer', class: Google::Apis::TagmanagerV2::ZoneChildContainer, decorator: Google::Apis::TagmanagerV2::ZoneChildContainer::Representation + + property :container_id, as: 'containerId' + property :fingerprint, as: 'fingerprint' + property :name, as: 'name' + property :notes, as: 'notes' + property :path, as: 'path' + property :tag_manager_url, as: 'tagManagerUrl' + property :type_restriction, as: 'typeRestriction', class: Google::Apis::TagmanagerV2::ZoneTypeRestriction, decorator: Google::Apis::TagmanagerV2::ZoneTypeRestriction::Representation + + property :workspace_id, as: 'workspaceId' + property :zone_id, as: 'zoneId' + end + end + + class ZoneBoundary + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :condition, as: 'condition', class: Google::Apis::TagmanagerV2::Condition, decorator: Google::Apis::TagmanagerV2::Condition::Representation + + collection :custom_evaluation_trigger_id, as: 'customEvaluationTriggerId' + end + end + + class ZoneChildContainer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :nickname, as: 'nickname' + property :public_id, as: 'publicId' + end + end + + class ZoneTypeRestriction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enable, as: 'enable' + collection :whitelisted_type_id, as: 'whitelistedTypeId' + end + end end end end diff --git a/generated/google/apis/videointelligence_v1beta1.rb b/generated/google/apis/videointelligence_v1beta1.rb index 2481c2ea0..6dc266955 100644 --- a/generated/google/apis/videointelligence_v1beta1.rb +++ b/generated/google/apis/videointelligence_v1beta1.rb @@ -18,14 +18,14 @@ require 'google/apis/videointelligence_v1beta1/representations.rb' module Google module Apis - # Google Cloud Video Intelligence API + # Cloud Video Intelligence API # - # Google Cloud Video Intelligence API. + # Cloud Video Intelligence API. # # @see https://cloud.google.com/video-intelligence/docs/ module VideointelligenceV1beta1 VERSION = 'V1beta1' - REVISION = '20170908' + REVISION = '20170919' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/videointelligence_v1beta1/service.rb b/generated/google/apis/videointelligence_v1beta1/service.rb index a5aa7a140..1781c4dca 100644 --- a/generated/google/apis/videointelligence_v1beta1/service.rb +++ b/generated/google/apis/videointelligence_v1beta1/service.rb @@ -20,9 +20,9 @@ require 'google/apis/errors' module Google module Apis module VideointelligenceV1beta1 - # Google Cloud Video Intelligence API + # Cloud Video Intelligence API # - # Google Cloud Video Intelligence API. + # Cloud Video Intelligence API. # # @example # require 'google/apis/videointelligence_v1beta1'