diff --git a/api_names_out.yaml b/api_names_out.yaml index 5900db850..57d752ca2 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -43359,6 +43359,7 @@ "/dialogflow:v2beta1/IntentMessageCarouselSelectItem/info": info "/dialogflow:v2beta1/IntentMessageCarouselSelectItem/title": title "/dialogflow:v2beta1/IntentMessageImage": intent_message_image +"/dialogflow:v2beta1/IntentMessageImage/accessibilityText": accessibility_text "/dialogflow:v2beta1/IntentMessageImage/imageUri": image_uri "/dialogflow:v2beta1/IntentMessageLinkOutSuggestion": intent_message_link_out_suggestion "/dialogflow:v2beta1/IntentMessageLinkOutSuggestion/destinationName": destination_name @@ -54099,6 +54100,7 @@ "/oslogin:v1beta/oslogin.users.sshPublicKeys.patch/updateMask": update_mask "/oslogin:v1beta/quotaUser": quota_user "/pagespeedonline:v1/Result": result +"/pagespeedonline:v1/Result/captchaResult": captcha_result "/pagespeedonline:v1/Result/formattedResults": formatted_results "/pagespeedonline:v1/Result/formattedResults/locale": locale "/pagespeedonline:v1/Result/formattedResults/ruleResults": rule_results @@ -54199,6 +54201,7 @@ "/pagespeedonline:v2/PagespeedApiImageV2/page_rect/width": width "/pagespeedonline:v2/PagespeedApiImageV2/width": width "/pagespeedonline:v2/Result": result +"/pagespeedonline:v2/Result/captchaResult": captcha_result "/pagespeedonline:v2/Result/formattedResults": formatted_results "/pagespeedonline:v2/Result/formattedResults/locale": locale "/pagespeedonline:v2/Result/formattedResults/ruleResults": rule_results @@ -56614,6 +56617,8 @@ "/pubsub:v1/pubsub.projects.snapshots.create/name": name "/pubsub:v1/pubsub.projects.snapshots.delete": delete_project_snapshot "/pubsub:v1/pubsub.projects.snapshots.delete/snapshot": snapshot +"/pubsub:v1/pubsub.projects.snapshots.get": get_project_snapshot +"/pubsub:v1/pubsub.projects.snapshots.get/snapshot": snapshot "/pubsub:v1/pubsub.projects.snapshots.getIamPolicy": get_project_snapshot_iam_policy "/pubsub:v1/pubsub.projects.snapshots.getIamPolicy/resource": resource "/pubsub:v1/pubsub.projects.snapshots.list": list_project_snapshots @@ -58224,6 +58229,32 @@ "/safebrowsing:v4/safebrowsing.threatListUpdates.fetch": fetch_threat_list_updates "/safebrowsing:v4/safebrowsing.threatLists.list": list_threat_lists "/safebrowsing:v4/safebrowsing.threatMatches.find": find_threat_matches +"/script:v1/Content": content +"/script:v1/Content/files": files +"/script:v1/Content/files/file": file +"/script:v1/Content/scriptId": script_id +"/script:v1/CreateProjectRequest": create_project_request +"/script:v1/CreateProjectRequest/parentId": parent_id +"/script:v1/CreateProjectRequest/title": title +"/script:v1/Deployment": deployment +"/script:v1/Deployment/deploymentConfig": deployment_config +"/script:v1/Deployment/deploymentId": deployment_id +"/script:v1/Deployment/entryPoints": entry_points +"/script:v1/Deployment/entryPoints/entry_point": entry_point +"/script:v1/Deployment/functionSet": function_set +"/script:v1/Deployment/scopeSet": scope_set +"/script:v1/Deployment/updateTime": update_time +"/script:v1/DeploymentConfig": deployment_config +"/script:v1/DeploymentConfig/description": description +"/script:v1/DeploymentConfig/manifestFileName": manifest_file_name +"/script:v1/DeploymentConfig/scriptId": script_id +"/script:v1/DeploymentConfig/versionNumber": version_number +"/script:v1/Empty": empty +"/script:v1/EntryPoint": entry_point +"/script:v1/EntryPoint/addOn": add_on +"/script:v1/EntryPoint/entryPointType": entry_point_type +"/script:v1/EntryPoint/executionApi": execution_api +"/script:v1/EntryPoint/webApp": web_app "/script:v1/ExecutionError": execution_error "/script:v1/ExecutionError/errorMessage": error_message "/script:v1/ExecutionError/errorType": error_type @@ -58237,6 +58268,56 @@ "/script:v1/ExecutionRequest/sessionState": session_state "/script:v1/ExecutionResponse": execution_response "/script:v1/ExecutionResponse/result": result +"/script:v1/File": file +"/script:v1/File/createTime": create_time +"/script:v1/File/functionSet": function_set +"/script:v1/File/lastModifyUser": last_modify_user +"/script:v1/File/name": name +"/script:v1/File/source": source +"/script:v1/File/type": type +"/script:v1/File/updateTime": update_time +"/script:v1/GoogleAppsScriptTypeAddOnEntryPoint": google_apps_script_type_add_on_entry_point +"/script:v1/GoogleAppsScriptTypeAddOnEntryPoint/addOnType": add_on_type +"/script:v1/GoogleAppsScriptTypeAddOnEntryPoint/description": description +"/script:v1/GoogleAppsScriptTypeAddOnEntryPoint/helpUrl": help_url +"/script:v1/GoogleAppsScriptTypeAddOnEntryPoint/postInstallTipUrl": post_install_tip_url +"/script:v1/GoogleAppsScriptTypeAddOnEntryPoint/reportIssueUrl": report_issue_url +"/script:v1/GoogleAppsScriptTypeAddOnEntryPoint/title": title +"/script:v1/GoogleAppsScriptTypeExecutionApiConfig": google_apps_script_type_execution_api_config +"/script:v1/GoogleAppsScriptTypeExecutionApiConfig/access": access +"/script:v1/GoogleAppsScriptTypeExecutionApiEntryPoint": google_apps_script_type_execution_api_entry_point +"/script:v1/GoogleAppsScriptTypeExecutionApiEntryPoint/entryPointConfig": entry_point_config +"/script:v1/GoogleAppsScriptTypeFunction": google_apps_script_type_function +"/script:v1/GoogleAppsScriptTypeFunction/name": name +"/script:v1/GoogleAppsScriptTypeFunctionSet": google_apps_script_type_function_set +"/script:v1/GoogleAppsScriptTypeFunctionSet/values": values +"/script:v1/GoogleAppsScriptTypeFunctionSet/values/value": value +"/script:v1/GoogleAppsScriptTypeProcess": google_apps_script_type_process +"/script:v1/GoogleAppsScriptTypeProcess/duration": duration +"/script:v1/GoogleAppsScriptTypeProcess/executingUser": executing_user +"/script:v1/GoogleAppsScriptTypeProcess/functionName": function_name +"/script:v1/GoogleAppsScriptTypeProcess/processStatus": process_status +"/script:v1/GoogleAppsScriptTypeProcess/processType": process_type +"/script:v1/GoogleAppsScriptTypeProcess/projectName": project_name +"/script:v1/GoogleAppsScriptTypeProcess/startTime": start_time +"/script:v1/GoogleAppsScriptTypeProcess/userAccessLevel": user_access_level +"/script:v1/GoogleAppsScriptTypeScope": google_apps_script_type_scope +"/script:v1/GoogleAppsScriptTypeScope/authorizer": authorizer +"/script:v1/GoogleAppsScriptTypeScope/name": name +"/script:v1/GoogleAppsScriptTypeScopeSet": google_apps_script_type_scope_set +"/script:v1/GoogleAppsScriptTypeScopeSet/values": values +"/script:v1/GoogleAppsScriptTypeScopeSet/values/value": value +"/script:v1/GoogleAppsScriptTypeUser": google_apps_script_type_user +"/script:v1/GoogleAppsScriptTypeUser/domain": domain +"/script:v1/GoogleAppsScriptTypeUser/email": email +"/script:v1/GoogleAppsScriptTypeUser/name": name +"/script:v1/GoogleAppsScriptTypeUser/photoUrl": photo_url +"/script:v1/GoogleAppsScriptTypeWebAppConfig": google_apps_script_type_web_app_config +"/script:v1/GoogleAppsScriptTypeWebAppConfig/access": access +"/script:v1/GoogleAppsScriptTypeWebAppConfig/executeAs": execute_as +"/script:v1/GoogleAppsScriptTypeWebAppEntryPoint": google_apps_script_type_web_app_entry_point +"/script:v1/GoogleAppsScriptTypeWebAppEntryPoint/entryPointConfig": entry_point_config +"/script:v1/GoogleAppsScriptTypeWebAppEntryPoint/url": url "/script:v1/JoinAsyncRequest": join_async_request "/script:v1/JoinAsyncRequest/names": names "/script:v1/JoinAsyncRequest/names/name": name @@ -58245,6 +58326,33 @@ "/script:v1/JoinAsyncResponse": join_async_response "/script:v1/JoinAsyncResponse/results": results "/script:v1/JoinAsyncResponse/results/result": result +"/script:v1/ListDeploymentsResponse": list_deployments_response +"/script:v1/ListDeploymentsResponse/deployments": deployments +"/script:v1/ListDeploymentsResponse/deployments/deployment": deployment +"/script:v1/ListDeploymentsResponse/nextPageToken": next_page_token +"/script:v1/ListScriptProcessesResponse": list_script_processes_response +"/script:v1/ListScriptProcessesResponse/nextPageToken": next_page_token +"/script:v1/ListScriptProcessesResponse/processes": processes +"/script:v1/ListScriptProcessesResponse/processes/process": process +"/script:v1/ListUserProcessesResponse": list_user_processes_response +"/script:v1/ListUserProcessesResponse/nextPageToken": next_page_token +"/script:v1/ListUserProcessesResponse/processes": processes +"/script:v1/ListUserProcessesResponse/processes/process": process +"/script:v1/ListVersionsResponse": list_versions_response +"/script:v1/ListVersionsResponse/nextPageToken": next_page_token +"/script:v1/ListVersionsResponse/versions": versions +"/script:v1/ListVersionsResponse/versions/version": version +"/script:v1/Metrics": metrics +"/script:v1/Metrics/activeUsers": active_users +"/script:v1/Metrics/activeUsers/active_user": active_user +"/script:v1/Metrics/failedExecutions": failed_executions +"/script:v1/Metrics/failedExecutions/failed_execution": failed_execution +"/script:v1/Metrics/totalExecutions": total_executions +"/script:v1/Metrics/totalExecutions/total_execution": total_execution +"/script:v1/MetricsValue": metrics_value +"/script:v1/MetricsValue/endTime": end_time +"/script:v1/MetricsValue/startTime": start_time +"/script:v1/MetricsValue/value": value "/script:v1/Operation": operation "/script:v1/Operation/done": done "/script:v1/Operation/error": error @@ -58253,6 +58361,14 @@ "/script:v1/Operation/name": name "/script:v1/Operation/response": response "/script:v1/Operation/response/response": response +"/script:v1/Project": project +"/script:v1/Project/createTime": create_time +"/script:v1/Project/creator": creator +"/script:v1/Project/lastModifyUser": last_modify_user +"/script:v1/Project/parentId": parent_id +"/script:v1/Project/scriptId": script_id +"/script:v1/Project/title": title +"/script:v1/Project/updateTime": update_time "/script:v1/ScriptStackTraceElement": script_stack_trace_element "/script:v1/ScriptStackTraceElement/function": function "/script:v1/ScriptStackTraceElement/lineNumber": line_number @@ -58262,9 +58378,75 @@ "/script:v1/Status/details/detail": detail "/script:v1/Status/details/detail/detail": detail "/script:v1/Status/message": message +"/script:v1/UpdateDeploymentRequest": update_deployment_request +"/script:v1/UpdateDeploymentRequest/deploymentConfig": deployment_config +"/script:v1/Version": version +"/script:v1/Version/createTime": create_time +"/script:v1/Version/description": description +"/script:v1/Version/scriptId": script_id +"/script:v1/Version/versionNumber": version_number "/script:v1/fields": fields "/script:v1/key": key "/script:v1/quotaUser": quota_user +"/script:v1/script.processes.list": list_processes +"/script:v1/script.processes.list/pageSize": page_size +"/script:v1/script.processes.list/pageToken": page_token +"/script:v1/script.processes.list/userProcessFilter.deploymentId": user_process_filter_deployment_id +"/script:v1/script.processes.list/userProcessFilter.endTime": user_process_filter_end_time +"/script:v1/script.processes.list/userProcessFilter.functionName": user_process_filter_function_name +"/script:v1/script.processes.list/userProcessFilter.projectName": user_process_filter_project_name +"/script:v1/script.processes.list/userProcessFilter.scriptId": user_process_filter_script_id +"/script:v1/script.processes.list/userProcessFilter.startTime": user_process_filter_start_time +"/script:v1/script.processes.list/userProcessFilter.statuses": user_process_filter_statuses +"/script:v1/script.processes.list/userProcessFilter.types": user_process_filter_types +"/script:v1/script.processes.list/userProcessFilter.userAccessLevels": user_process_filter_user_access_levels +"/script:v1/script.processes.listScriptProcesses": list_process_script_processes +"/script:v1/script.processes.listScriptProcesses/pageSize": page_size +"/script:v1/script.processes.listScriptProcesses/pageToken": page_token +"/script:v1/script.processes.listScriptProcesses/scriptId": script_id +"/script:v1/script.processes.listScriptProcesses/scriptProcessFilter.deploymentId": script_process_filter_deployment_id +"/script:v1/script.processes.listScriptProcesses/scriptProcessFilter.endTime": script_process_filter_end_time +"/script:v1/script.processes.listScriptProcesses/scriptProcessFilter.functionName": script_process_filter_function_name +"/script:v1/script.processes.listScriptProcesses/scriptProcessFilter.startTime": script_process_filter_start_time +"/script:v1/script.processes.listScriptProcesses/scriptProcessFilter.statuses": script_process_filter_statuses +"/script:v1/script.processes.listScriptProcesses/scriptProcessFilter.types": script_process_filter_types +"/script:v1/script.processes.listScriptProcesses/scriptProcessFilter.userAccessLevels": script_process_filter_user_access_levels +"/script:v1/script.projects.create": create_project +"/script:v1/script.projects.deployments.create": create_project_deployment +"/script:v1/script.projects.deployments.create/scriptId": script_id +"/script:v1/script.projects.deployments.delete": delete_project_deployment +"/script:v1/script.projects.deployments.delete/deploymentId": deployment_id +"/script:v1/script.projects.deployments.delete/scriptId": script_id +"/script:v1/script.projects.deployments.get": get_project_deployment +"/script:v1/script.projects.deployments.get/deploymentId": deployment_id +"/script:v1/script.projects.deployments.get/scriptId": script_id +"/script:v1/script.projects.deployments.list": list_project_deployments +"/script:v1/script.projects.deployments.list/pageSize": page_size +"/script:v1/script.projects.deployments.list/pageToken": page_token +"/script:v1/script.projects.deployments.list/scriptId": script_id +"/script:v1/script.projects.deployments.update": update_deployment +"/script:v1/script.projects.deployments.update/deploymentId": deployment_id +"/script:v1/script.projects.deployments.update/scriptId": script_id +"/script:v1/script.projects.get": get_project +"/script:v1/script.projects.get/scriptId": script_id +"/script:v1/script.projects.getContent": get_project_content +"/script:v1/script.projects.getContent/scriptId": script_id +"/script:v1/script.projects.getContent/versionNumber": version_number +"/script:v1/script.projects.getMetrics": get_project_metrics +"/script:v1/script.projects.getMetrics/metricsFilter.deploymentId": metrics_filter_deployment_id +"/script:v1/script.projects.getMetrics/metricsGranularity": metrics_granularity +"/script:v1/script.projects.getMetrics/scriptId": script_id +"/script:v1/script.projects.updateContent": update_project_content +"/script:v1/script.projects.updateContent/scriptId": script_id +"/script:v1/script.projects.versions.create": create_project_version +"/script:v1/script.projects.versions.create/scriptId": script_id +"/script:v1/script.projects.versions.get": get_project_version +"/script:v1/script.projects.versions.get/scriptId": script_id +"/script:v1/script.projects.versions.get/versionNumber": version_number +"/script:v1/script.projects.versions.list": list_project_versions +"/script:v1/script.projects.versions.list/pageSize": page_size +"/script:v1/script.projects.versions.list/pageToken": page_token +"/script:v1/script.projects.versions.list/scriptId": script_id "/script:v1/script.scripts.run": run_script "/script:v1/script.scripts.run/scriptId": script_id "/searchconsole:v1/BlockedResource": blocked_resource @@ -60754,10 +60936,16 @@ "/sheets:v4/WaterfallChartColumnStyle": waterfall_chart_column_style "/sheets:v4/WaterfallChartColumnStyle/color": color "/sheets:v4/WaterfallChartColumnStyle/label": label +"/sheets:v4/WaterfallChartCustomSubtotal": waterfall_chart_custom_subtotal +"/sheets:v4/WaterfallChartCustomSubtotal/dataIsSubtotal": data_is_subtotal +"/sheets:v4/WaterfallChartCustomSubtotal/label": label +"/sheets:v4/WaterfallChartCustomSubtotal/subtotalIndex": subtotal_index "/sheets:v4/WaterfallChartDomain": waterfall_chart_domain "/sheets:v4/WaterfallChartDomain/data": data "/sheets:v4/WaterfallChartDomain/reversed": reversed "/sheets:v4/WaterfallChartSeries": waterfall_chart_series +"/sheets:v4/WaterfallChartSeries/customSubtotals": custom_subtotals +"/sheets:v4/WaterfallChartSeries/customSubtotals/custom_subtotal": custom_subtotal "/sheets:v4/WaterfallChartSeries/data": data "/sheets:v4/WaterfallChartSeries/hideTrailingSubtotal": hide_trailing_subtotal "/sheets:v4/WaterfallChartSeries/negativeColumnsStyle": negative_columns_style diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index 7bce5c41c..5bd1fbc14 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow-enterprise/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20171218' + REVISION = '20180108' # 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/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb index 509747f7a..5e2efec66 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -1330,6 +1330,12 @@ module Google class IntentMessageImage include Google::Apis::Core::Hashable + # Optional. A text description of the image to be used for accessibility, + # e.g., screen readers. + # Corresponds to the JSON property `accessibilityText` + # @return [String] + attr_accessor :accessibility_text + # Optional. The public URI to an image file. # Corresponds to the JSON property `imageUri` # @return [String] @@ -1341,6 +1347,7 @@ module Google # Update properties of this object def update!(**args) + @accessibility_text = args[:accessibility_text] if args.key?(:accessibility_text) @image_uri = args[:image_uri] if args.key?(:image_uri) end end diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb index 5e6a5b034..c4a0643b9 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -760,6 +760,7 @@ module Google class IntentMessageImage # @private class Representation < Google::Apis::Core::JsonRepresentation + property :accessibility_text, as: 'accessibilityText' property :image_uri, as: 'imageUri' end end diff --git a/generated/google/apis/games_v1.rb b/generated/google/apis/games_v1.rb index 66dc88c94..a42ae966f 100644 --- a/generated/google/apis/games_v1.rb +++ b/generated/google/apis/games_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services/ module GamesV1 VERSION = 'V1' - REVISION = '20170911' + REVISION = '20180104' # View and manage its own configuration data in your Google Drive AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata' diff --git a/generated/google/apis/games_v1/service.rb b/generated/google/apis/games_v1/service.rb index 07d580f56..1d76f973c 100644 --- a/generated/google/apis/games_v1/service.rb +++ b/generated/google/apis/games_v1/service.rb @@ -54,8 +54,6 @@ module Google end # Lists all the achievement definitions for your application. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -85,11 +83,10 @@ module Google # @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 list_achievement_definitions(consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_achievement_definitions(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'achievements', options) command.response_representation = Google::Apis::GamesV1::ListAchievementDefinitionsResponse::Representation command.response_class = Google::Apis::GamesV1::ListAchievementDefinitionsResponse - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -105,8 +102,6 @@ module Google # The ID of the achievement used by this method. # @param [Fixnum] steps_to_increment # The number of steps to increment. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [Fixnum] request_id # A randomly generated numeric ID for each request specified by the caller. This # number is used at the server to ensure that the request is handled correctly @@ -132,12 +127,11 @@ module Google # @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 increment_achievement(achievement_id, steps_to_increment, consistency_token: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def increment_achievement(achievement_id, steps_to_increment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'achievements/{achievementId}/increment', options) command.response_representation = Google::Apis::GamesV1::AchievementIncrementResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementIncrementResponse command.params['achievementId'] = achievement_id unless achievement_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['stepsToIncrement'] = steps_to_increment unless steps_to_increment.nil? command.query['fields'] = fields unless fields.nil? @@ -151,8 +145,6 @@ module Google # @param [String] player_id # A player ID. A value of me may be used in place of the authenticated player's # ID. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -185,12 +177,11 @@ module Google # @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 list_achievements(player_id, consistency_token: nil, language: nil, max_results: nil, page_token: nil, state: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_achievements(player_id, language: nil, max_results: nil, page_token: nil, state: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'players/{playerId}/achievements', options) command.response_representation = Google::Apis::GamesV1::ListPlayerAchievementResponse::Representation command.response_class = Google::Apis::GamesV1::ListPlayerAchievementResponse command.params['playerId'] = player_id unless player_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -205,8 +196,6 @@ module Google # currently authenticated player. # @param [String] achievement_id # The ID of the achievement used by this method. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -228,12 +217,11 @@ module Google # @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 reveal_achievement(achievement_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def reveal_achievement(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'achievements/{achievementId}/reveal', options) command.response_representation = Google::Apis::GamesV1::AchievementRevealResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementRevealResponse command.params['achievementId'] = achievement_id unless achievement_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -248,8 +236,6 @@ module Google # The ID of the achievement used by this method. # @param [Fixnum] steps # The minimum value to set the steps to. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -271,12 +257,11 @@ module Google # @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_achievement_steps_at_least(achievement_id, steps, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def set_achievement_steps_at_least(achievement_id, steps, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'achievements/{achievementId}/setStepsAtLeast', options) command.response_representation = Google::Apis::GamesV1::AchievementSetStepsAtLeastResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementSetStepsAtLeastResponse command.params['achievementId'] = achievement_id unless achievement_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['steps'] = steps unless steps.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -287,8 +272,6 @@ module Google # Unlocks this achievement for the currently authenticated player. # @param [String] achievement_id # The ID of the achievement used by this method. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -310,12 +293,11 @@ module Google # @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 unlock_achievement(achievement_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def unlock_achievement(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'achievements/{achievementId}/unlock', options) command.response_representation = Google::Apis::GamesV1::AchievementUnlockResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementUnlockResponse command.params['achievementId'] = achievement_id unless achievement_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -324,8 +306,6 @@ module Google # Updates multiple achievements for the currently authenticated player. # @param [Google::Apis::GamesV1::AchievementUpdateMultipleRequest] achievement_update_multiple_request_object - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -347,13 +327,12 @@ module Google # @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 update_multiple_achievements(achievement_update_multiple_request_object = nil, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_multiple_achievements(achievement_update_multiple_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'achievements/updateMultiple', options) command.request_representation = Google::Apis::GamesV1::AchievementUpdateMultipleRequest::Representation command.request_object = achievement_update_multiple_request_object command.response_representation = Google::Apis::GamesV1::AchievementUpdateMultipleResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementUpdateMultipleResponse - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -365,8 +344,6 @@ module Google # response will not include any instance data. # @param [String] application_id # The application ID from the Google Play developer console. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] platform_type @@ -392,12 +369,11 @@ module Google # @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_application(application_id, consistency_token: nil, language: nil, platform_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_application(application_id, language: nil, platform_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'applications/{applicationId}', options) command.response_representation = Google::Apis::GamesV1::Application::Representation command.response_class = Google::Apis::GamesV1::Application command.params['applicationId'] = application_id unless application_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['platformType'] = platform_type unless platform_type.nil? command.query['fields'] = fields unless fields.nil? @@ -407,8 +383,6 @@ module Google end # Indicate that the the currently authenticated user is playing your application. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -430,9 +404,8 @@ module Google # @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 played_application(consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def played_application(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'applications/played', options) - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -443,8 +416,6 @@ module Google # the specified ID, and returns the ID of the player it was granted for. # @param [String] application_id # The application ID from the Google Play developer console. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -466,12 +437,11 @@ module Google # @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 verify_application(application_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def verify_application(application_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'applications/{applicationId}/verify', options) command.response_representation = Google::Apis::GamesV1::ApplicationVerifyResponse::Representation command.response_class = Google::Apis::GamesV1::ApplicationVerifyResponse command.params['applicationId'] = application_id unless application_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -480,8 +450,6 @@ module Google # Returns a list showing the current progress on events in this application for # the currently authenticated user. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -511,11 +479,10 @@ module Google # @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 list_event_by_player(consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_event_by_player(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'events', options) command.response_representation = Google::Apis::GamesV1::ListPlayerEventResponse::Representation command.response_class = Google::Apis::GamesV1::ListPlayerEventResponse - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -526,8 +493,6 @@ module Google end # Returns a list of the event definitions in this application. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -557,11 +522,10 @@ module Google # @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 list_event_definitions(consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_event_definitions(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'eventDefinitions', options) command.response_representation = Google::Apis::GamesV1::ListEventDefinitionResponse::Representation command.response_class = Google::Apis::GamesV1::ListEventDefinitionResponse - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -574,8 +538,6 @@ module Google # Records a batch of changes to the number of times events have occurred for the # currently authenticated user of this application. # @param [Google::Apis::GamesV1::EventRecordRequest] event_record_request_object - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -599,13 +561,12 @@ module Google # @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 record_event(event_record_request_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def record_event(event_record_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'events', options) command.request_representation = Google::Apis::GamesV1::EventRecordRequest::Representation command.request_object = event_record_request_object command.response_representation = Google::Apis::GamesV1::UpdateEventResponse::Representation command.response_class = Google::Apis::GamesV1::UpdateEventResponse - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -616,8 +577,6 @@ module Google # Retrieves the metadata of the leaderboard with the given ID. # @param [String] leaderboard_id # The ID of the leaderboard. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -641,12 +600,11 @@ module Google # @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_leaderboard(leaderboard_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_leaderboard(leaderboard_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'leaderboards/{leaderboardId}', options) command.response_representation = Google::Apis::GamesV1::Leaderboard::Representation command.response_class = Google::Apis::GamesV1::Leaderboard command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -655,8 +613,6 @@ module Google end # Lists all the leaderboard metadata for your application. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -686,11 +642,10 @@ module Google # @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 list_leaderboards(consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_leaderboards(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'leaderboards', options) command.response_representation = Google::Apis::GamesV1::ListLeaderboardResponse::Representation command.response_class = Google::Apis::GamesV1::ListLeaderboardResponse - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -701,8 +656,6 @@ module Google end # Return the metagame configuration data for the calling application. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -724,11 +677,10 @@ module Google # @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_metagame_config(consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_metagame_config(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'metagameConfig', options) command.response_representation = Google::Apis::GamesV1::MetagameConfig::Representation command.response_class = Google::Apis::GamesV1::MetagameConfig - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -742,8 +694,6 @@ module Google # ID. # @param [String] collection # The collection of categories for which data will be returned. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -773,13 +723,12 @@ module Google # @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 list_metagame_categories_by_player(player_id, collection, consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_metagame_categories_by_player(player_id, collection, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'players/{playerId}/categories/{collection}', options) command.response_representation = Google::Apis::GamesV1::ListCategoryResponse::Representation command.response_class = Google::Apis::GamesV1::ListCategoryResponse command.params['playerId'] = player_id unless player_id.nil? command.params['collection'] = collection unless collection.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -794,8 +743,6 @@ module Google # @param [String] player_id # A player ID. A value of me may be used in place of the authenticated player's # ID. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -819,12 +766,11 @@ module Google # @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_player(player_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_player(player_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'players/{playerId}', options) command.response_representation = Google::Apis::GamesV1::Player::Representation command.response_class = Google::Apis::GamesV1::Player command.params['playerId'] = player_id unless player_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -835,8 +781,6 @@ module Google # Get the collection of players for the currently authenticated user. # @param [String] collection # Collection of players being retrieved - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -866,12 +810,11 @@ module Google # @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 list_players(collection, consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_players(collection, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'players/me/players/{collection}', options) command.response_representation = Google::Apis::GamesV1::ListPlayerResponse::Representation command.response_class = Google::Apis::GamesV1::ListPlayerResponse command.params['collection'] = collection unless collection.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -884,8 +827,6 @@ module Google # Removes a push token for the current user and application. Removing a non- # existent push token will report success. # @param [Google::Apis::GamesV1::PushTokenId] push_token_id_object - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -907,11 +848,10 @@ module Google # @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 remove_pushtoken(push_token_id_object = nil, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def remove_pushtoken(push_token_id_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'pushtokens/remove', options) command.request_representation = Google::Apis::GamesV1::PushTokenId::Representation command.request_object = push_token_id_object - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -920,8 +860,6 @@ module Google # Registers a push token for the current user and application. # @param [Google::Apis::GamesV1::PushToken] push_token_object - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -943,11 +881,10 @@ module Google # @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 update_pushtoken(push_token_object = nil, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_pushtoken(push_token_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'pushtokens', options) command.request_representation = Google::Apis::GamesV1::PushToken::Representation command.request_object = push_token_object - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -964,8 +901,6 @@ module Google # @param [Fixnum] request_id # A numeric ID to ensure that the request is handled correctly across retries. # Your client application must generate this ID randomly. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -987,11 +922,10 @@ module Google # @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 claim_quest_milestone(quest_id, milestone_id, request_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def claim_quest_milestone(quest_id, milestone_id, request_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'quests/{questId}/milestones/{milestoneId}/claim', options) command.params['questId'] = quest_id unless quest_id.nil? command.params['milestoneId'] = milestone_id unless milestone_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1002,8 +936,6 @@ module Google # Indicates that the currently authorized user will participate in the quest. # @param [String] quest_id # The ID of the quest. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1027,12 +959,11 @@ module Google # @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 accept_quest(quest_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def accept_quest(quest_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'quests/{questId}/accept', options) command.response_representation = Google::Apis::GamesV1::Quest::Representation command.response_class = Google::Apis::GamesV1::Quest command.params['questId'] = quest_id unless quest_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1045,8 +976,6 @@ module Google # @param [String] player_id # A player ID. A value of me may be used in place of the authenticated player's # ID. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -1077,12 +1006,11 @@ module Google # @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 list_quests(player_id, consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_quests(player_id, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'players/{playerId}/quests', options) command.response_representation = Google::Apis::GamesV1::ListQuestResponse::Representation command.response_class = Google::Apis::GamesV1::ListQuestResponse command.params['playerId'] = player_id unless player_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -1100,8 +1028,6 @@ module Google # - "ANDROID" - Client is running the Android SDK. # - "IOS" - Client is running the iOS SDK. # - "WEB_APP" - Client is running as a Web App. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1123,12 +1049,11 @@ module Google # @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 check_revision(client_revision, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def check_revision(client_revision, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'revisions/check', options) command.response_representation = Google::Apis::GamesV1::CheckRevisionResponse::Representation command.response_class = Google::Apis::GamesV1::CheckRevisionResponse command.query['clientRevision'] = client_revision unless client_revision.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -1138,8 +1063,6 @@ module Google # Create a room. For internal use by the Games SDK only. Calling this method # directly is unsupported. # @param [Google::Apis::GamesV1::CreateRoomRequest] create_room_request_object - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1163,13 +1086,12 @@ module Google # @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 create_room(create_room_request_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def create_room(create_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'rooms/create', options) command.request_representation = Google::Apis::GamesV1::CreateRoomRequest::Representation command.request_object = create_room_request_object command.response_representation = Google::Apis::GamesV1::Room::Representation command.response_class = Google::Apis::GamesV1::Room - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1181,8 +1103,6 @@ module Google # Calling this method directly is unsupported. # @param [String] room_id # The ID of the room. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1206,12 +1126,11 @@ module Google # @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 decline_room(room_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def decline_room(room_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'rooms/{roomId}/decline', options) command.response_representation = Google::Apis::GamesV1::Room::Representation command.response_class = Google::Apis::GamesV1::Room command.params['roomId'] = room_id unless room_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1223,8 +1142,6 @@ module Google # Calling this method directly is unsupported. # @param [String] room_id # The ID of the room. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1246,10 +1163,9 @@ module Google # @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 dismiss_room(room_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def dismiss_room(room_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'rooms/{roomId}/dismiss', options) command.params['roomId'] = room_id unless room_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -1259,8 +1175,6 @@ module Google # Get the data for a room. # @param [String] room_id # The ID of the room. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1284,12 +1198,11 @@ module Google # @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_room(room_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_room(room_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'rooms/{roomId}', options) command.response_representation = Google::Apis::GamesV1::Room::Representation command.response_class = Google::Apis::GamesV1::Room command.params['roomId'] = room_id unless room_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1302,8 +1215,6 @@ module Google # @param [String] room_id # The ID of the room. # @param [Google::Apis::GamesV1::JoinRoomRequest] join_room_request_object - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1327,14 +1238,13 @@ module Google # @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 join_room(room_id, join_room_request_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def join_room(room_id, join_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'rooms/{roomId}/join', options) command.request_representation = Google::Apis::GamesV1::JoinRoomRequest::Representation command.request_object = join_room_request_object command.response_representation = Google::Apis::GamesV1::Room::Representation command.response_class = Google::Apis::GamesV1::Room command.params['roomId'] = room_id unless room_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1347,8 +1257,6 @@ module Google # @param [String] room_id # The ID of the room. # @param [Google::Apis::GamesV1::LeaveRoomRequest] leave_room_request_object - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1372,14 +1280,13 @@ module Google # @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 leave_room(room_id, leave_room_request_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def leave_room(room_id, leave_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'rooms/{roomId}/leave', options) command.request_representation = Google::Apis::GamesV1::LeaveRoomRequest::Representation command.request_object = leave_room_request_object command.response_representation = Google::Apis::GamesV1::Room::Representation command.response_class = Google::Apis::GamesV1::Room command.params['roomId'] = room_id unless room_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1388,8 +1295,6 @@ module Google end # Returns invitations to join rooms. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -1419,11 +1324,10 @@ module Google # @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 list_rooms(consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_rooms(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'rooms', options) command.response_representation = Google::Apis::GamesV1::RoomList::Representation command.response_class = Google::Apis::GamesV1::RoomList - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -1438,8 +1342,6 @@ module Google # @param [String] room_id # The ID of the room. # @param [Google::Apis::GamesV1::RoomP2PStatuses] room_p2_p_statuses_object - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1463,14 +1365,13 @@ module Google # @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 report_room_status(room_id, room_p2_p_statuses_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def report_room_status(room_id, room_p2_p_statuses_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'rooms/{roomId}/reportstatus', options) command.request_representation = Google::Apis::GamesV1::RoomP2PStatuses::Representation command.request_object = room_p2_p_statuses_object command.response_representation = Google::Apis::GamesV1::RoomStatus::Representation command.response_class = Google::Apis::GamesV1::RoomStatus command.params['roomId'] = room_id unless room_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1491,8 +1392,6 @@ module Google # leaderboards for this application. # @param [String] time_span # The time span for the scores and ranks you're requesting. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] include_rank_type # The types of ranks to return. If the parameter is omitted, no ranks will be # returned. @@ -1525,14 +1424,13 @@ module Google # @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_score(player_id, leaderboard_id, time_span, consistency_token: nil, include_rank_type: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_score(player_id, leaderboard_id, time_span, include_rank_type: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}', options) command.response_representation = Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse::Representation command.response_class = Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse command.params['playerId'] = player_id unless player_id.nil? command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? command.params['timeSpan'] = time_span unless time_span.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['includeRankType'] = include_rank_type unless include_rank_type.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? @@ -1550,8 +1448,6 @@ module Google # The collection of scores you're requesting. # @param [String] time_span # The time span for the scores and ranks you're requesting. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -1581,13 +1477,12 @@ module Google # @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 list_scores(leaderboard_id, collection, time_span, consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_scores(leaderboard_id, collection, time_span, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'leaderboards/{leaderboardId}/scores/{collection}', options) command.response_representation = Google::Apis::GamesV1::LeaderboardScores::Representation command.response_class = Google::Apis::GamesV1::LeaderboardScores command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? command.params['collection'] = collection unless collection.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -1605,8 +1500,6 @@ module Google # The collection of scores you're requesting. # @param [String] time_span # The time span for the scores and ranks you're requesting. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -1644,13 +1537,12 @@ module Google # @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 list_score_window(leaderboard_id, collection, time_span, consistency_token: nil, language: nil, max_results: nil, page_token: nil, results_above: nil, return_top_if_absent: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_score_window(leaderboard_id, collection, time_span, language: nil, max_results: nil, page_token: nil, results_above: nil, return_top_if_absent: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'leaderboards/{leaderboardId}/window/{collection}', options) command.response_representation = Google::Apis::GamesV1::LeaderboardScores::Representation command.response_class = Google::Apis::GamesV1::LeaderboardScores command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? command.params['collection'] = collection unless collection.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -1673,8 +1565,6 @@ module Google # For fixed-point, the score represents the raw value. For time, the score # represents elapsed time in milliseconds. For currency, the score represents a # value in micro units. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] score_tag @@ -1701,12 +1591,11 @@ module Google # @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 submit_score(leaderboard_id, score, consistency_token: nil, language: nil, score_tag: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def submit_score(leaderboard_id, score, language: nil, score_tag: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'leaderboards/{leaderboardId}/scores', options) command.response_representation = Google::Apis::GamesV1::PlayerScoreResponse::Representation command.response_class = Google::Apis::GamesV1::PlayerScoreResponse command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['score'] = score unless score.nil? command.query['scoreTag'] = score_tag unless score_tag.nil? @@ -1718,8 +1607,6 @@ module Google # Submits multiple scores to leaderboards. # @param [Google::Apis::GamesV1::PlayerScoreSubmissionList] player_score_submission_list_object - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1743,13 +1630,12 @@ module Google # @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 submit_score_multiple(player_score_submission_list_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def submit_score_multiple(player_score_submission_list_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'leaderboards/scores', options) command.request_representation = Google::Apis::GamesV1::PlayerScoreSubmissionList::Representation command.request_object = player_score_submission_list_object command.response_representation = Google::Apis::GamesV1::ListPlayerScoreResponse::Representation command.response_class = Google::Apis::GamesV1::ListPlayerScoreResponse - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1760,8 +1646,6 @@ module Google # Retrieves the metadata for a given snapshot ID. # @param [String] snapshot_id # The ID of the snapshot. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1785,12 +1669,11 @@ module Google # @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_snapshot(snapshot_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_snapshot(snapshot_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'snapshots/{snapshotId}', options) command.response_representation = Google::Apis::GamesV1::Snapshot::Representation command.response_class = Google::Apis::GamesV1::Snapshot command.params['snapshotId'] = snapshot_id unless snapshot_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1803,8 +1686,6 @@ module Google # @param [String] player_id # A player ID. A value of me may be used in place of the authenticated player's # ID. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -1834,12 +1715,11 @@ module Google # @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 list_snapshots(player_id, consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_snapshots(player_id, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'players/{playerId}/snapshots', options) command.response_representation = Google::Apis::GamesV1::ListSnapshotResponse::Representation command.response_class = Google::Apis::GamesV1::ListSnapshotResponse command.params['playerId'] = player_id unless player_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -1852,8 +1732,6 @@ module Google # Cancel a turn-based match. # @param [String] match_id # The ID of the match. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1875,10 +1753,9 @@ module Google # @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 cancel_turn_based_match(match_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def cancel_turn_based_match(match_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'turnbasedmatches/{matchId}/cancel', options) command.params['matchId'] = match_id unless match_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -1887,8 +1764,6 @@ module Google # Create a turn-based match. # @param [Google::Apis::GamesV1::CreateTurnBasedMatchRequest] create_turn_based_match_request_object - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1912,13 +1787,12 @@ module Google # @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 create_turn_based_match(create_turn_based_match_request_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def create_turn_based_match(create_turn_based_match_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'turnbasedmatches/create', options) command.request_representation = Google::Apis::GamesV1::CreateTurnBasedMatchRequest::Representation command.request_object = create_turn_based_match_request_object command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1929,8 +1803,6 @@ module Google # Decline an invitation to play a turn-based match. # @param [String] match_id # The ID of the match. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1954,12 +1826,11 @@ module Google # @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 decline_turn_based_match(match_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def decline_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'turnbasedmatches/{matchId}/decline', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1971,8 +1842,6 @@ module Google # up in the list and will not generate notifications. # @param [String] match_id # The ID of the match. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1994,10 +1863,9 @@ module Google # @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 dismiss_turn_based_match(match_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def dismiss_turn_based_match(match_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'turnbasedmatches/{matchId}/dismiss', options) command.params['matchId'] = match_id unless match_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -2010,8 +1878,6 @@ module Google # @param [String] match_id # The ID of the match. # @param [Google::Apis::GamesV1::TurnBasedMatchResults] turn_based_match_results_object - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -2035,14 +1901,13 @@ module Google # @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 finish_turn_based_match(match_id, turn_based_match_results_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def finish_turn_based_match(match_id, turn_based_match_results_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'turnbasedmatches/{matchId}/finish', options) command.request_representation = Google::Apis::GamesV1::TurnBasedMatchResults::Representation command.request_object = turn_based_match_results_object command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -2053,8 +1918,6 @@ module Google # Get the data for a turn-based match. # @param [String] match_id # The ID of the match. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [Boolean] include_match_data # Get match data along with metadata. # @param [String] language @@ -2080,12 +1943,11 @@ module Google # @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_turn_based_match(match_id, consistency_token: nil, include_match_data: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_turn_based_match(match_id, include_match_data: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'turnbasedmatches/{matchId}', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['includeMatchData'] = include_match_data unless include_match_data.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? @@ -2097,8 +1959,6 @@ module Google # Join a turn-based match. # @param [String] match_id # The ID of the match. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -2122,12 +1982,11 @@ module Google # @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 join_turn_based_match(match_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def join_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'turnbasedmatches/{matchId}/join', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -2139,8 +1998,6 @@ module Google # canceling the match. # @param [String] match_id # The ID of the match. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -2164,12 +2021,11 @@ module Google # @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 leave_turn_based_match(match_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def leave_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'turnbasedmatches/{matchId}/leave', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -2183,8 +2039,6 @@ module Google # The ID of the match. # @param [Fixnum] match_version # The version of the match being updated. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] pending_participant_id @@ -2213,12 +2067,11 @@ module Google # @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 leave_turn(match_id, match_version, consistency_token: nil, language: nil, pending_participant_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def leave_turn(match_id, match_version, language: nil, pending_participant_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'turnbasedmatches/{matchId}/leaveTurn', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['matchVersion'] = match_version unless match_version.nil? command.query['pendingParticipantId'] = pending_participant_id unless pending_participant_id.nil? @@ -2229,8 +2082,6 @@ module Google end # Returns turn-based matches the player is or was involved in. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [Boolean] include_match_data # True if match data should be returned in the response. Note that not all data # will necessarily be returned if include_match_data is true; the server may @@ -2269,11 +2120,10 @@ module Google # @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 list_turn_based_matches(consistency_token: nil, include_match_data: nil, language: nil, max_completed_matches: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_turn_based_matches(include_match_data: nil, language: nil, max_completed_matches: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'turnbasedmatches', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatchList::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatchList - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['includeMatchData'] = include_match_data unless include_match_data.nil? command.query['language'] = language unless language.nil? command.query['maxCompletedMatches'] = max_completed_matches unless max_completed_matches.nil? @@ -2291,8 +2141,6 @@ module Google # match; it will be the caller's turn. # @param [String] match_id # The ID of the match. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] request_id @@ -2320,12 +2168,11 @@ module Google # @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 rematch_turn_based_match(match_id, consistency_token: nil, language: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def rematch_turn_based_match(match_id, language: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'turnbasedmatches/{matchId}/rematch', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatchRematch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatchRematch command.params['matchId'] = match_id unless match_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? @@ -2337,8 +2184,6 @@ module Google # Returns turn-based matches the player is or was involved in that changed since # the last sync call, with the least recent changes coming first. Matches that # should be removed from the local cache will have a status of MATCH_DELETED. - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [Boolean] include_match_data # True if match data should be returned in the response. Note that not all data # will necessarily be returned if include_match_data is true; the server may @@ -2377,11 +2222,10 @@ module Google # @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 sync_turn_based_match(consistency_token: nil, include_match_data: nil, language: nil, max_completed_matches: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def sync_turn_based_match(include_match_data: nil, language: nil, max_completed_matches: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'turnbasedmatches/sync', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatchSync::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatchSync - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['includeMatchData'] = include_match_data unless include_match_data.nil? command.query['language'] = language unless language.nil? command.query['maxCompletedMatches'] = max_completed_matches unless max_completed_matches.nil? @@ -2397,8 +2241,6 @@ module Google # @param [String] match_id # The ID of the match. # @param [Google::Apis::GamesV1::TurnBasedMatchTurn] turn_based_match_turn_object - # @param [Fixnum] consistency_token - # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -2422,14 +2264,13 @@ module Google # @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 take_turn(match_id, turn_based_match_turn_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def take_turn(match_id, turn_based_match_turn_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'turnbasedmatches/{matchId}/turn', options) command.request_representation = Google::Apis::GamesV1::TurnBasedMatchTurn::Representation command.request_object = turn_based_match_turn_object command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? - command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? diff --git a/generated/google/apis/iam_v1.rb b/generated/google/apis/iam_v1.rb index da629c005..ceeabda38 100644 --- a/generated/google/apis/iam_v1.rb +++ b/generated/google/apis/iam_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/iam/ module IamV1 VERSION = 'V1' - REVISION = '20171228' + REVISION = '20180105' # 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/iam_v1/classes.rb b/generated/google/apis/iam_v1/classes.rb index e9e22d348..b189d9651 100644 --- a/generated/google/apis/iam_v1/classes.rb +++ b/generated/google/apis/iam_v1/classes.rb @@ -156,8 +156,9 @@ module Google # @return [String] attr_accessor :key_algorithm - # The output format of the private key. `GOOGLE_CREDENTIALS_FILE` is the - # default output format. + # The output format of the private key. The default value is + # `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File + # format. # Corresponds to the JSON property `privateKeyType` # @return [String] attr_accessor :private_key_type diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb index 1846e7d80..28fef9cef 100644 --- a/generated/google/apis/ml_v1.rb +++ b/generated/google/apis/ml_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/ml/ module MlV1 VERSION = 'V1' - REVISION = '20171221' + REVISION = '20180105' # 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/ml_v1/classes.rb b/generated/google/apis/ml_v1/classes.rb index 5bf50a5e4..d101742a8 100644 --- a/generated/google/apis/ml_v1/classes.rb +++ b/generated/google/apis/ml_v1/classes.rb @@ -1542,7 +1542,7 @@ module Google # ] # ` # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam). + # [IAM developer's guide](https://cloud.google.com/iam/docs). class GoogleIamV1Policy include Google::Apis::Core::Hashable @@ -1577,7 +1577,7 @@ module Google attr_accessor :iam_owned alias_method :iam_owned?, :iam_owned - # Version of the `Policy`. The default version is 0. + # Deprecated. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1625,7 +1625,7 @@ module Google # ] # ` # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam). + # [IAM developer's guide](https://cloud.google.com/iam/docs). # Corresponds to the JSON property `policy` # @return [Google::Apis::MlV1::GoogleIamV1Policy] attr_accessor :policy diff --git a/generated/google/apis/pagespeedonline_v1.rb b/generated/google/apis/pagespeedonline_v1.rb index afc9e606b..522db0d93 100644 --- a/generated/google/apis/pagespeedonline_v1.rb +++ b/generated/google/apis/pagespeedonline_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/speed/docs/insights/v1/getting_started module PagespeedonlineV1 VERSION = 'V1' - REVISION = '20161204' + REVISION = '20180108' end end end diff --git a/generated/google/apis/pagespeedonline_v1/classes.rb b/generated/google/apis/pagespeedonline_v1/classes.rb index c38e14217..38a275732 100644 --- a/generated/google/apis/pagespeedonline_v1/classes.rb +++ b/generated/google/apis/pagespeedonline_v1/classes.rb @@ -26,6 +26,11 @@ module Google class Result include Google::Apis::Core::Hashable + # The captcha verify result + # Corresponds to the JSON property `captchaResult` + # @return [String] + attr_accessor :captcha_result + # Localized PageSpeed results. Contains a ruleResults entry for each PageSpeed # rule instantiated and run by the server. # Corresponds to the JSON property `formattedResults` @@ -89,6 +94,7 @@ module Google # Update properties of this object def update!(**args) + @captcha_result = args[:captcha_result] if args.key?(:captcha_result) @formatted_results = args[:formatted_results] if args.key?(:formatted_results) @id = args[:id] if args.key?(:id) @invalid_rules = args[:invalid_rules] if args.key?(:invalid_rules) diff --git a/generated/google/apis/pagespeedonline_v1/representations.rb b/generated/google/apis/pagespeedonline_v1/representations.rb index f41c9f4f5..59604c3cb 100644 --- a/generated/google/apis/pagespeedonline_v1/representations.rb +++ b/generated/google/apis/pagespeedonline_v1/representations.rb @@ -109,6 +109,7 @@ module Google class Result # @private class Representation < Google::Apis::Core::JsonRepresentation + property :captcha_result, as: 'captchaResult' property :formatted_results, as: 'formattedResults', class: Google::Apis::PagespeedonlineV1::Result::FormattedResults, decorator: Google::Apis::PagespeedonlineV1::Result::FormattedResults::Representation property :id, as: 'id' diff --git a/generated/google/apis/pagespeedonline_v2.rb b/generated/google/apis/pagespeedonline_v2.rb index 058ac24d2..73e3029ef 100644 --- a/generated/google/apis/pagespeedonline_v2.rb +++ b/generated/google/apis/pagespeedonline_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/speed/docs/insights/v2/getting-started module PagespeedonlineV2 VERSION = 'V2' - REVISION = '20161204' + REVISION = '20180108' end end end diff --git a/generated/google/apis/pagespeedonline_v2/classes.rb b/generated/google/apis/pagespeedonline_v2/classes.rb index c09b03bd8..2436ac6ae 100644 --- a/generated/google/apis/pagespeedonline_v2/classes.rb +++ b/generated/google/apis/pagespeedonline_v2/classes.rb @@ -265,6 +265,11 @@ module Google class Result include Google::Apis::Core::Hashable + # The captcha verify result + # Corresponds to the JSON property `captchaResult` + # @return [String] + attr_accessor :captcha_result + # Localized PageSpeed results. Contains a ruleResults entry for each PageSpeed # rule instantiated and run by the server. # Corresponds to the JSON property `formattedResults` @@ -326,6 +331,7 @@ module Google # Update properties of this object def update!(**args) + @captcha_result = args[:captcha_result] if args.key?(:captcha_result) @formatted_results = args[:formatted_results] if args.key?(:formatted_results) @id = args[:id] if args.key?(:id) @invalid_rules = args[:invalid_rules] if args.key?(:invalid_rules) diff --git a/generated/google/apis/pagespeedonline_v2/representations.rb b/generated/google/apis/pagespeedonline_v2/representations.rb index 686ae4a0e..3e2e76e66 100644 --- a/generated/google/apis/pagespeedonline_v2/representations.rb +++ b/generated/google/apis/pagespeedonline_v2/representations.rb @@ -174,6 +174,7 @@ module Google class Result # @private class Representation < Google::Apis::Core::JsonRepresentation + property :captcha_result, as: 'captchaResult' property :formatted_results, as: 'formattedResults', class: Google::Apis::PagespeedonlineV2::Result::FormattedResults, decorator: Google::Apis::PagespeedonlineV2::Result::FormattedResults::Representation property :id, as: 'id' diff --git a/generated/google/apis/plus_domains_v1/service.rb b/generated/google/apis/plus_domains_v1/service.rb index 455d63a58..6df925841 100644 --- a/generated/google/apis/plus_domains_v1/service.rb +++ b/generated/google/apis/plus_domains_v1/service.rb @@ -50,7 +50,7 @@ module Google def initialize super('https://www.googleapis.com/', 'plusDomains/v1/') - @batch_path = 'batch' + @batch_path = 'batch/plusDomains/v1' end # Get an activity. diff --git a/generated/google/apis/pubsub_v1.rb b/generated/google/apis/pubsub_v1.rb index ee9dd8a7a..61d7d2191 100644 --- a/generated/google/apis/pubsub_v1.rb +++ b/generated/google/apis/pubsub_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1 VERSION = 'V1' - REVISION = '20171120' + REVISION = '20180103' # 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/pubsub_v1/classes.rb b/generated/google/apis/pubsub_v1/classes.rb index 67bb24944..a4fb49415 100644 --- a/generated/google/apis/pubsub_v1/classes.rb +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -336,7 +336,7 @@ module Google # ] # ` # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam). + # [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy include Google::Apis::Core::Hashable @@ -360,7 +360,7 @@ module Google # @return [String] attr_accessor :etag - # Version of the `Policy`. The default version is 0. + # Deprecated. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -661,7 +661,7 @@ module Google # ] # ` # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam). + # [IAM developer's guide](https://cloud.google.com/iam/docs). # Corresponds to the JSON property `policy` # @return [Google::Apis::PubsubV1::Policy] attr_accessor :policy diff --git a/generated/google/apis/pubsub_v1/service.rb b/generated/google/apis/pubsub_v1/service.rb index 16649d9de..210123d25 100644 --- a/generated/google/apis/pubsub_v1/service.rb +++ b/generated/google/apis/pubsub_v1/service.rb @@ -130,6 +130,37 @@ module Google execute_or_queue_command(command, &block) end + # Gets the configuration details of a snapshot. + # @param [String] snapshot + # The name of the snapshot to get. + # Format is `projects/`project`/snapshots/`snap``. + # @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::PubsubV1::Snapshot] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Snapshot] + # + # @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_project_snapshot(snapshot, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+snapshot}', options) + command.response_representation = Google::Apis::PubsubV1::Snapshot::Representation + command.response_class = Google::Apis::PubsubV1::Snapshot + command.params['snapshot'] = snapshot unless snapshot.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Gets the access control policy for a resource. # Returns an empty policy if the resource exists and does not have a policy # set. diff --git a/generated/google/apis/pubsub_v1beta2.rb b/generated/google/apis/pubsub_v1beta2.rb index 89a365be7..7f449305b 100644 --- a/generated/google/apis/pubsub_v1beta2.rb +++ b/generated/google/apis/pubsub_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1beta2 VERSION = 'V1beta2' - REVISION = '20170607' + REVISION = '20180103' # 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/pubsub_v1beta2/classes.rb b/generated/google/apis/pubsub_v1beta2/classes.rb index 9dd104a0d..fb879aa82 100644 --- a/generated/google/apis/pubsub_v1beta2/classes.rb +++ b/generated/google/apis/pubsub_v1beta2/classes.rb @@ -261,7 +261,7 @@ module Google # ] # ` # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam). + # [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy include Google::Apis::Core::Hashable @@ -285,7 +285,7 @@ module Google # @return [String] attr_accessor :etag - # Version of the `Policy`. The default version is 0. + # Deprecated. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -537,7 +537,7 @@ module Google # ] # ` # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam). + # [IAM developer's guide](https://cloud.google.com/iam/docs). # Corresponds to the JSON property `policy` # @return [Google::Apis::PubsubV1beta2::Policy] attr_accessor :policy diff --git a/generated/google/apis/script_v1.rb b/generated/google/apis/script_v1.rb index 46ebf2a16..2ca557f3d 100644 --- a/generated/google/apis/script_v1.rb +++ b/generated/google/apis/script_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run module ScriptV1 VERSION = 'V1' - REVISION = '20171113' + REVISION = '20180109' # Read, send, delete, and manage your email AUTH_SCOPE = 'https://mail.google.com/' diff --git a/generated/google/apis/script_v1/classes.rb b/generated/google/apis/script_v1/classes.rb index 65f0af6d8..ed27ba8c0 100644 --- a/generated/google/apis/script_v1/classes.rb +++ b/generated/google/apis/script_v1/classes.rb @@ -22,6 +22,203 @@ module Google module Apis module ScriptV1 + # The Content resource. + class Content + include Google::Apis::Core::Hashable + + # The list of script project files. + # One of the files is a script manifest; it must be named "appsscript", + # must have type of JSON, and include the manifest configurations for the + # project. + # Corresponds to the JSON property `files` + # @return [Array] + attr_accessor :files + + # The script project's Drive ID. + # Corresponds to the JSON property `scriptId` + # @return [String] + attr_accessor :script_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @files = args[:files] if args.key?(:files) + @script_id = args[:script_id] if args.key?(:script_id) + end + end + + # Request to create a script project. + class CreateProjectRequest + include Google::Apis::Core::Hashable + + # The Drive ID of a parent file that the created script project is bound to. + # This is usually the ID of a Google Doc, Google Sheet, Google Form, or + # Google Slides file. If not set, a standalone script project is created. + # Corresponds to the JSON property `parentId` + # @return [String] + attr_accessor :parent_id + + # The title for the project. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @parent_id = args[:parent_id] if args.key?(:parent_id) + @title = args[:title] if args.key?(:title) + end + end + + # Representation of a single script deployment. + class Deployment + include Google::Apis::Core::Hashable + + # Metadata the defines how a deployment is configured. + # Corresponds to the JSON property `deploymentConfig` + # @return [Google::Apis::ScriptV1::DeploymentConfig] + attr_accessor :deployment_config + + # The deployment ID for this deployment. + # Corresponds to the JSON property `deploymentId` + # @return [String] + attr_accessor :deployment_id + + # The deployment's entry points. + # Corresponds to the JSON property `entryPoints` + # @return [Array] + attr_accessor :entry_points + + # A set of functions. No duplicates are permitted. + # Corresponds to the JSON property `functionSet` + # @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeFunctionSet] + attr_accessor :function_set + + # A set of scopes. No duplicates are permitted. + # Corresponds to the JSON property `scopeSet` + # @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeScopeSet] + attr_accessor :scope_set + + # Last modified date time stamp. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deployment_config = args[:deployment_config] if args.key?(:deployment_config) + @deployment_id = args[:deployment_id] if args.key?(:deployment_id) + @entry_points = args[:entry_points] if args.key?(:entry_points) + @function_set = args[:function_set] if args.key?(:function_set) + @scope_set = args[:scope_set] if args.key?(:scope_set) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Metadata the defines how a deployment is configured. + class DeploymentConfig + include Google::Apis::Core::Hashable + + # The description for this deployment. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The manifest file name for this deployment. + # Corresponds to the JSON property `manifestFileName` + # @return [String] + attr_accessor :manifest_file_name + + # The script project's Drive ID. + # Corresponds to the JSON property `scriptId` + # @return [String] + attr_accessor :script_id + + # The version number on which this deployment is based. + # Corresponds to the JSON property `versionNumber` + # @return [Fixnum] + attr_accessor :version_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @manifest_file_name = args[:manifest_file_name] if args.key?(:manifest_file_name) + @script_id = args[:script_id] if args.key?(:script_id) + @version_number = args[:version_number] if args.key?(:version_number) + 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: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A configuration that defines how a deployment is accessed externally. + class EntryPoint + include Google::Apis::Core::Hashable + + # An add-on entry point. + # Corresponds to the JSON property `addOn` + # @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeAddOnEntryPoint] + attr_accessor :add_on + + # The type of the entry point. + # Corresponds to the JSON property `entryPointType` + # @return [String] + attr_accessor :entry_point_type + + # An API executable entry point. + # Corresponds to the JSON property `executionApi` + # @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeExecutionApiEntryPoint] + attr_accessor :execution_api + + # A web application entry point. + # Corresponds to the JSON property `webApp` + # @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeWebAppEntryPoint] + attr_accessor :web_app + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @add_on = args[:add_on] if args.key?(:add_on) + @entry_point_type = args[:entry_point_type] if args.key?(:entry_point_type) + @execution_api = args[:execution_api] if args.key?(:execution_api) + @web_app = args[:web_app] if args.key?(:web_app) + end + end + # An object that provides information about the nature of an error resulting # from an attempted execution of a script function using the Apps Script API. # If a run call @@ -146,6 +343,558 @@ module Google end end + # An individual file within a script project. + # A file is a third-party source code created by one or more + # developers. It can be a server-side JS code, HTML, or a + # configuration file. Each script project can contain multiple files. + class File + include Google::Apis::Core::Hashable + + # Creation date timestamp. + # This read-only field is only visible to users who have WRITER + # permission for the script project. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # A set of functions. No duplicates are permitted. + # Corresponds to the JSON property `functionSet` + # @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeFunctionSet] + attr_accessor :function_set + + # A simple user profile resource. + # Corresponds to the JSON property `lastModifyUser` + # @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeUser] + attr_accessor :last_modify_user + + # The name of the file. The file extension is not part of the file + # name, which can be identified from the type field. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The file content. + # Corresponds to the JSON property `source` + # @return [String] + attr_accessor :source + + # The type of the file. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Last modified date timestamp. + # This read-only field is only visible to users who have WRITER + # permission for the script project. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @function_set = args[:function_set] if args.key?(:function_set) + @last_modify_user = args[:last_modify_user] if args.key?(:last_modify_user) + @name = args[:name] if args.key?(:name) + @source = args[:source] if args.key?(:source) + @type = args[:type] if args.key?(:type) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # An add-on entry point. + class GoogleAppsScriptTypeAddOnEntryPoint + include Google::Apis::Core::Hashable + + # The add-on's required list of supported container types. + # Corresponds to the JSON property `addOnType` + # @return [String] + attr_accessor :add_on_type + + # The add-on's optional description. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The add-on's optional help URL. + # Corresponds to the JSON property `helpUrl` + # @return [String] + attr_accessor :help_url + + # The add-on's required post install tip URL. + # Corresponds to the JSON property `postInstallTipUrl` + # @return [String] + attr_accessor :post_install_tip_url + + # The add-on's optional report issue URL. + # Corresponds to the JSON property `reportIssueUrl` + # @return [String] + attr_accessor :report_issue_url + + # The add-on's required title. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @add_on_type = args[:add_on_type] if args.key?(:add_on_type) + @description = args[:description] if args.key?(:description) + @help_url = args[:help_url] if args.key?(:help_url) + @post_install_tip_url = args[:post_install_tip_url] if args.key?(:post_install_tip_url) + @report_issue_url = args[:report_issue_url] if args.key?(:report_issue_url) + @title = args[:title] if args.key?(:title) + end + end + + # API executable entry point configuration. + class GoogleAppsScriptTypeExecutionApiConfig + include Google::Apis::Core::Hashable + + # Who has permission to run the API executable. + # Corresponds to the JSON property `access` + # @return [String] + attr_accessor :access + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @access = args[:access] if args.key?(:access) + end + end + + # An API executable entry point. + class GoogleAppsScriptTypeExecutionApiEntryPoint + include Google::Apis::Core::Hashable + + # API executable entry point configuration. + # Corresponds to the JSON property `entryPointConfig` + # @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeExecutionApiConfig] + attr_accessor :entry_point_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entry_point_config = args[:entry_point_config] if args.key?(:entry_point_config) + end + end + + # Represents a function in a script project. + class GoogleAppsScriptTypeFunction + include Google::Apis::Core::Hashable + + # The function name in the script project. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + end + end + + # A set of functions. No duplicates are permitted. + class GoogleAppsScriptTypeFunctionSet + include Google::Apis::Core::Hashable + + # A list of functions composing the set. + # 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) + @values = args[:values] if args.key?(:values) + end + end + + # Representation of a single script process execution that was started from + # the script editor, a trigger, an application, or using the Apps Script API. + # This is distinct from the `Operation` + # resource, which only represents exeuctions started via the Apps Script API. + class GoogleAppsScriptTypeProcess + include Google::Apis::Core::Hashable + + # Duration the execution spent executing. + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # User-facing name for the user executing the script. + # Corresponds to the JSON property `executingUser` + # @return [String] + attr_accessor :executing_user + + # Name of the function the started the execution. + # Corresponds to the JSON property `functionName` + # @return [String] + attr_accessor :function_name + + # The executions status. + # Corresponds to the JSON property `processStatus` + # @return [String] + attr_accessor :process_status + + # The executions type. + # Corresponds to the JSON property `processType` + # @return [String] + attr_accessor :process_type + + # Name of the script being executed. + # Corresponds to the JSON property `projectName` + # @return [String] + attr_accessor :project_name + + # Time the execution started. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # The executing users access level to the script. + # Corresponds to the JSON property `userAccessLevel` + # @return [String] + attr_accessor :user_access_level + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @duration = args[:duration] if args.key?(:duration) + @executing_user = args[:executing_user] if args.key?(:executing_user) + @function_name = args[:function_name] if args.key?(:function_name) + @process_status = args[:process_status] if args.key?(:process_status) + @process_type = args[:process_type] if args.key?(:process_type) + @project_name = args[:project_name] if args.key?(:project_name) + @start_time = args[:start_time] if args.key?(:start_time) + @user_access_level = args[:user_access_level] if args.key?(:user_access_level) + end + end + + # Represents an authorization scope. + class GoogleAppsScriptTypeScope + include Google::Apis::Core::Hashable + + # Who authorized the scope. + # Corresponds to the JSON property `authorizer` + # @return [String] + attr_accessor :authorizer + + # The scope's identifying string. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @authorizer = args[:authorizer] if args.key?(:authorizer) + @name = args[:name] if args.key?(:name) + end + end + + # A set of scopes. No duplicates are permitted. + class GoogleAppsScriptTypeScopeSet + include Google::Apis::Core::Hashable + + # List of scope values in the set. + # 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) + @values = args[:values] if args.key?(:values) + end + end + + # A simple user profile resource. + class GoogleAppsScriptTypeUser + include Google::Apis::Core::Hashable + + # The user's domain. + # Corresponds to the JSON property `domain` + # @return [String] + attr_accessor :domain + + # The user's identifying email address. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # The user's display name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The user's photo. + # Corresponds to the JSON property `photoUrl` + # @return [String] + attr_accessor :photo_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @domain = args[:domain] if args.key?(:domain) + @email = args[:email] if args.key?(:email) + @name = args[:name] if args.key?(:name) + @photo_url = args[:photo_url] if args.key?(:photo_url) + end + end + + # Web app entry point configuration. + class GoogleAppsScriptTypeWebAppConfig + include Google::Apis::Core::Hashable + + # Who has permission to run the web app. + # Corresponds to the JSON property `access` + # @return [String] + attr_accessor :access + + # Who to execute the web app as. + # Corresponds to the JSON property `executeAs` + # @return [String] + attr_accessor :execute_as + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @access = args[:access] if args.key?(:access) + @execute_as = args[:execute_as] if args.key?(:execute_as) + end + end + + # A web application entry point. + class GoogleAppsScriptTypeWebAppEntryPoint + include Google::Apis::Core::Hashable + + # Web app entry point configuration. + # Corresponds to the JSON property `entryPointConfig` + # @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeWebAppConfig] + attr_accessor :entry_point_config + + # The URL for the web application. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entry_point_config = args[:entry_point_config] if args.key?(:entry_point_config) + @url = args[:url] if args.key?(:url) + end + end + + # Response with the list of deployments for the specified Apps Script project. + class ListDeploymentsResponse + include Google::Apis::Core::Hashable + + # The list of deployments. + # Corresponds to the JSON property `deployments` + # @return [Array] + attr_accessor :deployments + + # The token that can be used in the next call to get the next page of + # results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deployments = args[:deployments] if args.key?(:deployments) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Response with the list of + # Process resources. + class ListScriptProcessesResponse + include Google::Apis::Core::Hashable + + # Token for the next page of results. If empty, there are no more pages + # remaining. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # List of processes matching request parameters. + # Corresponds to the JSON property `processes` + # @return [Array] + attr_accessor :processes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @processes = args[:processes] if args.key?(:processes) + end + end + + # Response with the list of + # Process resources. + class ListUserProcessesResponse + include Google::Apis::Core::Hashable + + # Token for the next page of results. If empty, there are no more pages + # remaining. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # List of processes matching request parameters. + # Corresponds to the JSON property `processes` + # @return [Array] + attr_accessor :processes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @processes = args[:processes] if args.key?(:processes) + end + end + + # Response with the list of the versions for the specified script project. + class ListVersionsResponse + include Google::Apis::Core::Hashable + + # The token use to fetch the next page of records. if not exist in the + # response, that means no more versions to list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of versions. + # Corresponds to the JSON property `versions` + # @return [Array] + attr_accessor :versions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @versions = args[:versions] if args.key?(:versions) + end + end + + # Resource containing usage stats for a given script, based on the supplied + # filter and mask present in the request. + class Metrics + include Google::Apis::Core::Hashable + + # Number of active users. + # Corresponds to the JSON property `activeUsers` + # @return [Array] + attr_accessor :active_users + + # Number of failed executions. + # Corresponds to the JSON property `failedExecutions` + # @return [Array] + attr_accessor :failed_executions + + # Number of total executions. + # Corresponds to the JSON property `totalExecutions` + # @return [Array] + attr_accessor :total_executions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @active_users = args[:active_users] if args.key?(:active_users) + @failed_executions = args[:failed_executions] if args.key?(:failed_executions) + @total_executions = args[:total_executions] if args.key?(:total_executions) + end + end + + # Metrics value that holds number of executions counted. + class MetricsValue + include Google::Apis::Core::Hashable + + # Required field indicating the end time of the interval. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Required field indicating the start time of the interval. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # Indicates the number of executions counted. + # Corresponds to the JSON property `value` + # @return [Fixnum] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @start_time = args[:start_time] if args.key?(:start_time) + @value = args[:value] if args.key?(:value) + end + end + # A representation of a execution of an Apps Script function that is started # using run. The execution response does not arrive until the function finishes # executing. The maximum execution runtime is listed in the [Apps Script quotas @@ -206,6 +955,63 @@ module Google end end + # The script project resource. + class Project + include Google::Apis::Core::Hashable + + # When the script was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # A simple user profile resource. + # Corresponds to the JSON property `creator` + # @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeUser] + attr_accessor :creator + + # A simple user profile resource. + # Corresponds to the JSON property `lastModifyUser` + # @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeUser] + attr_accessor :last_modify_user + + # The parent's Drive ID that the script will be attached to. This is usually + # the ID of a Google Document or Google Sheet. This filed is optional, and + # if not set, a stand-alone script will be created. + # Corresponds to the JSON property `parentId` + # @return [String] + attr_accessor :parent_id + + # The script project's Drive ID. + # Corresponds to the JSON property `scriptId` + # @return [String] + attr_accessor :script_id + + # The title for the project. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # When the script was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @creator = args[:creator] if args.key?(:creator) + @last_modify_user = args[:last_modify_user] if args.key?(:last_modify_user) + @parent_id = args[:parent_id] if args.key?(:parent_id) + @script_id = args[:script_id] if args.key?(:script_id) + @title = args[:title] if args.key?(:title) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + # A stack trace through the script that shows where the execution failed. class ScriptStackTraceElement include Google::Apis::Core::Hashable @@ -268,6 +1074,65 @@ module Google @message = args[:message] if args.key?(:message) end end + + # Request with deployment information to update an existing deployment. + class UpdateDeploymentRequest + include Google::Apis::Core::Hashable + + # Metadata the defines how a deployment is configured. + # Corresponds to the JSON property `deploymentConfig` + # @return [Google::Apis::ScriptV1::DeploymentConfig] + attr_accessor :deployment_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deployment_config = args[:deployment_config] if args.key?(:deployment_config) + end + end + + # A resource representing a script project version. A version is a "snapshot" + # of a script project and is similar to a read-only branched release. When + # creating deployments, the version to use must be specified. + class Version + include Google::Apis::Core::Hashable + + # When the version was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The description for this version. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The script project's Drive ID. + # Corresponds to the JSON property `scriptId` + # @return [String] + attr_accessor :script_id + + # The incremental ID that is created by Apps Script when a version is + # created. This is system assigned number and is immutable once created. + # Corresponds to the JSON property `versionNumber` + # @return [Fixnum] + attr_accessor :version_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + @script_id = args[:script_id] if args.key?(:script_id) + @version_number = args[:version_number] if args.key?(:version_number) + end + end end end end diff --git a/generated/google/apis/script_v1/representations.rb b/generated/google/apis/script_v1/representations.rb index 0d9eb8036..d04d8b5f9 100644 --- a/generated/google/apis/script_v1/representations.rb +++ b/generated/google/apis/script_v1/representations.rb @@ -22,6 +22,42 @@ module Google module Apis module ScriptV1 + class Content + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreateProjectRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Deployment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeploymentConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EntryPoint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ExecutionError class Representation < Google::Apis::Core::JsonRepresentation; end @@ -40,12 +76,126 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class File + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsScriptTypeAddOnEntryPoint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsScriptTypeExecutionApiConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsScriptTypeExecutionApiEntryPoint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsScriptTypeFunction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsScriptTypeFunctionSet + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsScriptTypeProcess + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsScriptTypeScope + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsScriptTypeScopeSet + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsScriptTypeUser + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsScriptTypeWebAppConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAppsScriptTypeWebAppEntryPoint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListDeploymentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListScriptProcessesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListUserProcessesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListVersionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Metrics + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MetricsValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Project + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ScriptStackTraceElement class Representation < Google::Apis::Core::JsonRepresentation; end @@ -58,6 +208,80 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UpdateDeploymentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Version + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Content + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :files, as: 'files', class: Google::Apis::ScriptV1::File, decorator: Google::Apis::ScriptV1::File::Representation + + property :script_id, as: 'scriptId' + end + end + + class CreateProjectRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :parent_id, as: 'parentId' + property :title, as: 'title' + end + end + + class Deployment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :deployment_config, as: 'deploymentConfig', class: Google::Apis::ScriptV1::DeploymentConfig, decorator: Google::Apis::ScriptV1::DeploymentConfig::Representation + + property :deployment_id, as: 'deploymentId' + collection :entry_points, as: 'entryPoints', class: Google::Apis::ScriptV1::EntryPoint, decorator: Google::Apis::ScriptV1::EntryPoint::Representation + + property :function_set, as: 'functionSet', class: Google::Apis::ScriptV1::GoogleAppsScriptTypeFunctionSet, decorator: Google::Apis::ScriptV1::GoogleAppsScriptTypeFunctionSet::Representation + + property :scope_set, as: 'scopeSet', class: Google::Apis::ScriptV1::GoogleAppsScriptTypeScopeSet, decorator: Google::Apis::ScriptV1::GoogleAppsScriptTypeScopeSet::Representation + + property :update_time, as: 'updateTime' + end + end + + class DeploymentConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :manifest_file_name, as: 'manifestFileName' + property :script_id, as: 'scriptId' + property :version_number, as: 'versionNumber' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class EntryPoint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :add_on, as: 'addOn', class: Google::Apis::ScriptV1::GoogleAppsScriptTypeAddOnEntryPoint, decorator: Google::Apis::ScriptV1::GoogleAppsScriptTypeAddOnEntryPoint::Representation + + property :entry_point_type, as: 'entryPointType' + property :execution_api, as: 'executionApi', class: Google::Apis::ScriptV1::GoogleAppsScriptTypeExecutionApiEntryPoint, decorator: Google::Apis::ScriptV1::GoogleAppsScriptTypeExecutionApiEntryPoint::Representation + + property :web_app, as: 'webApp', class: Google::Apis::ScriptV1::GoogleAppsScriptTypeWebAppEntryPoint, decorator: Google::Apis::ScriptV1::GoogleAppsScriptTypeWebAppEntryPoint::Representation + + end + end + class ExecutionError # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -85,6 +309,177 @@ module Google end end + class File + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :function_set, as: 'functionSet', class: Google::Apis::ScriptV1::GoogleAppsScriptTypeFunctionSet, decorator: Google::Apis::ScriptV1::GoogleAppsScriptTypeFunctionSet::Representation + + property :last_modify_user, as: 'lastModifyUser', class: Google::Apis::ScriptV1::GoogleAppsScriptTypeUser, decorator: Google::Apis::ScriptV1::GoogleAppsScriptTypeUser::Representation + + property :name, as: 'name' + property :source, as: 'source' + property :type, as: 'type' + property :update_time, as: 'updateTime' + end + end + + class GoogleAppsScriptTypeAddOnEntryPoint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :add_on_type, as: 'addOnType' + property :description, as: 'description' + property :help_url, as: 'helpUrl' + property :post_install_tip_url, as: 'postInstallTipUrl' + property :report_issue_url, as: 'reportIssueUrl' + property :title, as: 'title' + end + end + + class GoogleAppsScriptTypeExecutionApiConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :access, as: 'access' + end + end + + class GoogleAppsScriptTypeExecutionApiEntryPoint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :entry_point_config, as: 'entryPointConfig', class: Google::Apis::ScriptV1::GoogleAppsScriptTypeExecutionApiConfig, decorator: Google::Apis::ScriptV1::GoogleAppsScriptTypeExecutionApiConfig::Representation + + end + end + + class GoogleAppsScriptTypeFunction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + end + end + + class GoogleAppsScriptTypeFunctionSet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :values, as: 'values', class: Google::Apis::ScriptV1::GoogleAppsScriptTypeFunction, decorator: Google::Apis::ScriptV1::GoogleAppsScriptTypeFunction::Representation + + end + end + + class GoogleAppsScriptTypeProcess + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :duration, as: 'duration' + property :executing_user, as: 'executingUser' + property :function_name, as: 'functionName' + property :process_status, as: 'processStatus' + property :process_type, as: 'processType' + property :project_name, as: 'projectName' + property :start_time, as: 'startTime' + property :user_access_level, as: 'userAccessLevel' + end + end + + class GoogleAppsScriptTypeScope + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :authorizer, as: 'authorizer' + property :name, as: 'name' + end + end + + class GoogleAppsScriptTypeScopeSet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :values, as: 'values', class: Google::Apis::ScriptV1::GoogleAppsScriptTypeScope, decorator: Google::Apis::ScriptV1::GoogleAppsScriptTypeScope::Representation + + end + end + + class GoogleAppsScriptTypeUser + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :domain, as: 'domain' + property :email, as: 'email' + property :name, as: 'name' + property :photo_url, as: 'photoUrl' + end + end + + class GoogleAppsScriptTypeWebAppConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :access, as: 'access' + property :execute_as, as: 'executeAs' + end + end + + class GoogleAppsScriptTypeWebAppEntryPoint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :entry_point_config, as: 'entryPointConfig', class: Google::Apis::ScriptV1::GoogleAppsScriptTypeWebAppConfig, decorator: Google::Apis::ScriptV1::GoogleAppsScriptTypeWebAppConfig::Representation + + property :url, as: 'url' + end + end + + class ListDeploymentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :deployments, as: 'deployments', class: Google::Apis::ScriptV1::Deployment, decorator: Google::Apis::ScriptV1::Deployment::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ListScriptProcessesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :processes, as: 'processes', class: Google::Apis::ScriptV1::GoogleAppsScriptTypeProcess, decorator: Google::Apis::ScriptV1::GoogleAppsScriptTypeProcess::Representation + + end + end + + class ListUserProcessesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :processes, as: 'processes', class: Google::Apis::ScriptV1::GoogleAppsScriptTypeProcess, decorator: Google::Apis::ScriptV1::GoogleAppsScriptTypeProcess::Representation + + end + end + + class ListVersionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :versions, as: 'versions', class: Google::Apis::ScriptV1::Version, decorator: Google::Apis::ScriptV1::Version::Representation + + end + end + + class Metrics + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :active_users, as: 'activeUsers', class: Google::Apis::ScriptV1::MetricsValue, decorator: Google::Apis::ScriptV1::MetricsValue::Representation + + collection :failed_executions, as: 'failedExecutions', class: Google::Apis::ScriptV1::MetricsValue, decorator: Google::Apis::ScriptV1::MetricsValue::Representation + + collection :total_executions, as: 'totalExecutions', class: Google::Apis::ScriptV1::MetricsValue, decorator: Google::Apis::ScriptV1::MetricsValue::Representation + + end + end + + class MetricsValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + property :start_time, as: 'startTime' + property :value, :numeric_string => true, as: 'value' + end + end + class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -95,6 +490,21 @@ module Google end end + class Project + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :creator, as: 'creator', class: Google::Apis::ScriptV1::GoogleAppsScriptTypeUser, decorator: Google::Apis::ScriptV1::GoogleAppsScriptTypeUser::Representation + + property :last_modify_user, as: 'lastModifyUser', class: Google::Apis::ScriptV1::GoogleAppsScriptTypeUser, decorator: Google::Apis::ScriptV1::GoogleAppsScriptTypeUser::Representation + + property :parent_id, as: 'parentId' + property :script_id, as: 'scriptId' + property :title, as: 'title' + property :update_time, as: 'updateTime' + end + end + class ScriptStackTraceElement # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -111,6 +521,24 @@ module Google property :message, as: 'message' end end + + class UpdateDeploymentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :deployment_config, as: 'deploymentConfig', class: Google::Apis::ScriptV1::DeploymentConfig, decorator: Google::Apis::ScriptV1::DeploymentConfig::Representation + + end + end + + class Version + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :description, as: 'description' + property :script_id, as: 'scriptId' + property :version_number, as: 'versionNumber' + end + end end end end diff --git a/generated/google/apis/script_v1/service.rb b/generated/google/apis/script_v1/service.rb index 8822fbf63..67bcf04a0 100644 --- a/generated/google/apis/script_v1/service.rb +++ b/generated/google/apis/script_v1/service.rb @@ -47,6 +47,591 @@ module Google @batch_path = 'batch' end + # List information about processes made by or on behalf of a user, + # such as process type and current status. + # @param [Fixnum] page_size + # The maximum number of returned processes per page of results. Defaults to + # 50. + # @param [String] page_token + # The token for continuing a previous list request on the next page. This + # should be set to the value of `nextPageToken` from a previous response. + # @param [String] user_process_filter_deployment_id + # Optional field used to limit returned processes to those originating from + # projects with a specific deployment ID. + # @param [String] user_process_filter_end_time + # Optional field used to limit returned processes to those that completed + # on or before the given timestamp. + # @param [String] user_process_filter_function_name + # Optional field used to limit returned processes to those originating from + # a script function with the given function name. + # @param [String] user_process_filter_project_name + # Optional field used to limit returned processes to those originating from + # projects with a specific project name. + # @param [String] user_process_filter_script_id + # Optional field used to limit returned processes to those originating from + # projects with a specific script ID. + # @param [String] user_process_filter_start_time + # Optional field used to limit returned processes to those that were + # started on or after the given timestamp. + # @param [Array, String] user_process_filter_statuses + # Optional field used to limit returned processes to those having one of + # the specified process statuses. + # @param [Array, String] user_process_filter_types + # Optional field used to limit returned processes to those having one of + # the specified process types. + # @param [Array, String] user_process_filter_user_access_levels + # Optional field used to limit returned processes to those having one of + # the specified user access levels. + # @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::ScriptV1::ListUserProcessesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ScriptV1::ListUserProcessesResponse] + # + # @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 list_processes(page_size: nil, page_token: nil, user_process_filter_deployment_id: nil, user_process_filter_end_time: nil, user_process_filter_function_name: nil, user_process_filter_project_name: nil, user_process_filter_script_id: nil, user_process_filter_start_time: nil, user_process_filter_statuses: nil, user_process_filter_types: nil, user_process_filter_user_access_levels: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/processes', options) + command.response_representation = Google::Apis::ScriptV1::ListUserProcessesResponse::Representation + command.response_class = Google::Apis::ScriptV1::ListUserProcessesResponse + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['userProcessFilter.deploymentId'] = user_process_filter_deployment_id unless user_process_filter_deployment_id.nil? + command.query['userProcessFilter.endTime'] = user_process_filter_end_time unless user_process_filter_end_time.nil? + command.query['userProcessFilter.functionName'] = user_process_filter_function_name unless user_process_filter_function_name.nil? + command.query['userProcessFilter.projectName'] = user_process_filter_project_name unless user_process_filter_project_name.nil? + command.query['userProcessFilter.scriptId'] = user_process_filter_script_id unless user_process_filter_script_id.nil? + command.query['userProcessFilter.startTime'] = user_process_filter_start_time unless user_process_filter_start_time.nil? + command.query['userProcessFilter.statuses'] = user_process_filter_statuses unless user_process_filter_statuses.nil? + command.query['userProcessFilter.types'] = user_process_filter_types unless user_process_filter_types.nil? + command.query['userProcessFilter.userAccessLevels'] = user_process_filter_user_access_levels unless user_process_filter_user_access_levels.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # List information about a script's executed processes, such as process type + # and current status. + # @param [Fixnum] page_size + # The maximum number of returned processes per page of results. Defaults to + # 50. + # @param [String] page_token + # The token for continuing a previous list request on the next page. This + # should be set to the value of `nextPageToken` from a previous response. + # @param [String] script_id + # The script ID of the project whose processes are listed. + # @param [String] script_process_filter_deployment_id + # Optional field used to limit returned processes to those originating from + # projects with a specific deployment ID. + # @param [String] script_process_filter_end_time + # Optional field used to limit returned processes to those that completed + # on or before the given timestamp. + # @param [String] script_process_filter_function_name + # Optional field used to limit returned processes to those originating from + # a script function with the given function name. + # @param [String] script_process_filter_start_time + # Optional field used to limit returned processes to those that were + # started on or after the given timestamp. + # @param [Array, String] script_process_filter_statuses + # Optional field used to limit returned processes to those having one of + # the specified process statuses. + # @param [Array, String] script_process_filter_types + # Optional field used to limit returned processes to those having one of + # the specified process types. + # @param [Array, String] script_process_filter_user_access_levels + # Optional field used to limit returned processes to those having one of + # the specified user access levels. + # @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::ScriptV1::ListScriptProcessesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ScriptV1::ListScriptProcessesResponse] + # + # @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 list_process_script_processes(page_size: nil, page_token: nil, script_id: nil, script_process_filter_deployment_id: nil, script_process_filter_end_time: nil, script_process_filter_function_name: nil, script_process_filter_start_time: nil, script_process_filter_statuses: nil, script_process_filter_types: nil, script_process_filter_user_access_levels: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/processes:listScriptProcesses', options) + command.response_representation = Google::Apis::ScriptV1::ListScriptProcessesResponse::Representation + command.response_class = Google::Apis::ScriptV1::ListScriptProcessesResponse + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['scriptId'] = script_id unless script_id.nil? + command.query['scriptProcessFilter.deploymentId'] = script_process_filter_deployment_id unless script_process_filter_deployment_id.nil? + command.query['scriptProcessFilter.endTime'] = script_process_filter_end_time unless script_process_filter_end_time.nil? + command.query['scriptProcessFilter.functionName'] = script_process_filter_function_name unless script_process_filter_function_name.nil? + command.query['scriptProcessFilter.startTime'] = script_process_filter_start_time unless script_process_filter_start_time.nil? + command.query['scriptProcessFilter.statuses'] = script_process_filter_statuses unless script_process_filter_statuses.nil? + command.query['scriptProcessFilter.types'] = script_process_filter_types unless script_process_filter_types.nil? + command.query['scriptProcessFilter.userAccessLevels'] = script_process_filter_user_access_levels unless script_process_filter_user_access_levels.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new, empty script project with no script files and a base + # manifest file. + # @param [Google::Apis::ScriptV1::CreateProjectRequest] create_project_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::ScriptV1::Project] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ScriptV1::Project] + # + # @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 create_project(create_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects', options) + command.request_representation = Google::Apis::ScriptV1::CreateProjectRequest::Representation + command.request_object = create_project_request_object + command.response_representation = Google::Apis::ScriptV1::Project::Representation + command.response_class = Google::Apis::ScriptV1::Project + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a script project's metadata. + # @param [String] script_id + # The script project's Drive ID. + # @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::ScriptV1::Project] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ScriptV1::Project] + # + # @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_project(script_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{scriptId}', options) + command.response_representation = Google::Apis::ScriptV1::Project::Representation + command.response_class = Google::Apis::ScriptV1::Project + command.params['scriptId'] = script_id unless script_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 + + # Gets the content of the script project, including the code source and + # metadata for each script file. + # @param [String] script_id + # The script project's Drive ID. + # @param [Fixnum] version_number + # The version number of the project to retrieve. If not provided, the + # project's HEAD version is returned. + # @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::ScriptV1::Content] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ScriptV1::Content] + # + # @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_project_content(script_id, version_number: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{scriptId}/content', options) + command.response_representation = Google::Apis::ScriptV1::Content::Representation + command.response_class = Google::Apis::ScriptV1::Content + command.params['scriptId'] = script_id unless script_id.nil? + command.query['versionNumber'] = version_number unless version_number.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Get metrics data for scripts, such as number of executions and + # active users. + # @param [String] script_id + # Required field indicating the script to get metrics for. + # @param [String] metrics_filter_deployment_id + # Optional field indicating a specific deployment to retrieve metrics from. + # @param [String] metrics_granularity + # Required field indicating what granularity of metrics are returned. + # @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::ScriptV1::Metrics] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ScriptV1::Metrics] + # + # @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_project_metrics(script_id, metrics_filter_deployment_id: nil, metrics_granularity: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{scriptId}/metrics', options) + command.response_representation = Google::Apis::ScriptV1::Metrics::Representation + command.response_class = Google::Apis::ScriptV1::Metrics + command.params['scriptId'] = script_id unless script_id.nil? + command.query['metricsFilter.deploymentId'] = metrics_filter_deployment_id unless metrics_filter_deployment_id.nil? + command.query['metricsGranularity'] = metrics_granularity unless metrics_granularity.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the content of the specified script project. + # This content is stored as the HEAD version, and is used when the script is + # executed as a trigger, in the script editor, in add-on preview mode, or as + # a web app or Apps Script API in development mode. This clears all the + # existing files in the project. + # @param [String] script_id + # The script project's Drive ID. + # @param [Google::Apis::ScriptV1::Content] content_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::ScriptV1::Content] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ScriptV1::Content] + # + # @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 update_project_content(script_id, content_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/projects/{scriptId}/content', options) + command.request_representation = Google::Apis::ScriptV1::Content::Representation + command.request_object = content_object + command.response_representation = Google::Apis::ScriptV1::Content::Representation + command.response_class = Google::Apis::ScriptV1::Content + command.params['scriptId'] = script_id unless script_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 + + # Creates a deployment of an Apps Script project. + # @param [String] script_id + # The script project's Drive ID. + # @param [Google::Apis::ScriptV1::DeploymentConfig] deployment_config_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::ScriptV1::Deployment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ScriptV1::Deployment] + # + # @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 create_project_deployment(script_id, deployment_config_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{scriptId}/deployments', options) + command.request_representation = Google::Apis::ScriptV1::DeploymentConfig::Representation + command.request_object = deployment_config_object + command.response_representation = Google::Apis::ScriptV1::Deployment::Representation + command.response_class = Google::Apis::ScriptV1::Deployment + command.params['scriptId'] = script_id unless script_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 + + # Deletes a deployment of an Apps Script project. + # @param [String] script_id + # The script project's Drive ID. + # @param [String] deployment_id + # The deployment ID to be undeployed. + # @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::ScriptV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ScriptV1::Empty] + # + # @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 delete_project_deployment(script_id, deployment_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/projects/{scriptId}/deployments/{deploymentId}', options) + command.response_representation = Google::Apis::ScriptV1::Empty::Representation + command.response_class = Google::Apis::ScriptV1::Empty + command.params['scriptId'] = script_id unless script_id.nil? + command.params['deploymentId'] = deployment_id unless deployment_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 + + # Gets a deployment of an Apps Script project. + # @param [String] script_id + # The script project's Drive ID. + # @param [String] deployment_id + # The deployment ID. + # @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::ScriptV1::Deployment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ScriptV1::Deployment] + # + # @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_project_deployment(script_id, deployment_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{scriptId}/deployments/{deploymentId}', options) + command.response_representation = Google::Apis::ScriptV1::Deployment::Representation + command.response_class = Google::Apis::ScriptV1::Deployment + command.params['scriptId'] = script_id unless script_id.nil? + command.params['deploymentId'] = deployment_id unless deployment_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 + + # Lists the deployments of an Apps Script project. + # @param [String] script_id + # The script project's Drive ID. + # @param [Fixnum] page_size + # The maximum number of deployments on each returned page. Defaults to 50. + # @param [String] page_token + # The token for continuing a previous list request on the next page. This + # should be set to the value of `nextPageToken` from a previous response. + # @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::ScriptV1::ListDeploymentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ScriptV1::ListDeploymentsResponse] + # + # @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 list_project_deployments(script_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{scriptId}/deployments', options) + command.response_representation = Google::Apis::ScriptV1::ListDeploymentsResponse::Representation + command.response_class = Google::Apis::ScriptV1::ListDeploymentsResponse + command.params['scriptId'] = script_id unless script_id.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a deployment of an Apps Script project. + # @param [String] script_id + # The script project's Drive ID. + # @param [String] deployment_id + # The deployment ID for this deployment. + # @param [Google::Apis::ScriptV1::UpdateDeploymentRequest] update_deployment_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::ScriptV1::Deployment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ScriptV1::Deployment] + # + # @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 update_deployment(script_id, deployment_id, update_deployment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/projects/{scriptId}/deployments/{deploymentId}', options) + command.request_representation = Google::Apis::ScriptV1::UpdateDeploymentRequest::Representation + command.request_object = update_deployment_request_object + command.response_representation = Google::Apis::ScriptV1::Deployment::Representation + command.response_class = Google::Apis::ScriptV1::Deployment + command.params['scriptId'] = script_id unless script_id.nil? + command.params['deploymentId'] = deployment_id unless deployment_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 + + # Creates a new immutable version using the current code, with a unique + # version number. + # @param [String] script_id + # The script project's Drive ID. + # @param [Google::Apis::ScriptV1::Version] version_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::ScriptV1::Version] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ScriptV1::Version] + # + # @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 create_project_version(script_id, version_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{scriptId}/versions', options) + command.request_representation = Google::Apis::ScriptV1::Version::Representation + command.request_object = version_object + command.response_representation = Google::Apis::ScriptV1::Version::Representation + command.response_class = Google::Apis::ScriptV1::Version + command.params['scriptId'] = script_id unless script_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 + + # Gets a version of a script project. + # @param [String] script_id + # The script project's Drive ID. + # @param [Fixnum] version_number + # The version number. + # @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::ScriptV1::Version] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ScriptV1::Version] + # + # @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_project_version(script_id, version_number, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{scriptId}/versions/{versionNumber}', options) + command.response_representation = Google::Apis::ScriptV1::Version::Representation + command.response_class = Google::Apis::ScriptV1::Version + command.params['scriptId'] = script_id unless script_id.nil? + command.params['versionNumber'] = version_number unless version_number.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # List the versions of a script project. + # @param [String] script_id + # The script project's Drive ID. + # @param [Fixnum] page_size + # The maximum number of versions on each returned page. Defaults to 50. + # @param [String] page_token + # The token for continuing a previous list request on the next page. This + # should be set to the value of `nextPageToken` from a previous response. + # @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::ScriptV1::ListVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ScriptV1::ListVersionsResponse] + # + # @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 list_project_versions(script_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{scriptId}/versions', options) + command.response_representation = Google::Apis::ScriptV1::ListVersionsResponse::Representation + command.response_class = Google::Apis::ScriptV1::ListVersionsResponse + command.params['scriptId'] = script_id unless script_id.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Runs a function in an Apps Script project. The project must be deployed # for use with the Apps Script API. # This method requires authorization with an OAuth 2.0 token that includes at diff --git a/generated/google/apis/sheets_v4.rb b/generated/google/apis/sheets_v4.rb index 32ee18459..99337c1ef 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 = '20171215' + REVISION = '20180106' # 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 54dc58586..580ef8c08 100644 --- a/generated/google/apis/sheets_v4/classes.rb +++ b/generated/google/apis/sheets_v4/classes.rb @@ -8559,6 +8559,46 @@ module Google end end + # A custom subtotal column for a waterfall chart series. + class WaterfallChartCustomSubtotal + include Google::Apis::Core::Hashable + + # True if the data point at subtotal_index is the subtotal. If false, + # the subtotal will be computed and appear after the data point. + # Corresponds to the JSON property `dataIsSubtotal` + # @return [Boolean] + attr_accessor :data_is_subtotal + alias_method :data_is_subtotal?, :data_is_subtotal + + # A label for the subtotal column. + # Corresponds to the JSON property `label` + # @return [String] + attr_accessor :label + + # The 0-based index of a data point within the series. If + # data_is_subtotal is true, the data point at this index is the + # subtotal. Otherwise, the subtotal appears after the data point with + # this index. A series can have multiple subtotals at arbitrary indices, + # but subtotals do not affect the indices of the data points. For + # example, if a series has 3 data points, their indices will always be 0, + # 1, and 2, regardless of how many subtotals exist on the series or what + # data points they are associated with. + # Corresponds to the JSON property `subtotalIndex` + # @return [Fixnum] + attr_accessor :subtotal_index + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_is_subtotal = args[:data_is_subtotal] if args.key?(:data_is_subtotal) + @label = args[:label] if args.key?(:label) + @subtotal_index = args[:subtotal_index] if args.key?(:subtotal_index) + end + end + # The domain of a waterfall chart. class WaterfallChartDomain include Google::Apis::Core::Hashable @@ -8589,6 +8629,13 @@ module Google class WaterfallChartSeries include Google::Apis::Core::Hashable + # Custom subtotal columns appearing in this series. The order in which + # subtotals are defined is not significant. Only one subtotal may be + # defined for each data point. + # Corresponds to the JSON property `customSubtotals` + # @return [Array] + attr_accessor :custom_subtotals + # The data included in a domain or series. # Corresponds to the JSON property `data` # @return [Google::Apis::SheetsV4::ChartData] @@ -8623,6 +8670,7 @@ module Google # Update properties of this object def update!(**args) + @custom_subtotals = args[:custom_subtotals] if args.key?(:custom_subtotals) @data = args[:data] if args.key?(:data) @hide_trailing_subtotal = args[:hide_trailing_subtotal] if args.key?(:hide_trailing_subtotal) @negative_columns_style = args[:negative_columns_style] if args.key?(:negative_columns_style) diff --git a/generated/google/apis/sheets_v4/representations.rb b/generated/google/apis/sheets_v4/representations.rb index b84c441cb..cf3cd62a7 100644 --- a/generated/google/apis/sheets_v4/representations.rb +++ b/generated/google/apis/sheets_v4/representations.rb @@ -1036,6 +1036,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class WaterfallChartCustomSubtotal + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class WaterfallChartDomain class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2968,6 +2974,15 @@ module Google end end + class WaterfallChartCustomSubtotal + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data_is_subtotal, as: 'dataIsSubtotal' + property :label, as: 'label' + property :subtotal_index, as: 'subtotalIndex' + end + end + class WaterfallChartDomain # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2980,6 +2995,8 @@ module Google class WaterfallChartSeries # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :custom_subtotals, as: 'customSubtotals', class: Google::Apis::SheetsV4::WaterfallChartCustomSubtotal, decorator: Google::Apis::SheetsV4::WaterfallChartCustomSubtotal::Representation + property :data, as: 'data', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation property :hide_trailing_subtotal, as: 'hideTrailingSubtotal' diff --git a/generated/google/apis/storage_v1/service.rb b/generated/google/apis/storage_v1/service.rb index 19cf40f73..1d8c3cdfe 100644 --- a/generated/google/apis/storage_v1/service.rb +++ b/generated/google/apis/storage_v1/service.rb @@ -50,7 +50,7 @@ module Google def initialize super('https://www.googleapis.com/', 'storage/v1/') - @batch_path = 'batch' + @batch_path = 'batch/storage/v1' end # Permanently deletes the ACL entry for the specified entity on the specified diff --git a/generated/google/apis/storage_v1beta1/service.rb b/generated/google/apis/storage_v1beta1/service.rb index f0dc2760b..d1471142b 100644 --- a/generated/google/apis/storage_v1beta1/service.rb +++ b/generated/google/apis/storage_v1beta1/service.rb @@ -50,7 +50,7 @@ module Google def initialize super('https://www.googleapis.com/', 'storage/v1beta1/') - @batch_path = 'batch' + @batch_path = 'batch/storage/v1beta1' end # Deletes the ACL entry for the specified entity on the specified bucket.