google-api-client 0.33.2 → 0.34.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 (102) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/README.md +1 -1
  4. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  5. data/generated/google/apis/cloudshell_v1.rb +1 -1
  6. data/generated/google/apis/cloudshell_v1/classes.rb +7 -6
  7. data/generated/google/apis/cloudshell_v1/representations.rb +1 -1
  8. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  9. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +7 -6
  10. data/generated/google/apis/cloudshell_v1alpha1/representations.rb +1 -1
  11. data/generated/google/apis/compute_alpha.rb +1 -1
  12. data/generated/google/apis/compute_alpha/classes.rb +38 -26
  13. data/generated/google/apis/compute_alpha/representations.rb +1 -0
  14. data/generated/google/apis/compute_beta.rb +1 -1
  15. data/generated/google/apis/compute_beta/classes.rb +31 -26
  16. data/generated/google/apis/compute_v1.rb +1 -1
  17. data/generated/google/apis/compute_v1/classes.rb +31 -26
  18. data/generated/google/apis/compute_v1/service.rb +10 -1
  19. data/generated/google/apis/container_v1.rb +1 -1
  20. data/generated/google/apis/container_v1/classes.rb +2 -1
  21. data/generated/google/apis/container_v1beta1.rb +1 -1
  22. data/generated/google/apis/container_v1beta1/classes.rb +32 -1
  23. data/generated/google/apis/container_v1beta1/representations.rb +4 -0
  24. data/generated/google/apis/datastore_v1.rb +1 -1
  25. data/generated/google/apis/datastore_v1/service.rb +85 -1
  26. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  27. data/generated/google/apis/datastore_v1beta3/service.rb +1 -1
  28. data/generated/google/apis/dialogflow_v2.rb +1 -1
  29. data/generated/google/apis/dialogflow_v2/classes.rb +25 -287
  30. data/generated/google/apis/dialogflow_v2/representations.rb +2 -115
  31. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  32. data/generated/google/apis/dialogflow_v2beta1/classes.rb +33 -287
  33. data/generated/google/apis/dialogflow_v2beta1/representations.rb +3 -115
  34. data/generated/google/apis/dlp_v2.rb +1 -1
  35. data/generated/google/apis/dlp_v2/classes.rb +19 -11
  36. data/generated/google/apis/dlp_v2/representations.rb +1 -0
  37. data/generated/google/apis/dlp_v2/service.rb +43 -0
  38. data/generated/google/apis/drive_v2.rb +1 -1
  39. data/generated/google/apis/drive_v2/service.rb +3 -3
  40. data/generated/google/apis/drive_v3.rb +1 -1
  41. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  42. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +37 -0
  43. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +16 -0
  44. data/generated/google/apis/firestore_v1.rb +1 -1
  45. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  46. data/generated/google/apis/games_management_v1management.rb +1 -1
  47. data/generated/google/apis/games_management_v1management/classes.rb +6 -26
  48. data/generated/google/apis/games_management_v1management/representations.rb +1 -14
  49. data/generated/google/apis/games_management_v1management/service.rb +0 -158
  50. data/generated/google/apis/games_v1.rb +1 -1
  51. data/generated/google/apis/games_v1/classes.rb +6 -292
  52. data/generated/google/apis/games_v1/representations.rb +1 -98
  53. data/generated/google/apis/games_v1/service.rb +0 -123
  54. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  55. data/generated/google/apis/healthcare_v1beta1/classes.rb +2 -1
  56. data/generated/google/apis/healthcare_v1beta1/service.rb +88 -95
  57. data/generated/google/apis/iam_v1.rb +1 -1
  58. data/generated/google/apis/iam_v1/classes.rb +8 -1
  59. data/generated/google/apis/iam_v1/representations.rb +1 -0
  60. data/generated/google/apis/jobs_v2.rb +1 -1
  61. data/generated/google/apis/jobs_v2/classes.rb +167 -0
  62. data/generated/google/apis/jobs_v2/representations.rb +40 -0
  63. data/generated/google/apis/jobs_v3.rb +1 -1
  64. data/generated/google/apis/jobs_v3/classes.rb +179 -0
  65. data/generated/google/apis/jobs_v3/representations.rb +41 -0
  66. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  67. data/generated/google/apis/jobs_v3p1beta1/classes.rb +179 -0
  68. data/generated/google/apis/jobs_v3p1beta1/representations.rb +41 -0
  69. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  70. data/generated/google/apis/lifesciences_v2beta/classes.rb +2 -1
  71. data/generated/google/apis/ml_v1.rb +1 -1
  72. data/generated/google/apis/ml_v1/classes.rb +57 -23
  73. data/generated/google/apis/ml_v1/service.rb +6 -2
  74. data/generated/google/apis/monitoring_v3.rb +1 -1
  75. data/generated/google/apis/monitoring_v3/classes.rb +12 -12
  76. data/generated/google/apis/monitoring_v3/service.rb +2 -2
  77. data/generated/google/apis/oslogin_v1.rb +1 -1
  78. data/generated/google/apis/oslogin_v1/service.rb +2 -1
  79. data/generated/google/apis/people_v1.rb +1 -1
  80. data/generated/google/apis/people_v1/classes.rb +67 -63
  81. data/generated/google/apis/people_v1/service.rb +53 -44
  82. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  83. data/generated/google/apis/servicecontrol_v1/classes.rb +0 -11
  84. data/generated/google/apis/servicecontrol_v1/representations.rb +0 -1
  85. data/generated/google/apis/videointelligence_v1.rb +1 -1
  86. data/generated/google/apis/videointelligence_v1/classes.rb +1 -2
  87. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  88. data/generated/google/apis/videointelligence_v1beta2/classes.rb +1 -2
  89. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  90. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1 -2
  91. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  92. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1 -2
  93. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  94. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1 -2
  95. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  96. data/google-api-client.gemspec +3 -0
  97. data/lib/google/apis/version.rb +1 -1
  98. metadata +4 -7
  99. data/generated/google/apis/dfareporting_v3_2.rb +0 -40
  100. data/generated/google/apis/dfareporting_v3_2/classes.rb +0 -12299
  101. data/generated/google/apis/dfareporting_v3_2/representations.rb +0 -4397
  102. data/generated/google/apis/dfareporting_v3_2/service.rb +0 -8793
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/compute/docs/reference/latest/
26
26
  module ComputeV1
