google-cloud-dataproc 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +3 -3
  3. data/lib/google/cloud/dataproc/v1/autoscaling_policies_pb.rb +80 -0
  4. data/lib/google/cloud/dataproc/v1/autoscaling_policies_services_pb.rb +60 -0
  5. data/lib/google/cloud/dataproc/v1/cluster_controller_client.rb +20 -6
  6. data/lib/google/cloud/dataproc/v1/clusters_pb.rb +31 -0
  7. data/lib/google/cloud/dataproc/v1/clusters_services_pb.rb +16 -6
  8. data/lib/google/cloud/dataproc/v1/doc/google/cloud/dataproc/v1/autoscaling_policies.rb +23 -0
  9. data/lib/google/cloud/dataproc/v1/doc/google/cloud/dataproc/v1/clusters.rb +107 -5
  10. data/lib/google/cloud/dataproc/v1/doc/google/cloud/dataproc/v1/jobs.rb +1 -1
  11. data/lib/google/cloud/dataproc/v1/doc/google/cloud/dataproc/v1/workflow_templates.rb +84 -31
  12. data/lib/google/cloud/dataproc/v1/doc/google/protobuf/timestamp.rb +6 -4
  13. data/lib/google/cloud/dataproc/v1/jobs_pb.rb +2 -0
  14. data/lib/google/cloud/dataproc/v1/operations_pb.rb +2 -1
  15. data/lib/google/cloud/dataproc/v1/workflow_template_service_client.rb +67 -21
  16. data/lib/google/cloud/dataproc/v1/workflow_templates_pb.rb +3 -0
  17. data/lib/google/cloud/dataproc/v1/workflow_templates_services_pb.rb +6 -2
  18. data/lib/google/cloud/dataproc/v1beta2/autoscaling_policies_pb.rb +3 -4
  19. data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service_client.rb +39 -11
  20. data/lib/google/cloud/dataproc/v1beta2/cluster_controller_client.rb +17 -7
  21. data/lib/google/cloud/dataproc/v1beta2/clusters_pb.rb +4 -0
  22. data/lib/google/cloud/dataproc/v1beta2/clusters_services_pb.rb +16 -6
  23. data/lib/google/cloud/dataproc/v1beta2/doc/google/cloud/dataproc/v1beta2/autoscaling_policies.rb +50 -14
  24. data/lib/google/cloud/dataproc/v1beta2/doc/google/cloud/dataproc/v1beta2/clusters.rb +12 -7
  25. data/lib/google/cloud/dataproc/v1beta2/doc/google/cloud/dataproc/v1beta2/jobs.rb +9 -4
  26. data/lib/google/cloud/dataproc/v1beta2/doc/google/cloud/dataproc/v1beta2/workflow_templates.rb +82 -24
  27. data/lib/google/cloud/dataproc/v1beta2/doc/google/protobuf/timestamp.rb +6 -4
  28. data/lib/google/cloud/dataproc/v1beta2/jobs_pb.rb +2 -0
  29. data/lib/google/cloud/dataproc/v1beta2/operations_pb.rb +1 -1
  30. data/lib/google/cloud/dataproc/v1beta2/workflow_template_service_client.rb +67 -21
  31. data/lib/google/cloud/dataproc/v1beta2/workflow_templates_pb.rb +3 -0
  32. data/lib/google/cloud/dataproc/v1beta2/workflow_templates_services_pb.rb +6 -2
  33. data/lib/google/cloud/dataproc/version.rb +1 -1
  34. metadata +6 -3
@@ -305,7 +305,7 @@ module Google
305
305
  # Output only. A state message specifying the overall job state.
306
306
  # @!attribute [rw] details
307
307
  # @return [String]
308
- # Output only. Optional job state details, such as an error
308
+ # Optional. Output only. Job state details, such as an error
309
309
  # description if the state is <code>ERROR</code>.
310
310
  # @!attribute [rw] state_start_time
