Autogenerated update (2018-01-10)

Update:
- dialogflow_v2beta1
- games_v1
- iam_v1
- ml_v1
- pagespeedonline_v1
- pagespeedonline_v2
- pubsub_v1
- pubsub_v1beta2
- script_v1
- sheets_v4
This commit is contained in:
Google APIs 2018-01-10 00:35:52 +00:00
parent 3245249b99
commit 16ee12ab5b
31 changed files with 2262 additions and 236 deletions

View File

@ -43359,6 +43359,7 @@
"/dialogflow:v2beta1/IntentMessageCarouselSelectItem/info": info "/dialogflow:v2beta1/IntentMessageCarouselSelectItem/info": info
"/dialogflow:v2beta1/IntentMessageCarouselSelectItem/title": title "/dialogflow:v2beta1/IntentMessageCarouselSelectItem/title": title
"/dialogflow:v2beta1/IntentMessageImage": intent_message_image "/dialogflow:v2beta1/IntentMessageImage": intent_message_image
"/dialogflow:v2beta1/IntentMessageImage/accessibilityText": accessibility_text
"/dialogflow:v2beta1/IntentMessageImage/imageUri": image_uri "/dialogflow:v2beta1/IntentMessageImage/imageUri": image_uri
"/dialogflow:v2beta1/IntentMessageLinkOutSuggestion": intent_message_link_out_suggestion "/dialogflow:v2beta1/IntentMessageLinkOutSuggestion": intent_message_link_out_suggestion
"/dialogflow:v2beta1/IntentMessageLinkOutSuggestion/destinationName": destination_name "/dialogflow:v2beta1/IntentMessageLinkOutSuggestion/destinationName": destination_name
@ -54099,6 +54100,7 @@
"/oslogin:v1beta/oslogin.users.sshPublicKeys.patch/updateMask": update_mask "/oslogin:v1beta/oslogin.users.sshPublicKeys.patch/updateMask": update_mask
"/oslogin:v1beta/quotaUser": quota_user "/oslogin:v1beta/quotaUser": quota_user
"/pagespeedonline:v1/Result": result "/pagespeedonline:v1/Result": result
"/pagespeedonline:v1/Result/captchaResult": captcha_result
"/pagespeedonline:v1/Result/formattedResults": formatted_results "/pagespeedonline:v1/Result/formattedResults": formatted_results
"/pagespeedonline:v1/Result/formattedResults/locale": locale "/pagespeedonline:v1/Result/formattedResults/locale": locale
"/pagespeedonline:v1/Result/formattedResults/ruleResults": rule_results "/pagespeedonline:v1/Result/formattedResults/ruleResults": rule_results
@ -54199,6 +54201,7 @@
"/pagespeedonline:v2/PagespeedApiImageV2/page_rect/width": width "/pagespeedonline:v2/PagespeedApiImageV2/page_rect/width": width
"/pagespeedonline:v2/PagespeedApiImageV2/width": width "/pagespeedonline:v2/PagespeedApiImageV2/width": width
"/pagespeedonline:v2/Result": result "/pagespeedonline:v2/Result": result
"/pagespeedonline:v2/Result/captchaResult": captcha_result
"/pagespeedonline:v2/Result/formattedResults": formatted_results "/pagespeedonline:v2/Result/formattedResults": formatted_results
"/pagespeedonline:v2/Result/formattedResults/locale": locale "/pagespeedonline:v2/Result/formattedResults/locale": locale
"/pagespeedonline:v2/Result/formattedResults/ruleResults": rule_results "/pagespeedonline:v2/Result/formattedResults/ruleResults": rule_results
@ -56614,6 +56617,8 @@
"/pubsub:v1/pubsub.projects.snapshots.create/name": name "/pubsub:v1/pubsub.projects.snapshots.create/name": name
"/pubsub:v1/pubsub.projects.snapshots.delete": delete_project_snapshot "/pubsub:v1/pubsub.projects.snapshots.delete": delete_project_snapshot
"/pubsub:v1/pubsub.projects.snapshots.delete/snapshot": 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": get_project_snapshot_iam_policy
"/pubsub:v1/pubsub.projects.snapshots.getIamPolicy/resource": resource "/pubsub:v1/pubsub.projects.snapshots.getIamPolicy/resource": resource
"/pubsub:v1/pubsub.projects.snapshots.list": list_project_snapshots "/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.threatListUpdates.fetch": fetch_threat_list_updates
"/safebrowsing:v4/safebrowsing.threatLists.list": list_threat_lists "/safebrowsing:v4/safebrowsing.threatLists.list": list_threat_lists
"/safebrowsing:v4/safebrowsing.threatMatches.find": find_threat_matches "/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": execution_error
"/script:v1/ExecutionError/errorMessage": error_message "/script:v1/ExecutionError/errorMessage": error_message
"/script:v1/ExecutionError/errorType": error_type "/script:v1/ExecutionError/errorType": error_type
@ -58237,6 +58268,56 @@
"/script:v1/ExecutionRequest/sessionState": session_state "/script:v1/ExecutionRequest/sessionState": session_state
"/script:v1/ExecutionResponse": execution_response "/script:v1/ExecutionResponse": execution_response
"/script:v1/ExecutionResponse/result": result "/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": join_async_request
"/script:v1/JoinAsyncRequest/names": names "/script:v1/JoinAsyncRequest/names": names
"/script:v1/JoinAsyncRequest/names/name": name "/script:v1/JoinAsyncRequest/names/name": name
@ -58245,6 +58326,33 @@
"/script:v1/JoinAsyncResponse": join_async_response "/script:v1/JoinAsyncResponse": join_async_response
"/script:v1/JoinAsyncResponse/results": results "/script:v1/JoinAsyncResponse/results": results
"/script:v1/JoinAsyncResponse/results/result": result "/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": operation
"/script:v1/Operation/done": done "/script:v1/Operation/done": done
"/script:v1/Operation/error": error "/script:v1/Operation/error": error
@ -58253,6 +58361,14 @@
"/script:v1/Operation/name": name "/script:v1/Operation/name": name
"/script:v1/Operation/response": response "/script:v1/Operation/response": response
"/script:v1/Operation/response/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": script_stack_trace_element
"/script:v1/ScriptStackTraceElement/function": function "/script:v1/ScriptStackTraceElement/function": function
"/script:v1/ScriptStackTraceElement/lineNumber": line_number "/script:v1/ScriptStackTraceElement/lineNumber": line_number
@ -58262,9 +58378,75 @@
"/script:v1/Status/details/detail": detail "/script:v1/Status/details/detail": detail
"/script:v1/Status/details/detail/detail": detail "/script:v1/Status/details/detail/detail": detail
"/script:v1/Status/message": message "/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/fields": fields
"/script:v1/key": key "/script:v1/key": key
"/script:v1/quotaUser": quota_user "/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": run_script
"/script:v1/script.scripts.run/scriptId": script_id "/script:v1/script.scripts.run/scriptId": script_id
"/searchconsole:v1/BlockedResource": blocked_resource "/searchconsole:v1/BlockedResource": blocked_resource
@ -60754,10 +60936,16 @@
"/sheets:v4/WaterfallChartColumnStyle": waterfall_chart_column_style "/sheets:v4/WaterfallChartColumnStyle": waterfall_chart_column_style
"/sheets:v4/WaterfallChartColumnStyle/color": color "/sheets:v4/WaterfallChartColumnStyle/color": color
"/sheets:v4/WaterfallChartColumnStyle/label": label "/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": waterfall_chart_domain
"/sheets:v4/WaterfallChartDomain/data": data "/sheets:v4/WaterfallChartDomain/data": data
"/sheets:v4/WaterfallChartDomain/reversed": reversed "/sheets:v4/WaterfallChartDomain/reversed": reversed
"/sheets:v4/WaterfallChartSeries": waterfall_chart_series "/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/data": data
"/sheets:v4/WaterfallChartSeries/hideTrailingSubtotal": hide_trailing_subtotal "/sheets:v4/WaterfallChartSeries/hideTrailingSubtotal": hide_trailing_subtotal
"/sheets:v4/WaterfallChartSeries/negativeColumnsStyle": negative_columns_style "/sheets:v4/WaterfallChartSeries/negativeColumnsStyle": negative_columns_style

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow-enterprise/ # @see https://cloud.google.com/dialogflow-enterprise/
module DialogflowV2beta1 module DialogflowV2beta1
VERSION = 'V2beta1' VERSION = 'V2beta1'
REVISION = '20171218' REVISION = '20180108'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1330,6 +1330,12 @@ module Google
class IntentMessageImage class IntentMessageImage
include Google::Apis::Core::Hashable 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. # Optional. The public URI to an image file.
# Corresponds to the JSON property `imageUri` # Corresponds to the JSON property `imageUri`
# @return [String] # @return [String]
@ -1341,6 +1347,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@accessibility_text = args[:accessibility_text] if args.key?(:accessibility_text)
@image_uri = args[:image_uri] if args.key?(:image_uri) @image_uri = args[:image_uri] if args.key?(:image_uri)
end end
end end