27
27
  VERSION = 'V1'
28
- REVISION = '20190929'
28
+ REVISION = '20191009'
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'
@@ -2633,7 +2633,8 @@ module Google
2633
2633
  # @return [String]
2634
2634
  attr_accessor :name
2635
2635
 
2636
- # Settings controlling eviction of unhealthy hosts from the load balancing pool.
2636
+ # Settings controlling the eviction of unhealthy hosts from the load balancing
2637
+ # pool for the backend service.
2637
2638
  # Corresponds to the JSON property `outlierDetection`
2638
2639
  # @return [Google::Apis::ComputeV1::OutlierDetection]
2639
2640
  attr_accessor :outlier_detection
@@ -3322,33 +3323,34 @@ module Google
3322
3323
  class CircuitBreakers
3323
3324
  include Google::Apis::Core::Hashable
3324
3325
 
3325
- # The maximum number of connections to the backend cluster. If not specified,
3326
- # the default is 1024.
3326
+ # The maximum number of connections to the backend service. If not specified,
3327
+ # there is no limit.
3327
3328
  # Corresponds to the JSON property `maxConnections`
3328
3329
  # @return [Fixnum]
3329
3330
  attr_accessor :max_connections
3330
3331
 
3331
- # The maximum number of pending requests allowed to the backend cluster. If not
3332
- # specified, the default is 1024.
3332
+ # The maximum number of pending requests allowed to the backend service. If not
3333
+ # specified, there is no limit.
3333
3334
  # Corresponds to the JSON property `maxPendingRequests`
3334
3335
  # @return [Fixnum]
3335
3336
  attr_accessor :max_pending_requests
3336
3337
 
3337
- # The maximum number of parallel requests that allowed to the backend cluster.
3338
- # If not specified, the default is 1024.
3338
+ # The maximum number of parallel requests that allowed to the backend service.
3339
+ # If not specified, there is no limit.
3339
3340
  # Corresponds to the JSON property `maxRequests`
3340
3341
  # @return [Fixnum]
3341
3342
  attr_accessor :max_requests
3342
3343
 
3343
- # Maximum requests for a single backend connection. This parameter is respected
3344
- # by both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no
3345
- # limit. Setting this parameter to 1 will effectively disable keep alive.
3344
+ # Maximum requests for a single connection to the backend service. This
3345
+ # parameter is respected by both the HTTP/1.1 and HTTP/2 implementations. If not
3346
+ # specified, there is no limit. Setting this parameter to 1 will effectively
3347
+ # disable keep alive.
3346
3348
  # Corresponds to the JSON property `maxRequestsPerConnection`
3347
3349
  # @return [Fixnum]
3348
3350
  attr_accessor :max_requests_per_connection
3349
3351
 
3350
3352
  # The maximum number of parallel retries allowed to the backend cluster. If not
3351
- # specified, the default is 3.
3353
+ # specified, the default is 1.
3352
3354
  # Corresponds to the JSON property `maxRetries`
3353
3355
  # @return [Fixnum]
3354
3356
  attr_accessor :max_retries
@@ -5140,7 +5142,8 @@ module Google
5140
5142
  class DisksAddResourcePoliciesRequest
5141
5143
  include Google::Apis::Core::Hashable
5142
5144
 
5143
- # Resource policies to be added to this disk.
5145
+ # Resource policies to be added to this disk. Currently you can only specify one
5146
+ # policy here.
5144
5147
  # Corresponds to the JSON property `resourcePolicies`
5145
5148
  # @return [Array<String>]
5146
5149
  attr_accessor :resource_policies
@@ -8372,7 +8375,8 @@ module Google
8372
8375
  class HttpRetryPolicy
8373
8376
  include Google::Apis::Core::Hashable
8374
8377
 
8375
- # Specifies the allowed number retries. This number must be > 0.
8378
+ # Specifies the allowed number retries. This number must be > 0. If not
8379
+ # specified, defaults to 1.
8376
8380
  # Corresponds to the JSON property `numRetries`
8377
8381
  # @return [Fixnum]
8378
8382
  attr_accessor :num_retries
@@ -13903,10 +13907,10 @@ module Google
13903
13907
  # a representation of IAMContext.principal even if a token or authority selector
13904
13908
  # is present; or - "" (empty string), resulting in a counter with no fields.
13905
13909
  # Examples: counter ` metric: "/debug_access_count" field: "iam_principal" ` ==>