311
311
  # @return [Google::Protobuf::Timestamp]
@@ -20,16 +20,18 @@ module Google
20
20
  # A Cloud Dataproc workflow template resource.
21
21
  # @!attribute [rw] id
22
22
  # @return [String]
23
- # Required. The template id.
24
- #
25
- # The id must contain only letters (a-z, A-Z), numbers (0-9),
26
- # underscores (_), and hyphens (-). Cannot begin or end with underscore
27
- # or hyphen. Must consist of between 3 and 50 characters.
28
23
  # @!attribute [rw] name
29
24
  # @return [String]
30
- # Output only. The "resource name" of the template, as described
31
- # in https://cloud.google.com/apis/design/resource_names of the form
32
- # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
25
+ # Output only. The resource name of the workflow template, as described
26
+ # in https://cloud.google.com/apis/design/resource_names.
27
+ #
28
+ # * For `projects.regions.workflowTemplates`, the resource name of the
29
+ # template has the following format:
30
+ # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
31
+ #
32
+ # * For `projects.locations.workflowTemplates`, the resource name of the
33
+ # template has the following format:
34
+ # `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
33
35
  # @!attribute [rw] version
34
36
  # @return [Integer]
35
37
  # Optional. Used to perform a consistent read-modify-write.
@@ -69,7 +71,7 @@ module Google
69
71
  # Required. The Directed Acyclic Graph of Jobs to submit.
70
72
  # @!attribute [rw] parameters
71
73
  # @return [Array<Google::Cloud::Dataproc::V1::TemplateParameter>]
72
- # Optional. Template parameters whose values are substituted into the
74
+ # Optional. emplate parameters whose values are substituted into the
73
75
  # template. Values for parameters must be provided when the template is
74
76
  # instantiated.
75
77
  class WorkflowTemplate; end
@@ -79,7 +81,7 @@ module Google
79
81
  # Either `managed_cluster` or `cluster_selector` is required.
80
82
  # @!attribute [rw] managed_cluster
81
83
  # @return [Google::Cloud::Dataproc::V1::ManagedCluster]
82
- # Optional. A cluster that is managed by the workflow.
84
+ # A cluster that is managed by the workflow.
83
85
  # @!attribute [rw] cluster_selector
84
86
  # @return [Google::Cloud::Dataproc::V1::ClusterSelector]
85
87
  # Optional. A selector that chooses target cluster for jobs based
@@ -192,7 +194,7 @@ module Google
192
194
  # * Zone (in ClusterSelector)
193
195
  # @!attribute [rw] name
194
196
  # @return [String]
195
- # Required. Parameter name.
197
+ # Required. Parameter name.
196
198
  # The parameter name is used as the key, and paired with the
197
199
  # parameter value, which are passed to the template when the template
198
200
  # is instantiated.
@@ -280,7 +282,16 @@ module Google
280
282
  # A Cloud Dataproc workflow template resource.
281
283
  # @!attribute [rw] template
282
284
  # @return [String]
283
- # Output only. The "resource name" of the template.
285
+ # Output only. The resource name of the workflow template as described
286
+ # in https://cloud.google.com/apis/design/resource_names.
287
+ #
288
+ # * For `projects.regions.workflowTemplates`, the resource name of the
289
+ # template has the following format:
290
+ # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
291
+ #
292
+ # * For `projects.locations.workflowTemplates`, the resource name of the
293
+ # template has the following format:
294
+ # `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
284
295
  # @!attribute [rw] version
285
296
  # @return [Integer]
286
297
  # Output only. The version of template at the time of
@@ -390,9 +401,16 @@ module Google
390
401
  # A request to create a workflow template.
391
402
  # @!attribute [rw] parent
392
403
  # @return [String]
