google-api-client 0.29.2 → 0.30.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.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/generated/google/apis/admin_reports_v1.rb +1 -1
  4. data/generated/google/apis/admin_reports_v1/classes.rb +106 -0
  5. data/generated/google/apis/admin_reports_v1/representations.rb +51 -0
  6. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  7. data/generated/google/apis/alertcenter_v1beta1/classes.rb +6 -0
  8. data/generated/google/apis/alertcenter_v1beta1/representations.rb +1 -0
  9. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  10. data/generated/google/apis/androidmanagement_v1/classes.rb +2 -3
  11. data/generated/google/apis/composer_v1.rb +1 -1
  12. data/generated/google/apis/composer_v1/classes.rb +24 -21
  13. data/generated/google/apis/composer_v1/service.rb +4 -2
  14. data/generated/google/apis/composer_v1beta1.rb +1 -1
  15. data/generated/google/apis/composer_v1beta1/classes.rb +24 -21
  16. data/generated/google/apis/composer_v1beta1/service.rb +4 -2
  17. data/generated/google/apis/container_v1.rb +1 -1
  18. data/generated/google/apis/container_v1/classes.rb +1 -1
  19. data/generated/google/apis/container_v1beta1.rb +1 -1
  20. data/generated/google/apis/container_v1beta1/classes.rb +36 -1
  21. data/generated/google/apis/container_v1beta1/representations.rb +17 -0
  22. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  23. data/generated/google/apis/dataflow_v1b3/service.rb +44 -2
  24. data/generated/google/apis/dialogflow_v2.rb +1 -1
  25. data/generated/google/apis/dialogflow_v2/classes.rb +4 -2
  26. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  27. data/generated/google/apis/dialogflow_v2beta1/classes.rb +4 -2
  28. data/generated/google/apis/fcm_v1.rb +1 -1
  29. data/generated/google/apis/fcm_v1/classes.rb +19 -0
  30. data/generated/google/apis/fcm_v1/representations.rb +14 -0
  31. data/generated/google/apis/games_v1.rb +1 -4
  32. data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
  33. data/generated/google/apis/healthcare_v1alpha2/classes.rb +2 -2
  34. data/generated/google/apis/healthcare_v1alpha2/service.rb +21 -21
  35. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  36. data/generated/google/apis/healthcare_v1beta1/service.rb +21 -21
  37. data/generated/google/apis/logging_v2.rb +1 -1
  38. data/generated/google/apis/logging_v2/classes.rb +8 -1
  39. data/generated/google/apis/logging_v2/representations.rb +1 -0
  40. data/generated/google/apis/redis_v1.rb +1 -1
  41. data/generated/google/apis/redis_v1/classes.rb +1 -1
  42. data/generated/google/apis/redis_v1beta1.rb +1 -1
  43. data/generated/google/apis/redis_v1beta1/classes.rb +1 -1
  44. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  45. data/generated/google/apis/remotebuildexecution_v1/classes.rb +25 -0
  46. data/generated/google/apis/remotebuildexecution_v1/representations.rb +14 -0
  47. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  48. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +25 -0
  49. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +14 -0
  50. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  51. data/generated/google/apis/remotebuildexecution_v2/classes.rb +25 -0
  52. data/generated/google/apis/remotebuildexecution_v2/representations.rb +14 -0
  53. data/generated/google/apis/run_v1alpha1.rb +1 -1
  54. data/generated/google/apis/run_v1alpha1/classes.rb +354 -0
  55. data/generated/google/apis/run_v1alpha1/representations.rb +129 -0
  56. data/generated/google/apis/run_v1alpha1/service.rb +176 -0
  57. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  58. data/generated/google/apis/securitycenter_v1.rb +1 -1
  59. data/generated/google/apis/securitycenter_v1/classes.rb +2 -4
  60. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  61. data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -4
  62. data/generated/google/apis/tagmanager_v1.rb +1 -1
  63. data/generated/google/apis/tagmanager_v1/classes.rb +2 -0
  64. data/generated/google/apis/tagmanager_v2.rb +1 -1
  65. data/generated/google/apis/tagmanager_v2/classes.rb +46 -0
  66. data/generated/google/apis/tagmanager_v2/representations.rb +29 -0
  67. data/generated/google/apis/tagmanager_v2/service.rb +219 -0
  68. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  69. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +6 -1
  70. data/generated/google/apis/websecurityscanner_v1beta/representations.rb +1 -0
  71. data/generated/google/apis/youtube_analytics_v1.rb +2 -17
  72. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -311
  73. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -148
  74. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -419
  75. data/lib/google/apis/version.rb +1 -1
  76. metadata +2 -6
  77. data/generated/google/apis/youtube_analytics_v1beta1.rb +0 -46
  78. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +0 -337
  79. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +0 -174
  80. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +0 -473