13906
- # increment counter /iam/policy/backend_debug_access_count `iam_principal=[value
13907
- # of IAMContext.principal]`
13908
- # At this time we do not support multiple field names (though this may be
13909
- # supported in the future).
13910
+ # increment counter /iam/policy/debug_access_count `iam_principal=[value of
13911
+ # IAMContext.principal]`
13912
+ # TODO(b/141846426): Consider supporting "authority" and "iam_principal" fields
13913
+ # in the same counter.
13910
13914
  # Corresponds to the JSON property `counter`
13911
13915
  # @return [Google::Apis::ComputeV1::LogConfigCounterOptions]
13912
13916
  attr_accessor :counter
@@ -13965,10 +13969,10 @@ module Google
13965
13969
  # a representation of IAMContext.principal even if a token or authority selector
13966
13970
  # is present; or - "" (empty string), resulting in a counter with no fields.
13967
13971
  # Examples: counter ` metric: "/debug_access_count" field: "iam_principal" ` ==>
13968
- # increment counter /iam/policy/backend_debug_access_count `iam_principal=[value
13969
- # of IAMContext.principal]`
13970
- # At this time we do not support multiple field names (though this may be
13971
- # supported in the future).
13972
+ # increment counter /iam/policy/debug_access_count `iam_principal=[value of
13973
+ # IAMContext.principal]`
13974
+ # TODO(b/141846426): Consider supporting "authority" and "iam_principal" fields
13975
+ # in the same counter.
13972
13976
  class LogConfigCounterOptions
13973
13977
  include Google::Apis::Core::Hashable
13974
13978
 
@@ -18173,7 +18177,8 @@ module Google
18173
18177
  end
18174
18178
  end
18175
18179
 
18176
- # Settings controlling eviction of unhealthy hosts from the load balancing pool.
18180
+ # Settings controlling the eviction of unhealthy hosts from the load balancing
18181
+ # pool for the backend service.
18177
18182
  class OutlierDetection
18178
18183
  include Google::Apis::Core::Hashable
18179
18184
 
@@ -18194,21 +18199,21 @@ module Google
18194
18199
 
18195
18200
  # The number of consecutive gateway failures (502, 503, 504 status or connection
18196
18201
  # errors that are mapped to one of those status codes) before a consecutive
18197
- # gateway failure ejection occurs. Defaults to 5.
18202
+ # gateway failure ejection occurs. Defaults to 3.
18198
18203
  # Corresponds to the JSON property `consecutiveGatewayFailure`
18199
18204
  # @return [Fixnum]
18200
18205
  attr_accessor :consecutive_gateway_failure
18201
18206
 
18202
18207
  # The percentage chance that a host will be actually ejected when an outlier
18203
18208
  # status is detected through consecutive 5xx. This setting can be used to
18204
- # disable ejection or to ramp it up slowly. Defaults to 100.
18209
+ # disable ejection or to ramp it up slowly. Defaults to 0.
18205
18210
  # Corresponds to the JSON property `enforcingConsecutiveErrors`
18206
18211
  # @return [Fixnum]
18207
18212
  attr_accessor :enforcing_consecutive_errors
18208
18213
 
18209
18214
  # The percentage chance that a host will be actually ejected when an outlier
18210
18215
  # status is detected through consecutive gateway failures. This setting can be
18211
- # used to disable ejection or to ramp it up slowly. Defaults to 0.
18216
+ # used to disable ejection or to ramp it up slowly. Defaults to 100.
18212
18217
  # Corresponds to the JSON property `enforcingConsecutiveGatewayFailure`
18213
18218
  # @return [Fixnum]
18214
18219
  attr_accessor :enforcing_consecutive_gateway_failure
@@ -18229,7 +18234,7 @@ module Google
18229
18234
  attr_accessor :interval
18230
18235
 
18231
18236
  # Maximum percentage of hosts in the load balancing pool for the backend service
18232
- # that can be ejected. Defaults to 10%.
18237
+ # that can be ejected. Defaults to 50%.
18233
18238
  # Corresponds to the JSON property `maxEjectionPercent`
18234
18239
  # @return [Fixnum]
18235
18240
  attr_accessor :max_ejection_percent
@@ -21720,6 +21720,14 @@ module Google
21720
21720
  # @param [String] subnetwork
21721
21721
  # Name of the Subnetwork resource to patch.
21722
21722
  # @param [Google::Apis::ComputeV1::Subnetwork] subnetwork_object
21723
+ # @param [Fixnum] drain_timeout_seconds
21724
+ # The drain timeout specifies the upper bound in seconds on the amount of time
21725
+ # allowed to drain connections from the current ACTIVE subnetwork to the current
21726
+ # BACKUP subnetwork. The drain timeout is only applicable when the following
21727
+ # conditions are true: - the subnetwork being patched has purpose =
21728
+ # INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has role = BACKUP -
21729
+ # the patch request is setting the role to ACTIVE. Note that after this patch
21730
+ # operation the roles of the ACTIVE and BACKUP subnetworks will be swapped.
21723
21731
  # @param [String] request_id
21724
21732
  # An optional request ID to identify requests. Specify a unique request ID so
21725
21733
  # that if you must retry your request, the server will know to ignore the
@@ -21750,7 +21758,7 @@ module Google
21750
21758
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
21751
21759
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
21752
21760
  # @raise [Google::Apis::AuthorizationError] Authorization is required