393
- # Required. The "resource name" of the region, as described
394
- # in https://cloud.google.com/apis/design/resource_names of the form
395
- # `projects/{project_id}/regions/{region}`
404
+ # Required. The resource name of the region or location, as described
405
+ # in https://cloud.google.com/apis/design/resource_names.
406
+ #
407
+ # * For `projects.regions.workflowTemplates,create`, the resource name of the
408
+ # region has the following format:
409
+ # `projects/{project_id}/regions/{region}`
410
+ #
411
+ # * For `projects.locations.workflowTemplates.create`, the resource name of
412
+ # the location has the following format:
413
+ # `projects/{project_id}/locations/{location}`
396
414
  # @!attribute [rw] template
397
415
  # @return [Google::Cloud::Dataproc::V1::WorkflowTemplate]
398
416
  # Required. The Dataproc workflow template to create.
@@ -401,13 +419,20 @@ module Google
401
419
  # A request to fetch a workflow template.
402
420
  # @!attribute [rw] name
403
421
  # @return [String]
404
- # Required. The "resource name" of the workflow template, as described
405
- # in https://cloud.google.com/apis/design/resource_names of the form
406
- # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
422
+ # Required. The resource name of the workflow template, as described
423
+ # in https://cloud.google.com/apis/design/resource_names.
424
+ #
425
+ # * For `projects.regions.workflowTemplates.get`, the resource name of the
426
+ # template has the following format:
427
+ # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
428
+ #
429
+ # * For `projects.locations.workflowTemplates.get`, the resource name of the
430
+ # template has the following format:
431
+ # `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
407
432
  # @!attribute [rw] version
408
433
  # @return [Integer]
409
434
  # Optional. The version of workflow template to retrieve. Only previously
410
- # instatiated versions can be retrieved.
435
+ # instantiated versions can be retrieved.
411
436
  #
412
437
  # If unspecified, retrieves the current version.
413
438
  class GetWorkflowTemplateRequest; end
@@ -415,9 +440,16 @@ module Google
415
440
  # A request to instantiate a workflow template.
416
441
  # @!attribute [rw] name
417
442
  # @return [String]
418
- # Required. The "resource name" of the workflow template, as described
419
- # in https://cloud.google.com/apis/design/resource_names of the form
420
- # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
443
+ # Required. The resource name of the workflow template, as described
444
+ # in https://cloud.google.com/apis/design/resource_names.
445
+ #
446
+ # * For `projects.regions.workflowTemplates.instantiate`, the resource name
447
+ # of the template has the following format:
448
+ # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
449
+ #
450
+ # * For `projects.locations.workflowTemplates.instantiate`, the resource name
451
+ # of the template has the following format:
452
+ # `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
421
453
  # @!attribute [rw] version
422
454
  # @return [Integer]
423
455
  # Optional. The version of workflow template to instantiate. If specified,
@@ -446,9 +478,16 @@ module Google
446
478
  # A request to instantiate an inline workflow template.
447
479
  # @!attribute [rw] parent
448
480
  # @return [String]
449
- # Required. The "resource name" of the workflow template region, as described
450
- # in https://cloud.google.com/apis/design/resource_names of the form
451
- # `projects/{project_id}/regions/{region}`
481
+ # Required. The resource name of the region or location, as described
482
+ # in https://cloud.google.com/apis/design/resource_names.
483
+ #
484
+ # * For `projects.regions.workflowTemplates,instantiateinline`, the resource
485
+ # name of the region has the following format:
486
+ # `projects/{project_id}/regions/{region}`
487
+ #
488
+ # * For `projects.locations.workflowTemplates.instantiateinline`, the
489
+ # resource name of the location has the following format:
490
+ # `projects/{project_id}/locations/{location}`
452
491
  # @!attribute [rw] template
453
492
  # @return [Google::Cloud::Dataproc::V1::WorkflowTemplate]
454
493
  # Required. The workflow template to instantiate.
@@ -476,9 +515,16 @@ module Google
476
515
  # A request to list workflow templates in a project.
477
516
  # @!attribute [rw] parent
478
517
  # @return [String]