View File

@ -760,6 +760,7 @@ module Google
class IntentMessageImage class IntentMessageImage
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :accessibility_text, as: 'accessibilityText'
property :image_uri, as: 'imageUri' property :image_uri, as: 'imageUri'
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/ # @see https://developers.google.com/games/services/
module GamesV1 module GamesV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170911' REVISION = '20180104'
# View and manage its own configuration data in your Google Drive # View and manage its own configuration data in your Google Drive
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata' AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'

File diff suppressed because it is too large Load Diff

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/iam/ # @see https://cloud.google.com/iam/
module IamV1 module IamV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20171228' REVISION = '20180105'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -156,8 +156,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :key_algorithm attr_accessor :key_algorithm
# The output format of the private key. `GOOGLE_CREDENTIALS_FILE` is the # The output format of the private key. The default value is
# default output format. # `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File
# format.
# Corresponds to the JSON property `privateKeyType` # Corresponds to the JSON property `privateKeyType`
# @return [String] # @return [String]
attr_accessor :private_key_type attr_accessor :private_key_type

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/ml/ # @see https://cloud.google.com/ml/
module MlV1 module MlV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20171221' REVISION = '20180105'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1542,7 +1542,7 @@ module Google
# ] # ]
# ` # `
# For a description of IAM and its features, see the # 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 class GoogleIamV1Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1577,7 +1577,7 @@ module Google
attr_accessor :iam_owned attr_accessor :iam_owned
alias_method :iam_owned?, :iam_owned alias_method :iam_owned?, :iam_owned
# Version of the `Policy`. The default version is 0. # Deprecated.
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
@ -1625,7 +1625,7 @@ module Google
# ] # ]
# ` # `
# For a description of IAM and its features, see the # 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` # Corresponds to the JSON property `policy`
# @return [Google::Apis::MlV1::GoogleIamV1Policy] # @return [Google::Apis::MlV1::GoogleIamV1Policy]
attr_accessor :policy attr_accessor :policy

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/speed/docs/insights/v1/getting_started # @see https://developers.google.com/speed/docs/insights/v1/getting_started
module PagespeedonlineV1 module PagespeedonlineV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20161204' REVISION = '20180108'
end end
end end
end end