@@ -49,7 +49,8 @@ module Google
49
49
 
50
50
  # Create a new environment.
51
51
  # @param [String] parent
52
- # The parent must be of the form "projects/`projectId`/locations/`locationId`".
52
+ # The parent must be of the form
53
+ # "projects/`projectId`/locations/`locationId`".
53
54
  # @param [Google::Apis::ComposerV1::Environment] environment_object
54
55
  # @param [String] fields
55
56
  # Selector specifying which fields to include in a partial response.
@@ -277,7 +278,8 @@ module Google
277
278
  # <tr>
278
279
  # <td>config.nodeCount</td>
279
280
  # <td>Horizontally scale the number of nodes in the environment. An integer
280
- # greater than or equal to 3 must be provided in the `config.nodeCount` field.
281
+ # greater than or equal to 3 must be provided in the `config.nodeCount`
282
+ # field.
281
283
  # </td>
282
284
  # </tr>
283
285
  # <tr>
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/composer/
26
26
  module ComposerV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20190323'
28
+ REVISION = '20190514'
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'
@@ -113,8 +113,8 @@ module Google
113
113
 
114
114
  # Output only.
115
115
  # The URI of the Apache Airflow Web UI hosted within this environment (see
116
- # [Airflow web interface](/composer/docs/how-to/accessing/airflow-web-interface))
117
- # .
116
+ # [Airflow web
117
+ # interface](/composer/docs/how-to/accessing/airflow-web-interface)).
118
118
  # Corresponds to the JSON property `airflowUri`
119
119
  # @return [String]
120
120
  attr_accessor :airflow_uri
@@ -377,8 +377,9 @@ module Google
377
377
 
378
378
  # Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which
379
379
  # to deploy the VMs used to run the Apache Airflow software, specified as a
380
- # [relative resource name](/apis/design/resource_names#relative_resource_name).
381
- # For example: "projects/`projectId`/zones/`zoneId`".
380
+ # [relative resource
381
+ # name](/apis/design/resource_names#relative_resource_name). For example:
382
+ # "projects/`projectId`/zones/`zoneId`".
382
383
  # This `location` must belong to the enclosing environment's project and
383
384
  # location. If both this field and `nodeConfig.machineType` are specified,
384
385
  # `nodeConfig.machineType` must belong to this `location`; if both are
@@ -394,8 +395,8 @@ module Google
394
395
  # Optional. The Compute Engine
395
396
  # [machine type](/compute/docs/machine-types) used for cluster instances,
396
397
  # specified as a
397
- # [relative resource name](/apis/design/resource_names#relative_resource_name).
398
- # For example:
398
+ # [relative resource
399
+ # name](/apis/design/resource_names#relative_resource_name). For example:
399
400
  # "projects/`projectId`/zones/`zoneId`/machineTypes/`machineTypeId`".
400
401
  # The `machineType` must belong to the enclosing environment's project and
401
402
  # location. If both this field and `nodeConfig.location` are specified,
@@ -413,8 +414,9 @@ module Google
413
414
 
414
415
  # Optional. The Compute Engine network to be used for machine
415
416
  # communications, specified as a
416
- # [relative resource name](/apis/design/resource_names#relative_resource_name).
417
- # For example: "projects/`projectId`/global/networks/`networkId`".
417
+ # [relative resource
418
+ # name](/apis/design/resource_names#relative_resource_name). For example:
419
+ # "projects/`projectId`/global/networks/`networkId`".
418
420
  # If unspecified, the default network in the environment's project is used.
419
421
  # If a [Custom Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets)
420
422
  # is provided, `nodeConfig.subnetwork` must also be provided. For
@@ -440,8 +442,8 @@ module Google
440
442
 
441
443
  # Optional. The Compute Engine subnetwork to be used for machine
442
444
  # communications, specified as a
443
- # [relative resource name](/apis/design/resource_names#relative_resource_name).
444
- # For example:
445
+ # [relative resource
446
+ # name](/apis/design/resource_names#relative_resource_name). For example:
445
447
  # "projects/`projectId`/regions/`regionId`/subnetworks/`subnetworkId`"