479
- # Required. The "resource name" of the region, as described
480
- # in https://cloud.google.com/apis/design/resource_names of the form
481
- # `projects/{project_id}/regions/{region}`
518
+ # Required. The resource name of the region or location, as described
519
+ # in https://cloud.google.com/apis/design/resource_names.
520
+ #
521
+ # * For `projects.regions.workflowTemplates,list`, the resource
522
+ # name of the region has the following format:
523
+ # `projects/{project_id}/regions/{region}`
524
+ #
525
+ # * For `projects.locations.workflowTemplates.list`, the
526
+ # resource name of the location has the following format:
527
+ # `projects/{project_id}/locations/{location}`
482
528
  # @!attribute [rw] page_size
483
529
  # @return [Integer]
484
530
  # Optional. The maximum number of results to return in each response.
@@ -504,9 +550,16 @@ module Google
504
550
  # Currently started workflows will remain running.
505
551
  # @!attribute [rw] name
506
552
  # @return [String]
507
- # Required. The "resource name" of the workflow template, as described
508
- # in https://cloud.google.com/apis/design/resource_names of the form
509
- # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
553
+ # Required. The resource name of the workflow template, as described
554
+ # in https://cloud.google.com/apis/design/resource_names.
555
+ #
556
+ # * For `projects.regions.workflowTemplates.delete`, the resource name
557
+ # of the template has the following format:
558
+ # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
559
+ #
560
+ # * For `projects.locations.workflowTemplates.instantiate`, the resource name
561
+ # of the template has the following format:
562
+ # `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
510
563
  # @!attribute [rw] version
511
564
  # @return [Integer]
512
565
  # Optional. The version of workflow template to delete. If specified,
@@ -88,11 +88,13 @@ module Google
88
88
  # 01:30 UTC on January 15, 2017.
89
89
  #
90
90
  # In JavaScript, one can convert a Date object to this format using the
91
- # standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
91
+ # standard
92
+ # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
92
93
  # method. In Python, a standard `datetime.datetime` object can be converted
93
- # to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
94
- # with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
95
- # can use the Joda Time's [`ISODateTimeFormat.dateTime()`](
94
+ # to this format using
95
+ # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
96
+ # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
97
+ # the Joda Time's [`ISODateTimeFormat.dateTime()`](
96
98
  # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
97
99
  # ) to obtain a formatter capable of generating timestamps in this format.
98
100
  # @!attribute [rw] seconds
@@ -5,6 +5,8 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
8
10
  require 'google/protobuf/empty_pb'
9
11
  require 'google/protobuf/field_mask_pb'
10
12
  require 'google/protobuf/timestamp_pb'
@@ -4,8 +4,9 @@
4
4
 
5
5
  require 'google/protobuf'
6
6
 
7
- require 'google/api/annotations_pb'
7
+ require 'google/api/field_behavior_pb'
8
8
  require 'google/protobuf/timestamp_pb'
9
+ require 'google/api/annotations_pb'
9
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
11
  add_message "google.cloud.dataproc.v1.ClusterOperationStatus" do
11
12
  optional :state, :enum, 1, "google.cloud.dataproc.v1.ClusterOperationStatus.State"
@@ -295,9 +295,16 @@ module Google
295
295
  # Creates new workflow template.
296
296
  #
297
297
  # @param parent [String]
298
- # Required. The "resource name" of the region, as described
299
- # in https://cloud.google.com/apis/design/resource_names of the form
300
- # `projects/{project_id}/regions/{region}`
298
+ # Required. The resource name of the region or location, as described
299
+ # in https://cloud.google.com/apis/design/resource_names.
300
+ #
301
+ # * For `projects.regions.workflowTemplates,create`, the resource name of the
302
+ # region has the following format:
303
+ # `projects/{project_id}/regions/{region}`
304
+ #
305
+ # * For `projects.locations.workflowTemplates.create`, the resource name of
306
+ # the location has the following format:
307
+ # `projects/{project_id}/locations/{location}`
301
308
  # @param template [Google::Cloud::Dataproc::V1::WorkflowTemplate | Hash]