View File

@ -26,6 +26,11 @@ module Google
class Result class Result
include Google::Apis::Core::Hashable 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 # Localized PageSpeed results. Contains a ruleResults entry for each PageSpeed
# rule instantiated and run by the server. # rule instantiated and run by the server.
# Corresponds to the JSON property `formattedResults` # Corresponds to the JSON property `formattedResults`
@ -89,6 +94,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@captcha_result = args[:captcha_result] if args.key?(:captcha_result)
@formatted_results = args[:formatted_results] if args.key?(:formatted_results) @formatted_results = args[:formatted_results] if args.key?(:formatted_results)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@invalid_rules = args[:invalid_rules] if args.key?(:invalid_rules) @invalid_rules = args[:invalid_rules] if args.key?(:invalid_rules)

View File

@ -109,6 +109,7 @@ module Google
class Result class Result
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 :formatted_results, as: 'formattedResults', class: Google::Apis::PagespeedonlineV1::Result::FormattedResults, decorator: Google::Apis::PagespeedonlineV1::Result::FormattedResults::Representation
property :id, as: 'id' property :id, as: 'id'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/speed/docs/insights/v2/getting-started # @see https://developers.google.com/speed/docs/insights/v2/getting-started
module PagespeedonlineV2 module PagespeedonlineV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20161204' REVISION = '20180108'
end end
end end
end end

View File

