From 26f035d3b3c3f29a022fa6395c36c41060cbb50c Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 21 Feb 2018 00:36:04 +0000 Subject: [PATCH] Autogenerated update (2018-02-21) Update: - androidmanagement_v1 - cloudbuild_v1 - genomics_v1 - genomics_v1alpha2 - people_v1 - slides_v1 --- api_names_out.yaml | 255 ++++ generated/google/apis/androidmanagement_v1.rb | 2 +- generated/google/apis/cloudbuild_v1.rb | 4 +- .../google/apis/cloudbuild_v1/classes.rb | 17 + .../apis/cloudbuild_v1/representations.rb | 2 + .../google/apis/cloudbuild_v1/service.rb | 2 +- generated/google/apis/genomics_v1.rb | 2 +- generated/google/apis/genomics_v1/classes.rb | 269 ++++ .../apis/genomics_v1/representations.rb | 140 ++ generated/google/apis/genomics_v1alpha2.rb | 2 +- .../google/apis/genomics_v1alpha2/classes.rb | 269 ++++ .../apis/genomics_v1alpha2/representations.rb | 140 ++ generated/google/apis/genomics_v2alpha1.rb | 37 + .../google/apis/genomics_v2alpha1/classes.rb | 1295 +++++++++++++++++ .../apis/genomics_v2alpha1/representations.rb | 535 +++++++ .../google/apis/genomics_v2alpha1/service.rb | 246 ++++ generated/google/apis/people_v1.rb | 4 +- generated/google/apis/people_v1/service.rb | 2 +- generated/google/apis/slides_v1.rb | 2 +- generated/google/apis/slides_v1/classes.rb | 80 + .../google/apis/slides_v1/representations.rb | 21 + 21 files changed, 3316 insertions(+), 10 deletions(-) create mode 100644 generated/google/apis/genomics_v2alpha1.rb create mode 100644 generated/google/apis/genomics_v2alpha1/classes.rb create mode 100644 generated/google/apis/genomics_v2alpha1/representations.rb create mode 100644 generated/google/apis/genomics_v2alpha1/service.rb diff --git a/api_names_out.yaml b/api_names_out.yaml index ddb4c74f9..7111965f2 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -12678,6 +12678,8 @@ "/cloudbuild:v1/BuildStep/name": name "/cloudbuild:v1/BuildStep/secretEnv": secret_env "/cloudbuild:v1/BuildStep/secretEnv/secret_env": secret_env +"/cloudbuild:v1/BuildStep/status": status +"/cloudbuild:v1/BuildStep/timeout": timeout "/cloudbuild:v1/BuildStep/timing": timing "/cloudbuild:v1/BuildStep/volumes": volumes "/cloudbuild:v1/BuildStep/volumes/volume": volume @@ -50537,6 +50539,14 @@ "/genomics:v1/ComputeEngine/instanceName": instance_name "/genomics:v1/ComputeEngine/machineType": machine_type "/genomics:v1/ComputeEngine/zone": zone +"/genomics:v1/ContainerStartedEvent": container_started_event +"/genomics:v1/ContainerStartedEvent/actionId": action_id +"/genomics:v1/ContainerStartedEvent/ipAddress": ip_address +"/genomics:v1/ContainerStartedEvent/portMappings": port_mappings +"/genomics:v1/ContainerStartedEvent/portMappings/port_mapping": port_mapping +"/genomics:v1/ContainerStoppedEvent": container_stopped_event +"/genomics:v1/ContainerStoppedEvent/actionId": action_id +"/genomics:v1/ContainerStoppedEvent/exitStatus": exit_status "/genomics:v1/CoverageBucket": coverage_bucket "/genomics:v1/CoverageBucket/meanCoverage": mean_coverage "/genomics:v1/CoverageBucket/range": range @@ -50545,10 +50555,19 @@ "/genomics:v1/Dataset/id": id "/genomics:v1/Dataset/name": name "/genomics:v1/Dataset/projectId": project_id +"/genomics:v1/DelayedEvent": delayed_event +"/genomics:v1/DelayedEvent/cause": cause +"/genomics:v1/DelayedEvent/metrics": metrics +"/genomics:v1/DelayedEvent/metrics/metric": metric "/genomics:v1/Empty": empty "/genomics:v1/Entry": entry "/genomics:v1/Entry/annotation": annotation "/genomics:v1/Entry/status": status +"/genomics:v1/Event": event +"/genomics:v1/Event/description": description +"/genomics:v1/Event/details": details +"/genomics:v1/Event/details/detail": detail +"/genomics:v1/Event/timestamp": timestamp "/genomics:v1/Exon": exon "/genomics:v1/Exon/end": end "/genomics:v1/Exon/frame": frame @@ -50573,6 +50592,9 @@ "/genomics:v1/ExternalId": external_id "/genomics:v1/ExternalId/id": id "/genomics:v1/ExternalId/sourceName": source_name +"/genomics:v1/FailedEvent": failed_event +"/genomics:v1/FailedEvent/cause": cause +"/genomics:v1/FailedEvent/code": code "/genomics:v1/GetIamPolicyRequest": get_iam_policy_request "/genomics:v1/ImportReadGroupSetsRequest": import_read_group_sets_request "/genomics:v1/ImportReadGroupSetsRequest/datasetId": dataset_id @@ -50663,6 +50685,10 @@ "/genomics:v1/Program/name": name "/genomics:v1/Program/prevProgramId": prev_program_id "/genomics:v1/Program/version": version +"/genomics:v1/PullStartedEvent": pull_started_event +"/genomics:v1/PullStartedEvent/imageUri": image_uri +"/genomics:v1/PullStoppedEvent": pull_stopped_event +"/genomics:v1/PullStoppedEvent/imageUri": image_uri "/genomics:v1/Range": range "/genomics:v1/Range/end": end "/genomics:v1/Range/referenceName": reference_name @@ -50867,6 +50893,9 @@ "/genomics:v1/Transcript/exons/exon": exon "/genomics:v1/Transcript/geneId": gene_id "/genomics:v1/UndeleteDatasetRequest": undelete_dataset_request +"/genomics:v1/UnexpectedExitStatusEvent": unexpected_exit_status_event +"/genomics:v1/UnexpectedExitStatusEvent/actionId": action_id +"/genomics:v1/UnexpectedExitStatusEvent/exitStatus": exit_status "/genomics:v1/Variant": variant "/genomics:v1/Variant/alternateBases": alternate_bases "/genomics:v1/Variant/alternateBases/alternate_basis": alternate_basis @@ -50928,6 +50957,12 @@ "/genomics:v1/VariantSetMetadata/number": number "/genomics:v1/VariantSetMetadata/type": type "/genomics:v1/VariantSetMetadata/value": value +"/genomics:v1/WorkerAssignedEvent": worker_assigned_event +"/genomics:v1/WorkerAssignedEvent/instance": instance +"/genomics:v1/WorkerAssignedEvent/zone": zone +"/genomics:v1/WorkerReleasedEvent": worker_released_event +"/genomics:v1/WorkerReleasedEvent/instance": instance +"/genomics:v1/WorkerReleasedEvent/zone": zone "/genomics:v1/fields": fields "/genomics:v1/genomics.annotations.batchCreate": batch_create_annotations "/genomics:v1/genomics.annotations.create": create_annotation @@ -51054,6 +51089,14 @@ "/genomics:v1alpha2/ComputeEngine/instanceName": instance_name "/genomics:v1alpha2/ComputeEngine/machineType": machine_type "/genomics:v1alpha2/ComputeEngine/zone": zone +"/genomics:v1alpha2/ContainerStartedEvent": container_started_event +"/genomics:v1alpha2/ContainerStartedEvent/actionId": action_id +"/genomics:v1alpha2/ContainerStartedEvent/ipAddress": ip_address +"/genomics:v1alpha2/ContainerStartedEvent/portMappings": port_mappings +"/genomics:v1alpha2/ContainerStartedEvent/portMappings/port_mapping": port_mapping +"/genomics:v1alpha2/ContainerStoppedEvent": container_stopped_event +"/genomics:v1alpha2/ContainerStoppedEvent/actionId": action_id +"/genomics:v1alpha2/ContainerStoppedEvent/exitStatus": exit_status "/genomics:v1alpha2/ControllerConfig": controller_config "/genomics:v1alpha2/ControllerConfig/cmd": cmd "/genomics:v1alpha2/ControllerConfig/disks": disks @@ -51067,6 +51110,10 @@ "/genomics:v1alpha2/ControllerConfig/machineType": machine_type "/genomics:v1alpha2/ControllerConfig/vars": vars "/genomics:v1alpha2/ControllerConfig/vars/var": var +"/genomics:v1alpha2/DelayedEvent": delayed_event +"/genomics:v1alpha2/DelayedEvent/cause": cause +"/genomics:v1alpha2/DelayedEvent/metrics": metrics +"/genomics:v1alpha2/DelayedEvent/metrics/metric": metric "/genomics:v1alpha2/Disk": disk "/genomics:v1alpha2/Disk/autoDelete": auto_delete "/genomics:v1alpha2/Disk/mountPoint": mount_point @@ -51079,6 +51126,14 @@ "/genomics:v1alpha2/DockerExecutor/cmd": cmd "/genomics:v1alpha2/DockerExecutor/imageName": image_name "/genomics:v1alpha2/Empty": empty +"/genomics:v1alpha2/Event": event +"/genomics:v1alpha2/Event/description": description +"/genomics:v1alpha2/Event/details": details +"/genomics:v1alpha2/Event/details/detail": detail +"/genomics:v1alpha2/Event/timestamp": timestamp +"/genomics:v1alpha2/FailedEvent": failed_event +"/genomics:v1alpha2/FailedEvent/cause": cause +"/genomics:v1alpha2/FailedEvent/code": code "/genomics:v1alpha2/ImportReadGroupSetsResponse": import_read_group_sets_response "/genomics:v1alpha2/ImportReadGroupSetsResponse/readGroupSetIds": read_group_set_ids "/genomics:v1alpha2/ImportReadGroupSetsResponse/readGroupSetIds/read_group_set_id": read_group_set_id @@ -51152,6 +51207,10 @@ "/genomics:v1alpha2/PipelineResources/preemptible": preemptible "/genomics:v1alpha2/PipelineResources/zones": zones "/genomics:v1alpha2/PipelineResources/zones/zone": zone +"/genomics:v1alpha2/PullStartedEvent": pull_started_event +"/genomics:v1alpha2/PullStartedEvent/imageUri": image_uri +"/genomics:v1alpha2/PullStoppedEvent": pull_stopped_event +"/genomics:v1alpha2/PullStoppedEvent/imageUri": image_uri "/genomics:v1alpha2/RepeatedString": repeated_string "/genomics:v1alpha2/RepeatedString/values": values "/genomics:v1alpha2/RepeatedString/values/value": value @@ -51194,6 +51253,15 @@ "/genomics:v1alpha2/TimestampEvent": timestamp_event "/genomics:v1alpha2/TimestampEvent/description": description "/genomics:v1alpha2/TimestampEvent/timestamp": timestamp +"/genomics:v1alpha2/UnexpectedExitStatusEvent": unexpected_exit_status_event +"/genomics:v1alpha2/UnexpectedExitStatusEvent/actionId": action_id +"/genomics:v1alpha2/UnexpectedExitStatusEvent/exitStatus": exit_status +"/genomics:v1alpha2/WorkerAssignedEvent": worker_assigned_event +"/genomics:v1alpha2/WorkerAssignedEvent/instance": instance +"/genomics:v1alpha2/WorkerAssignedEvent/zone": zone +"/genomics:v1alpha2/WorkerReleasedEvent": worker_released_event +"/genomics:v1alpha2/WorkerReleasedEvent/instance": instance +"/genomics:v1alpha2/WorkerReleasedEvent/zone": zone "/genomics:v1alpha2/fields": fields "/genomics:v1alpha2/genomics.operations.cancel": cancel_operation "/genomics:v1alpha2/genomics.operations.cancel/name": name @@ -51241,6 +51309,184 @@ "/genomics:v1beta2/genomics.references.bases.list/start": start_position "/genomics:v1beta2/genomics.referencesets.get": get_reference_set "/genomics:v1beta2/genomics.streamingReadstore.streamreads": stream_reads +"/genomics:v2alpha1/Action": action +"/genomics:v2alpha1/Action/commands": commands +"/genomics:v2alpha1/Action/commands/command": command +"/genomics:v2alpha1/Action/entrypoint": entrypoint +"/genomics:v2alpha1/Action/environment": environment +"/genomics:v2alpha1/Action/environment/environment": environment +"/genomics:v2alpha1/Action/flags": flags +"/genomics:v2alpha1/Action/flags/flag": flag +"/genomics:v2alpha1/Action/imageUri": image_uri +"/genomics:v2alpha1/Action/labels": labels +"/genomics:v2alpha1/Action/labels/label": label +"/genomics:v2alpha1/Action/mounts": mounts +"/genomics:v2alpha1/Action/mounts/mount": mount +"/genomics:v2alpha1/Action/name": name +"/genomics:v2alpha1/Action/pidNamespace": pid_namespace +"/genomics:v2alpha1/Action/portMappings": port_mappings +"/genomics:v2alpha1/Action/portMappings/port_mapping": port_mapping +"/genomics:v2alpha1/CancelOperationRequest": cancel_operation_request +"/genomics:v2alpha1/CheckInRequest": check_in_request +"/genomics:v2alpha1/CheckInRequest/deadlineExpired": deadline_expired +"/genomics:v2alpha1/CheckInRequest/event": event +"/genomics:v2alpha1/CheckInRequest/event/event": event +"/genomics:v2alpha1/CheckInRequest/result": result +"/genomics:v2alpha1/CheckInResponse": check_in_response +"/genomics:v2alpha1/CheckInResponse/deadline": deadline +"/genomics:v2alpha1/CheckInResponse/metadata": metadata +"/genomics:v2alpha1/CheckInResponse/metadata/metadatum": metadatum +"/genomics:v2alpha1/ComputeEngine": compute_engine +"/genomics:v2alpha1/ComputeEngine/diskNames": disk_names +"/genomics:v2alpha1/ComputeEngine/diskNames/disk_name": disk_name +"/genomics:v2alpha1/ComputeEngine/instanceName": instance_name +"/genomics:v2alpha1/ComputeEngine/machineType": machine_type +"/genomics:v2alpha1/ComputeEngine/zone": zone +"/genomics:v2alpha1/ContainerStartedEvent": container_started_event +"/genomics:v2alpha1/ContainerStartedEvent/actionId": action_id +"/genomics:v2alpha1/ContainerStartedEvent/ipAddress": ip_address +"/genomics:v2alpha1/ContainerStartedEvent/portMappings": port_mappings +"/genomics:v2alpha1/ContainerStartedEvent/portMappings/port_mapping": port_mapping +"/genomics:v2alpha1/ContainerStoppedEvent": container_stopped_event +"/genomics:v2alpha1/ContainerStoppedEvent/actionId": action_id +"/genomics:v2alpha1/ContainerStoppedEvent/exitStatus": exit_status +"/genomics:v2alpha1/DelayedEvent": delayed_event +"/genomics:v2alpha1/DelayedEvent/cause": cause +"/genomics:v2alpha1/DelayedEvent/metrics": metrics +"/genomics:v2alpha1/DelayedEvent/metrics/metric": metric +"/genomics:v2alpha1/Disk": disk +"/genomics:v2alpha1/Disk/name": name +"/genomics:v2alpha1/Disk/sizeGb": size_gb +"/genomics:v2alpha1/Disk/sourceImage": source_image +"/genomics:v2alpha1/Disk/type": type +"/genomics:v2alpha1/Empty": empty +"/genomics:v2alpha1/Event": event +"/genomics:v2alpha1/Event/description": description +"/genomics:v2alpha1/Event/details": details +"/genomics:v2alpha1/Event/details/detail": detail +"/genomics:v2alpha1/Event/timestamp": timestamp +"/genomics:v2alpha1/FailedEvent": failed_event +"/genomics:v2alpha1/FailedEvent/cause": cause +"/genomics:v2alpha1/FailedEvent/code": code +"/genomics:v2alpha1/ImportReadGroupSetsResponse": import_read_group_sets_response +"/genomics:v2alpha1/ImportReadGroupSetsResponse/readGroupSetIds": read_group_set_ids +"/genomics:v2alpha1/ImportReadGroupSetsResponse/readGroupSetIds/read_group_set_id": read_group_set_id +"/genomics:v2alpha1/ImportVariantsResponse": import_variants_response +"/genomics:v2alpha1/ImportVariantsResponse/callSetIds": call_set_ids +"/genomics:v2alpha1/ImportVariantsResponse/callSetIds/call_set_id": call_set_id +"/genomics:v2alpha1/ListOperationsResponse": list_operations_response +"/genomics:v2alpha1/ListOperationsResponse/nextPageToken": next_page_token +"/genomics:v2alpha1/ListOperationsResponse/operations": operations +"/genomics:v2alpha1/ListOperationsResponse/operations/operation": operation +"/genomics:v2alpha1/Metadata": metadata +"/genomics:v2alpha1/Metadata/createTime": create_time +"/genomics:v2alpha1/Metadata/events": events +"/genomics:v2alpha1/Metadata/events/event": event +"/genomics:v2alpha1/Metadata/labels": labels +"/genomics:v2alpha1/Metadata/labels/label": label +"/genomics:v2alpha1/Metadata/pipeline": pipeline +"/genomics:v2alpha1/Mount": mount +"/genomics:v2alpha1/Mount/disk": disk +"/genomics:v2alpha1/Mount/path": path +"/genomics:v2alpha1/Mount/readOnly": read_only +"/genomics:v2alpha1/Network": network +"/genomics:v2alpha1/Network/name": name +"/genomics:v2alpha1/Network/usePrivateAddress": use_private_address +"/genomics:v2alpha1/Operation": operation +"/genomics:v2alpha1/Operation/done": done +"/genomics:v2alpha1/Operation/error": error +"/genomics:v2alpha1/Operation/metadata": metadata +"/genomics:v2alpha1/Operation/metadata/metadatum": metadatum +"/genomics:v2alpha1/Operation/name": name +"/genomics:v2alpha1/Operation/response": response +"/genomics:v2alpha1/Operation/response/response": response +"/genomics:v2alpha1/OperationEvent": operation_event +"/genomics:v2alpha1/OperationEvent/description": description +"/genomics:v2alpha1/OperationEvent/endTime": end_time +"/genomics:v2alpha1/OperationEvent/startTime": start_time +"/genomics:v2alpha1/OperationMetadata": operation_metadata +"/genomics:v2alpha1/OperationMetadata/clientId": client_id +"/genomics:v2alpha1/OperationMetadata/createTime": create_time +"/genomics:v2alpha1/OperationMetadata/endTime": end_time +"/genomics:v2alpha1/OperationMetadata/events": events +"/genomics:v2alpha1/OperationMetadata/events/event": event +"/genomics:v2alpha1/OperationMetadata/labels": labels +"/genomics:v2alpha1/OperationMetadata/labels/label": label +"/genomics:v2alpha1/OperationMetadata/projectId": project_id +"/genomics:v2alpha1/OperationMetadata/request": request +"/genomics:v2alpha1/OperationMetadata/request/request": request +"/genomics:v2alpha1/OperationMetadata/runtimeMetadata": runtime_metadata +"/genomics:v2alpha1/OperationMetadata/runtimeMetadata/runtime_metadatum": runtime_metadatum +"/genomics:v2alpha1/OperationMetadata/startTime": start_time +"/genomics:v2alpha1/Pipeline": pipeline +"/genomics:v2alpha1/Pipeline/actions": actions +"/genomics:v2alpha1/Pipeline/actions/action": action +"/genomics:v2alpha1/Pipeline/environment": environment +"/genomics:v2alpha1/Pipeline/environment/environment": environment +"/genomics:v2alpha1/Pipeline/resources": resources +"/genomics:v2alpha1/PullStartedEvent": pull_started_event +"/genomics:v2alpha1/PullStartedEvent/imageUri": image_uri +"/genomics:v2alpha1/PullStoppedEvent": pull_stopped_event +"/genomics:v2alpha1/PullStoppedEvent/imageUri": image_uri +"/genomics:v2alpha1/Resources": resources +"/genomics:v2alpha1/Resources/projectId": project_id +"/genomics:v2alpha1/Resources/regions": regions +"/genomics:v2alpha1/Resources/regions/region": region +"/genomics:v2alpha1/Resources/virtualMachine": virtual_machine +"/genomics:v2alpha1/Resources/zones": zones +"/genomics:v2alpha1/Resources/zones/zone": zone +"/genomics:v2alpha1/RunPipelineRequest": run_pipeline_request +"/genomics:v2alpha1/RunPipelineRequest/labels": labels +"/genomics:v2alpha1/RunPipelineRequest/labels/label": label +"/genomics:v2alpha1/RunPipelineRequest/pipeline": pipeline +"/genomics:v2alpha1/RuntimeMetadata": runtime_metadata +"/genomics:v2alpha1/RuntimeMetadata/computeEngine": compute_engine +"/genomics:v2alpha1/ServiceAccount": service_account +"/genomics:v2alpha1/ServiceAccount/email": email +"/genomics:v2alpha1/ServiceAccount/scopes": scopes +"/genomics:v2alpha1/ServiceAccount/scopes/scope": scope +"/genomics:v2alpha1/Status": status +"/genomics:v2alpha1/Status/code": code +"/genomics:v2alpha1/Status/details": details +"/genomics:v2alpha1/Status/details/detail": detail +"/genomics:v2alpha1/Status/details/detail/detail": detail +"/genomics:v2alpha1/Status/message": message +"/genomics:v2alpha1/UnexpectedExitStatusEvent": unexpected_exit_status_event +"/genomics:v2alpha1/UnexpectedExitStatusEvent/actionId": action_id +"/genomics:v2alpha1/UnexpectedExitStatusEvent/exitStatus": exit_status +"/genomics:v2alpha1/VirtualMachine": virtual_machine +"/genomics:v2alpha1/VirtualMachine/bootDiskSizeGb": boot_disk_size_gb +"/genomics:v2alpha1/VirtualMachine/bootImage": boot_image +"/genomics:v2alpha1/VirtualMachine/cpuPlatform": cpu_platform +"/genomics:v2alpha1/VirtualMachine/disks": disks +"/genomics:v2alpha1/VirtualMachine/disks/disk": disk +"/genomics:v2alpha1/VirtualMachine/labels": labels +"/genomics:v2alpha1/VirtualMachine/labels/label": label +"/genomics:v2alpha1/VirtualMachine/machineType": machine_type +"/genomics:v2alpha1/VirtualMachine/network": network +"/genomics:v2alpha1/VirtualMachine/preemptible": preemptible +"/genomics:v2alpha1/VirtualMachine/serviceAccount": service_account +"/genomics:v2alpha1/WorkerAssignedEvent": worker_assigned_event +"/genomics:v2alpha1/WorkerAssignedEvent/instance": instance +"/genomics:v2alpha1/WorkerAssignedEvent/zone": zone +"/genomics:v2alpha1/WorkerReleasedEvent": worker_released_event +"/genomics:v2alpha1/WorkerReleasedEvent/instance": instance +"/genomics:v2alpha1/WorkerReleasedEvent/zone": zone +"/genomics:v2alpha1/fields": fields +"/genomics:v2alpha1/genomics.pipelines.run": run_pipeline +"/genomics:v2alpha1/genomics.projects.operations.cancel": cancel_operation +"/genomics:v2alpha1/genomics.projects.operations.cancel/name": name +"/genomics:v2alpha1/genomics.projects.operations.get": get_project_operation +"/genomics:v2alpha1/genomics.projects.operations.get/name": name +"/genomics:v2alpha1/genomics.projects.operations.list": list_project_operations +"/genomics:v2alpha1/genomics.projects.operations.list/filter": filter +"/genomics:v2alpha1/genomics.projects.operations.list/name": name +"/genomics:v2alpha1/genomics.projects.operations.list/pageSize": page_size +"/genomics:v2alpha1/genomics.projects.operations.list/pageToken": page_token +"/genomics:v2alpha1/genomics.workers.checkIn": check_worker_in +"/genomics:v2alpha1/genomics.workers.checkIn/id": id +"/genomics:v2alpha1/key": key +"/genomics:v2alpha1/quotaUser": quota_user "/gmail:v1/AutoForwarding": auto_forwarding "/gmail:v1/AutoForwarding/disposition": disposition "/gmail:v1/AutoForwarding/emailAddress": email_address @@ -62893,6 +63139,10 @@ "/slides:v1/ReplaceAllTextRequest/replaceText": replace_text "/slides:v1/ReplaceAllTextResponse": replace_all_text_response "/slides:v1/ReplaceAllTextResponse/occurrencesChanged": occurrences_changed +"/slides:v1/ReplaceImageRequest": replace_image_request +"/slides:v1/ReplaceImageRequest/imageObjectId": image_object_id +"/slides:v1/ReplaceImageRequest/imageReplaceMethod": image_replace_method +"/slides:v1/ReplaceImageRequest/url": url "/slides:v1/Request": request "/slides:v1/Request/createImage": create_image "/slides:v1/Request/createLine": create_line @@ -62917,6 +63167,7 @@ "/slides:v1/Request/replaceAllShapesWithImage": replace_all_shapes_with_image "/slides:v1/Request/replaceAllShapesWithSheetsChart": replace_all_shapes_with_sheets_chart "/slides:v1/Request/replaceAllText": replace_all_text +"/slides:v1/Request/replaceImage": replace_image "/slides:v1/Request/ungroupObjects": ungroup_objects "/slides:v1/Request/unmergeTableCells": unmerge_table_cells "/slides:v1/Request/updateImageProperties": update_image_properties @@ -63160,7 +63411,11 @@ "/slides:v1/Video/url": url "/slides:v1/Video/videoProperties": video_properties "/slides:v1/VideoProperties": video_properties +"/slides:v1/VideoProperties/autoPlay": auto_play +"/slides:v1/VideoProperties/end": end +"/slides:v1/VideoProperties/mute": mute "/slides:v1/VideoProperties/outline": outline +"/slides:v1/VideoProperties/start": start "/slides:v1/WeightedFontFamily": weighted_font_family "/slides:v1/WeightedFontFamily/fontFamily": font_family "/slides:v1/WeightedFontFamily/weight": weight diff --git a/generated/google/apis/androidmanagement_v1.rb b/generated/google/apis/androidmanagement_v1.rb index afe58cfce..503557c60 100644 --- a/generated/google/apis/androidmanagement_v1.rb +++ b/generated/google/apis/androidmanagement_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/android/management module AndroidmanagementV1 VERSION = 'V1' - REVISION = '20180207' + REVISION = '20180212' # Manage Android devices and apps for your customers AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement' diff --git a/generated/google/apis/cloudbuild_v1.rb b/generated/google/apis/cloudbuild_v1.rb index 0ef6c6878..ae369924d 100644 --- a/generated/google/apis/cloudbuild_v1.rb +++ b/generated/google/apis/cloudbuild_v1.rb @@ -18,14 +18,14 @@ require 'google/apis/cloudbuild_v1/representations.rb' module Google module Apis - # Google Cloud Container Builder API + # Cloud Container Builder API # # Builds container images in the cloud. # # @see https://cloud.google.com/container-builder/docs/ module CloudbuildV1 VERSION = 'V1' - REVISION = '20180205' + REVISION = '20180220' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudbuild_v1/classes.rb b/generated/google/apis/cloudbuild_v1/classes.rb index fbd531484..d91499407 100644 --- a/generated/google/apis/cloudbuild_v1/classes.rb +++ b/generated/google/apis/cloudbuild_v1/classes.rb @@ -361,6 +361,21 @@ module Google # @return [Array] attr_accessor :secret_env + # Status of the build step. At this time, build step status is only updated + # on build completion; step status is not updated in real-time as the build + # progresses. + # @OutputOnly + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # Time limit for executing this build step. If not defined, the step has no + # time limit and will be allowed to continue to run until either it completes + # or the build itself times out. + # Corresponds to the JSON property `timeout` + # @return [String] + attr_accessor :timeout + # Stores start and end times for a build execution phase. # Corresponds to the JSON property `timing` # @return [Google::Apis::CloudbuildV1::TimeSpan] @@ -398,6 +413,8 @@ module Google @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @secret_env = args[:secret_env] if args.key?(:secret_env) + @status = args[:status] if args.key?(:status) + @timeout = args[:timeout] if args.key?(:timeout) @timing = args[:timing] if args.key?(:timing) @volumes = args[:volumes] if args.key?(:volumes) @wait_for = args[:wait_for] if args.key?(:wait_for) diff --git a/generated/google/apis/cloudbuild_v1/representations.rb b/generated/google/apis/cloudbuild_v1/representations.rb index 0b30b5067..6aee3236b 100644 --- a/generated/google/apis/cloudbuild_v1/representations.rb +++ b/generated/google/apis/cloudbuild_v1/representations.rb @@ -236,6 +236,8 @@ module Google property :id, as: 'id' property :name, as: 'name' collection :secret_env, as: 'secretEnv' + property :status, as: 'status' + property :timeout, as: 'timeout' property :timing, as: 'timing', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation collection :volumes, as: 'volumes', class: Google::Apis::CloudbuildV1::Volume, decorator: Google::Apis::CloudbuildV1::Volume::Representation diff --git a/generated/google/apis/cloudbuild_v1/service.rb b/generated/google/apis/cloudbuild_v1/service.rb index 4c5072b83..6cd7abf00 100644 --- a/generated/google/apis/cloudbuild_v1/service.rb +++ b/generated/google/apis/cloudbuild_v1/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module CloudbuildV1 - # Google Cloud Container Builder API + # Cloud Container Builder API # # Builds container images in the cloud. # diff --git a/generated/google/apis/genomics_v1.rb b/generated/google/apis/genomics_v1.rb index 977d1ff1c..192d598de 100644 --- a/generated/google/apis/genomics_v1.rb +++ b/generated/google/apis/genomics_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/genomics module GenomicsV1 VERSION = 'V1' - REVISION = '20180208' + REVISION = '20180220' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/genomics_v1/classes.rb b/generated/google/apis/genomics_v1/classes.rb index 8e3d6a688..b013803b2 100644 --- a/generated/google/apis/genomics_v1/classes.rb +++ b/generated/google/apis/genomics_v1/classes.rb @@ -485,6 +485,67 @@ module Google end end + # This event is generated when a container starts. + class ContainerStartedEvent + include Google::Apis::Core::Hashable + + # The numeric ID of the action that started this container. + # Corresponds to the JSON property `actionId` + # @return [Fixnum] + attr_accessor :action_id + + # The public IP address that can be used to connect to the container. This + # field is only populated when at least one port mapping is present. If the + # instance was created with a private address this field will be empty even + # if port mappings exist. + # Corresponds to the JSON property `ipAddress` + # @return [String] + attr_accessor :ip_address + + # The container to host port mappings installed for this container. This + # set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as + # well as any specified in the Action definition. + # Corresponds to the JSON property `portMappings` + # @return [Hash] + attr_accessor :port_mappings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action_id = args[:action_id] if args.key?(:action_id) + @ip_address = args[:ip_address] if args.key?(:ip_address) + @port_mappings = args[:port_mappings] if args.key?(:port_mappings) + end + end + + # This event is generated when a container exits. + class ContainerStoppedEvent + include Google::Apis::Core::Hashable + + # The numeric ID of the action that started this container. + # Corresponds to the JSON property `actionId` + # @return [Fixnum] + attr_accessor :action_id + + # The exit status of the container. + # Corresponds to the JSON property `exitStatus` + # @return [Fixnum] + attr_accessor :exit_status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action_id = args[:action_id] if args.key?(:action_id) + @exit_status = args[:exit_status] if args.key?(:exit_status) + end + end + # A bucket over which read coverage has been precomputed. A bucket corresponds # to a specific range of the reference sequence. class CoverageBucket @@ -551,6 +612,37 @@ module Google end end + # This event is generated whenever a resource limitation or transient error + # delays execution of a pipeline that was otherwise ready to run. + class DelayedEvent + include Google::Apis::Core::Hashable + + # A textual description of the cause of the delay. The string may change + # without notice since it is often generated by another service (such as + # Compute Engine). + # Corresponds to the JSON property `cause` + # @return [String] + attr_accessor :cause + + # If the delay was caused by a resource shortage, this field lists the + # Compute Engine metrics that are preventing this operation from running + # (for example, CPUS or INSTANCES). If the particular metric is not known, + # a single UNKNOWN metric will be present. + # Corresponds to the JSON property `metrics` + # @return [Array] + attr_accessor :metrics + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cause = args[:cause] if args.key?(:cause) + @metrics = args[:metrics] if args.key?(:metrics) + 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: @@ -638,6 +730,39 @@ module Google end end + # Event carries information about events that occur during pipeline execution. + class Event + include Google::Apis::Core::Hashable + + # A human readable description of the event. Note that these strings may + # change at any time without notice. Any application logic must use the + # information in the details field. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Machine readable details about the event. + # Corresponds to the JSON property `details` + # @return [Hash] + attr_accessor :details + + # The time that the event occurred. + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @details = args[:details] if args.key?(:details) + @timestamp = args[:timestamp] if args.key?(:timestamp) + end + end + # class Exon include Google::Apis::Core::Hashable @@ -837,6 +962,32 @@ module Google end end + # This event is generated when the execution of a pipeline has failed. Note + # that other events may continue to occur after this event. + class FailedEvent + include Google::Apis::Core::Hashable + + # The human readable description of the cause of the failure. + # Corresponds to the JSON property `cause` + # @return [String] + attr_accessor :cause + + # The Google standard error code that best describes this failure. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cause = args[:cause] if args.key?(:cause) + @code = args[:code] if args.key?(:code) + end + end + # Request message for `GetIamPolicy` method. class GetIamPolicyRequest include Google::Apis::Core::Hashable @@ -1533,6 +1684,44 @@ module Google end end + # This event is generated when the worker starts pulling an image. + class PullStartedEvent + include Google::Apis::Core::Hashable + + # The URI of the image that was pulled. + # Corresponds to the JSON property `imageUri` + # @return [String] + attr_accessor :image_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image_uri = args[:image_uri] if args.key?(:image_uri) + end + end + + # This event is generated when the worker stops pulling an image. + class PullStoppedEvent + include Google::Apis::Core::Hashable + + # The URI of the image that was pulled. + # Corresponds to the JSON property `imageUri` + # @return [String] + attr_accessor :image_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image_uri = args[:image_uri] if args.key?(:image_uri) + end + end + # A 0-based half-open genomic coordinate range for search requests. class Range include Google::Apis::Core::Hashable @@ -3097,6 +3286,34 @@ module Google end end + # This event is generated when the execution of a container results in a + # non-zero exit status that was not otherwise ignored. Execution will + # continue, but only actions that are flagged as ALWAYS_RUN will be executed: + # other actions will be skipped. + class UnexpectedExitStatusEvent + include Google::Apis::Core::Hashable + + # The numeric ID of the action that started the container. + # Corresponds to the JSON property `actionId` + # @return [Fixnum] + attr_accessor :action_id + + # The exit status of the container. + # Corresponds to the JSON property `exitStatus` + # @return [Fixnum] + attr_accessor :exit_status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action_id = args[:action_id] if args.key?(:action_id) + @exit_status = args[:exit_status] if args.key?(:exit_status) + end + end + # A variant represents a change in DNA sequence relative to a reference # sequence. For example, a variant could represent a SNP or an insertion. # Variants belong to a variant set. @@ -3472,6 +3689,58 @@ module Google @value = args[:value] if args.key?(:value) end end + + # This event is generated once a worker VM has been assigned to run the + # pipeline. + class WorkerAssignedEvent + include Google::Apis::Core::Hashable + + # The worker's instance name. + # Corresponds to the JSON property `instance` + # @return [String] + attr_accessor :instance + + # The zone the worker is running in. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instance = args[:instance] if args.key?(:instance) + @zone = args[:zone] if args.key?(:zone) + end + end + + # This event is generated when the worker VM that was assigned to the pipeline + # has been released (i.e., deleted). + class WorkerReleasedEvent + include Google::Apis::Core::Hashable + + # The worker's instance name. + # Corresponds to the JSON property `instance` + # @return [String] + attr_accessor :instance + + # The zone the worker was running in. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instance = args[:instance] if args.key?(:instance) + @zone = args[:zone] if args.key?(:zone) + end + end end end end diff --git a/generated/google/apis/genomics_v1/representations.rb b/generated/google/apis/genomics_v1/representations.rb index 49663d14b..1258bf56d 100644 --- a/generated/google/apis/genomics_v1/representations.rb +++ b/generated/google/apis/genomics_v1/representations.rb @@ -88,6 +88,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ContainerStartedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ContainerStoppedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CoverageBucket class Representation < Google::Apis::Core::JsonRepresentation; end @@ -100,6 +112,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DelayedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end @@ -112,6 +130,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Event + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Exon class Representation < Google::Apis::Core::JsonRepresentation; end @@ -142,6 +166,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class FailedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GetIamPolicyRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -244,6 +274,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PullStartedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PullStoppedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Range class Representation < Google::Apis::Core::JsonRepresentation; end @@ -436,6 +478,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UnexpectedExitStatusEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Variant class Representation < Google::Apis::Core::JsonRepresentation; end @@ -466,6 +514,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class WorkerAssignedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WorkerReleasedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Annotation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -592,6 +652,23 @@ module Google end end + class ContainerStartedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action_id, as: 'actionId' + property :ip_address, as: 'ipAddress' + hash :port_mappings, as: 'portMappings' + end + end + + class ContainerStoppedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action_id, as: 'actionId' + property :exit_status, as: 'exitStatus' + end + end + class CoverageBucket # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -611,6 +688,14 @@ module Google end end + class DelayedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cause, as: 'cause' + collection :metrics, as: 'metrics' + end + end + class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -627,6 +712,15 @@ module Google end end + class Event + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + hash :details, as: 'details' + property :timestamp, as: 'timestamp' + end + end + class Exon # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -674,6 +768,14 @@ module Google end end + class FailedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cause, as: 'cause' + property :code, as: 'code' + end + end + class GetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -840,6 +942,20 @@ module Google end end + class PullStartedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image_uri, as: 'imageUri' + end + end + + class PullStoppedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image_uri, as: 'imageUri' + end + end + class Range # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1194,6 +1310,14 @@ module Google end end + class UnexpectedExitStatusEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action_id, as: 'actionId' + property :exit_status, as: 'exitStatus' + end + end + class Variant # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1279,6 +1403,22 @@ module Google property :value, as: 'value' end end + + class WorkerAssignedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :instance, as: 'instance' + property :zone, as: 'zone' + end + end + + class WorkerReleasedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :instance, as: 'instance' + property :zone, as: 'zone' + end + end end end end diff --git a/generated/google/apis/genomics_v1alpha2.rb b/generated/google/apis/genomics_v1alpha2.rb index 46af999da..7d400e3f6 100644 --- a/generated/google/apis/genomics_v1alpha2.rb +++ b/generated/google/apis/genomics_v1alpha2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/genomics module GenomicsV1alpha2 VERSION = 'V1alpha2' - REVISION = '20180208' + REVISION = '20180220' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/genomics_v1alpha2/classes.rb b/generated/google/apis/genomics_v1alpha2/classes.rb index e1323fe05..15388f0ad 100644 --- a/generated/google/apis/genomics_v1alpha2/classes.rb +++ b/generated/google/apis/genomics_v1alpha2/classes.rb @@ -73,6 +73,67 @@ module Google end end + # This event is generated when a container starts. + class ContainerStartedEvent + include Google::Apis::Core::Hashable + + # The numeric ID of the action that started this container. + # Corresponds to the JSON property `actionId` + # @return [Fixnum] + attr_accessor :action_id + + # The public IP address that can be used to connect to the container. This + # field is only populated when at least one port mapping is present. If the + # instance was created with a private address this field will be empty even + # if port mappings exist. + # Corresponds to the JSON property `ipAddress` + # @return [String] + attr_accessor :ip_address + + # The container to host port mappings installed for this container. This + # set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as + # well as any specified in the Action definition. + # Corresponds to the JSON property `portMappings` + # @return [Hash] + attr_accessor :port_mappings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action_id = args[:action_id] if args.key?(:action_id) + @ip_address = args[:ip_address] if args.key?(:ip_address) + @port_mappings = args[:port_mappings] if args.key?(:port_mappings) + end + end + + # This event is generated when a container exits. + class ContainerStoppedEvent + include Google::Apis::Core::Hashable + + # The numeric ID of the action that started this container. + # Corresponds to the JSON property `actionId` + # @return [Fixnum] + attr_accessor :action_id + + # The exit status of the container. + # Corresponds to the JSON property `exitStatus` + # @return [Fixnum] + attr_accessor :exit_status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action_id = args[:action_id] if args.key?(:action_id) + @exit_status = args[:exit_status] if args.key?(:exit_status) + end + end + # Stores the information that the controller will fetch from the # server in order to run. Should only be used by VMs created by the # Pipelines Service and not by end users. @@ -136,6 +197,37 @@ module Google end end + # This event is generated whenever a resource limitation or transient error + # delays execution of a pipeline that was otherwise ready to run. + class DelayedEvent + include Google::Apis::Core::Hashable + + # A textual description of the cause of the delay. The string may change + # without notice since it is often generated by another service (such as + # Compute Engine). + # Corresponds to the JSON property `cause` + # @return [String] + attr_accessor :cause + + # If the delay was caused by a resource shortage, this field lists the + # Compute Engine metrics that are preventing this operation from running + # (for example, CPUS or INSTANCES). If the particular metric is not known, + # a single UNKNOWN metric will be present. + # Corresponds to the JSON property `metrics` + # @return [Array] + attr_accessor :metrics + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cause = args[:cause] if args.key?(:cause) + @metrics = args[:metrics] if args.key?(:metrics) + end + end + # A Google Compute Engine disk resource specification. class Disk include Google::Apis::Core::Hashable @@ -260,6 +352,65 @@ module Google end end + # Event carries information about events that occur during pipeline execution. + class Event + include Google::Apis::Core::Hashable + + # A human readable description of the event. Note that these strings may + # change at any time without notice. Any application logic must use the + # information in the details field. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Machine readable details about the event. + # Corresponds to the JSON property `details` + # @return [Hash] + attr_accessor :details + + # The time that the event occurred. + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @details = args[:details] if args.key?(:details) + @timestamp = args[:timestamp] if args.key?(:timestamp) + end + end + + # This event is generated when the execution of a pipeline has failed. Note + # that other events may continue to occur after this event. + class FailedEvent + include Google::Apis::Core::Hashable + + # The human readable description of the cause of the failure. + # Corresponds to the JSON property `cause` + # @return [String] + attr_accessor :cause + + # The Google standard error code that best describes this failure. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cause = args[:cause] if args.key?(:cause) + @code = args[:code] if args.key?(:code) + end + end + # The read group set import response. class ImportReadGroupSetsResponse include Google::Apis::Core::Hashable @@ -878,6 +1029,44 @@ module Google end end + # This event is generated when the worker starts pulling an image. + class PullStartedEvent + include Google::Apis::Core::Hashable + + # The URI of the image that was pulled. + # Corresponds to the JSON property `imageUri` + # @return [String] + attr_accessor :image_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image_uri = args[:image_uri] if args.key?(:image_uri) + end + end + + # This event is generated when the worker stops pulling an image. + class PullStoppedEvent + include Google::Apis::Core::Hashable + + # The URI of the image that was pulled. + # Corresponds to the JSON property `imageUri` + # @return [String] + attr_accessor :image_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image_uri = args[:image_uri] if args.key?(:image_uri) + end + end + # class RepeatedString include Google::Apis::Core::Hashable @@ -1222,6 +1411,86 @@ module Google @timestamp = args[:timestamp] if args.key?(:timestamp) end end + + # This event is generated when the execution of a container results in a + # non-zero exit status that was not otherwise ignored. Execution will + # continue, but only actions that are flagged as ALWAYS_RUN will be executed: + # other actions will be skipped. + class UnexpectedExitStatusEvent + include Google::Apis::Core::Hashable + + # The numeric ID of the action that started the container. + # Corresponds to the JSON property `actionId` + # @return [Fixnum] + attr_accessor :action_id + + # The exit status of the container. + # Corresponds to the JSON property `exitStatus` + # @return [Fixnum] + attr_accessor :exit_status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action_id = args[:action_id] if args.key?(:action_id) + @exit_status = args[:exit_status] if args.key?(:exit_status) + end + end + + # This event is generated once a worker VM has been assigned to run the + # pipeline. + class WorkerAssignedEvent + include Google::Apis::Core::Hashable + + # The worker's instance name. + # Corresponds to the JSON property `instance` + # @return [String] + attr_accessor :instance + + # The zone the worker is running in. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instance = args[:instance] if args.key?(:instance) + @zone = args[:zone] if args.key?(:zone) + end + end + + # This event is generated when the worker VM that was assigned to the pipeline + # has been released (i.e., deleted). + class WorkerReleasedEvent + include Google::Apis::Core::Hashable + + # The worker's instance name. + # Corresponds to the JSON property `instance` + # @return [String] + attr_accessor :instance + + # The zone the worker was running in. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instance = args[:instance] if args.key?(:instance) + @zone = args[:zone] if args.key?(:zone) + end + end end end end diff --git a/generated/google/apis/genomics_v1alpha2/representations.rb b/generated/google/apis/genomics_v1alpha2/representations.rb index f47a8697f..e2c0c50da 100644 --- a/generated/google/apis/genomics_v1alpha2/representations.rb +++ b/generated/google/apis/genomics_v1alpha2/representations.rb @@ -34,12 +34,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ContainerStartedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ContainerStoppedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ControllerConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class DelayedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Disk class Representation < Google::Apis::Core::JsonRepresentation; end @@ -58,6 +76,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Event + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FailedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ImportReadGroupSetsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -130,6 +160,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PullStartedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PullStoppedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RepeatedString class Representation < Google::Apis::Core::JsonRepresentation; end @@ -178,6 +220,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UnexpectedExitStatusEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WorkerAssignedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WorkerReleasedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CancelOperationRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -194,6 +254,23 @@ module Google end end + class ContainerStartedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action_id, as: 'actionId' + property :ip_address, as: 'ipAddress' + hash :port_mappings, as: 'portMappings' + end + end + + class ContainerStoppedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action_id, as: 'actionId' + property :exit_status, as: 'exitStatus' + end + end + class ControllerConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -210,6 +287,14 @@ module Google end end + class DelayedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cause, as: 'cause' + collection :metrics, as: 'metrics' + end + end + class Disk # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -237,6 +322,23 @@ module Google end end + class Event + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + hash :details, as: 'details' + property :timestamp, as: 'timestamp' + end + end + + class FailedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cause, as: 'cause' + property :code, as: 'code' + end + end + class ImportReadGroupSetsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -366,6 +468,20 @@ module Google end end + class PullStartedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image_uri, as: 'imageUri' + end + end + + class PullStoppedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image_uri, as: 'imageUri' + end + end + class RepeatedString # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -446,6 +562,30 @@ module Google property :timestamp, as: 'timestamp' end end + + class UnexpectedExitStatusEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action_id, as: 'actionId' + property :exit_status, as: 'exitStatus' + end + end + + class WorkerAssignedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :instance, as: 'instance' + property :zone, as: 'zone' + end + end + + class WorkerReleasedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :instance, as: 'instance' + property :zone, as: 'zone' + end + end end end end diff --git a/generated/google/apis/genomics_v2alpha1.rb b/generated/google/apis/genomics_v2alpha1.rb new file mode 100644 index 000000000..be84a66c1 --- /dev/null +++ b/generated/google/apis/genomics_v2alpha1.rb @@ -0,0 +1,37 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/genomics_v2alpha1/service.rb' +require 'google/apis/genomics_v2alpha1/classes.rb' +require 'google/apis/genomics_v2alpha1/representations.rb' + +module Google + module Apis + # Genomics API + # + # Upload, process, query, and search Genomics data in the cloud. + # + # @see https://cloud.google.com/genomics + module GenomicsV2alpha1 + VERSION = 'V2alpha1' + REVISION = '20180220' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # View and manage Genomics data + AUTH_GENOMICS = 'https://www.googleapis.com/auth/genomics' + end + end +end diff --git a/generated/google/apis/genomics_v2alpha1/classes.rb b/generated/google/apis/genomics_v2alpha1/classes.rb new file mode 100644 index 000000000..4e9131b0b --- /dev/null +++ b/generated/google/apis/genomics_v2alpha1/classes.rb @@ -0,0 +1,1295 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module GenomicsV2alpha1 + + # Action specifies a single action that runs a docker container. + class Action + include Google::Apis::Core::Hashable + + # If specified, overrides the CMD specified in the container. If the + # container also has an ENTRYPOINT the values are used as entrypoint + # arguments. Otherwise, they are used as a command and arguments to run + # inside the container. + # Corresponds to the JSON property `commands` + # @return [Array] + attr_accessor :commands + + # If specified, overrides the ENTRYPOINT specified in the container. + # Corresponds to the JSON property `entrypoint` + # @return [String] + attr_accessor :entrypoint + + # The environment to pass into the container. This environment is merged + # with any values specified in the Pipeline message. These values overwrite + # any in the Pipeline message. + # Corresponds to the JSON property `environment` + # @return [Hash] + attr_accessor :environment + + # The set of flags to apply to this action. + # Corresponds to the JSON property `flags` + # @return [Array] + attr_accessor :flags + + # The URI to pull the container image from. Note that all images referenced + # by actions in the pipeline are pulled before the first action runs. If + # multiple actions reference the same image, it is only pulled once, + # ensuring that the same image is used for all actions in a single pipeline. + # Corresponds to the JSON property `imageUri` + # @return [String] + attr_accessor :image_uri + + # Labels to associate with the action. This field is provided to assist + # workflow engine authors in identifying actions (for example, to indicate + # what sort of action they perform: eg. localization, debugging, etc). They + # are returned in the operation metadata but are otherwise ignored. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # A list of mounts to make available to the action. + # In addition to the values specified here, every action has a special + # virtual disk mounted under /google that contains log files and other + # operational components. + #
    + #
  • /google/logs: all logs written during the pipeline + # execution are stored here.
  • + #
  • /google/logs/output: the combined standard output and + # standard error of all actions run as part of the pipeline + # execution.
  • + #
  • /google/logs/action/*/stdout: the complete contents of + # each individual action's standard output
  • + #
  • /google/logs/action/*/stderr: the complete contents of + # each individual action's standard error output
  • + #