446
448
  # If a subnetwork is provided, `nodeConfig.network` must also be provided,
447
449
  # and the subnetwork must belong to the enclosing environment's project and
@@ -542,7 +544,7 @@ module Google
542
544
 
543
545
  # The server-assigned name, which is only unique within the same service that
544
546
  # originally returns it. If you use the default HTTP mapping, the
545
- # `name` should have the format of `operations/some/unique/name`.
547
+ # `name` should be a resource name ending with `operations/`unique_id``.
546
548
  # Corresponds to the JSON property `name`
547
549
  # @return [String]
548
550
  attr_accessor :name
@@ -697,15 +699,15 @@ module Google
697
699
  include Google::Apis::Core::Hashable
698
700
 
699
701
  # Optional. Apache Airflow configuration properties to override.
700
- # Property keys contain the section and property names, separated by a hyphen,
701
- # for example "core-dags_are_paused_at_creation". Section names must not
702
- # contain hyphens ("-"), opening square brackets ("["), or closing square
703
- # brackets ("]"). The property name must not be empty and must not contain
704
- # an equals sign ("=") or semicolon (";"). Section and property names must
705
- # not contain a period ("."). Apache Airflow configuration property names
706
- # must be written in [snake_case](https://en.wikipedia.org/wiki/Snake_case).
707
- # Property values can contain any character, and can be written in any
708
- # lower/upper case format.
702
+ # Property keys contain the section and property names, separated by a
703
+ # hyphen, for example "core-dags_are_paused_at_creation". Section names must
704
+ # not contain hyphens ("-"), opening square brackets ("["), or closing
705
+ # square brackets ("]"). The property name must not be empty and must not
706
+ # contain an equals sign ("=") or semicolon (";"). Section and property names
707
+ # must not contain a period ("."). Apache Airflow configuration property
708
+ # names must be written in
709
+ # [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can
710
+ # contain any character, and can be written in any lower/upper case format.
709
711
  # Certain Apache Airflow configuration property values are
710
712
  # [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations#
711
713
  # airflow_configuration_blacklists),
@@ -753,7 +755,8 @@ module Google
753
755
  # The portion of the image version that follows <em>airflow-</em> is an
754
756
  # official Apache Airflow repository
755
757
  # [release name](https://github.com/apache/incubator-airflow/releases).
756
- # See also [Version List](/composer/docs/concepts/versioning/composer-versions).
758
+ # See also [Version
759
+ # List](/composer/docs/concepts/versioning/composer-versions).
757
760
  # Corresponds to the JSON property `imageVersion`
758
761
  # @return [String]
759
762
  attr_accessor :image_version
@@ -49,7 +49,8 @@ module Google
49
49
 
50
50
  # Create a new environment.
51
51
  # @param [String] parent
52
- # The parent must be of the form "projects/`projectId`/locations/`locationId`".
52
+ # The parent must be of the form
53
+ # "projects/`projectId`/locations/`locationId`".
53
54
  # @param [Google::Apis::ComposerV1beta1::Environment] environment_object
54
55
  # @param [String] fields
55
56
  # Selector specifying which fields to include in a partial response.
@@ -277,7 +278,8 @@ module Google
277
278
  # <tr>
278
279
  # <td>config.nodeCount</td>
279
280
  # <td>Horizontally scale the number of nodes in the environment. An integer
280
- # greater than or equal to 3 must be provided in the `config.nodeCount` field.
281
+ # greater than or equal to 3 must be provided in the `config.nodeCount`
282
+ # field.
281
283
  # </td>
282
284
  # </tr>
283
285
  # <tr>
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/container-engine/
27
27
  module ContainerV1
28
28
  VERSION = 'V1'
29
- REVISION = '20190423'
29
+ REVISION = '20190514'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -817,7 +817,7 @@ module Google
817
817
 
818
818
  # Time within the maintenance window to start the maintenance operations.
819
819
  # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
820
- # format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
820
+ # format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
821
821
  # Corresponds to the JSON property `startTime`
822
822
  # @return [String]
823
823
  attr_accessor :start_time
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/container-engine/
27
27
  module ContainerV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20190423'
29
+ REVISION = '20190514'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1021,6 +1021,28 @@ module Google
1021
1021
  end
1022
1022
  end
1023
1023
 