@ -265,6 +265,11 @@ module Google
class Result class Result
include Google::Apis::Core::Hashable 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 # Localized PageSpeed results. Contains a ruleResults entry for each PageSpeed
# rule instantiated and run by the server. # rule instantiated and run by the server.
# Corresponds to the JSON property `formattedResults` # Corresponds to the JSON property `formattedResults`
@ -326,6 +331,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@captcha_result = args[:captcha_result] if args.key?(:captcha_result)
@formatted_results = args[:formatted_results] if args.key?(:formatted_results) @formatted_results = args[:formatted_results] if args.key?(:formatted_results)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@invalid_rules = args[:invalid_rules] if args.key?(:invalid_rules) @invalid_rules = args[:invalid_rules] if args.key?(:invalid_rules)

View File

@ -174,6 +174,7 @@ module Google
class Result class Result
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 :formatted_results, as: 'formattedResults', class: Google::Apis::PagespeedonlineV2::Result::FormattedResults, decorator: Google::Apis::PagespeedonlineV2::Result::FormattedResults::Representation
property :id, as: 'id' property :id, as: 'id'

View File

@ -50,7 +50,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'plusDomains/v1/') super('https://www.googleapis.com/', 'plusDomains/v1/')
@batch_path = 'batch' @batch_path = 'batch/plusDomains/v1'
end end
# Get an activity. # Get an activity.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/pubsub/docs # @see https://cloud.google.com/pubsub/docs
module PubsubV1 module PubsubV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20171120' REVISION = '20180103'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -336,7 +336,7 @@ module Google
# ] # ]
# ` # `
# For a description of IAM and its features, see the # 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 class Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -360,7 +360,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
# Version of the `Policy`. The default version is 0. # Deprecated.
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
@ -661,7 +661,7 @@ module Google
# ] # ]
# ` # `
# For a description of IAM and its features, see the # 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` # Corresponds to the JSON property `policy`
# @return [Google::Apis::PubsubV1::Policy] # @return [Google::Apis::PubsubV1::Policy]
attr_accessor :policy attr_accessor :policy

View File

@ -130,6 +130,37 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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. # Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy # Returns an empty policy if the resource exists and does not have a policy
# set. # set.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/pubsub/docs # @see https://cloud.google.com/pubsub/docs
module PubsubV1beta2 module PubsubV1beta2
VERSION = 'V1beta2' VERSION = 'V1beta2'
REVISION = '20170607' REVISION = '20180103'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -261,7 +261,7 @@ module Google
# ] # ]
# ` # `
# For a description of IAM and its features, see the # 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 class Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -285,7 +285,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
# Version of the `Policy`. The default version is 0. # Deprecated.
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
@ -537,7 +537,7 @@ module Google
# ] # ]
# ` # `
# For a description of IAM and its features, see the # 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` # Corresponds to the JSON property `policy`
# @return [Google::Apis::PubsubV1beta2::Policy] # @return [Google::Apis::PubsubV1beta2::Policy]
attr_accessor :policy attr_accessor :policy

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run # @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run
module ScriptV1 module ScriptV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20171113' REVISION = '20180109'
# Read, send, delete, and manage your email # Read, send, delete, and manage your email
AUTH_SCOPE = 'https://mail.google.com/' AUTH_SCOPE = 'https://mail.google.com/'

View File

@ -22,6 +22,203 @@ module Google
module Apis module Apis
module ScriptV1 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<Google::Apis::ScriptV1::File>]
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<Google::Apis::ScriptV1::EntryPoint>]
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 # 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. # from an attempted execution of a script function using the Apps Script API.
# If a run call # If a run call
@ -146,6 +343,558 @@ module Google
end end
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<Google::Apis::ScriptV1::GoogleAppsScriptTypeFunction>]
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<Google::Apis::ScriptV1::GoogleAppsScriptTypeScope>]
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<Google::Apis::ScriptV1::Deployment>]
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<Google::Apis::ScriptV1::GoogleAppsScriptTypeProcess>]
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<Google::Apis::ScriptV1::GoogleAppsScriptTypeProcess>]
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<Google::Apis::ScriptV1::Version>]
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<Google::Apis::ScriptV1::MetricsValue>]
attr_accessor :active_users
# Number of failed executions.
# Corresponds to the JSON property `failedExecutions`
# @return [Array<Google::Apis::ScriptV1::MetricsValue>]
attr_accessor :failed_executions
# Number of total executions.
# Corresponds to the JSON property `totalExecutions`
# @return [Array<Google::Apis::ScriptV1::MetricsValue>]
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 # 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 # using run. The execution response does not arrive until the function finishes
# executing. The maximum execution runtime is listed in the [Apps Script quotas # executing. The maximum execution runtime is listed in the [Apps Script quotas
@ -206,6 +955,63 @@ module Google
end end
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. # A stack trace through the script that shows where the execution failed.
class ScriptStackTraceElement class ScriptStackTraceElement
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -268,6 +1074,65 @@ module Google
@message = args[:message] if args.key?(:message) @message = args[:message] if args.key?(:message)
end end
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 end
end end