+ # Corresponds to the JSON property `mounts` + # @return [Array] + attr_accessor :mounts + + # An optional name for the container. The container hostname will be set to + # this name, making it useful for inter-container communication. The name + # must contain only upper and lowercase alphanumeric characters and hypens + # and cannot start with a hypen. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The PID namespace to run the action inside. If unspecified, a separate + # isolated namespace is used. + # Corresponds to the JSON property `pidNamespace` + # @return [String] + attr_accessor :pid_namespace + + # A map of container to host port mappings for this container. Note that if + # the container already specifies exposed ports, the PUBLISH_EXPOSED_PORTS + # flag should be used instead. + # The host port number must be less than 65536. If it is zero, an unused + # random port is assigned. To determine the resulting port number, consult + # the ContainerStartedEvent in the operation metadata. + # Corresponds to the JSON property `portMappings` + # @return [Hash] + attr_accessor :port_mappings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @commands = args[:commands] if args.key?(:commands) + @entrypoint = args[:entrypoint] if args.key?(:entrypoint) + @environment = args[:environment] if args.key?(:environment) + @flags = args[:flags] if args.key?(:flags) + @image_uri = args[:image_uri] if args.key?(:image_uri) + @labels = args[:labels] if args.key?(:labels) + @mounts = args[:mounts] if args.key?(:mounts) + @name = args[:name] if args.key?(:name) + @pid_namespace = args[:pid_namespace] if args.key?(:pid_namespace) + @port_mappings = args[:port_mappings] if args.key?(:port_mappings) + end + end + + # The request message for Operations.CancelOperation. + class CancelOperationRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The parameters to the CheckIn method. + class CheckInRequest + include Google::Apis::Core::Hashable + + # 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 ````. + # Corresponds to the JSON property `deadlineExpired` + # @return [Google::Apis::GenomicsV2alpha1::Empty] + attr_accessor :deadline_expired + + # A workflow specific event occurred. + # Corresponds to the JSON property `event` + # @return [Hash] + attr_accessor :event + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `result` + # @return [Google::Apis::GenomicsV2alpha1::Status] + attr_accessor :result + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deadline_expired = args[:deadline_expired] if args.key?(:deadline_expired) + @event = args[:event] if args.key?(:event) + @result = args[:result] if args.key?(:result) + end + end + + # The response to the CheckIn method. + class CheckInResponse + include Google::Apis::Core::Hashable + + # The deadline by which the worker must request an extension. The backend + # will allow for network transmission time and other delays, but the worker + # must attempt to transmit the extension request no later than the deadline. + # Corresponds to the JSON property `deadline` + # @return [String] + attr_accessor :deadline + + # The metadata that describes the operation assigned to the worker. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deadline = args[:deadline] if args.key?(:deadline) + @metadata = args[:metadata] if args.key?(:metadata) + end + end + + # Describes a Compute Engine resource that is being managed by a running + # pipeline. + class ComputeEngine + include Google::Apis::Core::Hashable + + # The names of the disks that were created for this pipeline. + # Corresponds to the JSON property `diskNames` + # @return [Array] + attr_accessor :disk_names + + # The instance on which the operation is running. + # Corresponds to the JSON property `instanceName` + # @return [String] + attr_accessor :instance_name + + # The machine type of the instance. + # Corresponds to the JSON property `machineType` + # @return [String] + attr_accessor :machine_type + + # The availability zone in which the instance resides. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disk_names = args[:disk_names] if args.key?(:disk_names) + @instance_name = args[:instance_name] if args.key?(:instance_name) + @machine_type = args[:machine_type] if args.key?(:machine_type) + @zone = args[:zone] if args.key?(:zone) + end + end + + # This event is generated when a container starts. + class ContainerStartedEvent + include Google::Apis::Core::Hashable + + # The numeric ID of the action that started this container. + # Corresponds to the JSON property `actionId` + # @return [Fixnum] + attr_accessor :action_id + + # The public IP address that can be used to connect to the container. This + # field is only populated when at least one port mapping is present. If the + # instance was created with a private address this field will be empty even + # if port mappings exist. + # Corresponds to the JSON property `ipAddress` + # @return [String] + attr_accessor :ip_address + + # The container to host port mappings installed for this container. This + # set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as + # well as any specified in the Action definition. + # Corresponds to the JSON property `portMappings` + # @return [Hash] + attr_accessor :port_mappings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action_id = args[:action_id] if args.key?(:action_id) + @ip_address = args[:ip_address] if args.key?(:ip_address) + @port_mappings = args[:port_mappings] if args.key?(:port_mappings) + end + end + + # This event is generated when a container exits. + class ContainerStoppedEvent + include Google::Apis::Core::Hashable + + # The numeric ID of the action that started this container. + # Corresponds to the JSON property `actionId` + # @return [Fixnum] + attr_accessor :action_id + + # The exit status of the container. + # Corresponds to the JSON property `exitStatus` + # @return [Fixnum] + attr_accessor :exit_status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action_id = args[:action_id] if args.key?(:action_id) + @exit_status = args[:exit_status] if args.key?(:exit_status) + end + end + + # This event is generated whenever a resource limitation or transient error + # delays execution of a pipeline that was otherwise ready to run. + class DelayedEvent + include Google::Apis::Core::Hashable + + # A textual description of the cause of the delay. The string may change + # without notice since it is often generated by another service (such as + # Compute Engine). + # Corresponds to the JSON property `cause` + # @return [String] + attr_accessor :cause + + # If the delay was caused by a resource shortage, this field lists the + # Compute Engine metrics that are preventing this operation from running + # (for example, CPUS or INSTANCES). If the particular metric is not known, + # a single UNKNOWN metric will be present. + # Corresponds to the JSON property `metrics` + # @return [Array] + attr_accessor :metrics + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cause = args[:cause] if args.key?(:cause) + @metrics = args[:metrics] if args.key?(:metrics) + end + end + + # Carries information about a disk that can be attached to a VM. + class Disk + include Google::Apis::Core::Hashable + + # A user supplied name for the disk, used when mounting it into actions. + # The name must contain only upper and lowercase alphanumeric characters and + # hypens and cannot start with a hypen. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The size, in gigabytes, of the disk to attach. Note that this value is + # not configurable for some disk types such as local-ssd. If the size is + # not specified, a size of at least 500gb is used to ensure reasonable I/O + # performance. + # Corresponds to the JSON property `sizeGb` + # @return [Fixnum] + attr_accessor :size_gb + + # An optional image to put on the disk before attaching it to the VM. + # Corresponds to the JSON property `sourceImage` + # @return [String] + attr_accessor :source_image + + # The Compute Engine disk type. If unspecified, 'standard-pd' is used. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @size_gb = args[:size_gb] if args.key?(:size_gb) + @source_image = args[:source_image] if args.key?(:source_image) + @type = args[:type] if args.key?(:type) + 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 + + # Event carries information about events that occur during pipeline execution. + class Event + include Google::Apis::Core::Hashable + + # A human readable description of the event. Note that these strings may + # change at any time without notice. Any application logic must use the + # information in the details field. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Machine readable details about the event. + # Corresponds to the JSON property `details` + # @return [Hash] + attr_accessor :details + + # The time that the event occurred. + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @details = args[:details] if args.key?(:details) + @timestamp = args[:timestamp] if args.key?(:timestamp) + end + end + + # This event is generated when the execution of a pipeline has failed. Note + # that other events may continue to occur after this event. + class FailedEvent + include Google::Apis::Core::Hashable + + # The human readable description of the cause of the failure. + # Corresponds to the JSON property `cause` + # @return [String] + attr_accessor :cause + + # The Google standard error code that best describes this failure. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cause = args[:cause] if args.key?(:cause) + @code = args[:code] if args.key?(:code) + end + end + + # The read group set import response. + class ImportReadGroupSetsResponse + include Google::Apis::Core::Hashable + + # IDs of the read group sets that were created. + # Corresponds to the JSON property `readGroupSetIds` + # @return [Array] + attr_accessor :read_group_set_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @read_group_set_ids = args[:read_group_set_ids] if args.key?(:read_group_set_ids) + end + end + + # The variant data import response. + class ImportVariantsResponse + include Google::Apis::Core::Hashable + + # IDs of the call sets created during the import. + # Corresponds to the JSON property `callSetIds` + # @return [Array] + attr_accessor :call_set_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @call_set_ids = args[:call_set_ids] if args.key?(:call_set_ids) + end + end + + # The response message for Operations.ListOperations. + class ListOperationsResponse + include Google::Apis::Core::Hashable + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of operations that matches the specified filter in the request. + # Corresponds to the JSON property `operations` + # @return [Array] + attr_accessor :operations + + 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) + @operations = args[:operations] if args.key?(:operations) + end + end + + # Metadata carries information about the pipeline execution that is returned + # in the long running operation's metadata field. + class Metadata + include Google::Apis::Core::Hashable + + # The time that the operation was created by the API. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The list of events that have happened so far during the execution of this + # operation. + # Corresponds to the JSON property `events` + # @return [Array] + attr_accessor :events + + # The user defined labels associated with this operation. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The Pipeline object describes a series of actions to execute, expressed as + # docker containers. + # Corresponds to the JSON property `pipeline` + # @return [Google::Apis::GenomicsV2alpha1::Pipeline] + attr_accessor :pipeline + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @events = args[:events] if args.key?(:events) + @labels = args[:labels] if args.key?(:labels) + @pipeline = args[:pipeline] if args.key?(:pipeline) + end + end + + # Mount carries information about a particular disk mount inside a container. + class Mount + include Google::Apis::Core::Hashable + + # The name of the disk to mount, as specified in the resources section. + # Corresponds to the JSON property `disk` + # @return [String] + attr_accessor :disk + + # The path to mount the disk at inside the container. + # Corresponds to the JSON property `path` + # @return [String] + attr_accessor :path + + # If true, the disk is mounted read only inside the container. + # Corresponds to the JSON property `readOnly` + # @return [Boolean] + attr_accessor :read_only + alias_method :read_only?, :read_only + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disk = args[:disk] if args.key?(:disk) + @path = args[:path] if args.key?(:path) + @read_only = args[:read_only] if args.key?(:read_only) + end + end + + # VM networking options. + class Network + include Google::Apis::Core::Hashable + + # The network name to attach the VM's network interface to. If unspecified, + # the global default network is used. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # If set to true, do not attach a public IP address to the VM. Note that + # without an public IP address, additional configuration is required to + # allow the VM to access Google services. + # See https://cloud.google.com/vpc/docs/configure-private-google-access + # for more information. + # Corresponds to the JSON property `usePrivateAddress` + # @return [Boolean] + attr_accessor :use_private_address + alias_method :use_private_address?, :use_private_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @use_private_address = args[:use_private_address] if args.key?(:use_private_address) + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class Operation + include Google::Apis::Core::Hashable + + # If the value is `false`, it means the operation is still in progress. + # If `true`, the operation is completed, and either `error` or `response` is + # available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::GenomicsV2alpha1::Status] + attr_accessor :error + + # An OperationMetadata object. This will always be returned with the Operation. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The server-assigned name, which is only unique within the same service that + # originally returns it. For example: `operations/CJHU7Oi_ChDrveSpBRjfuL- + # qzoWAgEw` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. If + # importing Variants, an ImportVariantsResponse is returned. For pipelines and + # exports, an Empty response is returned. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @response = args[:response] if args.key?(:response) + end + end + + # An event that occurred during an Operation. + class OperationEvent + include Google::Apis::Core::Hashable + + # Required description of event. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Optional time of when event finished. An event can have a start time and no + # finish time. If an event has a finish time, there must be a start time. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Optional time of when event started. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @end_time = args[:end_time] if args.key?(:end_time) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # Metadata describing an Operation. + class OperationMetadata + include Google::Apis::Core::Hashable + + # This field is deprecated. Use `labels` instead. Optionally provided by the + # caller when submitting the request that creates the operation. + # Corresponds to the JSON property `clientId` + # @return [String] + attr_accessor :client_id + + # The time at which the job was submitted to the Genomics service. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The time at which the job stopped running. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Optional event messages that were generated during the job's execution. + # This also contains any warnings that were generated during import + # or export. + # Corresponds to the JSON property `events` + # @return [Array] + attr_accessor :events + + # Optionally provided by the caller when submitting the request that creates + # the operation. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The Google Cloud Project in which the job is scoped. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # The original request that started the operation. Note that this will be in + # current version of the API. If the operation was started with v1beta2 API + # and a GetOperation is performed on v1 API, a v1 request will be returned. + # Corresponds to the JSON property `request` + # @return [Hash] + attr_accessor :request + + # Runtime metadata on this Operation. + # Corresponds to the JSON property `runtimeMetadata` + # @return [Hash] + attr_accessor :runtime_metadata + + # The time at which the job began to run. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @client_id = args[:client_id] if args.key?(:client_id) + @create_time = args[:create_time] if args.key?(:create_time) + @end_time = args[:end_time] if args.key?(:end_time) + @events = args[:events] if args.key?(:events) + @labels = args[:labels] if args.key?(:labels) + @project_id = args[:project_id] if args.key?(:project_id) + @request = args[:request] if args.key?(:request) + @runtime_metadata = args[:runtime_metadata] if args.key?(:runtime_metadata) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # The Pipeline object describes a series of actions to execute, expressed as + # docker containers. + class Pipeline + include Google::Apis::Core::Hashable + + # The list of actions to execute, in the order they are specified. + # Corresponds to the JSON property `actions` + # @return [Array] + attr_accessor :actions + + # The environment to pass into every action. Each action may also specify + # additional environment variables but cannot delete an entry from this map + # (though they may overwrite it with a different value). + # Corresponds to the JSON property `environment` + # @return [Hash] + attr_accessor :environment + + # The system resources for the pipeline run. + # At least one zone or region must be specified or the pipeline run will fail. + # Corresponds to the JSON property `resources` + # @return [Google::Apis::GenomicsV2alpha1::Resources] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @actions = args[:actions] if args.key?(:actions) + @environment = args[:environment] if args.key?(:environment) + @resources = args[:resources] if args.key?(:resources) + end + end + + # This event is generated when the worker starts pulling an image. + class PullStartedEvent + include Google::Apis::Core::Hashable + + # The URI of the image that was pulled. + # Corresponds to the JSON property `imageUri` + # @return [String] + attr_accessor :image_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image_uri = args[:image_uri] if args.key?(:image_uri) + end + end + + # This event is generated when the worker stops pulling an image. + class PullStoppedEvent + include Google::Apis::Core::Hashable + + # The URI of the image that was pulled. + # Corresponds to the JSON property `imageUri` + # @return [String] + attr_accessor :image_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image_uri = args[:image_uri] if args.key?(:image_uri) + end + end + + # The system resources for the pipeline run. + # At least one zone or region must be specified or the pipeline run will fail. + class Resources + include Google::Apis::Core::Hashable + + # The customer project ID to allocate resources in. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # The list of regions allowed for VM allocation. If set, the zones field + # must not be set. + # Corresponds to the JSON property `regions` + # @return [Array] + attr_accessor :regions + + # Carries information about a Compute Engine VM resource. + # Corresponds to the JSON property `virtualMachine` + # @return [Google::Apis::GenomicsV2alpha1::VirtualMachine] + attr_accessor :virtual_machine + + # The list of zones allowed for VM allocation. If set, the regions field + # must not be set. + # Corresponds to the JSON property `zones` + # @return [Array] + attr_accessor :zones + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @project_id = args[:project_id] if args.key?(:project_id) + @regions = args[:regions] if args.key?(:regions) + @virtual_machine = args[:virtual_machine] if args.key?(:virtual_machine) + @zones = args[:zones] if args.key?(:zones) + end + end + + # The arguments to the RunPipeline method. The requesting user must have + # the iam.serviceAccounts.actAs permission for the Google Genomics Service + # Account or the request will fail. + class RunPipelineRequest + include Google::Apis::Core::Hashable + + # User defined labels to associate with the returned operation. These + # labels are not propogated to any Google Cloud Platform resources used by + # the operation, and may be modified at any time. + # To associate labels with resources created while executing the operation, + # see the appropriate resource message (i.e., VirtualMachine). + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The Pipeline object describes a series of actions to execute, expressed as + # docker containers. + # Corresponds to the JSON property `pipeline` + # @return [Google::Apis::GenomicsV2alpha1::Pipeline] + attr_accessor :pipeline + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @labels = args[:labels] if args.key?(:labels) + @pipeline = args[:pipeline] if args.key?(:pipeline) + end + end + + # Runtime metadata that will be populated in the + # runtimeMetadata + # field of the Operation associated with a RunPipeline execution. + class RuntimeMetadata + include Google::Apis::Core::Hashable + + # Describes a Compute Engine resource that is being managed by a running + # pipeline. + # Corresponds to the JSON property `computeEngine` + # @return [Google::Apis::GenomicsV2alpha1::ComputeEngine] + attr_accessor :compute_engine + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @compute_engine = args[:compute_engine] if args.key?(:compute_engine) + end + end + + # Carries information about a Google Cloud Service Account. + class ServiceAccount + include Google::Apis::Core::Hashable + + # Email address of the service account. If not specified, the default + # compute engine service account for the project will be used. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # List of scopes to be enabled for this service account on the VM, in + # addition to the Google Genomics API scope. + # Corresponds to the JSON property `scopes` + # @return [Array] + attr_accessor :scopes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @email = args[:email] if args.key?(:email) + @scopes = args[:scopes] if args.key?(:scopes) + end + end + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # google.rpc.Status.details field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + + # This event is generated when the execution of a container results in a + # non-zero exit status that was not otherwise ignored. Execution will + # continue, but only actions that are flagged as ALWAYS_RUN will be executed: + # other actions will be skipped. + class UnexpectedExitStatusEvent + include Google::Apis::Core::Hashable + + # The numeric ID of the action that started the container. + # Corresponds to the JSON property `actionId` + # @return [Fixnum] + attr_accessor :action_id + + # The exit status of the container. + # Corresponds to the JSON property `exitStatus` + # @return [Fixnum] + attr_accessor :exit_status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action_id = args[:action_id] if args.key?(:action_id) + @exit_status = args[:exit_status] if args.key?(:exit_status) + end + end + + # Carries information about a Compute Engine VM resource. + class VirtualMachine + include Google::Apis::Core::Hashable + + # The size of the boot disk, in gigabytes. The boot disk must be large + # enough to accommodate all of the docker images from each action in the + # pipeline at the same time. If not specified, a small but reasonable + # default value is used. + # Corresponds to the JSON property `bootDiskSizeGb` + # @return [Fixnum] + attr_accessor :boot_disk_size_gb + + # The host operating system image to use. + # At present, only Container Optimized OS images may be used. + # The default value is "projects/cos-cloud/global/images/family/cos-stable" + # which selects the latest stable release of Container Optimized OS. + # This option is provided to allow testing against the beta release of the + # operating system to ensure that the new version does not interact + # negatively with production pipelines. + # To test a pipeline against the beta release of COS, use the value + # "projects/cos-cloud/global/images/family/cos-beta". + # Corresponds to the JSON property `bootImage` + # @return [String] + attr_accessor :boot_image + + # The CPU platform to request. An instance based on a newer platform may be + # allocated but never one with less capabilities. The value of this + # parameter must be a valid Compute Engine CPU platform name (such as "Intel + # Skylake"). This parameter is only useful for carefully optimized work + # loads where the CPU platform has a significant impact. + # For more information about the effect of this parameter, please visit + # https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. + # Corresponds to the JSON property `cpuPlatform` + # @return [String] + attr_accessor :cpu_platform + + # The list of disks to create and attach to the VM. + # Corresponds to the JSON property `disks` + # @return [Array] + attr_accessor :disks + + # Optional set of labels to apply to the VM and any attached disk resources. + # These labels must adhere to the name and value restrictions on VM labels + # imposed by Compute Engine. + # These labels are applied at creation time to the VM and are applied on a + # best-effort basis to attached disk resources shortly after VM creation. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The machine type of the virtual machine to create. Must be the short name + # of a standard machine type (such as "n1-standard-1") or a custom machine + # type (such as "custom-1-4096"). + # Corresponds to the JSON property `machineType` + # @return [String] + attr_accessor :machine_type + + # VM networking options. + # Corresponds to the JSON property `network` + # @return [Google::Apis::GenomicsV2alpha1::Network] + attr_accessor :network + + # If true, allocate a preemptible VM. + # Corresponds to the JSON property `preemptible` + # @return [Boolean] + attr_accessor :preemptible + alias_method :preemptible?, :preemptible + + # Carries information about a Google Cloud Service Account. + # Corresponds to the JSON property `serviceAccount` + # @return [Google::Apis::GenomicsV2alpha1::ServiceAccount] + attr_accessor :service_account + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb) + @boot_image = args[:boot_image] if args.key?(:boot_image) + @cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform) + @disks = args[:disks] if args.key?(:disks) + @labels = args[:labels] if args.key?(:labels) + @machine_type = args[:machine_type] if args.key?(:machine_type) + @network = args[:network] if args.key?(:network) + @preemptible = args[:preemptible] if args.key?(:preemptible) + @service_account = args[:service_account] if args.key?(:service_account) + end + end + + # This event is generated once a worker VM has been assigned to run the + # pipeline. + class WorkerAssignedEvent + include Google::Apis::Core::Hashable + + # The worker's instance name. + # Corresponds to the JSON property `instance` + # @return [String] + attr_accessor :instance + + # The zone the worker is running in. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instance = args[:instance] if args.key?(:instance) + @zone = args[:zone] if args.key?(:zone) + end + end + + # This event is generated when the worker VM that was assigned to the pipeline + # has been released (i.e., deleted). + class WorkerReleasedEvent + include Google::Apis::Core::Hashable + + # The worker's instance name. + # Corresponds to the JSON property `instance` + # @return [String] + attr_accessor :instance + + # The zone the worker was running in. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instance = args[:instance] if args.key?(:instance) + @zone = args[:zone] if args.key?(:zone) + end + end + end + end +end diff --git a/generated/google/apis/genomics_v2alpha1/representations.rb b/generated/google/apis/genomics_v2alpha1/representations.rb new file mode 100644 index 000000000..7740160d5 --- /dev/null +++ b/generated/google/apis/genomics_v2alpha1/representations.rb @@ -0,0 +1,535 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module GenomicsV2alpha1 + + class Action + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CancelOperationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CheckInRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CheckInResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ComputeEngine + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ContainerStartedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ContainerStoppedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DelayedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Disk + 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 Event + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FailedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ImportReadGroupSetsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ImportVariantsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Metadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Mount + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Network + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OperationEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Pipeline + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PullStartedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PullStoppedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Resources + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RunPipelineRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RuntimeMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ServiceAccount + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UnexpectedExitStatusEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VirtualMachine + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WorkerAssignedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WorkerReleasedEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Action + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :commands, as: 'commands' + property :entrypoint, as: 'entrypoint' + hash :environment, as: 'environment' + collection :flags, as: 'flags' + property :image_uri, as: 'imageUri' + hash :labels, as: 'labels' + collection :mounts, as: 'mounts', class: Google::Apis::GenomicsV2alpha1::Mount, decorator: Google::Apis::GenomicsV2alpha1::Mount::Representation + + property :name, as: 'name' + property :pid_namespace, as: 'pidNamespace' + hash :port_mappings, as: 'portMappings' + end + end + + class CancelOperationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class CheckInRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :deadline_expired, as: 'deadlineExpired', class: Google::Apis::GenomicsV2alpha1::Empty, decorator: Google::Apis::GenomicsV2alpha1::Empty::Representation + + hash :event, as: 'event' + property :result, as: 'result', class: Google::Apis::GenomicsV2alpha1::Status, decorator: Google::Apis::GenomicsV2alpha1::Status::Representation + + end + end + + class CheckInResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :deadline, as: 'deadline' + hash :metadata, as: 'metadata' + end + end + + class ComputeEngine + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :disk_names, as: 'diskNames' + property :instance_name, as: 'instanceName' + property :machine_type, as: 'machineType' + property :zone, as: 'zone' + end + end + + class ContainerStartedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action_id, as: 'actionId' + property :ip_address, as: 'ipAddress' + hash :port_mappings, as: 'portMappings' + end + end + + class ContainerStoppedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action_id, as: 'actionId' + property :exit_status, as: 'exitStatus' + end + end + + class DelayedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cause, as: 'cause' + collection :metrics, as: 'metrics' + end + end + + class Disk + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :size_gb, as: 'sizeGb' + property :source_image, as: 'sourceImage' + property :type, as: 'type' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Event + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + hash :details, as: 'details' + property :timestamp, as: 'timestamp' + end + end + + class FailedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cause, as: 'cause' + property :code, as: 'code' + end + end + + class ImportReadGroupSetsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :read_group_set_ids, as: 'readGroupSetIds' + end + end + + class ImportVariantsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :call_set_ids, as: 'callSetIds' + end + end + + class ListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :operations, as: 'operations', class: Google::Apis::GenomicsV2alpha1::Operation, decorator: Google::Apis::GenomicsV2alpha1::Operation::Representation + + end + end + + class Metadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + collection :events, as: 'events', class: Google::Apis::GenomicsV2alpha1::Event, decorator: Google::Apis::GenomicsV2alpha1::Event::Representation + + hash :labels, as: 'labels' + property :pipeline, as: 'pipeline', class: Google::Apis::GenomicsV2alpha1::Pipeline, decorator: Google::Apis::GenomicsV2alpha1::Pipeline::Representation + + end + end + + class Mount + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disk, as: 'disk' + property :path, as: 'path' + property :read_only, as: 'readOnly' + end + end + + class Network + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :use_private_address, as: 'usePrivateAddress' + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::GenomicsV2alpha1::Status, decorator: Google::Apis::GenomicsV2alpha1::Status::Representation + + hash :metadata, as: 'metadata' + property :name, as: 'name' + hash :response, as: 'response' + end + end + + class OperationEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :end_time, as: 'endTime' + property :start_time, as: 'startTime' + end + end + + class OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :client_id, as: 'clientId' + property :create_time, as: 'createTime' + property :end_time, as: 'endTime' + collection :events, as: 'events', class: Google::Apis::GenomicsV2alpha1::OperationEvent, decorator: Google::Apis::GenomicsV2alpha1::OperationEvent::Representation + + hash :labels, as: 'labels' + property :project_id, as: 'projectId' + hash :request, as: 'request' + hash :runtime_metadata, as: 'runtimeMetadata' + property :start_time, as: 'startTime' + end + end + + class Pipeline + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :actions, as: 'actions', class: Google::Apis::GenomicsV2alpha1::Action, decorator: Google::Apis::GenomicsV2alpha1::Action::Representation + + hash :environment, as: 'environment' + property :resources, as: 'resources', class: Google::Apis::GenomicsV2alpha1::Resources, decorator: Google::Apis::GenomicsV2alpha1::Resources::Representation + + end + end + + class PullStartedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image_uri, as: 'imageUri' + end + end + + class PullStoppedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image_uri, as: 'imageUri' + end + end + + class Resources + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :project_id, as: 'projectId' + collection :regions, as: 'regions' + property :virtual_machine, as: 'virtualMachine', class: Google::Apis::GenomicsV2alpha1::VirtualMachine, decorator: Google::Apis::GenomicsV2alpha1::VirtualMachine::Representation + + collection :zones, as: 'zones' + end + end + + class RunPipelineRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :labels, as: 'labels' + property :pipeline, as: 'pipeline', class: Google::Apis::GenomicsV2alpha1::Pipeline, decorator: Google::Apis::GenomicsV2alpha1::Pipeline::Representation + + end + end + + class RuntimeMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :compute_engine, as: 'computeEngine', class: Google::Apis::GenomicsV2alpha1::ComputeEngine, decorator: Google::Apis::GenomicsV2alpha1::ComputeEngine::Representation + + end + end + + class ServiceAccount + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :email, as: 'email' + collection :scopes, as: 'scopes' + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + + class UnexpectedExitStatusEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action_id, as: 'actionId' + property :exit_status, as: 'exitStatus' + end + end + + class VirtualMachine + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :boot_disk_size_gb, as: 'bootDiskSizeGb' + property :boot_image, as: 'bootImage' + property :cpu_platform, as: 'cpuPlatform' + collection :disks, as: 'disks', class: Google::Apis::GenomicsV2alpha1::Disk, decorator: Google::Apis::GenomicsV2alpha1::Disk::Representation + + hash :labels, as: 'labels' + property :machine_type, as: 'machineType' + property :network, as: 'network', class: Google::Apis::GenomicsV2alpha1::Network, decorator: Google::Apis::GenomicsV2alpha1::Network::Representation + + property :preemptible, as: 'preemptible' + property :service_account, as: 'serviceAccount', class: Google::Apis::GenomicsV2alpha1::ServiceAccount, decorator: Google::Apis::GenomicsV2alpha1::ServiceAccount::Representation + + end + end + + class WorkerAssignedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :instance, as: 'instance' + property :zone, as: 'zone' + end + end + + class WorkerReleasedEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :instance, as: 'instance' + property :zone, as: 'zone' + end + end + end + end +end diff --git a/generated/google/apis/genomics_v2alpha1/service.rb b/generated/google/apis/genomics_v2alpha1/service.rb new file mode 100644 index 000000000..0eee77fba --- /dev/null +++ b/generated/google/apis/genomics_v2alpha1/service.rb @@ -0,0 +1,246 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module GenomicsV2alpha1 + # Genomics API + # + # Upload, process, query, and search Genomics data in the cloud. + # + # @example + # require 'google/apis/genomics_v2alpha1' + # + # Genomics = Google::Apis::GenomicsV2alpha1 # Alias the module + # service = Genomics::GenomicsService.new + # + # @see https://cloud.google.com/genomics + class GenomicsService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # 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. + attr_accessor :quota_user + + def initialize + super('https://genomics.googleapis.com/', '') + @batch_path = 'batch' + end + + # Runs a pipeline. + # @param [Google::Apis::GenomicsV2alpha1::RunPipelineRequest] run_pipeline_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::GenomicsV2alpha1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV2alpha1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def run_pipeline(run_pipeline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2alpha1/pipelines:run', options) + command.request_representation = Google::Apis::GenomicsV2alpha1::RunPipelineRequest::Representation + command.request_object = run_pipeline_request_object + command.response_representation = Google::Apis::GenomicsV2alpha1::Operation::Representation + command.response_class = Google::Apis::GenomicsV2alpha1::Operation + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. Clients + # may use Operations.GetOperation or Operations.ListOperations to check whether + # the cancellation succeeded or the operation completed despite cancellation. + # @param [String] name + # The name of the operation resource to be cancelled. + # @param [Google::Apis::GenomicsV2alpha1::CancelOperationRequest] cancel_operation_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::GenomicsV2alpha1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV2alpha1::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 cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2alpha1/{+name}:cancel', options) + command.request_representation = Google::Apis::GenomicsV2alpha1::CancelOperationRequest::Representation + command.request_object = cancel_operation_request_object + command.response_representation = Google::Apis::GenomicsV2alpha1::Empty::Representation + command.response_class = Google::Apis::GenomicsV2alpha1::Empty + command.params['name'] = name unless name.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 latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # @param [String] name + # The name of the operation resource. + # @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::GenomicsV2alpha1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV2alpha1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2alpha1/{+name}', options) + command.response_representation = Google::Apis::GenomicsV2alpha1::Operation::Representation + command.response_class = Google::Apis::GenomicsV2alpha1::Operation + command.params['name'] = name unless name.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 operations that match the specified filter in the request. + # @param [String] name + # The name of the operation's parent resource. + # @param [String] filter + # A string for filtering Operations. + # The following filter fields are supported: + # * projectId: Required. Corresponds to + # OperationMetadata.projectId. + # * createTime: The time this job was created, in seconds from the + # [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `<=` + # operators. + # * status: Can be `RUNNING`, `SUCCESS`, `FAILURE`, or `CANCELED`. Only + # one status may be specified. + # * labels.key where key is a label key. + # Examples: + # * `projectId = my-project AND createTime >= 1432140000` + # * `projectId = my-project AND createTime >= 1432140000 AND createTime <= + # 1432150000 AND status = RUNNING` + # * `projectId = my-project AND labels.color = *` + # * `projectId = my-project AND labels.color = red` + # @param [Fixnum] page_size + # The maximum number of results to return. If unspecified, defaults to + # 256. The maximum value is 2048. + # @param [String] page_token + # The standard list page token. + # @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::GenomicsV2alpha1::ListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV2alpha1::ListOperationsResponse] + # + # @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_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2alpha1/{+name}', options) + command.response_representation = Google::Apis::GenomicsV2alpha1::ListOperationsResponse::Representation + command.response_class = Google::Apis::GenomicsV2alpha1::ListOperationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.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 + + # The worker uses this method to retrieve the assigned operation and + # provide periodic status updates. + # @param [String] id + # The worker id, assigned when it was created. + # @param [Google::Apis::GenomicsV2alpha1::CheckInRequest] check_in_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::GenomicsV2alpha1::CheckInResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV2alpha1::CheckInResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def check_worker_in(id, check_in_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2alpha1/workers/{id}:checkIn', options) + command.request_representation = Google::Apis::GenomicsV2alpha1::CheckInRequest::Representation + command.request_object = check_in_request_object + command.response_representation = Google::Apis::GenomicsV2alpha1::CheckInResponse::Representation + command.response_class = Google::Apis::GenomicsV2alpha1::CheckInResponse + command.params['id'] = id unless 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 + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/people_v1.rb b/generated/google/apis/people_v1.rb index f362a0a1c..8d75a17e1 100644 --- a/generated/google/apis/people_v1.rb +++ b/generated/google/apis/people_v1.rb @@ -18,14 +18,14 @@ require 'google/apis/people_v1/representations.rb' module Google module Apis - # Google People API + # People API # # Provides access to information about profiles and contacts. # # @see https://developers.google.com/people/ module PeopleV1 VERSION = 'V1' - REVISION = '20180116' + REVISION = '20180217' # Manage your contacts AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' diff --git a/generated/google/apis/people_v1/service.rb b/generated/google/apis/people_v1/service.rb index 23251f467..57fc834fd 100644 --- a/generated/google/apis/people_v1/service.rb +++ b/generated/google/apis/people_v1/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module PeopleV1 - # Google People API + # People API # # Provides access to information about profiles and contacts. # diff --git a/generated/google/apis/slides_v1.rb b/generated/google/apis/slides_v1.rb index f2be942fa..060516388 100644 --- a/generated/google/apis/slides_v1.rb +++ b/generated/google/apis/slides_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/slides/ module SlidesV1 VERSION = 'V1' - REVISION = '20180208' + REVISION = '20180216' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/slides_v1/classes.rb b/generated/google/apis/slides_v1/classes.rb index 87a08fdc5..a08faac11 100644 --- a/generated/google/apis/slides_v1/classes.rb +++ b/generated/google/apis/slides_v1/classes.rb @@ -2770,6 +2770,43 @@ module Google end end + # Replaces an existing image with a new image. + # Replacing an image removes some image effects from the existing image. + class ReplaceImageRequest + include Google::Apis::Core::Hashable + + # The ID of the existing image that will be replaced. + # Corresponds to the JSON property `imageObjectId` + # @return [String] + attr_accessor :image_object_id + + # The replacement method. + # Corresponds to the JSON property `imageReplaceMethod` + # @return [String] + attr_accessor :image_replace_method + + # The URL of the new image. + # The image is fetched once at insertion time and a copy is stored for + # display inside the presentation. Images must be less than 50MB in size, + # cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF + # format. + # The provided URL can be at most 2 kB in length. + # 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) + @image_object_id = args[:image_object_id] if args.key?(:image_object_id) + @image_replace_method = args[:image_replace_method] if args.key?(:image_replace_method) + @url = args[:url] if args.key?(:url) + end + end + # A single kind of update to apply to a presentation. class Request include Google::Apis::Core::Hashable @@ -2916,6 +2953,12 @@ module Google # @return [Google::Apis::SlidesV1::ReplaceAllTextRequest] attr_accessor :replace_all_text + # Replaces an existing image with a new image. + # Replacing an image removes some image effects from the existing image. + # Corresponds to the JSON property `replaceImage` + # @return [Google::Apis::SlidesV1::ReplaceImageRequest] + attr_accessor :replace_image + # Ungroups objects, such as groups. # Corresponds to the JSON property `ungroupObjects` # @return [Google::Apis::SlidesV1::UngroupObjectsRequest] @@ -3031,6 +3074,7 @@ module Google @replace_all_shapes_with_image = args[:replace_all_shapes_with_image] if args.key?(:replace_all_shapes_with_image) @replace_all_shapes_with_sheets_chart = args[:replace_all_shapes_with_sheets_chart] if args.key?(:replace_all_shapes_with_sheets_chart) @replace_all_text = args[:replace_all_text] if args.key?(:replace_all_text) + @replace_image = args[:replace_image] if args.key?(:replace_image) @ungroup_objects = args[:ungroup_objects] if args.key?(:ungroup_objects) @unmerge_table_cells = args[:unmerge_table_cells] if args.key?(:unmerge_table_cells) @update_image_properties = args[:update_image_properties] if args.key?(:update_image_properties) @@ -5028,6 +5072,28 @@ module Google class VideoProperties include Google::Apis::Core::Hashable + # Whether to enable video autoplay when the page is displayed in present + # mode. Defaults to false. + # Corresponds to the JSON property `autoPlay` + # @return [Boolean] + attr_accessor :auto_play + alias_method :auto_play?, :auto_play + + # The time at which to end playback, measured in seconds from the beginning + # of the video. + # If set, the end time should be after the start time. + # If not set or if you set this to a value that exceeds the video duration, + # the video will be played until its end. + # Corresponds to the JSON property `end` + # @return [Fixnum] + attr_accessor :end + + # Whether to mute the audio during video playback. Defaults to false. + # Corresponds to the JSON property `mute` + # @return [Boolean] + attr_accessor :mute + alias_method :mute?, :mute + # The outline of a PageElement. # If these fields are unset, they may be inherited from a parent placeholder # if it exists. If there is no parent, the fields will default to the value @@ -5037,13 +5103,27 @@ module Google # @return [Google::Apis::SlidesV1::Outline] attr_accessor :outline + # The time at which to start playback, measured in seconds from the beginning + # of the video. + # If set, the start time should be before the end time. + # If you set this to a value that exceeds the video's length in seconds, the + # video will be played from the last second. + # If not set, the video will be played from the beginning. + # Corresponds to the JSON property `start` + # @return [Fixnum] + attr_accessor :start + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @auto_play = args[:auto_play] if args.key?(:auto_play) + @end = args[:end] if args.key?(:end) + @mute = args[:mute] if args.key?(:mute) @outline = args[:outline] if args.key?(:outline) + @start = args[:start] if args.key?(:start) end end diff --git a/generated/google/apis/slides_v1/representations.rb b/generated/google/apis/slides_v1/representations.rb index acb955d88..432d32c44 100644 --- a/generated/google/apis/slides_v1/representations.rb +++ b/generated/google/apis/slides_v1/representations.rb @@ -460,6 +460,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ReplaceImageRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Request class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1527,6 +1533,15 @@ module Google end end + class ReplaceImageRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image_object_id, as: 'imageObjectId' + property :image_replace_method, as: 'imageReplaceMethod' + property :url, as: 'url' + end + end + class Request # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1576,6 +1591,8 @@ module Google property :replace_all_text, as: 'replaceAllText', class: Google::Apis::SlidesV1::ReplaceAllTextRequest, decorator: Google::Apis::SlidesV1::ReplaceAllTextRequest::Representation + property :replace_image, as: 'replaceImage', class: Google::Apis::SlidesV1::ReplaceImageRequest, decorator: Google::Apis::SlidesV1::ReplaceImageRequest::Representation + property :ungroup_objects, as: 'ungroupObjects', class: Google::Apis::SlidesV1::UngroupObjectsRequest, decorator: Google::Apis::SlidesV1::UngroupObjectsRequest::Representation property :unmerge_table_cells, as: 'unmergeTableCells', class: Google::Apis::SlidesV1::UnmergeTableCellsRequest, decorator: Google::Apis::SlidesV1::UnmergeTableCellsRequest::Representation @@ -2156,8 +2173,12 @@ module Google class VideoProperties # @private class Representation < Google::Apis::Core::JsonRepresentation + property :auto_play, as: 'autoPlay' + property :end, as: 'end' + property :mute, as: 'mute' property :outline, as: 'outline', class: Google::Apis::SlidesV1::Outline, decorator: Google::Apis::SlidesV1::Outline::Representation + property :start, as: 'start' end end