google-api-client 0.25.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/{CONTRIBUTING.md → .github/CONTRIBUTING.md} +0 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +21 -0
- data/.github/ISSUE_TEMPLATE/support_request.md +7 -0
- data/.kokoro/build.bat +8 -0
- data/.kokoro/build.sh +36 -0
- data/.kokoro/common.cfg +22 -0
- data/.kokoro/continuous/common.cfg +20 -0
- data/.kokoro/continuous/linux.cfg +15 -0
- data/.kokoro/continuous/osx.cfg +3 -0
- data/.kokoro/continuous/windows.cfg +3 -0
- data/.kokoro/osx.sh +35 -0
- data/.kokoro/presubmit/common.cfg +19 -0
- data/.kokoro/presubmit/linux.cfg +14 -0
- data/.kokoro/presubmit/osx.cfg +3 -0
- data/.kokoro/presubmit/windows.cfg +3 -0
- data/.kokoro/trampoline.sh +24 -0
- data/.kokoro/windows.sh +32 -0
- data/CHANGELOG.md +83 -0
- data/Gemfile +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +3 -1
- data/generated/google/apis/alertcenter_v1beta1.rb +5 -3
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +110 -101
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +13 -0
- data/generated/google/apis/alertcenter_v1beta1/service.rb +83 -76
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +7 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +2 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +129 -44
- data/generated/google/apis/androidenterprise_v1/representations.rb +48 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +218 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +8 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +87 -29
- data/generated/google/apis/bigquery_v2/representations.rb +21 -0
- data/generated/google/apis/bigquery_v2/service.rb +7 -9
- data/generated/google/apis/calendar_v3.rb +2 -2
- data/generated/google/apis/calendar_v3/classes.rb +14 -6
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/service.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +14 -10
- data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +2 -2
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +2 -3
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +2 -3
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +127 -0
- data/generated/google/apis/cloudiot_v1/representations.rb +70 -0
- data/generated/google/apis/cloudiot_v1/service.rb +172 -2
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/service.rb +107 -0
- data/generated/google/apis/{cloudiot_v1beta1.rb → cloudscheduler_v1beta1.rb} +8 -12
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +882 -0
- data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +264 -0
- data/generated/google/apis/cloudscheduler_v1beta1/service.rb +445 -0
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +79 -1
- data/generated/google/apis/cloudsearch_v1/representations.rb +44 -0
- data/generated/google/apis/cloudsearch_v1/service.rb +88 -3
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +9 -0
- data/generated/google/apis/composer_v1/representations.rb +1 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +938 -117
- data/generated/google/apis/compute_alpha/representations.rb +310 -2
- data/generated/google/apis/compute_alpha/service.rb +1203 -245
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1175 -219
- data/generated/google/apis/compute_beta/representations.rb +375 -2
- data/generated/google/apis/compute_beta/service.rb +907 -139
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1485 -143
- data/generated/google/apis/compute_v1/representations.rb +503 -0
- data/generated/google/apis/compute_v1/service.rb +1375 -85
- data/generated/google/apis/container_v1.rb +3 -3
- data/generated/google/apis/container_v1/classes.rb +99 -6
- data/generated/google/apis/container_v1/representations.rb +39 -0
- data/generated/google/apis/container_v1/service.rb +2 -2
- data/generated/google/apis/container_v1beta1.rb +3 -3
- data/generated/google/apis/container_v1beta1/classes.rb +162 -9
- data/generated/google/apis/container_v1beta1/representations.rb +80 -0
- data/generated/google/apis/container_v1beta1/service.rb +3 -3
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +40 -32
- data/generated/google/apis/content_v2/representations.rb +0 -1
- data/generated/google/apis/content_v2/service.rb +3 -3
- data/generated/google/apis/content_v2_1.rb +35 -0
- data/generated/google/apis/content_v2_1/classes.rb +9104 -0
- data/generated/google/apis/content_v2_1/representations.rb +3967 -0
- data/generated/google/apis/content_v2_1/service.rb +3463 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +82 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +33 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +97 -6
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +15 -1
- data/generated/google/apis/dataproc_v1/representations.rb +2 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +125 -1
- data/generated/google/apis/dataproc_v1beta2/representations.rb +41 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +13 -6
- data/generated/google/apis/dialogflow_v2/service.rb +2 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +26 -6
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +12 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +261 -12
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +4 -4
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +326 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +149 -0
- data/generated/google/apis/dns_v1beta2/service.rb +246 -0
- data/generated/google/apis/drive_v2.rb +3 -3
- data/generated/google/apis/drive_v3.rb +3 -3
- data/generated/google/apis/driveactivity_v2.rb +37 -0
- data/generated/google/apis/driveactivity_v2/classes.rb +1388 -0
- data/generated/google/apis/driveactivity_v2/representations.rb +799 -0
- data/generated/google/apis/driveactivity_v2/service.rb +89 -0
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +8 -1
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +1 -0
- data/generated/google/apis/firebasehosting_v1beta1.rb +3 -2
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +43 -17
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +13 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +74 -1
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +2225 -520
- data/generated/google/apis/firestore_v1/representations.rb +800 -33
- data/generated/google/apis/firestore_v1/service.rb +526 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -2
- data/generated/google/apis/fitness_v1/service.rb +7 -3
- data/generated/google/apis/games_management_v1management.rb +1 -4
- data/generated/google/apis/games_v1.rb +1 -4
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +6 -1
- data/generated/google/apis/gmail_v1.rb +2 -2
- data/generated/google/apis/iap_v1.rb +34 -0
- data/generated/google/apis/iap_v1/classes.rb +308 -0
- data/generated/google/apis/iap_v1/representations.rb +126 -0
- data/generated/google/apis/iap_v1/service.rb +725 -0
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +0 -132
- data/generated/google/apis/iap_v1beta1/representations.rb +0 -32
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +8 -9
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +6 -6
- data/generated/google/apis/jobs_v3/service.rb +8 -8
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +9 -9
- data/generated/google/apis/jobs_v3p1beta1/service.rb +8 -8
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +20 -7
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/monitoring_v3/service.rb +0 -365
- data/generated/google/apis/pagespeedonline_v5.rb +32 -0
- data/generated/google/apis/pagespeedonline_v5/classes.rb +724 -0
- data/generated/google/apis/pagespeedonline_v5/representations.rb +315 -0
- data/generated/google/apis/pagespeedonline_v5/service.rb +116 -0
- data/generated/google/apis/people_v1.rb +3 -3
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +63 -12
- data/generated/google/apis/pubsub_v1/representations.rb +15 -0
- data/generated/google/apis/pubsub_v1/service.rb +26 -18
- data/generated/google/apis/redis_v1.rb +2 -3
- data/generated/google/apis/redis_v1/service.rb +1 -2
- data/generated/google/apis/redis_v1beta1.rb +2 -3
- data/generated/google/apis/redis_v1beta1/service.rb +1 -2
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +2 -2
- data/generated/google/apis/script_v1.rb +24 -6
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +66 -1
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +30 -0
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +89 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +7 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +84 -37
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +15 -0
- data/generated/google/apis/servicenetworking_v1beta/service.rb +132 -43
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
- data/generated/google/apis/sheets_v4.rb +4 -4
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +187 -2
- data/generated/google/apis/slides_v1/representations.rb +67 -0
- data/generated/google/apis/slides_v1/service.rb +4 -3
- data/generated/google/apis/sourcerepo_v1.rb +2 -2
- data/generated/google/apis/sourcerepo_v1/service.rb +1 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +58 -10
- data/generated/google/apis/speech_v1/representations.rb +29 -1
- data/generated/google/apis/{speech_v1beta1.rb → speech_v1p1beta1.rb} +6 -6
- data/generated/google/apis/speech_v1p1beta1/classes.rb +922 -0
- data/generated/google/apis/speech_v1p1beta1/representations.rb +294 -0
- data/generated/google/apis/{speech_v1beta1 → speech_v1p1beta1}/service.rb +33 -35
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +64 -3
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +31 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +54 -0
- data/generated/google/apis/storage_v1/representations.rb +31 -0
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +26 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +4 -0
- data/generated/google/apis/streetviewpublish_v1/service.rb +29 -3
- data/generated/google/apis/tasks_v1.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +49 -19
- data/generated/google/apis/testing_v1/representations.rb +20 -2
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +77 -70
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +78 -7
- data/generated/google/apis/vault_v1/representations.rb +34 -1
- data/generated/google/apis/vault_v1/service.rb +141 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +33 -0
- data/generated/google/apis/vision_v1/representations.rb +16 -0
- data/generated/google/apis/vision_v1/service.rb +2 -2
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +33 -0
- data/generated/google/apis/vision_v1p1beta1/representations.rb +16 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +33 -0
- data/generated/google/apis/vision_v1p2beta1/representations.rb +16 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/google-api-client.gemspec +1 -1
- data/lib/google/api_client/auth/installed_app.rb +17 -2
- data/lib/google/api_client/client_secrets.rb +1 -1
- data/lib/google/apis/core/download.rb +2 -2
- data/lib/google/apis/errors.rb +9 -0
- data/lib/google/apis/generator/annotator.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +46 -17
- data/generated/google/apis/cloudiot_v1beta1/classes.rb +0 -959
- data/generated/google/apis/cloudiot_v1beta1/representations.rb +0 -375
- data/generated/google/apis/cloudiot_v1beta1/service.rb +0 -618
- data/generated/google/apis/dfareporting_v3_0.rb +0 -40
- data/generated/google/apis/dfareporting_v3_0/classes.rb +0 -12119
- data/generated/google/apis/dfareporting_v3_0/representations.rb +0 -4336
- data/generated/google/apis/dfareporting_v3_0/service.rb +0 -8701
- data/generated/google/apis/speech_v1beta1/classes.rb +0 -480
- data/generated/google/apis/speech_v1beta1/representations.rb +0 -194
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/dataflow
|
26
26
|
module DataflowV1b3
|
27
27
|
VERSION = 'V1b3'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20181107'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -1699,6 +1699,12 @@ module Google
|
|
1699
1699
|
# @return [String]
|
1700
1700
|
attr_accessor :create_time
|
1701
1701
|
|
1702
|
+
# If this is specified, the job's initial state is populated from the given
|
1703
|
+
# snapshot.
|
1704
|
+
# Corresponds to the JSON property `createdFromSnapshotId`
|
1705
|
+
# @return [String]
|
1706
|
+
attr_accessor :created_from_snapshot_id
|
1707
|
+
|
1702
1708
|
# The current state of the job.
|
1703
1709
|
# Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise
|
1704
1710
|
# specified.
|
@@ -1820,11 +1826,17 @@ module Google
|
|
1820
1826
|
# @return [String]
|
1821
1827
|
attr_accessor :start_time
|
1822
1828
|
|
1829
|
+
# Exactly one of step or steps_location should be specified.
|
1823
1830
|
# The top-level steps that constitute the entire job.
|
1824
1831
|
# Corresponds to the JSON property `steps`
|
1825
1832
|
# @return [Array<Google::Apis::DataflowV1b3::Step>]
|
1826
1833
|
attr_accessor :steps
|
1827
1834
|
|
1835
|
+
# The GCS location where the steps are stored.
|
1836
|
+
# Corresponds to the JSON property `stepsLocation`
|
1837
|
+
# @return [String]
|
1838
|
+
attr_accessor :steps_location
|
1839
|
+
|
1828
1840
|
# A set of files the system should be aware of that are used
|
1829
1841
|
# for temporary storage. These temporary files will be
|
1830
1842
|
# removed on job completion.
|
@@ -1857,6 +1869,7 @@ module Google
|
|
1857
1869
|
def update!(**args)
|
1858
1870
|
@client_request_id = args[:client_request_id] if args.key?(:client_request_id)
|
1859
1871
|
@create_time = args[:create_time] if args.key?(:create_time)
|
1872
|
+
@created_from_snapshot_id = args[:created_from_snapshot_id] if args.key?(:created_from_snapshot_id)
|
1860
1873
|
@current_state = args[:current_state] if args.key?(:current_state)
|
1861
1874
|
@current_state_time = args[:current_state_time] if args.key?(:current_state_time)
|
1862
1875
|
@environment = args[:environment] if args.key?(:environment)
|
@@ -1874,6 +1887,7 @@ module Google
|
|
1874
1887
|
@stage_states = args[:stage_states] if args.key?(:stage_states)
|
1875
1888
|
@start_time = args[:start_time] if args.key?(:start_time)
|
1876
1889
|
@steps = args[:steps] if args.key?(:steps)
|
1890
|
+
@steps_location = args[:steps_location] if args.key?(:steps_location)
|
1877
1891
|
@temp_files = args[:temp_files] if args.key?(:temp_files)
|
1878
1892
|
@transform_name_mapping = args[:transform_name_mapping] if args.key?(:transform_name_mapping)
|
1879
1893
|
@type = args[:type] if args.key?(:type)
|
@@ -3561,6 +3575,74 @@ module Google
|
|
3561
3575
|
end
|
3562
3576
|
end
|
3563
3577
|
|
3578
|
+
# Represents a snapshot of a job.
|
3579
|
+
class Snapshot
|
3580
|
+
include Google::Apis::Core::Hashable
|
3581
|
+
|
3582
|
+
# The time this snapshot was created.
|
3583
|
+
# Corresponds to the JSON property `creationTime`
|
3584
|
+
# @return [String]
|
3585
|
+
attr_accessor :creation_time
|
3586
|
+
|
3587
|
+
# The unique ID of this snapshot.
|
3588
|
+
# Corresponds to the JSON property `id`
|
3589
|
+
# @return [String]
|
3590
|
+
attr_accessor :id
|
3591
|
+
|
3592
|
+
# The project this snapshot belongs to.
|
3593
|
+
# Corresponds to the JSON property `projectId`
|
3594
|
+
# @return [String]
|
3595
|
+
attr_accessor :project_id
|
3596
|
+
|
3597
|
+
# The job this snapshot was created from.
|
3598
|
+
# Corresponds to the JSON property `sourceJobId`
|
3599
|
+
# @return [String]
|
3600
|
+
attr_accessor :source_job_id
|
3601
|
+
|
3602
|
+
# The time after which this snapshot will be automatically deleted.
|
3603
|
+
# Corresponds to the JSON property `ttl`
|
3604
|
+
# @return [String]
|
3605
|
+
attr_accessor :ttl
|
3606
|
+
|
3607
|
+
def initialize(**args)
|
3608
|
+
update!(**args)
|
3609
|
+
end
|
3610
|
+
|
3611
|
+
# Update properties of this object
|
3612
|
+
def update!(**args)
|
3613
|
+
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
3614
|
+
@id = args[:id] if args.key?(:id)
|
3615
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
3616
|
+
@source_job_id = args[:source_job_id] if args.key?(:source_job_id)
|
3617
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
3618
|
+
end
|
3619
|
+
end
|
3620
|
+
|
3621
|
+
# Request to create a snapshot of a job.
|
3622
|
+
class SnapshotJobRequest
|
3623
|
+
include Google::Apis::Core::Hashable
|
3624
|
+
|
3625
|
+
# The location that contains this job.
|
3626
|
+
# Corresponds to the JSON property `location`
|
3627
|
+
# @return [String]
|
3628
|
+
attr_accessor :location
|
3629
|
+
|
3630
|
+
# TTL for the snapshot.
|
3631
|
+
# Corresponds to the JSON property `ttl`
|
3632
|
+
# @return [String]
|
3633
|
+
attr_accessor :ttl
|
3634
|
+
|
3635
|
+
def initialize(**args)
|
3636
|
+
update!(**args)
|
3637
|
+
end
|
3638
|
+
|
3639
|
+
# Update properties of this object
|
3640
|
+
def update!(**args)
|
3641
|
+
@location = args[:location] if args.key?(:location)
|
3642
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
3643
|
+
end
|
3644
|
+
end
|
3645
|
+
|
3564
3646
|
# A source that records can be read and decoded from.
|
3565
3647
|
class Source
|
3566
3648
|
include Google::Apis::Core::Hashable
|
@@ -562,6 +562,18 @@ module Google
|
|
562
562
|
include Google::Apis::Core::JsonObjectSupport
|
563
563
|
end
|
564
564
|
|
565
|
+
class Snapshot
|
566
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
567
|
+
|
568
|
+
include Google::Apis::Core::JsonObjectSupport
|
569
|
+
end
|
570
|
+
|
571
|
+
class SnapshotJobRequest
|
572
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
573
|
+
|
574
|
+
include Google::Apis::Core::JsonObjectSupport
|
575
|
+
end
|
576
|
+
|
565
577
|
class Source
|
566
578
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
567
579
|
|
@@ -1294,6 +1306,7 @@ module Google
|
|
1294
1306
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1295
1307
|
property :client_request_id, as: 'clientRequestId'
|
1296
1308
|
property :create_time, as: 'createTime'
|
1309
|
+
property :created_from_snapshot_id, as: 'createdFromSnapshotId'
|
1297
1310
|
property :current_state, as: 'currentState'
|
1298
1311
|
property :current_state_time, as: 'currentStateTime'
|
1299
1312
|
property :environment, as: 'environment', class: Google::Apis::DataflowV1b3::Environment, decorator: Google::Apis::DataflowV1b3::Environment::Representation
|
@@ -1317,6 +1330,7 @@ module Google
|
|
1317
1330
|
property :start_time, as: 'startTime'
|
1318
1331
|
collection :steps, as: 'steps', class: Google::Apis::DataflowV1b3::Step, decorator: Google::Apis::DataflowV1b3::Step::Representation
|
1319
1332
|
|
1333
|
+
property :steps_location, as: 'stepsLocation'
|
1320
1334
|
collection :temp_files, as: 'tempFiles'
|
1321
1335
|
hash :transform_name_mapping, as: 'transformNameMapping'
|
1322
1336
|
property :type, as: 'type'
|
@@ -1802,6 +1816,25 @@ module Google
|
|
1802
1816
|
end
|
1803
1817
|
end
|
1804
1818
|
|
1819
|
+
class Snapshot
|
1820
|
+
# @private
|
1821
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1822
|
+
property :creation_time, as: 'creationTime'
|
1823
|
+
property :id, as: 'id'
|
1824
|
+
property :project_id, as: 'projectId'
|
1825
|
+
property :source_job_id, as: 'sourceJobId'
|
1826
|
+
property :ttl, as: 'ttl'
|
1827
|
+
end
|
1828
|
+
end
|
1829
|
+
|
1830
|
+
class SnapshotJobRequest
|
1831
|
+
# @private
|
1832
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1833
|
+
property :location, as: 'location'
|
1834
|
+
property :ttl, as: 'ttl'
|
1835
|
+
end
|
1836
|
+
end
|
1837
|
+
|
1805
1838
|
class Source
|
1806
1839
|
# @private
|
1807
1840
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -297,6 +297,42 @@ module Google
|
|
297
297
|
execute_or_queue_command(command, &block)
|
298
298
|
end
|
299
299
|
|
300
|
+
# Snapshot the state of a streaming job.
|
301
|
+
# @param [String] project_id
|
302
|
+
# The project which owns the job to be snapshotted.
|
303
|
+
# @param [String] job_id
|
304
|
+
# The job to be snapshotted.
|
305
|
+
# @param [Google::Apis::DataflowV1b3::SnapshotJobRequest] snapshot_job_request_object
|
306
|
+
# @param [String] fields
|
307
|
+
# Selector specifying which fields to include in a partial response.
|
308
|
+
# @param [String] quota_user
|
309
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
310
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
311
|
+
# @param [Google::Apis::RequestOptions] options
|
312
|
+
# Request-specific options
|
313
|
+
#
|
314
|
+
# @yield [result, err] Result & error if block supplied
|
315
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::Snapshot] parsed result object
|
316
|
+
# @yieldparam err [StandardError] error object if request failed
|
317
|
+
#
|
318
|
+
# @return [Google::Apis::DataflowV1b3::Snapshot]
|
319
|
+
#
|
320
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
321
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
322
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
323
|
+
def snapshot_project_job(project_id, job_id, snapshot_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
324
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}:snapshot', options)
|
325
|
+
command.request_representation = Google::Apis::DataflowV1b3::SnapshotJobRequest::Representation
|
326
|
+
command.request_object = snapshot_job_request_object
|
327
|
+
command.response_representation = Google::Apis::DataflowV1b3::Snapshot::Representation
|
328
|
+
command.response_class = Google::Apis::DataflowV1b3::Snapshot
|
329
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
330
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
331
|
+
command.query['fields'] = fields unless fields.nil?
|
332
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
333
|
+
execute_or_queue_command(command, &block)
|
334
|
+
end
|
335
|
+
|
300
336
|
# Updates the state of an existing Cloud Dataflow job.
|
301
337
|
# @param [String] project_id
|
302
338
|
# The ID of the Cloud Platform project that the job belongs to.
|
@@ -742,6 +778,45 @@ module Google
|
|
742
778
|
execute_or_queue_command(command, &block)
|
743
779
|
end
|
744
780
|
|
781
|
+
# Snapshot the state of a streaming job.
|
782
|
+
# @param [String] project_id
|
783
|
+
# The project which owns the job to be snapshotted.
|
784
|
+
# @param [String] location
|
785
|
+
# The location that contains this job.
|
786
|
+
# @param [String] job_id
|
787
|
+
# The job to be snapshotted.
|
788
|
+
# @param [Google::Apis::DataflowV1b3::SnapshotJobRequest] snapshot_job_request_object
|
789
|
+
# @param [String] fields
|
790
|
+
# Selector specifying which fields to include in a partial response.
|
791
|
+
# @param [String] quota_user
|
792
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
793
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
794
|
+
# @param [Google::Apis::RequestOptions] options
|
795
|
+
# Request-specific options
|
796
|
+
#
|
797
|
+
# @yield [result, err] Result & error if block supplied
|
798
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::Snapshot] parsed result object
|
799
|
+
# @yieldparam err [StandardError] error object if request failed
|
800
|
+
#
|
801
|
+
# @return [Google::Apis::DataflowV1b3::Snapshot]
|
802
|
+
#
|
803
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
804
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
805
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
806
|
+
def snapshot_project_location_job(project_id, location, job_id, snapshot_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
807
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}:snapshot', options)
|
808
|
+
command.request_representation = Google::Apis::DataflowV1b3::SnapshotJobRequest::Representation
|
809
|
+
command.request_object = snapshot_job_request_object
|
810
|
+
command.response_representation = Google::Apis::DataflowV1b3::Snapshot::Representation
|
811
|
+
command.response_class = Google::Apis::DataflowV1b3::Snapshot
|
812
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
813
|
+
command.params['location'] = location unless location.nil?
|
814
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
815
|
+
command.query['fields'] = fields unless fields.nil?
|
816
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
817
|
+
execute_or_queue_command(command, &block)
|
818
|
+
end
|
819
|
+
|
745
820
|
# Updates the state of an existing Cloud Dataflow job.
|
746
821
|
# @param [String] project_id
|
747
822
|
# The ID of the Cloud Platform project that the job belongs to.
|
@@ -1038,7 +1113,7 @@ module Google
|
|
1038
1113
|
# @param [String] gcs_path
|
1039
1114
|
# Required. A Cloud Storage path to the template from which to
|
1040
1115
|
# create the job.
|
1041
|
-
# Must be
|
1116
|
+
# Must be valid Cloud Storage URL, beginning with 'gs://'.
|
1042
1117
|
# @param [String] view
|
1043
1118
|
# The view to retrieve. Defaults to METADATA_ONLY.
|
1044
1119
|
# @param [String] fields
|
@@ -1077,8 +1152,14 @@ module Google
|
|
1077
1152
|
# @param [String] location
|
1078
1153
|
# The location to which to direct the request.
|
1079
1154
|
# @param [Google::Apis::DataflowV1b3::LaunchTemplateParameters] launch_template_parameters_object
|
1155
|
+
# @param [String] dynamic_template_gcs_path
|
1156
|
+
# Path to dynamic template spec file on GCS.
|
1157
|
+
# The file must be a Json serialized DynamicTemplateFieSpec object.
|
1158
|
+
# @param [String] dynamic_template_staging_location
|
1159
|
+
# Cloud Storage path for staging dependencies.
|
1160
|
+
# Must be a valid Cloud Storage URL, beginning with `gs://`.
|
1080
1161
|
# @param [String] gcs_path
|
1081
|
-
#
|
1162
|
+
# A Cloud Storage path to the template from which to create
|
1082
1163
|
# the job.
|
1083
1164
|
# Must be valid Cloud Storage URL, beginning with 'gs://'.
|
1084
1165
|
# @param [Boolean] validate_only
|
@@ -1101,7 +1182,7 @@ module Google
|
|
1101
1182
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1102
1183
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1103
1184
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1104
|
-
def launch_project_location_template(project_id, location, launch_template_parameters_object = nil, gcs_path: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1185
|
+
def launch_project_location_template(project_id, location, launch_template_parameters_object = nil, dynamic_template_gcs_path: nil, dynamic_template_staging_location: nil, gcs_path: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1105
1186
|
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/templates:launch', options)
|
1106
1187
|
command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation
|
1107
1188
|
command.request_object = launch_template_parameters_object
|
@@ -1109,6 +1190,8 @@ module Google
|
|
1109
1190
|
command.response_class = Google::Apis::DataflowV1b3::LaunchTemplateResponse
|
1110
1191
|
command.params['projectId'] = project_id unless project_id.nil?
|
1111
1192
|
command.params['location'] = location unless location.nil?
|
1193
|
+
command.query['dynamicTemplate.gcsPath'] = dynamic_template_gcs_path unless dynamic_template_gcs_path.nil?
|
1194
|
+
command.query['dynamicTemplate.stagingLocation'] = dynamic_template_staging_location unless dynamic_template_staging_location.nil?
|
1112
1195
|
command.query['gcsPath'] = gcs_path unless gcs_path.nil?
|
1113
1196
|
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1114
1197
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1155,7 +1238,7 @@ module Google
|
|
1155
1238
|
# @param [String] gcs_path
|
1156
1239
|
# Required. A Cloud Storage path to the template from which to
|
1157
1240
|
# create the job.
|
1158
|
-
# Must be
|
1241
|
+
# Must be valid Cloud Storage URL, beginning with 'gs://'.
|
1159
1242
|
# @param [String] location
|
1160
1243
|
# The location to which to direct the request.
|
1161
1244
|
# @param [String] view
|
@@ -1194,8 +1277,14 @@ module Google
|
|
1194
1277
|
# @param [String] project_id
|
1195
1278
|
# Required. The ID of the Cloud Platform project that the job belongs to.
|
1196
1279
|
# @param [Google::Apis::DataflowV1b3::LaunchTemplateParameters] launch_template_parameters_object
|
1280
|
+
# @param [String] dynamic_template_gcs_path
|
1281
|
+
# Path to dynamic template spec file on GCS.
|
1282
|
+
# The file must be a Json serialized DynamicTemplateFieSpec object.
|
1283
|
+
# @param [String] dynamic_template_staging_location
|
1284
|
+
# Cloud Storage path for staging dependencies.
|
1285
|
+
# Must be a valid Cloud Storage URL, beginning with `gs://`.
|
1197
1286
|
# @param [String] gcs_path
|
1198
|
-
#
|
1287
|
+
# A Cloud Storage path to the template from which to create
|
1199
1288
|
# the job.
|
1200
1289
|
# Must be valid Cloud Storage URL, beginning with 'gs://'.
|
1201
1290
|
# @param [String] location
|
@@ -1220,13 +1309,15 @@ module Google
|
|
1220
1309
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1221
1310
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1222
1311
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1223
|
-
def launch_project_template(project_id, launch_template_parameters_object = nil, gcs_path: nil, location: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1312
|
+
def launch_project_template(project_id, launch_template_parameters_object = nil, dynamic_template_gcs_path: nil, dynamic_template_staging_location: nil, gcs_path: nil, location: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1224
1313
|
command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates:launch', options)
|
1225
1314
|
command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation
|
1226
1315
|
command.request_object = launch_template_parameters_object
|
1227
1316
|
command.response_representation = Google::Apis::DataflowV1b3::LaunchTemplateResponse::Representation
|
1228
1317
|
command.response_class = Google::Apis::DataflowV1b3::LaunchTemplateResponse
|
1229
1318
|
command.params['projectId'] = project_id unless project_id.nil?
|
1319
|
+
command.query['dynamicTemplate.gcsPath'] = dynamic_template_gcs_path unless dynamic_template_gcs_path.nil?
|
1320
|
+
command.query['dynamicTemplate.stagingLocation'] = dynamic_template_staging_location unless dynamic_template_staging_location.nil?
|
1230
1321
|
command.query['gcsPath'] = gcs_path unless gcs_path.nil?
|
1231
1322
|
command.query['location'] = location unless location.nil?
|
1232
1323
|
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/dataproc/
|
26
26
|
module DataprocV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20181126'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -1043,6 +1043,13 @@ module Google
|
|
1043
1043
|
# @return [Google::Apis::DataprocV1::HiveJob]
|
1044
1044
|
attr_accessor :hive_job
|
1045
1045
|
|
1046
|
+
# Output only. A UUID that uniquely identifies a job within the project over
|
1047
|
+
# time. This is in contrast to a user-settable reference.job_id that may be
|
1048
|
+
# reused over time.
|
1049
|
+
# Corresponds to the JSON property `jobUuid`
|
1050
|
+
# @return [String]
|
1051
|
+
attr_accessor :job_uuid
|
1052
|
+
|
1046
1053
|
# Optional. The labels to associate with this job. Label keys must contain 1 to
|
1047
1054
|
# 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.
|
1048
1055
|
# txt). Label values may be empty, but, if present, must contain 1 to 63
|
@@ -1118,6 +1125,7 @@ module Google
|
|
1118
1125
|
@driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri)
|
1119
1126
|
@hadoop_job = args[:hadoop_job] if args.key?(:hadoop_job)
|
1120
1127
|
@hive_job = args[:hive_job] if args.key?(:hive_job)
|
1128
|
+
@job_uuid = args[:job_uuid] if args.key?(:job_uuid)
|
1121
1129
|
@labels = args[:labels] if args.key?(:labels)
|
1122
1130
|
@pig_job = args[:pig_job] if args.key?(:pig_job)
|
1123
1131
|
@placement = args[:placement] if args.key?(:placement)
|
@@ -2409,11 +2417,16 @@ module Google
|
|
2409
2417
|
class WorkflowMetadata
|
2410
2418
|
include Google::Apis::Core::Hashable
|
2411
2419
|
|
2412
|
-
# Output only. The name of the
|
2420
|
+
# Output only. The name of the target cluster.
|
2413
2421
|
# Corresponds to the JSON property `clusterName`
|
2414
2422
|
# @return [String]
|
2415
2423
|
attr_accessor :cluster_name
|
2416
2424
|
|
2425
|
+
# Output only. The UUID of target cluster.
|
2426
|
+
# Corresponds to the JSON property `clusterUuid`
|
2427
|
+
# @return [String]
|
2428
|
+
attr_accessor :cluster_uuid
|
2429
|
+
|
2417
2430
|
# The cluster operation triggered by a workflow.
|
2418
2431
|
# Corresponds to the JSON property `createCluster`
|
2419
2432
|
# @return [Google::Apis::DataprocV1::ClusterOperation]
|
@@ -2466,6 +2479,7 @@ module Google
|
|
2466
2479
|
# Update properties of this object
|
2467
2480
|
def update!(**args)
|
2468
2481
|
@cluster_name = args[:cluster_name] if args.key?(:cluster_name)
|
2482
|
+
@cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
|
2469
2483
|
@create_cluster = args[:create_cluster] if args.key?(:create_cluster)
|
2470
2484
|
@delete_cluster = args[:delete_cluster] if args.key?(:delete_cluster)
|
2471
2485
|
@end_time = args[:end_time] if args.key?(:end_time)
|
@@ -634,6 +634,7 @@ module Google
|
|
634
634
|
|
635
635
|
property :hive_job, as: 'hiveJob', class: Google::Apis::DataprocV1::HiveJob, decorator: Google::Apis::DataprocV1::HiveJob::Representation
|
636
636
|
|
637
|
+
property :job_uuid, as: 'jobUuid'
|
637
638
|
hash :labels, as: 'labels'
|
638
639
|
property :pig_job, as: 'pigJob', class: Google::Apis::DataprocV1::PigJob, decorator: Google::Apis::DataprocV1::PigJob::Representation
|
639
640
|
|
@@ -966,6 +967,7 @@ module Google
|
|
966
967
|
# @private
|
967
968
|
class Representation < Google::Apis::Core::JsonRepresentation
|
968
969
|
property :cluster_name, as: 'clusterName'
|
970
|
+
property :cluster_uuid, as: 'clusterUuid'
|
969
971
|
property :create_cluster, as: 'createCluster', class: Google::Apis::DataprocV1::ClusterOperation, decorator: Google::Apis::DataprocV1::ClusterOperation::Representation
|
970
972
|
|
971
973
|
property :delete_cluster, as: 'deleteCluster', class: Google::Apis::DataprocV1::ClusterOperation, decorator: Google::Apis::DataprocV1::ClusterOperation::Representation
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/dataproc/
|
26
26
|
module DataprocV1beta2
|
27
27
|
VERSION = 'V1beta2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20181126'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -55,6 +55,37 @@ module Google
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
+
# Allocation Affinity for consuming Zonal allocation.
|
59
|
+
class AllocationAffinity
|
60
|
+
include Google::Apis::Core::Hashable
|
61
|
+
|
62
|
+
#
|
63
|
+
# Corresponds to the JSON property `consumeAllocationType`
|
64
|
+
# @return [String]
|
65
|
+
attr_accessor :consume_allocation_type
|
66
|
+
|
67
|
+
# Corresponds to the label key of Allocation resource.
|
68
|
+
# Corresponds to the JSON property `key`
|
69
|
+
# @return [String]
|
70
|
+
attr_accessor :key
|
71
|
+
|
72
|
+
# Corresponds to the label values of allocation resource.
|
73
|
+
# Corresponds to the JSON property `values`
|
74
|
+
# @return [Array<String>]
|
75
|
+
attr_accessor :values
|
76
|
+
|
77
|
+
def initialize(**args)
|
78
|
+
update!(**args)
|
79
|
+
end
|
80
|
+
|
81
|
+
# Update properties of this object
|
82
|
+
def update!(**args)
|
83
|
+
@consume_allocation_type = args[:consume_allocation_type] if args.key?(:consume_allocation_type)
|
84
|
+
@key = args[:key] if args.key?(:key)
|
85
|
+
@values = args[:values] if args.key?(:values)
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
58
89
|
# Associates members with a role.
|
59
90
|
class Binding
|
60
91
|
include Google::Apis::Core::Hashable
|
@@ -653,6 +684,11 @@ module Google
|
|
653
684
|
class GceClusterConfig
|
654
685
|
include Google::Apis::Core::Hashable
|
655
686
|
|
687
|
+
# Allocation Affinity for consuming Zonal allocation.
|
688
|
+
# Corresponds to the JSON property `allocationAffinity`
|
689
|
+
# @return [Google::Apis::DataprocV1beta2::AllocationAffinity]
|
690
|
+
attr_accessor :allocation_affinity
|
691
|
+
|
656
692
|
# Optional. If true, all instances in the cluster will only have internal IP
|
657
693
|
# addresses. By default, clusters are not restricted to internal IP addresses,
|
658
694
|
# and will have ephemeral external IP addresses assigned to each instance. This
|
@@ -743,6 +779,7 @@ module Google
|
|
743
779
|
|
744
780
|
# Update properties of this object
|
745
781
|
def update!(**args)
|
782
|
+
@allocation_affinity = args[:allocation_affinity] if args.key?(:allocation_affinity)
|
746
783
|
@internal_ip_only = args[:internal_ip_only] if args.key?(:internal_ip_only)
|
747
784
|
@metadata = args[:metadata] if args.key?(:metadata)
|
748
785
|
@network_uri = args[:network_uri] if args.key?(:network_uri)
|
@@ -1062,6 +1099,13 @@ module Google
|
|
1062
1099
|
# @return [Google::Apis::DataprocV1beta2::HiveJob]
|
1063
1100
|
attr_accessor :hive_job
|
1064
1101
|
|
1102
|
+
# Output only. A UUID that uniquely identifies a job within the project over
|
1103
|
+
# time. This is in contrast to a user-settable reference.job_id that may be
|
1104
|
+
# reused over time.
|
1105
|
+
# Corresponds to the JSON property `jobUuid`
|
1106
|
+
# @return [String]
|
1107
|
+
attr_accessor :job_uuid
|
1108
|
+
|
1065
1109
|
# Optional. The labels to associate with this job. Label keys must contain 1 to
|
1066
1110
|
# 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.
|
1067
1111
|
# txt). Label values may be empty, but, if present, must contain 1 to 63
|
@@ -1104,6 +1148,12 @@ module Google
|
|
1104
1148
|
# @return [Google::Apis::DataprocV1beta2::SparkJob]
|
1105
1149
|
attr_accessor :spark_job
|
1106
1150
|
|
1151
|
+
# A Cloud Dataproc job for running Apache SparkR (https://spark.apache.org/docs/
|
1152
|
+
# latest/sparkr.html) applications on YARN.
|
1153
|
+
# Corresponds to the JSON property `sparkRJob`
|
1154
|
+
# @return [Google::Apis::DataprocV1beta2::SparkRJob]
|
1155
|
+
attr_accessor :spark_r_job
|
1156
|
+
|
1107
1157
|
# A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/
|
1108
1158
|
# ) queries.
|
1109
1159
|
# Corresponds to the JSON property `sparkSqlJob`
|
@@ -1120,6 +1170,12 @@ module Google
|
|
1120
1170
|
# @return [Array<Google::Apis::DataprocV1beta2::JobStatus>]
|
1121
1171
|
attr_accessor :status_history
|
1122
1172
|
|
1173
|
+
# Output only. The email address of the user submitting the job. For jobs
|
1174
|
+
# submitted on the cluster, the address is <code>username@hostname</code>.
|
1175
|
+
# Corresponds to the JSON property `submittedBy`
|
1176
|
+
# @return [String]
|
1177
|
+
attr_accessor :submitted_by
|
1178
|
+
|
1123
1179
|
# Output only. The collection of YARN applications spun up by this job.Beta
|
1124
1180
|
# Feature: This report is available for testing purposes only. It may be changed
|
1125
1181
|
# before final release.
|
@@ -1137,6 +1193,7 @@ module Google
|
|
1137
1193
|
@driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri)
|
1138
1194
|
@hadoop_job = args[:hadoop_job] if args.key?(:hadoop_job)
|
1139
1195
|
@hive_job = args[:hive_job] if args.key?(:hive_job)
|
1196
|
+
@job_uuid = args[:job_uuid] if args.key?(:job_uuid)
|
1140
1197
|
@labels = args[:labels] if args.key?(:labels)
|
1141
1198
|
@pig_job = args[:pig_job] if args.key?(:pig_job)
|
1142
1199
|
@placement = args[:placement] if args.key?(:placement)
|
@@ -1144,9 +1201,11 @@ module Google
|
|
1144
1201
|
@reference = args[:reference] if args.key?(:reference)
|
1145
1202
|
@scheduling = args[:scheduling] if args.key?(:scheduling)
|
1146
1203
|
@spark_job = args[:spark_job] if args.key?(:spark_job)
|
1204
|
+
@spark_r_job = args[:spark_r_job] if args.key?(:spark_r_job)
|
1147
1205
|
@spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job)
|
1148
1206
|
@status = args[:status] if args.key?(:status)
|
1149
1207
|
@status_history = args[:status_history] if args.key?(:status_history)
|
1208
|
+
@submitted_by = args[:submitted_by] if args.key?(:submitted_by)
|
1150
1209
|
@yarn_applications = args[:yarn_applications] if args.key?(:yarn_applications)
|
1151
1210
|
end
|
1152
1211
|
end
|
@@ -2161,6 +2220,65 @@ module Google
|
|
2161
2220
|
end
|
2162
2221
|
end
|
2163
2222
|
|
2223
|
+
# A Cloud Dataproc job for running Apache SparkR (https://spark.apache.org/docs/
|
2224
|
+
# latest/sparkr.html) applications on YARN.
|
2225
|
+
class SparkRJob
|
2226
|
+
include Google::Apis::Core::Hashable
|
2227
|
+
|
2228
|
+
# Optional. HCFS URIs of archives to be extracted in the working directory of
|
2229
|
+
# Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .
|
2230
|
+
# zip.
|
2231
|
+
# Corresponds to the JSON property `archiveUris`
|
2232
|
+
# @return [Array<String>]
|
2233
|
+
attr_accessor :archive_uris
|
2234
|
+
|
2235
|
+
# Optional. The arguments to pass to the driver. Do not include arguments, such
|
2236
|
+
# as --conf, that can be set as job properties, since a collision may occur that
|
2237
|
+
# causes an incorrect job submission.
|
2238
|
+
# Corresponds to the JSON property `args`
|
2239
|
+
# @return [Array<String>]
|
2240
|
+
attr_accessor :args
|
2241
|
+
|
2242
|
+
# Optional. HCFS URIs of files to be copied to the working directory of R
|
2243
|
+
# drivers and distributed tasks. Useful for naively parallel tasks.
|
2244
|
+
# Corresponds to the JSON property `fileUris`
|
2245
|
+
# @return [Array<String>]
|
2246
|
+
attr_accessor :file_uris
|
2247
|
+
|
2248
|
+
# The runtime logging config of the job.
|
2249
|
+
# Corresponds to the JSON property `loggingConfig`
|
2250
|
+
# @return [Google::Apis::DataprocV1beta2::LoggingConfig]
|
2251
|
+
attr_accessor :logging_config
|
2252
|
+
|
2253
|
+
# Required. The HCFS URI of the main R file to use as the driver. Must be a .R
|
2254
|
+
# file.
|
2255
|
+
# Corresponds to the JSON property `mainRFileUri`
|
2256
|
+
# @return [String]
|
2257
|
+
attr_accessor :main_r_file_uri
|
2258
|
+
|
2259
|
+
# Optional. A mapping of property names to values, used to configure SparkR.
|
2260
|
+
# Properties that conflict with values set by the Cloud Dataproc API may be
|
2261
|
+
# overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf
|
2262
|
+
# and classes in user code.
|
2263
|
+
# Corresponds to the JSON property `properties`
|
2264
|
+
# @return [Hash<String,String>]
|
2265
|
+
attr_accessor :properties
|
2266
|
+
|
2267
|
+
def initialize(**args)
|
2268
|
+
update!(**args)
|
2269
|
+
end
|
2270
|
+
|
2271
|
+
# Update properties of this object
|
2272
|
+
def update!(**args)
|
2273
|
+
@archive_uris = args[:archive_uris] if args.key?(:archive_uris)
|
2274
|
+
@args = args[:args] if args.key?(:args)
|
2275
|
+
@file_uris = args[:file_uris] if args.key?(:file_uris)
|
2276
|
+
@logging_config = args[:logging_config] if args.key?(:logging_config)
|
2277
|
+
@main_r_file_uri = args[:main_r_file_uri] if args.key?(:main_r_file_uri)
|
2278
|
+
@properties = args[:properties] if args.key?(:properties)
|
2279
|
+
end
|
2280
|
+
end
|
2281
|
+
|
2164
2282
|
# A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/
|
2165
2283
|
# ) queries.
|
2166
2284
|
class SparkSqlJob
|
@@ -2470,11 +2588,16 @@ module Google
|
|
2470
2588
|
class WorkflowMetadata
|
2471
2589
|
include Google::Apis::Core::Hashable
|
2472
2590
|
|
2473
|
-
# Output only. The name of the
|
2591
|
+
# Output only. The name of the target cluster.
|
2474
2592
|
# Corresponds to the JSON property `clusterName`
|
2475
2593
|
# @return [String]
|
2476
2594
|
attr_accessor :cluster_name
|
2477
2595
|
|
2596
|
+
# Output only. The UUID of target cluster.
|
2597
|
+
# Corresponds to the JSON property `clusterUuid`
|
2598
|
+
# @return [String]
|
2599
|
+
attr_accessor :cluster_uuid
|
2600
|
+
|
2478
2601
|
# The cluster operation triggered by a workflow.
|
2479
2602
|
# Corresponds to the JSON property `createCluster`
|
2480
2603
|
# @return [Google::Apis::DataprocV1beta2::ClusterOperation]
|
@@ -2527,6 +2650,7 @@ module Google
|
|
2527
2650
|
# Update properties of this object
|
2528
2651
|
def update!(**args)
|
2529
2652
|
@cluster_name = args[:cluster_name] if args.key?(:cluster_name)
|
2653
|
+
@cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
|
2530
2654
|
@create_cluster = args[:create_cluster] if args.key?(:create_cluster)
|
2531
2655
|
@delete_cluster = args[:delete_cluster] if args.key?(:delete_cluster)
|
2532
2656
|
@end_time = args[:end_time] if args.key?(:end_time)
|