1024
+ # Parameters for controlling consumption metering.
1025
+ class ConsumptionMeteringConfig
1026
+ include Google::Apis::Core::Hashable
1027
+
1028
+ # Whether to enable consumption metering for this cluster. If enabled, a
1029
+ # second BigQuery table will be created to hold resource consumption
1030
+ # records.
1031
+ # Corresponds to the JSON property `enabled`
1032
+ # @return [Boolean]
1033
+ attr_accessor :enabled
1034
+ alias_method :enabled?, :enabled
1035
+
1036
+ def initialize(**args)
1037
+ update!(**args)
1038
+ end
1039
+
1040
+ # Update properties of this object
1041
+ def update!(**args)
1042
+ @enabled = args[:enabled] if args.key?(:enabled)
1043
+ end
1044
+ end
1045
+
1024
1046
  # CreateClusterRequest creates a cluster.
1025
1047
  class CreateClusterRequest
1026
1048
  include Google::Apis::Core::Hashable
@@ -1131,7 +1153,7 @@ module Google
1131
1153
  attr_accessor :duration
1132
1154
 
1133
1155
  # Time within the maintenance window to start the maintenance operations.
1134
- # It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
1156
+ # It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
1135
1157
  # Corresponds to the JSON property `startTime`
1136
1158
  # @return [String]
1137
1159
  attr_accessor :start_time
@@ -2726,6 +2748,11 @@ module Google
2726
2748
  # @return [Google::Apis::ContainerV1beta1::BigQueryDestination]
2727
2749
  attr_accessor :bigquery_destination
2728
2750
 
2751
+ # Parameters for controlling consumption metering.
2752
+ # Corresponds to the JSON property `consumptionMeteringConfig`
2753
+ # @return [Google::Apis::ContainerV1beta1::ConsumptionMeteringConfig]
2754
+ attr_accessor :consumption_metering_config
2755
+
2729
2756
  # Whether to enable network egress metering for this cluster. If enabled, a
2730
2757
  # daemonset will be created in the cluster to meter network egress traffic.
2731
2758
  # Corresponds to the JSON property `enableNetworkEgressMetering`
@@ -2740,6 +2767,7 @@ module Google
2740
2767
  # Update properties of this object
2741
2768
  def update!(**args)
2742
2769
  @bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
2770
+ @consumption_metering_config = args[:consumption_metering_config] if args.key?(:consumption_metering_config)
2743
2771
  @enable_network_egress_metering = args[:enable_network_egress_metering] if args.key?(:enable_network_egress_metering)
2744
2772
  end
2745
2773
  end
@@ -3757,6 +3785,12 @@ module Google
3757
3785
  # @return [String]
3758
3786
  attr_accessor :project_id
3759
3787
 
3788
+ # WorkloadMetadataConfig defines the metadata configuration to expose to
3789
+ # workloads on the node pool.
3790
+ # Corresponds to the JSON property `workloadMetadataConfig`
3791
+ # @return [Google::Apis::ContainerV1beta1::WorkloadMetadataConfig]
3792
+ attr_accessor :workload_metadata_config
3793
+
3760
3794
  # Deprecated. The name of the Google Compute Engine
3761
3795
  # [zone](/compute/docs/zones#available) in which the cluster
3762
3796
  # resides.
@@ -3777,6 +3811,7 @@ module Google
3777
3811
  @node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id)
3778
3812
  @node_version = args[:node_version] if args.key?(:node_version)
3779
3813
  @project_id = args[:project_id] if args.key?(:project_id)
3814
+ @workload_metadata_config = args[:workload_metadata_config] if args.key?(:workload_metadata_config)
3780
3815
  @zone = args[:zone] if args.key?(:zone)
3781
3816
  end
3782
3817
  end
@@ -112,6 +112,12 @@ module Google
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
+ class ConsumptionMeteringConfig
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
115
121
  class CreateClusterRequest
116
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
123
 
@@ -741,6 +747,13 @@ module Google
741
747
  end
742
748
  end
743
749
 
750
+ class ConsumptionMeteringConfig
751
+ # @private
752
+ class Representation < Google::Apis::Core::JsonRepresentation
753
+ property :enabled, as: 'enabled'
754
+ end
755
+ end
756
+
744
757
  class CreateClusterRequest
745
758
  # @private
746
759
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1163,6 +1176,8 @@ module Google
1163
1176
  class Representation < Google::Apis::Core::JsonRepresentation