302
309
  # Required. The Dataproc workflow template to create.
303
310
  # A hash of the same form as `Google::Cloud::Dataproc::V1::WorkflowTemplate`
@@ -339,12 +346,19 @@ module Google
339
346
  # version parameter.
340
347
  #
341
348
  # @param name [String]
342
- # Required. The "resource name" of the workflow template, as described
343
- # in https://cloud.google.com/apis/design/resource_names of the form
344
- # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
349
+ # Required. The resource name of the workflow template, as described
350
+ # in https://cloud.google.com/apis/design/resource_names.
351
+ #
352
+ # * For `projects.regions.workflowTemplates.get`, the resource name of the
353
+ # template has the following format:
354
+ # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
355
+ #
356
+ # * For `projects.locations.workflowTemplates.get`, the resource name of the
357
+ # template has the following format:
358
+ # `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
345
359
  # @param version [Integer]
346
360
  # Optional. The version of workflow template to retrieve. Only previously
347
- # instatiated versions can be retrieved.
361
+ # instantiated versions can be retrieved.
348
362
  #
349
363
  # If unspecified, retrieves the current version.
350
364
  # @param options [Google::Gax::CallOptions]
@@ -388,16 +402,25 @@ module Google
388
402
  # clusters to be deleted.
389
403
  #
390
404
  # The {Google::Longrunning::Operation#metadata Operation#metadata} will be
391
- # {Google::Cloud::Dataproc::V1::WorkflowMetadata WorkflowMetadata}.
405
+ # [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
406
+ # Also see [Using
407
+ # WorkflowMetadata](/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
392
408
  #
393
409
  # On successful completion,
394
410
  # {Google::Longrunning::Operation#response Operation#response} will be
395
411
  # {Google::Protobuf::Empty Empty}.
396
412
  #
397
413
  # @param name [String]
398
- # Required. The "resource name" of the workflow template, as described
399
- # in https://cloud.google.com/apis/design/resource_names of the form
400
- # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
414
+ # Required. The resource name of the workflow template, as described
415
+ # in https://cloud.google.com/apis/design/resource_names.
416
+ #
417
+ # * For `projects.regions.workflowTemplates.instantiate`, the resource name
418
+ # of the template has the following format:
419
+ # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
420
+ #
421
+ # * For `projects.locations.workflowTemplates.instantiate`, the resource name
422
+ # of the template has the following format:
423
+ # `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
401
424
  # @param version [Integer]
402
425
  # Optional. The version of workflow template to instantiate. If specified,
403
426
  # the workflow will be instantiated only if the current version of
@@ -497,16 +520,25 @@ module Google
497
520
  # clusters to be deleted.
498
521
  #
499
522
  # The {Google::Longrunning::Operation#metadata Operation#metadata} will be
500
- # {Google::Cloud::Dataproc::V1::WorkflowMetadata WorkflowMetadata}.
523
+ # [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
524
+ # Also see [Using
525
+ # WorkflowMetadata](/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
501
526
  #
502
527
  # On successful completion,
503
528
  # {Google::Longrunning::Operation#response Operation#response} will be
504
529
  # {Google::Protobuf::Empty Empty}.
505
530
  #
506
531
  # @param parent [String]
507
- # Required. The "resource name" of the workflow template region, as described
508
- # in https://cloud.google.com/apis/design/resource_names of the form
509
- # `projects/{project_id}/regions/{region}`
532
+ # Required. The resource name of the region or location, as described
533
+ # in https://cloud.google.com/apis/design/resource_names.
534
+ #
535
+ # * For `projects.regions.workflowTemplates,instantiateinline`, the resource
536
+ # name of the region has the following format:
537
+ # `projects/{project_id}/regions/{region}`
538
+ #
539
+ # * For `projects.locations.workflowTemplates.instantiateinline`, the
540
+ # resource name of the location has the following format:
541
+ # `projects/{project_id}/locations/{location}`
510
542
  # @param template [Google::Cloud::Dataproc::V1::WorkflowTemplate | Hash]