21753
- def patch_subnetwork(project, region, subnetwork, subnetwork_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
21761
+ def patch_subnetwork(project, region, subnetwork, subnetwork_object = nil, drain_timeout_seconds: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
21754
21762
  command = make_simple_command(:patch, '{project}/regions/{region}/subnetworks/{subnetwork}', options)
21755
21763
  command.request_representation = Google::Apis::ComputeV1::Subnetwork::Representation
21756
21764
  command.request_object = subnetwork_object
@@ -21759,6 +21767,7 @@ module Google
21759
21767
  command.params['project'] = project unless project.nil?
21760
21768
  command.params['region'] = region unless region.nil?
21761
21769
  command.params['subnetwork'] = subnetwork unless subnetwork.nil?
21770
+ command.query['drainTimeoutSeconds'] = drain_timeout_seconds unless drain_timeout_seconds.nil?
21762
21771
  command.query['requestId'] = request_id unless request_id.nil?
21763
21772
  command.query['fields'] = fields unless fields.nil?
21764
21773
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -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 = '20191021'
29
+ REVISION = '20191024'
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'
@@ -524,7 +524,8 @@ module Google
524
524
  attr_accessor :monitoring_service
525
525
 
526
526
  # The name of this cluster. The name must be unique within this project
527
- # and zone, and can be up to 40 characters with the following restrictions:
527
+ # and location (e.g. zone or region), and can be up to 40 characters with
528
+ # the following restrictions:
528
529
  # * Lowercase letters, numbers, and hyphens only.
529
530
  # * Must start with a letter.
530
531
  # * Must end with a number or a letter.
@@ -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 = '20191021'
29
+ REVISION = '20191024'
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'
@@ -165,6 +165,12 @@ module Google
165
165
  class AutoprovisioningNodePoolDefaults
166
166
  include Google::Apis::Core::Hashable
167
167
 
168
+ # NodeManagement defines the set of node management services turned on for the
169
+ # node pool.
170
+ # Corresponds to the JSON property `management`
171
+ # @return [Google::Apis::ContainerV1beta1::NodeManagement]
172
+ attr_accessor :management
173
+
168
174
  # Scopes that are used by NAP when creating node pools. If oauth_scopes are
169
175
  # specified, service_account should be empty.
170
176
  # Corresponds to the JSON property `oauthScopes`
@@ -177,14 +183,38 @@ module Google
177
183
  # @return [String]
178
184
  attr_accessor :service_account
179
185
 
186
+ # These upgrade settings control the level of parallelism and the level of
187
+ # disruption caused by an upgrade.
188
+ # maxUnavailable controls the number of nodes that can be simultaneously
189
+ # unavailable.
190
+ # maxSurge controls the number of additional nodes that can be added to the
191
+ # node pool temporarily for the time of the upgrade to increase the number of
192
+ # available nodes.
193
+ # (maxUnavailable + maxSurge) determines the level of parallelism (how many
194
+ # nodes are being upgraded at the same time).
195
+ # Note: upgrades inevitably introduce some disruption since workloads need to
196
+ # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
197
+ # this holds true. (Disruption stays within the limits of
198
+ # PodDisruptionBudget, if it is configured.)
199
+ # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
200
+ # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
201
+ # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
202
+ # down 3 old (not yet upgraded) nodes at the same time. This ensures that
203
+ # there are always at least 4 nodes available.
204
+ # Corresponds to the JSON property `upgradeSettings`
205
+ # @return [Google::Apis::ContainerV1beta1::UpgradeSettings]
206
+ attr_accessor :upgrade_settings
207
+
180
208
  def initialize(**args)
181
209
  update!(**args)
182
210
  end
183
211
 
184
212
  # Update properties of this object
185
213
  def update!(**args)
214
+ @management = args[:management] if args.key?(:management)
186
215
  @oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
187
216
  @service_account = args[:service_account] if args.key?(:service_account)
217
+ @upgrade_settings = args[:upgrade_settings] if args.key?(:upgrade_settings)
188
218
  end
189
219
  end
190
220
 
@@ -563,7 +593,8 @@ module Google
563
593
  attr_accessor :monitoring_service
564
594
 
565
595
  # The name of this cluster. The name must be unique within this project
566
- # and zone, and can be up to 40 characters with the following restrictions:
596
+ # and location (e.g. zone or region), and can be up to 40 characters with
597
+ # the following restrictions:
567
598
  # * Lowercase letters, numbers, and hyphens only.
568
599
  # * Must start with a letter.
569
600
  # * Must end with a number or a letter.
@@ -631,8 +631,12 @@ module Google
631
631
  class AutoprovisioningNodePoolDefaults
632
632
  # @private
633
633
  class Representation < Google::Apis::Core::JsonRepresentation
634
+ property :management, as: 'management', class: Google::Apis::ContainerV1beta1::NodeManagement, decorator: Google::Apis::ContainerV1beta1::NodeManagement::Representation
635
+
634
636
  collection :oauth_scopes, as: 'oauthScopes'
635
637
  property :service_account, as: 'serviceAccount'
638
+ property :upgrade_settings, as: 'upgradeSettings', class: Google::Apis::ContainerV1beta1::UpgradeSettings, decorator: Google::Apis::ContainerV1beta1::UpgradeSettings::Representation
639
+
636
640
  end
637
641
  end
638
642
 
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/datastore/
27
27
  module DatastoreV1
28
28
  VERSION = 'V1'
29
- REVISION = '20190804'
29
+ REVISION = '20191020'
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'
@@ -260,7 +260,7 @@ module Google
260
260
  end
261
261
 
262
262
  # Prevents the supplied keys' IDs from being auto-allocated by Cloud
263
- # Datastore.
263
+ # Datastore. Used for imports only; other workloads are not supported.
264
264
  # @param [String] project_id
265
265
  # The ID of the project against which to make the request.
266
266
  # @param [Google::Apis::DatastoreV1::ReserveIdsRequest] reserve_ids_request_object
@@ -359,6 +359,90 @@ module Google
359
359
  execute_or_queue_command(command, &block)
360
360
  end
361
361
 
362
+ # Creates the specified index.
363
+ # A newly created index's initial state is `CREATING`. On completion of the
364
+ # returned google.longrunning.Operation, the state will be `READY`.
365
+ # If the index already exists, the call will return an `ALREADY_EXISTS`
366
+ # status.
367
+ # During index creation, the process could result in an error, in which
368
+ # case the index will move to the `ERROR` state. The process can be recovered
369
+ # by fixing the data that caused the error, removing the index with
370
+ # delete, then
371
+ # re-creating the index with create.
372
+ # Indexes with a single property cannot be created.
373
+ # @param [String] project_id
374
+ # Project ID against which to make the request.
375
+ # @param [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Index] google_datastore_admin_v1_index_object
376
+ # @param [String] fields
377
+ # Selector specifying which fields to include in a partial response.
378
+ # @param [String] quota_user
379
+ # Available to use for quota purposes for server-side applications. Can be any
380
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
381
+ # @param [Google::Apis::RequestOptions] options
382
+ # Request-specific options
383
+ #
384
+ # @yield [result, err] Result & error if block supplied
385
+ # @yieldparam result [Google::Apis::DatastoreV1::GoogleLongrunningOperation] parsed result object
386
+ # @yieldparam err [StandardError] error object if request failed
387
+ #
388
+ # @return [Google::Apis::DatastoreV1::GoogleLongrunningOperation]
389
+ #
390
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
391
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
392
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
393
+ def create_project_index(project_id, google_datastore_admin_v1_index_object = nil, fields: nil, quota_user: nil, options: nil, &block)
394
+ command = make_simple_command(:post, 'v1/projects/{projectId}/indexes', options)
395
+ command.request_representation = Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Index::Representation
396
+ command.request_object = google_datastore_admin_v1_index_object
397
+ command.response_representation = Google::Apis::DatastoreV1::GoogleLongrunningOperation::Representation
398
+ command.response_class = Google::Apis::DatastoreV1::GoogleLongrunningOperation
399
+ command.params['projectId'] = project_id unless project_id.nil?
400
+ command.query['fields'] = fields unless fields.nil?
401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
402
+ execute_or_queue_command(command, &block)
403
+ end
404
+
405
+ # Deletes an existing index.
406
+ # An index can only be deleted if it is in a `READY` or `ERROR` state. On
407
+ # successful execution of the request, the index will be in a `DELETING`
408
+ # state. And on completion of the
409
+ # returned google.longrunning.Operation, the index will be removed.
410
+ # During index deletion, the process could result in an error, in which
411
+ # case the index will move to the `ERROR` state. The process can be recovered
412
+ # by fixing the data that caused the error, followed by calling
413
+ # delete again.
414
+ # @param [String] project_id
415
+ # Project ID against which to make the request.
416
+ # @param [String] index_id
417
+ # The resource ID of the index to delete.
418
+ # @param [String] fields
419
+ # Selector specifying which fields to include in a partial response.
420
+ # @param [String] quota_user
421
+ # Available to use for quota purposes for server-side applications. Can be any
422
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
423
+ # @param [Google::Apis::RequestOptions] options
424
+ # Request-specific options
425
+ #
426
+ # @yield [result, err] Result & error if block supplied
427
+ # @yieldparam result [Google::Apis::DatastoreV1::GoogleLongrunningOperation] parsed result object
428
+ # @yieldparam err [StandardError] error object if request failed
429
+ #
430
+ # @return [Google::Apis::DatastoreV1::GoogleLongrunningOperation]
431
+ #
432
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
433
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
434
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
435
+ def delete_project_index(project_id, index_id, fields: nil, quota_user: nil, options: nil, &block)
436
+ command = make_simple_command(:delete, 'v1/projects/{projectId}/indexes/{indexId}', options)
437
+ command.response_representation = Google::Apis::DatastoreV1::GoogleLongrunningOperation::Representation
438
+ command.response_class = Google::Apis::DatastoreV1::GoogleLongrunningOperation
439
+ command.params['projectId'] = project_id unless project_id.nil?
440
+ command.params['indexId'] = index_id unless index_id.nil?
441
+ command.query['fields'] = fields unless fields.nil?
442
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
443
+ execute_or_queue_command(command, &block)
444
+ end
445
+
362
446
  # Gets an index.
363
447
  # @param [String] project_id
364
448
  # Project ID against which to make the request.
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/datastore/
27
27
  module DatastoreV1beta3
28
28
  VERSION = 'V1beta3'
29
- REVISION = '20190421'
29
+ REVISION = '20191020'
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'
@@ -183,7 +183,7 @@ module Google
183
183
  end
184
184
 
185
185
  # Prevents the supplied keys' IDs from being auto-allocated by Cloud
186
- # Datastore.
186
+ # Datastore. Used for imports only; other workloads are not supported.
187
187
  # @param [String] project_id
188
188
  # The ID of the project against which to make the request.
189
189
  # @param [Google::Apis::DatastoreV1beta3::ReserveIdsRequest] reserve_ids_request_object
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/dialogflow/
27
27
  module DialogflowV2
28
28
  VERSION = 'V2'
29
- REVISION = '20191005'
29
+ REVISION = '20191027'
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'
@@ -130,60 +130,6 @@ module Google
130
130
  end
131
131
  end
132
132
 
133
- # Represents article answer.
134
- class GoogleCloudDialogflowV2ArticleAnswer
135
- include Google::Apis::Core::Hashable
136
-
137
- # The name of answer record, in the format of
138
- # "projects/<Project ID>/answerRecords/<Answer Record ID>"
139
- # Corresponds to the JSON property `answerRecord`
140
- # @return [String]
141
- attr_accessor :answer_record
142
-
143
- # Article match confidence.
144
- # The system's confidence score that this article is a good match for this
145
- # converstation, as a value from 0.0 (completely uncertain) to 1.0
146
- # (completely certain).
147
- # Corresponds to the JSON property `confidence`
148
- # @return [Float]
149
- attr_accessor :confidence
150
-
151
- # A map that contains metadata about the answer and the
152
- # document from which it originates.
153
- # Corresponds to the JSON property `metadata`
154
- # @return [Hash<String,String>]
155
- attr_accessor :metadata
156
-
157
- # Article snippets.
158
- # Corresponds to the JSON property `snippets`
159
- # @return [Array<String>]
160
- attr_accessor :snippets
161
-
162
- # The article title.
163
- # Corresponds to the JSON property `title`
164
- # @return [String]
165
- attr_accessor :title
166
-
167
- # The article URI.
168
- # Corresponds to the JSON property `uri`
169
- # @return [String]
170
- attr_accessor :uri
171
-
172
- def initialize(**args)
173
- update!(**args)
174
- end
175
-
176
- # Update properties of this object
177
- def update!(**args)
178
- @answer_record = args[:answer_record] if args.key?(:answer_record)
179
- @confidence = args[:confidence] if args.key?(:confidence)
180
- @metadata = args[:metadata] if args.key?(:metadata)
181
- @snippets = args[:snippets] if args.key?(:snippets)
182
- @title = args[:title] if args.key?(:title)
183
- @uri = args[:uri] if args.key?(:uri)
184
- end
185
- end
186
-
187
133
  # The request message for EntityTypes.BatchCreateEntities.
188
134
  class GoogleCloudDialogflowV2BatchCreateEntitiesRequest
189
135
  include Google::Apis::Core::Hashable
@@ -792,101 +738,6 @@ module Google
792
738
  end
793
739
  end
794
740
 
795
- # Represents answer from "frequently asked questions".
796
- class GoogleCloudDialogflowV2FaqAnswer
797
- include Google::Apis::Core::Hashable
798
-
799
- # The piece of text from the `source` knowledge base document.
800
- # Corresponds to the JSON property `answer`
801
- # @return [String]
802
- attr_accessor :answer
803
-
804
- # The name of answer record, in the format of
805
- # "projects/<Project ID>/answerRecords/<Answer Record ID>"
806
- # Corresponds to the JSON property `answerRecord`
807
- # @return [String]
808
- attr_accessor :answer_record
809
-
810
- # The system's confidence score that this Knowledge answer is a good match
811
- # for this conversational query, range from 0.0 (completely uncertain)
812
- # to 1.0 (completely certain).
813
- # Corresponds to the JSON property `confidence`
814
- # @return [Float]
815
- attr_accessor :confidence
816
-
817
- # A map that contains metadata about the answer and the
818
- # document from which it originates.
819
- # Corresponds to the JSON property `metadata`
820
- # @return [Hash<String,String>]
821
- attr_accessor :metadata
822
-
823
- # The corresponding FAQ question.
824
- # Corresponds to the JSON property `question`
825
- # @return [String]
826
- attr_accessor :question
827
-
828
- # Indicates which Knowledge Document this answer was extracted
829
- # from.
830
- # Format: `projects/<Project ID>/agent/knowledgeBases/<Knowledge Base
831
- # ID>/documents/<Document ID>`.
832
- # Corresponds to the JSON property `source`
833
- # @return [String]
834
- attr_accessor :source
835
-
836
- def initialize(**args)
837
- update!(**args)
838
- end
839
-
840
- # Update properties of this object
841
- def update!(**args)
842
- @answer = args[:answer] if args.key?(:answer)
843
- @answer_record = args[:answer_record] if args.key?(:answer_record)
844
- @confidence = args[:confidence] if args.key?(:confidence)
845
- @metadata = args[:metadata] if args.key?(:metadata)
846
- @question = args[:question] if args.key?(:question)
847
- @source = args[:source] if args.key?(:source)
848
- end
849
- end
850
-
851
- # Represents a notification sent to Cloud Pub/Sub subscribers for
852
- # human agent assistant events in a specific conversation.
853
- class GoogleCloudDialogflowV2HumanAgentAssistantEvent
854
- include Google::Apis::Core::Hashable
855
-
856
- # The conversation this notification refers to.
857
- # Format: `projects/<Project ID>/conversations/<Conversation ID>`.
858
- # Corresponds to the JSON property `conversation`
859
- # @return [String]
860
- attr_accessor :conversation
861
-
862
- # The participant that the suggestion is compiled for. And This field is used
863
- # to call Participants.ListSuggestions API. Format:
864
- # `projects/<Project ID>/conversations/<Conversation
865
- # ID>/participants/<Participant ID>`.
866
- # It will not be set in legacy workflow.
867
- # HumanAgentAssistantConfig.name for more
868
- # information.
869
- # Corresponds to the JSON property `participant`
870
- # @return [String]
871
- attr_accessor :participant
872
-
873
- # The suggestion results payload that this notification refers to.
874
- # Corresponds to the JSON property `suggestionResults`
875
- # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionResult>]
876
- attr_accessor :suggestion_results
877
-
878
- def initialize(**args)
879
- update!(**args)
880
- end
881
-
882
- # Update properties of this object
883
- def update!(**args)
884
- @conversation = args[:conversation] if args.key?(:conversation)
885
- @participant = args[:participant] if args.key?(:participant)
886
- @suggestion_results = args[:suggestion_results] if args.key?(:suggestion_results)
887
- end
888
- end
889
-
890
741
  # The request message for Agents.ImportAgent.
891
742
  class GoogleCloudDialogflowV2ImportAgentRequest
892
743
  include Google::Apis::Core::Hashable
@@ -1083,9 +934,12 @@ module Google
1083
934
  attr_accessor :parent_followup_intent_name
1084
935
 
1085
936
  # Optional. The priority of this intent. Higher numbers represent higher
1086
- # priorities. If this is zero or unspecified, we use the default
1087
- # priority 500000.
1088
- # Negative numbers mean that the intent is disabled.
937
+ # priorities.
938
+ # - If the supplied value is unspecified or 0, the service
939
+ # translates the value to 500,000, which corresponds to the
940
+ # `Normal` priority in the console.
941
+ # - If the supplied value is negative, the intent is ignored
942
+ # in runtime detect intent requests.
1089
943
  # Corresponds to the JSON property `priority`
1090
944
  # @return [Fixnum]
1091
945
  attr_accessor :priority
@@ -1549,6 +1403,11 @@ module Google
1549
1403
  # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageListSelectItem>]
1550
1404
  attr_accessor :items
1551
1405
 
1406
+ # Optional. Subtitle of the list.
1407
+ # Corresponds to the JSON property `subtitle`
1408
+ # @return [String]
1409
+ attr_accessor :subtitle
1410
+
1552
1411
  # Optional. The overall title of the list.
1553
1412
  # Corresponds to the JSON property `title`
1554
1413
  # @return [String]
@@ -1561,6 +1420,7 @@ module Google
1561
1420
  # Update properties of this object
1562
1421
  def update!(**args)
1563
1422
  @items = args[:items] if args.key?(:items)
1423
+ @subtitle = args[:subtitle] if args.key?(:subtitle)
1564
1424
  @title = args[:title] if args.key?(:title)
1565
1425
  end
1566
1426
  end
@@ -1942,25 +1802,6 @@ module Google
1942
1802
  end
1943
1803
  end
1944
1804
 
1945
- # Metadata in google::longrunning::Operation for Knowledge operations.
1946
- class GoogleCloudDialogflowV2KnowledgeOperationMetadata
1947
- include Google::Apis::Core::Hashable
1948
-
1949
- # Output only. The current state of this operation.
1950
- # Corresponds to the JSON property `state`
1951
- # @return [String]
1952
- attr_accessor :state
1953
-
1954
- def initialize(**args)
1955
- update!(**args)
1956
- end
1957
-
1958
- # Update properties of this object
1959
- def update!(**args)
1960
- @state = args[:state] if args.key?(:state)
1961
- end
1962
- end
1963
-
1964
1805
  # The response message for Contexts.ListContexts.
1965
1806
  class GoogleCloudDialogflowV2ListContextsResponse
1966
1807
  include Google::Apis::Core::Hashable
@@ -2565,118 +2406,6 @@ module Google
2565
2406
  end
2566
2407
  end
2567
2408
 
2568
- # The response message for [Participants.SuggestArticles]
2569
- class GoogleCloudDialogflowV2SuggestArticlesResponse
2570
- include Google::Apis::Core::Hashable
2571
-
2572
- # Articles ordered by score in descending order.
2573
- # Corresponds to the JSON property `articleAnswers`
2574
- # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleAnswer>]
2575
- attr_accessor :article_answers
2576
-
2577
- # Number of messages prior to and including
2578
- # last_conversation_message to compile the suggestion. It may be smaller
2579
- # than the CompileSuggestionRequest.context_messages_count field in the
2580
- # request if there aren't that many messages in the conversation.
2581
- # Corresponds to the JSON property `contextSize`
2582
- # @return [Fixnum]
2583
- attr_accessor :context_size
2584
-
2585
- # The name of the latest conversation message used to compile
2586
- # suggestion for.
2587
- # Format: `projects/<Project ID>/conversations/<Conversation
2588
- # ID>/messages/<Message ID>`.
2589
- # Corresponds to the JSON property `latestMessage`
2590
- # @return [String]
2591
- attr_accessor :latest_message
2592
-
2593
- def initialize(**args)
2594
- update!(**args)
2595
- end
2596
-
2597
- # Update properties of this object
2598
- def update!(**args)
2599
- @article_answers = args[:article_answers] if args.key?(:article_answers)
2600
- @context_size = args[:context_size] if args.key?(:context_size)
2601
- @latest_message = args[:latest_message] if args.key?(:latest_message)
2602
- end
2603
- end
2604
-
2605
- # The request message for [Participants.SuggestFaqAnswers]
2606
- class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
2607
- include Google::Apis::Core::Hashable
2608
-
2609
- # Number of messages prior to and including
2610
- # last_conversation_message to compile the suggestion. It may be smaller
2611
- # than the CompileSuggestionRequest.context_messages_count field in the
2612
- # request if there aren't that many messages in the conversation.
2613
- # Corresponds to the JSON property `contextSize`
2614
- # @return [Fixnum]
2615
- attr_accessor :context_size
2616
-
2617
- # Answers extracted from FAQ documents.
2618
- # Corresponds to the JSON property `faqAnswers`
2619
- # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FaqAnswer>]
2620
- attr_accessor :faq_answers
2621
-
2622
- # The name of the latest conversation message used to compile
2623
- # suggestion for.
2624
- # Format: `projects/<Project ID>/conversations/<Conversation
2625
- # ID>/messages/<Message ID>`.
2626
- # Corresponds to the JSON property `latestMessage`
2627
- # @return [String]
2628
- attr_accessor :latest_message
2629
-
2630
- def initialize(**args)
2631
- update!(**args)
2632
- end
2633
-
2634
- # Update properties of this object
2635
- def update!(**args)
2636
- @context_size = args[:context_size] if args.key?(:context_size)
2637
- @faq_answers = args[:faq_answers] if args.key?(:faq_answers)
2638
- @latest_message = args[:latest_message] if args.key?(:latest_message)
2639
- end
2640
- end
2641
-
2642
- # One response of different type of suggestion response which is used in
2643
- # the response of Participants.AnalyzeContent and
2644
- # Participants.AnalyzeContent, as well as HumanAgentAssistantEvent.
2645
- class GoogleCloudDialogflowV2SuggestionResult
2646
- include Google::Apis::Core::Hashable
2647
-
2648
- # The `Status` type defines a logical error model that is suitable for
2649
- # different programming environments, including REST APIs and RPC APIs. It is
2650
- # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2651
- # three pieces of data: error code, error message, and error details.
2652
- # You can find out more about this error model and how to work with it in the
2653
- # [API Design Guide](https://cloud.google.com/apis/design/errors).
2654
- # Corresponds to the JSON property `error`
2655
- # @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
2656
- attr_accessor :error
2657
-
2658
- # The response message for [Participants.SuggestArticles]
2659
- # Corresponds to the JSON property `suggestArticlesResponse`
2660
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestArticlesResponse]
2661
- attr_accessor :suggest_articles_response
2662
-
2663
- # The request message for [Participants.SuggestFaqAnswers]
2664
- # Corresponds to the JSON property `suggestFaqAnswersResponse`
2665
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
2666
- attr_accessor :suggest_faq_answers_response
2667
-
2668
- def initialize(**args)
2669
- update!(**args)
2670
- end
2671
-
2672
- # Update properties of this object
2673
- def update!(**args)
2674
- @error = args[:error] if args.key?(:error)
2675
- @suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
2676
- @suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
2677
- end
2678
- end
2679
-
2680
2409
  # Configuration of how speech should be synthesized.
2681
2410
  class GoogleCloudDialogflowV2SynthesizeSpeechConfig
2682
2411
  include Google::Apis::Core::Hashable
@@ -3362,10 +3091,13 @@ module Google
3362
3091
  # @return [String]
3363
3092
  attr_accessor :parent_followup_intent_name
3364
3093
 
3365
- # Optional. The priority of this intent. Higher numbers represent higher
3366
- # priorities. If this is zero or unspecified, we use the default
3367
- # priority 500000.
3368
- # Negative numbers mean that the intent is disabled.
3094
+ # The priority of this intent. Higher numbers represent higher
3095
+ # priorities.
3096
+ # - If the supplied value is unspecified or 0, the service
3097
+ # translates the value to 500,000, which corresponds to the
3098
+ # `Normal` priority in the console.
3099
+ # - If the supplied value is negative, the intent is ignored
3100
+ # in runtime detect intent requests.
3369
3101
  # Corresponds to the JSON property `priority`
3370
3102
  # @return [Fixnum]
3371
3103
  attr_accessor :priority
@@ -4009,6 +3741,11 @@ module Google
4009
3741
  # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageListSelectItem>]
4010
3742
  attr_accessor :items
4011
3743
 
3744
+ # Optional. Subtitle of the list.
3745
+ # Corresponds to the JSON property `subtitle`
3746
+ # @return [String]
3747
+ attr_accessor :subtitle
3748
+
4012
3749
  # Optional. The overall title of the list.
4013
3750
  # Corresponds to the JSON property `title`
4014
3751
  # @return [String]
@@ -4021,6 +3758,7 @@ module Google
4021
3758
  # Update properties of this object
4022
3759
  def update!(**args)
4023
3760
  @items = args[:items] if args.key?(:items)
3761
+ @subtitle = args[:subtitle] if args.key?(:subtitle)
4024
3762
  @title = args[:title] if args.key?(:title)
4025
3763
  end
4026
3764
  end