View File

@ -22,6 +22,42 @@ module Google
module Apis module Apis
module ScriptV1 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 ExecutionError
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -40,12 +76,126 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end 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 Operation
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Project
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ScriptStackTraceElement class ScriptStackTraceElement
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -58,6 +208,80 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end 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 class ExecutionError
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -85,6 +309,177 @@ module Google
end end
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 class Operation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -95,6 +490,21 @@ module Google
end end
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 class ScriptStackTraceElement
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -111,6 +521,24 @@ module Google
property :message, as: 'message' property :message, as: 'message'
end end
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 end
end end

View File

@ -47,6 +47,591 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end 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>, String] user_process_filter_statuses
# Optional field used to limit returned processes to those having one of
# the specified process statuses.
# @param [Array<String>, String] user_process_filter_types
# Optional field used to limit returned processes to those having one of
# the specified process types.
# @param [Array<String>, 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>, String] script_process_filter_statuses
# Optional field used to limit returned processes to those having one of
# the specified process statuses.
# @param [Array<String>, String] script_process_filter_types
# Optional field used to limit returned processes to those having one of
# the specified process types.
# @param [Array<String>, 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 # Runs a function in an Apps Script project. The project must be deployed
# for use with the Apps Script API. # for use with the Apps Script API.
# This method requires authorization with an OAuth 2.0 token that includes at # This method requires authorization with an OAuth 2.0 token that includes at

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/sheets/ # @see https://developers.google.com/sheets/
module SheetsV4 module SheetsV4
VERSION = 'V4' VERSION = 'V4'
REVISION = '20171215' REVISION = '20180106'
# View and manage the files in your Google Drive # View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -8559,6 +8559,46 @@ module Google
end end
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. # The domain of a waterfall chart.
class WaterfallChartDomain class WaterfallChartDomain
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -8589,6 +8629,13 @@ module Google
class WaterfallChartSeries class WaterfallChartSeries
include Google::Apis::Core::Hashable 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<Google::Apis::SheetsV4::WaterfallChartCustomSubtotal>]
attr_accessor :custom_subtotals
# The data included in a domain or series. # The data included in a domain or series.
# Corresponds to the JSON property `data` # Corresponds to the JSON property `data`
# @return [Google::Apis::SheetsV4::ChartData] # @return [Google::Apis::SheetsV4::ChartData]
@ -8623,6 +8670,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@custom_subtotals = args[:custom_subtotals] if args.key?(:custom_subtotals)
@data = args[:data] if args.key?(:data) @data = args[:data] if args.key?(:data)
@hide_trailing_subtotal = args[:hide_trailing_subtotal] if args.key?(:hide_trailing_subtotal) @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) @negative_columns_style = args[:negative_columns_style] if args.key?(:negative_columns_style)

View File

@ -1036,6 +1036,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class WaterfallChartCustomSubtotal
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WaterfallChartDomain class WaterfallChartDomain
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2968,6 +2974,15 @@ module Google
end end
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 class WaterfallChartDomain
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -2980,6 +2995,8 @@ module Google
class WaterfallChartSeries class WaterfallChartSeries
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 :data, as: 'data', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
property :hide_trailing_subtotal, as: 'hideTrailingSubtotal' property :hide_trailing_subtotal, as: 'hideTrailingSubtotal'

View File

@ -50,7 +50,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'storage/v1/') super('https://www.googleapis.com/', 'storage/v1/')
@batch_path = 'batch' @batch_path = 'batch/storage/v1'
end end
# Permanently deletes the ACL entry for the specified entity on the specified # Permanently deletes the ACL entry for the specified entity on the specified

View File

@ -50,7 +50,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'storage/v1beta1/') super('https://www.googleapis.com/', 'storage/v1beta1/')
@batch_path = 'batch' @batch_path = 'batch/storage/v1beta1'
end end
# Deletes the ACL entry for the specified entity on the specified bucket. # Deletes the ACL entry for the specified entity on the specified bucket.