511
543
  # Required. The workflow template to instantiate.
512
544
  # A hash of the same form as `Google::Cloud::Dataproc::V1::WorkflowTemplate`
@@ -624,9 +656,16 @@ module Google
624
656
  # Lists workflows that match the specified filter in the request.
625
657
  #
626
658
  # @param parent [String]
627
- # Required. The "resource name" of the region, as described
628
- # in https://cloud.google.com/apis/design/resource_names of the form
629
- # `projects/{project_id}/regions/{region}`
659
+ # Required. The resource name of the region or location, as described
660
+ # in https://cloud.google.com/apis/design/resource_names.
661
+ #
662
+ # * For `projects.regions.workflowTemplates,list`, the resource
663
+ # name of the region has the following format:
664
+ # `projects/{project_id}/regions/{region}`
665
+ #
666
+ # * For `projects.locations.workflowTemplates.list`, the
667
+ # resource name of the location has the following format:
668
+ # `projects/{project_id}/locations/{location}`
630
669
  # @param page_size [Integer]
631
670
  # The maximum number of resources contained in the underlying API
632
671
  # response. If page streaming is performed per-resource, this
@@ -680,9 +719,16 @@ module Google
680
719
  # Deletes a workflow template. It does not cancel in-progress workflows.
681
720
  #
682
721
  # @param name [String]
683
- # Required. The "resource name" of the workflow template, as described
684
- # in https://cloud.google.com/apis/design/resource_names of the form
685
- # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
722
+ # Required. The resource name of the workflow template, as described
723
+ # in https://cloud.google.com/apis/design/resource_names.
724
+ #
725
+ # * For `projects.regions.workflowTemplates.delete`, the resource name
726
+ # of the template has the following format:
727
+ # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
728
+ #
729
+ # * For `projects.locations.workflowTemplates.instantiate`, the resource name
730
+ # of the template has the following format:
731
+ # `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
686
732
  # @param version [Integer]
687
733
  # Optional. The version of workflow template to delete. If specified,
688
734
  # will only delete the template if the current server version matches
@@ -5,6 +5,9 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
8
11
  require 'google/cloud/dataproc/v1/clusters_pb'
9
12
  require 'google/cloud/dataproc/v1/jobs_pb'
10
13
  require 'google/longrunning/operations_pb'
@@ -56,7 +56,9 @@ module Google
56
56
  # clusters to be deleted.
57
57
  #
58
58
  # The [Operation.metadata][google.longrunning.Operation.metadata] will be
59
- # [WorkflowMetadata][google.cloud.dataproc.v1.WorkflowMetadata].
59
+ # [WorkflowMetadata](/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
60
+ # Also see [Using
61
+ # WorkflowMetadata](/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
60
62
  #
61
63
  # On successful completion,
62
64
  # [Operation.response][google.longrunning.Operation.response] will be
@@ -79,7 +81,9 @@ module Google
79
81
  # clusters to be deleted.
80
82
  #
81
83
  # The [Operation.metadata][google.longrunning.Operation.metadata] will be
82
- # [WorkflowMetadata][google.cloud.dataproc.v1.WorkflowMetadata].
84
+ # [WorkflowMetadata](/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
85
+ # Also see [Using
86
+ # WorkflowMetadata](/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
83
87
  #
84
88
  # On successful completion,
85
89
  # [Operation.response][google.longrunning.Operation.response] will be
@@ -5,12 +5,11 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
- require 'google/cloud/dataproc/v1beta2/clusters_pb'
9
- require 'google/cloud/dataproc/v1beta2/jobs_pb'
10
- require 'google/longrunning/operations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
11
  require 'google/protobuf/duration_pb'