1164
1177
  property :bigquery_destination, as: 'bigqueryDestination', class: Google::Apis::ContainerV1beta1::BigQueryDestination, decorator: Google::Apis::ContainerV1beta1::BigQueryDestination::Representation
1165
1178
 
1179
+ property :consumption_metering_config, as: 'consumptionMeteringConfig', class: Google::Apis::ContainerV1beta1::ConsumptionMeteringConfig, decorator: Google::Apis::ContainerV1beta1::ConsumptionMeteringConfig::Representation
1180
+
1166
1181
  property :enable_network_egress_metering, as: 'enableNetworkEgressMetering'
1167
1182
  end
1168
1183
  end
@@ -1390,6 +1405,8 @@ module Google
1390
1405
  property :node_pool_id, as: 'nodePoolId'
1391
1406
  property :node_version, as: 'nodeVersion'
1392
1407
  property :project_id, as: 'projectId'
1408
+ property :workload_metadata_config, as: 'workloadMetadataConfig', class: Google::Apis::ContainerV1beta1::WorkloadMetadataConfig, decorator: Google::Apis::ContainerV1beta1::WorkloadMetadataConfig::Representation
1409
+
1393
1410
  property :zone, as: 'zone'
1394
1411
  end
1395
1412
  end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/dataflow
26
26
  module DataflowV1b3
27
27
  VERSION = 'V1b3'
28
- REVISION = '20190503'
28
+ REVISION = '20190519'
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'
@@ -1121,6 +1121,42 @@ module Google
1121
1121
  execute_or_queue_command(command, &block)
1122
1122
  end
1123
1123
 
1124
+ # Lists snapshots.
1125
+ # @param [String] project_id
1126
+ # The project ID to list snapshots for.
1127
+ # @param [String] location
1128
+ # The location to list snapshots in.
1129
+ # @param [String] job_id
1130
+ # If specified, list snapshots created from this job.
1131
+ # @param [String] fields
1132
+ # Selector specifying which fields to include in a partial response.
1133
+ # @param [String] quota_user
1134
+ # Available to use for quota purposes for server-side applications. Can be any
1135
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1136
+ # @param [Google::Apis::RequestOptions] options
1137
+ # Request-specific options
1138
+ #
1139
+ # @yield [result, err] Result & error if block supplied
1140
+ # @yieldparam result [Google::Apis::DataflowV1b3::ListSnapshotsResponse] parsed result object
1141
+ # @yieldparam err [StandardError] error object if request failed
1142
+ #
1143
+ # @return [Google::Apis::DataflowV1b3::ListSnapshotsResponse]
1144
+ #
1145
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1146
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1147
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1148
+ def list_project_location_job_snapshots(project_id, location, job_id, fields: nil, quota_user: nil, options: nil, &block)
1149
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/snapshots', options)
1150
+ command.response_representation = Google::Apis::DataflowV1b3::ListSnapshotsResponse::Representation
1151
+ command.response_class = Google::Apis::DataflowV1b3::ListSnapshotsResponse
1152
+ command.params['projectId'] = project_id unless project_id.nil?
1153
+ command.params['location'] = location unless location.nil?
1154
+ command.params['jobId'] = job_id unless job_id.nil?
1155
+ command.query['fields'] = fields unless fields.nil?
1156
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1157
+ execute_or_queue_command(command, &block)
1158
+ end
1159
+
1124
1160
  # Leases a dataflow WorkItem to run.
1125
1161
  # @param [String] project_id
1126
1162
  # Identifies the project this worker belongs to.
@@ -1280,6 +1316,8 @@ module Google
1280
1316
  # The project ID to list snapshots for.
1281
1317
  # @param [String] location
1282
1318
  # The location to list snapshots in.
1319
+ # @param [String] job_id
1320
+ # If specified, list snapshots created from this job.
1283
1321
  # @param [String] fields
1284
1322
  # Selector specifying which fields to include in a partial response.
1285
1323
  # @param [String] quota_user