12
12
  require 'google/protobuf/empty_pb'
13
- require 'google/protobuf/timestamp_pb'
14
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
14
  add_message "google.cloud.dataproc.v1beta2.AutoscalingPolicy" do
16
15
  optional :id, :string, 1
@@ -261,11 +261,18 @@ module Google
261
261
  # Creates new autoscaling policy.
262
262
  #
263
263
  # @param parent [String]
264
- # Required. The "resource name" of the region, as described
265
- # in https://cloud.google.com/apis/design/resource_names of the form
266
- # `projects/{project_id}/regions/{region}`.
264
+ # Required. The "resource name" of the region or location, as described
265
+ # in https://cloud.google.com/apis/design/resource_names.
266
+ #
267
+ # * For `projects.regions.autoscalingPolicies.create`, the resource name
268
+ # has the following format:
269
+ # `projects/{project_id}/regions/{region}`
270
+ #
271
+ # * For `projects.locations.autoscalingPolicies.create`, the resource name
272
+ # has the following format:
273
+ # `projects/{project_id}/locations/{location}`
267
274
  # @param policy [Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy | Hash]
268
- # The autoscaling policy to create.
275
+ # Required. The autoscaling policy to create.
269
276
  # A hash of the same form as `Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy`
270
277
  # can also be provided.
271
278
  # @param options [Google::Gax::CallOptions]
@@ -340,8 +347,15 @@ module Google
340
347
  #
341
348
  # @param name [String]
342
349
  # Required. The "resource name" of the autoscaling policy, as described
343
- # in https://cloud.google.com/apis/design/resource_names of the form
344
- # `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
350
+ # in https://cloud.google.com/apis/design/resource_names.
351
+ #
352
+ # * For `projects.regions.autoscalingPolicies.get`, the resource name
353
+ # of the policy has the following format:
354
+ # `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
355
+ #
356
+ # * For `projects.locations.autoscalingPolicies.get`, the resource name
357
+ # of the policy has the following format:
358
+ # `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
345
359
  # @param options [Google::Gax::CallOptions]
346
360
  # Overrides the default settings for this call, e.g, timeout,
347
361
  # retries, etc.
@@ -371,9 +385,16 @@ module Google
371
385
  # Lists autoscaling policies in the project.
372
386
  #
373
387
  # @param parent [String]
374
- # Required. The "resource name" of the region, as described
375
- # in https://cloud.google.com/apis/design/resource_names of the form
376
- # `projects/{project_id}/regions/{region}`
388
+ # Required. The "resource name" of the region or location, as described
389
+ # in https://cloud.google.com/apis/design/resource_names.
390
+ #
391
+ # * For `projects.regions.autoscalingPolicies.list`, the resource name
392
+ # of the region has the following format:
393
+ # `projects/{project_id}/regions/{region}`
394
+ #
395
+ # * For `projects.locations.autoscalingPolicies.list`, the resource name
396
+ # of the location has the following format:
397
+ # `projects/{project_id}/locations/{location}`
377
398
  # @param page_size [Integer]
378
399
  # The maximum number of resources contained in the underlying API
379
400
  # response. If page streaming is performed per-resource, this
@@ -429,8 +450,15 @@ module Google
429
450
  #
430
451
  # @param name [String]
431
452
  # Required. The "resource name" of the autoscaling policy, as described
432
- # in https://cloud.google.com/apis/design/resource_names of the form
433
- # `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
453
+ # in https://cloud.google.com/apis/design/resource_names.
454
+ #
455
+ # * For `projects.regions.autoscalingPolicies.delete`, the resource name
456
+ # of the policy has the following format:
457
+ # `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
458
+ #
459
+ # * For `projects.locations.autoscalingPolicies.delete`, the resource name
460
+ # of the policy has the following format:
461
+ # `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
434
462
  # @param options [Google::Gax::CallOptions]
435
463
  # Overrides the default settings for this call, e.g, timeout,
436
464
  # retries, etc.