@@ -1297,12 +1335,13 @@ module Google
1297
1335
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1298
1336
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1299
1337
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1300
- def list_project_location_snapshots(project_id, location, fields: nil, quota_user: nil, options: nil, &block)
1338
+ def list_project_location_snapshots(project_id, location, job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1301
1339
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/snapshots', options)
1302
1340
  command.response_representation = Google::Apis::DataflowV1b3::ListSnapshotsResponse::Representation
1303
1341
  command.response_class = Google::Apis::DataflowV1b3::ListSnapshotsResponse
1304
1342
  command.params['projectId'] = project_id unless project_id.nil?
1305
1343
  command.params['location'] = location unless location.nil?
1344
+ command.query['jobId'] = job_id unless job_id.nil?
1306
1345
  command.query['fields'] = fields unless fields.nil?
1307
1346
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1308
1347
  execute_or_queue_command(command, &block)
@@ -1524,6 +1563,8 @@ module Google
1524
1563
  # Lists snapshots.
1525
1564
  # @param [String] project_id
1526
1565
  # The project ID to list snapshots for.
1566
+ # @param [String] job_id
1567
+ # If specified, list snapshots created from this job.
1527
1568
  # @param [String] location
1528
1569
  # The location to list snapshots in.
1529
1570
  # @param [String] fields
@@ -1543,11 +1584,12 @@ module Google
1543
1584
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1544
1585
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1545
1586
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1546
- def list_project_snapshots(project_id, location: nil, fields: nil, quota_user: nil, options: nil, &block)
1587
+ def list_project_snapshots(project_id, job_id: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
1547
1588
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/snapshots', options)
1548
1589
  command.response_representation = Google::Apis::DataflowV1b3::ListSnapshotsResponse::Representation
1549
1590
  command.response_class = Google::Apis::DataflowV1b3::ListSnapshotsResponse
1550
1591
  command.params['projectId'] = project_id unless project_id.nil?
1592
+ command.query['jobId'] = job_id unless job_id.nil?
1551
1593
  command.query['location'] = location unless location.nil?
1552
1594
  command.query['fields'] = fields unless fields.nil?
1553
1595
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/dialogflow-enterprise/
27
27
  module DialogflowV2
28
28
  VERSION = 'V2'
29
- REVISION = '20190514'
29
+ REVISION = '20190520'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -2201,7 +2201,8 @@ module Google
2201
2201
  # - If natural language speech audio was provided as input, `query_text`
2202
2202
  # contains the speech recognition result. If speech recognizer produced
2203
2203
  # multiple alternatives, a particular one is picked.
2204
- # - If an event was provided as input, `query_text` is not set.
2204
+ # - If automatic spell correction is enabled, `query_text` will contain the
2205
+ # corrected user input.
2205
2206
  # Corresponds to the JSON property `queryText`
2206
2207
  # @return [String]
2207
2208
  attr_accessor :query_text
@@ -4228,7 +4229,8 @@ module Google
4228
4229
  # - If natural language speech audio was provided as input, `query_text`
4229
4230
  # contains the speech recognition result. If speech recognizer produced
4230
4231
  # multiple alternatives, a particular one is picked.
4231
- # - If an event was provided as input, `query_text` is not set.
4232
+ # - If automatic spell correction is enabled, `query_text` will contain the
4233
+ # corrected user input.
4232
4234
  # Corresponds to the JSON property `queryText`
4233
4235
  # @return [String]
4234
4236
  attr_accessor :query_text
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/dialogflow-enterprise/
27
27
  module DialogflowV2beta1
28
28
  VERSION = 'V2beta1'
29
- REVISION = '20190514'
29
+ REVISION = '20190520'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1327,7 +1327,8 @@ module Google
1327
1327
  # - If natural language speech audio was provided as input, `query_text`
1328
1328
  # contains the speech recognition result. If speech recognizer produced
1329
1329
  # multiple alternatives, a particular one is picked.
1330
- # - If an event was provided as input, `query_text` is not set.
1330
+ # - If automatic spell correction is enabled, `query_text` will contain the
1331
+ # corrected user input.
1331
1332
  # Corresponds to the JSON property `queryText`
1332
1333
  # @return [String]
1333
1334
  attr_accessor :query_text
@@ -4160,7 +4161,8 @@ module Google
4160
4161
  # - If natural language speech audio was provided as input, `query_text`
4161
4162
  # contains the speech recognition result. If speech recognizer produced
4162
4163
  # multiple alternatives, a particular one is picked.
4163
- # - If an event was provided as input, `query_text` is not set.
4164
+ # - If automatic spell correction is enabled, `query_text` will contain the
4165
+ # corrected user input.
4164
4166
  # Corresponds to the JSON property `queryText`
4165
4167
  # @return [String]
4166
4168
  attr_accessor :query_text