google-api-client 0.17.4 → 0.18.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 (74) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +28 -0
  3. data/generated/google/apis/abusiveexperiencereport_v1.rb +35 -0
  4. data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +101 -0
  5. data/generated/google/apis/abusiveexperiencereport_v1/representations.rb +59 -0
  6. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +124 -0
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +7 -5
  9. data/generated/google/apis/admin_directory_v1.rb +1 -1
  10. data/generated/google/apis/admin_directory_v1/classes.rb +148 -8
  11. data/generated/google/apis/admin_directory_v1/representations.rb +55 -0
  12. data/generated/google/apis/admin_reports_v1.rb +1 -1
  13. data/generated/google/apis/admin_reports_v1/classes.rb +9 -2
  14. data/generated/google/apis/admin_reports_v1/representations.rb +1 -0
  15. data/generated/google/apis/admin_reports_v1/service.rb +58 -0
  16. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  17. data/generated/google/apis/androidenterprise_v1/classes.rb +55 -0
  18. data/generated/google/apis/androidenterprise_v1/representations.rb +10 -0
  19. data/generated/google/apis/androidmanagement_v1/classes.rb +26 -26
  20. data/generated/google/apis/bigquery_v2.rb +1 -1
  21. data/generated/google/apis/bigquery_v2/classes.rb +28 -1
  22. data/generated/google/apis/bigquery_v2/representations.rb +3 -0
  23. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  24. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +1 -1
  25. data/generated/google/apis/cloudiot_v1beta1.rb +1 -1
  26. data/generated/google/apis/cloudiot_v1beta1/classes.rb +0 -105
  27. data/generated/google/apis/cloudiot_v1beta1/representations.rb +0 -67
  28. data/generated/google/apis/cloudiot_v1beta1/service.rb +0 -107
  29. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  30. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +0 -25
  31. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +0 -4
  32. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  33. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +6 -143
  34. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +0 -66
  35. data/generated/google/apis/cloudtasks_v2beta2/service.rb +3 -0
  36. data/generated/google/apis/dataproc_v1.rb +1 -1
  37. data/generated/google/apis/dataproc_v1/classes.rb +2 -4
  38. data/generated/google/apis/dataproc_v1/service.rb +9 -1
  39. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  40. data/generated/google/apis/dataproc_v1beta2/classes.rb +17 -6
  41. data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
  42. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  43. data/generated/google/apis/deploymentmanager_alpha/classes.rb +39 -5
  44. data/generated/google/apis/deploymentmanager_alpha/representations.rb +2 -0
  45. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  46. data/generated/google/apis/deploymentmanager_v2/classes.rb +15 -3
  47. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  48. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +25 -5
  49. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  50. data/generated/google/apis/dialogflow_v2beta1/classes.rb +9 -9
  51. data/generated/google/apis/dlp_v2beta1.rb +1 -1
  52. data/generated/google/apis/dlp_v2beta1/classes.rb +39 -0
  53. data/generated/google/apis/dlp_v2beta1/representations.rb +16 -0
  54. data/generated/google/apis/ml_v1.rb +1 -1
  55. data/generated/google/apis/ml_v1/classes.rb +76 -0
  56. data/generated/google/apis/ml_v1/representations.rb +44 -0
  57. data/generated/google/apis/ml_v1/service.rb +73 -0
  58. data/generated/google/apis/poly_v1.rb +2 -2
  59. data/generated/google/apis/poly_v1/service.rb +1 -1
  60. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  61. data/generated/google/apis/safebrowsing_v4/classes.rb +132 -0
  62. data/generated/google/apis/safebrowsing_v4/representations.rb +64 -0
  63. data/generated/google/apis/safebrowsing_v4/service.rb +31 -0
  64. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  65. data/generated/google/apis/streetviewpublish_v1/classes.rb +2 -0
  66. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  67. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -7
  68. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  69. data/lib/google/apis/version.rb +1 -1
  70. metadata +6 -6
  71. data/generated/google/apis/dfareporting_v2_7.rb +0 -40
  72. data/generated/google/apis/dfareporting_v2_7/classes.rb +0 -11876
  73. data/generated/google/apis/dfareporting_v2_7/representations.rb +0 -4243
  74. data/generated/google/apis/dfareporting_v2_7/service.rb +0 -9098
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/dlp/docs/
28
28
  module DlpV2beta1
29
29
  VERSION = 'V2beta1'
30
- REVISION = '20171121'
30
+ REVISION = '20171205'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -876,6 +876,11 @@ module Google
876
876
  # @return [Fixnum]
877
877
  attr_accessor :radix
878
878
 
879
+ # Type of information detected by the API.
880
+ # Corresponds to the JSON property `surrogateInfoType`
881
+ # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType]
882
+ attr_accessor :surrogate_info_type
883
+
879
884
  def initialize(**args)
880
885
  update!(**args)
881
886
  end
@@ -887,6 +892,7 @@ module Google
887
892
  @crypto_key = args[:crypto_key] if args.key?(:crypto_key)
888
893
  @custom_alphabet = args[:custom_alphabet] if args.key?(:custom_alphabet)
889
894
  @radix = args[:radix] if args.key?(:radix)
895
+ @surrogate_info_type = args[:surrogate_info_type] if args.key?(:surrogate_info_type)
890
896
  end
891
897
  end
892
898
 
@@ -922,6 +928,18 @@ module Google
922
928
  # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType]
923
929
  attr_accessor :info_type
924
930
 
931
+ # Message for detecting output from deidentification transformations
932
+ # such as
933
+ # [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2beta1/content/
934
+ # deidentify#CryptoReplaceFfxFpeConfig).
935
+ # These types of transformations are
936
+ # those that perform pseudonymization, thereby producing a "surrogate" as
937
+ # output. This should be used in conjunction with a field on the
938
+ # transformation such as `surrogate_info_type`.
939
+ # Corresponds to the JSON property `surrogateType`
940
+ # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1SurrogateType]
941
+ attr_accessor :surrogate_type
942
+
925
943
  def initialize(**args)
926
944
  update!(**args)
927
945
  end
@@ -930,6 +948,7 @@ module Google
930
948
  def update!(**args)
931
949
  @dictionary = args[:dictionary] if args.key?(:dictionary)
932
950
  @info_type = args[:info_type] if args.key?(:info_type)
951
+ @surrogate_type = args[:surrogate_type] if args.key?(:surrogate_type)
933
952
  end
934
953
  end
935
954
 
@@ -3180,6 +3199,26 @@ module Google
3180
3199
  end
3181
3200
  end
3182
3201
 
3202
+ # Message for detecting output from deidentification transformations
3203
+ # such as
3204
+ # [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2beta1/content/
3205
+ # deidentify#CryptoReplaceFfxFpeConfig).
3206
+ # These types of transformations are
3207
+ # those that perform pseudonymization, thereby producing a "surrogate" as
3208
+ # output. This should be used in conjunction with a field on the
3209
+ # transformation such as `surrogate_info_type`.
3210
+ class GooglePrivacyDlpV2beta1SurrogateType
3211
+ include Google::Apis::Core::Hashable
3212
+
3213
+ def initialize(**args)
3214
+ update!(**args)
3215
+ end
3216
+
3217
+ # Update properties of this object
3218
+ def update!(**args)
3219
+ end
3220
+ end
3221
+
3183
3222
  # Structured content to inspect. Up to 50,000 `Value`s per request allowed.
3184
3223
  class GooglePrivacyDlpV2beta1Table
3185
3224
  include Google::Apis::Core::Hashable
@@ -628,6 +628,12 @@ module Google
628
628
  include Google::Apis::Core::JsonObjectSupport
629
629
  end
630
630
 
631
+ class GooglePrivacyDlpV2beta1SurrogateType
632
+ class Representation < Google::Apis::Core::JsonRepresentation; end
633
+
634
+ include Google::Apis::Core::JsonObjectSupport
635
+ end
636
+
631
637
  class GooglePrivacyDlpV2beta1Table
632
638
  class Representation < Google::Apis::Core::JsonRepresentation; end
633
639
 
@@ -960,6 +966,8 @@ module Google
960
966
 
961
967
  property :custom_alphabet, as: 'customAlphabet'
962
968
  property :radix, as: 'radix'
969
+ property :surrogate_info_type, as: 'surrogateInfoType', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType::Representation
970
+
963
971
  end
964
972
  end
965
973
 
@@ -970,6 +978,8 @@ module Google
970
978
 
971
979
  property :info_type, as: 'infoType', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType::Representation
972
980
 
981
+ property :surrogate_type, as: 'surrogateType', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1SurrogateType, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1SurrogateType::Representation
982
+
973
983
  end
974
984
  end
975
985
 
@@ -1707,6 +1717,12 @@ module Google
1707
1717
  end
1708
1718
  end
1709
1719
 
1720
+ class GooglePrivacyDlpV2beta1SurrogateType
1721
+ # @private
1722
+ class Representation < Google::Apis::Core::JsonRepresentation
1723
+ end
1724
+ end
1725
+
1710
1726
  class GooglePrivacyDlpV2beta1Table
1711
1727
  # @private
1712
1728
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/ml/
26
26
  module MlV1
27
27
  VERSION = 'V1'
28
- REVISION = '20171127'
28
+ REVISION = '20171205'
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'
@@ -154,6 +154,31 @@ module Google
154
154
  end
155
155
  end
156
156
 
157
+ #
158
+ class GoogleCloudMlV1Capability
159
+ include Google::Apis::Core::Hashable
160
+
161
+ # Available accelerators for the capability.
162
+ # Corresponds to the JSON property `availableAccelerators`
163
+ # @return [Array<String>]
164
+ attr_accessor :available_accelerators
165
+
166
+ #
167
+ # Corresponds to the JSON property `type`
168
+ # @return [String]
169
+ attr_accessor :type
170
+
171
+ def initialize(**args)
172
+ update!(**args)
173
+ end
174
+
175
+ # Update properties of this object
176
+ def update!(**args)
177
+ @available_accelerators = args[:available_accelerators] if args.key?(:available_accelerators)
178
+ @type = args[:type] if args.key?(:type)
179
+ end
180
+ end
181
+
157
182
  # Returns service account information associated with a project.
158
183
  class GoogleCloudMlV1GetConfigResponse
159
184
  include Google::Apis::Core::Hashable
@@ -400,6 +425,32 @@ module Google
400
425
  end
401
426
  end
402
427
 
428
+ #
429
+ class GoogleCloudMlV1ListLocationsResponse
430
+ include Google::Apis::Core::Hashable
431
+
432
+ # Locations where at least one type of CMLE capability is available.
433
+ # Corresponds to the JSON property `locations`
434
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Location>]
435
+ attr_accessor :locations
436
+
437
+ # Optional. Pass this token as the `page_token` field of the request for a
438
+ # subsequent call.
439
+ # Corresponds to the JSON property `nextPageToken`
440
+ # @return [String]
441
+ attr_accessor :next_page_token
442
+
443
+ def initialize(**args)
444
+ update!(**args)
445
+ end
446
+
447
+ # Update properties of this object
448
+ def update!(**args)
449
+ @locations = args[:locations] if args.key?(:locations)
450
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
451
+ end
452
+ end
453
+
403
454
  # Response message for the ListModels method.
404
455
  class GoogleCloudMlV1ListModelsResponse
405
456
  include Google::Apis::Core::Hashable
@@ -452,6 +503,31 @@ module Google
452
503
  end
453
504
  end
454
505
 
506
+ #
507
+ class GoogleCloudMlV1Location
508
+ include Google::Apis::Core::Hashable
509
+
510
+ # Capabilities available in the location.
511
+ # Corresponds to the JSON property `capabilities`
512
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Capability>]
513
+ attr_accessor :capabilities
514
+
515
+ #
516
+ # Corresponds to the JSON property `name`
517
+ # @return [String]
518
+ attr_accessor :name
519
+
520
+ def initialize(**args)
521
+ update!(**args)
522
+ end
523
+
524
+ # Update properties of this object
525
+ def update!(**args)
526
+ @capabilities = args[:capabilities] if args.key?(:capabilities)
527
+ @name = args[:name] if args.key?(:name)
528
+ end
529
+ end
530
+
455
531
  # Options for manually scaling a model.
456
532
  class GoogleCloudMlV1ManualScaling
457
533
  include Google::Apis::Core::Hashable
@@ -46,6 +46,12 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class GoogleCloudMlV1Capability
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
49
55
  class GoogleCloudMlV1GetConfigResponse
50
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
57
 
@@ -76,6 +82,12 @@ module Google
76
82
  include Google::Apis::Core::JsonObjectSupport
77
83
  end
78
84
 
85
+ class GoogleCloudMlV1ListLocationsResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
79
91
  class GoogleCloudMlV1ListModelsResponse
80
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
93
 
@@ -88,6 +100,12 @@ module Google
88
100
  include Google::Apis::Core::JsonObjectSupport
89
101
  end
90
102
 
103
+ class GoogleCloudMlV1Location
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
91
109
  class GoogleCloudMlV1ManualScaling
92
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
111
 
@@ -256,6 +274,14 @@ module Google
256
274
  end
257
275
  end
258
276
 
277
+ class GoogleCloudMlV1Capability
278
+ # @private
279
+ class Representation < Google::Apis::Core::JsonRepresentation
280
+ collection :available_accelerators, as: 'availableAccelerators'
281
+ property :type, as: 'type'
282
+ end
283
+ end
284
+
259
285
  class GoogleCloudMlV1GetConfigResponse
260
286
  # @private
261
287
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -319,6 +345,15 @@ module Google
319
345
  end
320
346
  end
321
347
 
348
+ class GoogleCloudMlV1ListLocationsResponse
349
+ # @private
350
+ class Representation < Google::Apis::Core::JsonRepresentation
351
+ collection :locations, as: 'locations', class: Google::Apis::MlV1::GoogleCloudMlV1Location, decorator: Google::Apis::MlV1::GoogleCloudMlV1Location::Representation
352
+
353
+ property :next_page_token, as: 'nextPageToken'
354
+ end
355
+ end
356
+
322
357
  class GoogleCloudMlV1ListModelsResponse
323
358
  # @private
324
359
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -337,6 +372,15 @@ module Google
337
372
  end
338
373
  end
339
374
 
375
+ class GoogleCloudMlV1Location
376
+ # @private
377
+ class Representation < Google::Apis::Core::JsonRepresentation
378
+ collection :capabilities, as: 'capabilities', class: Google::Apis::MlV1::GoogleCloudMlV1Capability, decorator: Google::Apis::MlV1::GoogleCloudMlV1Capability::Representation
379
+
380
+ property :name, as: 'name'
381
+ end
382
+ end
383
+
340
384
  class GoogleCloudMlV1ManualScaling
341
385
  # @private
342
386
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -417,6 +417,79 @@ module Google
417
417
  execute_or_queue_command(command, &block)
418
418
  end
419
419
 
420
+ # Get the complete list of CMLE capabilities in a location, along with their
421
+ # location-specific properties.
422
+ # @param [String] name
423
+ # Required. The name of the location.
424
+ # @param [String] fields
425
+ # Selector specifying which fields to include in a partial response.
426
+ # @param [String] quota_user
427
+ # Available to use for quota purposes for server-side applications. Can be any
428
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
429
+ # @param [Google::Apis::RequestOptions] options
430
+ # Request-specific options
431
+ #
432
+ # @yield [result, err] Result & error if block supplied
433
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Location] parsed result object
434
+ # @yieldparam err [StandardError] error object if request failed
435
+ #
436
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Location]
437
+ #
438
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
439
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
440
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
441
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
442
+ command = make_simple_command(:get, 'v1/{+name}', options)
443
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Location::Representation
444
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Location
445
+ command.params['name'] = name unless name.nil?
446
+ command.query['fields'] = fields unless fields.nil?
447
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
448
+ execute_or_queue_command(command, &block)
449
+ end
450
+
451
+ # List all locations that provides at least one type of CMLE capability.
452
+ # @param [String] parent
453
+ # Required. The name of the project for which available locations are to be
454
+ # listed (since some locations might be whitelisted for specific projects).
455
+ # @param [Fixnum] page_size
456
+ # Optional. The number of locations to retrieve per "page" of results. If there
457
+ # are more remaining results than this number, the response message will
458
+ # contain a valid value in the `next_page_token` field.
459
+ # The default value is 20, and the maximum page size is 100.
460
+ # @param [String] page_token
461
+ # Optional. A page token to request the next page of results.
462
+ # You get the token from the `next_page_token` field of the response from
463
+ # the previous call.
464
+ # @param [String] fields
465
+ # Selector specifying which fields to include in a partial response.
466
+ # @param [String] quota_user
467
+ # Available to use for quota purposes for server-side applications. Can be any
468
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
469
+ # @param [Google::Apis::RequestOptions] options
470
+ # Request-specific options
471
+ #
472
+ # @yield [result, err] Result & error if block supplied
473
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1ListLocationsResponse] parsed result object
474
+ # @yieldparam err [StandardError] error object if request failed
475
+ #
476
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1ListLocationsResponse]
477
+ #
478
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
479
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
480
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
481
+ def list_project_locations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
482
+ command = make_simple_command(:get, 'v1/{+parent}/locations', options)
483
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListLocationsResponse::Representation
484
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListLocationsResponse
485
+ command.params['parent'] = parent unless parent.nil?
486
+ command.query['pageSize'] = page_size unless page_size.nil?
487
+ command.query['pageToken'] = page_token unless page_token.nil?
488
+ command.query['fields'] = fields unless fields.nil?
489
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
490
+ execute_or_queue_command(command, &block)
491
+ end
492
+
420
493
  # Creates a model which will later contain one or more versions.
421
494
  # You must add at least one version before you can request predictions from
422
495
  # the model. Add versions by calling
@@ -23,10 +23,10 @@ module Google
23
23
  # The Poly API provides read-only access to assets hosted on <a href="https://
24
24
  # poly.google.com">poly.google.com</a>.
25
25
  #
26
- # @see https://devsite.googleplex.com/poly/
26
+ # @see https://developers.google.com/poly/
27
27
  module PolyV1
28
28
  VERSION = 'V1'
29
- REVISION = '20171124'
29
+ REVISION = '20171205'
30
30
  end
31
31
  end
32
32
  end
@@ -31,7 +31,7 @@ module Google
31
31
  # Poly = Google::Apis::PolyV1 # Alias the module
32
32
  # service = Poly::PolyServiceService.new
33
33
  #
34
- # @see https://devsite.googleplex.com/poly/
34
+ # @see https://developers.google.com/poly/
35
35
  class PolyServiceService < Google::Apis::Core::BaseService
36
36
  # @return [String]
37
37
  # API key. Your API key identifies your project and provides you with API access,
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/safe-browsing/
27
27
  module SafebrowsingV4
28
28
  VERSION = 'V4'
29
- REVISION = '20170809'
29
+ REVISION = '20171203'
30
30
  end
31
31
  end
32
32
  end
@@ -112,6 +112,25 @@ module Google
112
112
  end
113
113
  end
114
114
 
115
+ # A generic empty message that you can re-use to avoid defining duplicated
116
+ # empty messages in your APIs. A typical example is to use it as the request
117
+ # or the response type of an API method. For instance:
118
+ # service Foo `
119
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
120
+ # `
121
+ # The JSON representation for `Empty` is empty JSON object ````.
122
+ class Empty
123
+ include Google::Apis::Core::Hashable
124
+
125
+ def initialize(**args)
126
+ update!(**args)
127
+ end
128
+
129
+ # Update properties of this object
130
+ def update!(**args)
131
+ end
132
+ end
133
+
115
134
  # Describes a Safe Browsing API update request. Clients can request updates for
116
135
  # multiple lists in a single request.
117
136
  # NOTE: Field index 2 is unused.
@@ -644,6 +663,56 @@ module Google
644
663
  end
645
664
  end
646
665
 
666
+ #
667
+ class ThreatHit
668
+ include Google::Apis::Core::Hashable
669
+
670
+ # The client metadata associated with Safe Browsing API requests.
671
+ # Corresponds to the JSON property `clientInfo`
672
+ # @return [Google::Apis::SafebrowsingV4::ClientInfo]
673
+ attr_accessor :client_info
674
+
675
+ # An individual threat; for example, a malicious URL or its hash
676
+ # representation. Only one of these fields should be set.
677
+ # Corresponds to the JSON property `entry`
678
+ # @return [Google::Apis::SafebrowsingV4::ThreatEntry]
679
+ attr_accessor :entry
680
+
681
+ # The platform type reported.
682
+ # Corresponds to the JSON property `platformType`
683
+ # @return [String]
684
+ attr_accessor :platform_type
685
+
686
+ # The resources related to the threat hit.
687
+ # Corresponds to the JSON property `resources`
688
+ # @return [Array<Google::Apis::SafebrowsingV4::ThreatSource>]
689
+ attr_accessor :resources
690
+
691
+ # The threat type reported.
692
+ # Corresponds to the JSON property `threatType`
693
+ # @return [String]
694
+ attr_accessor :threat_type
695
+
696
+ # Details about the user that encountered the threat.
697
+ # Corresponds to the JSON property `userInfo`
698
+ # @return [Google::Apis::SafebrowsingV4::UserInfo]
699
+ attr_accessor :user_info
700
+
701
+ def initialize(**args)
702
+ update!(**args)
703
+ end
704
+
705
+ # Update properties of this object
706
+ def update!(**args)
707
+ @client_info = args[:client_info] if args.key?(:client_info)
708
+ @entry = args[:entry] if args.key?(:entry)
709
+ @platform_type = args[:platform_type] if args.key?(:platform_type)
710
+ @resources = args[:resources] if args.key?(:resources)
711
+ @threat_type = args[:threat_type] if args.key?(:threat_type)
712
+ @user_info = args[:user_info] if args.key?(:user_info)
713
+ end
714
+ end
715
+
647
716
  # The information regarding one or more threats that a client submits when
648
717
  # checking for matches in threat lists.
649
718
  class ThreatInfo
@@ -766,6 +835,69 @@ module Google
766
835
  @threat_type = args[:threat_type] if args.key?(:threat_type)
767
836
  end
768
837
  end
838
+
839
+ # A single resource related to a threat hit.
840
+ class ThreatSource
841
+ include Google::Apis::Core::Hashable
842
+
843
+ # Referrer of the resource. Only set if the referrer is available.
844
+ # Corresponds to the JSON property `referrer`
845
+ # @return [String]
846
+ attr_accessor :referrer
847
+
848
+ # The remote IP of the resource in ASCII format. Either IPv4 or IPv6.
849
+ # Corresponds to the JSON property `remoteIp`
850
+ # @return [String]
851
+ attr_accessor :remote_ip
852
+
853
+ # The type of source reported.
854
+ # Corresponds to the JSON property `type`
855
+ # @return [String]
856
+ attr_accessor :type
857
+
858
+ # The URL of the resource.
859
+ # Corresponds to the JSON property `url`
860
+ # @return [String]
861
+ attr_accessor :url
862
+
863
+ def initialize(**args)
864
+ update!(**args)
865
+ end
866
+
867
+ # Update properties of this object
868
+ def update!(**args)
869
+ @referrer = args[:referrer] if args.key?(:referrer)
870
+ @remote_ip = args[:remote_ip] if args.key?(:remote_ip)
871
+ @type = args[:type] if args.key?(:type)
872
+ @url = args[:url] if args.key?(:url)
873
+ end
874
+ end
875
+
876
+ # Details about the user that encountered the threat.
877
+ class UserInfo
878
+ include Google::Apis::Core::Hashable
879
+
880
+ # The UN M.49 region code associated with the user's location.
881
+ # Corresponds to the JSON property `regionCode`
882
+ # @return [String]
883
+ attr_accessor :region_code
884
+
885
+ # Unique user identifier defined by the client.
886
+ # Corresponds to the JSON property `userId`
887
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
888
+ # @return [String]
889
+ attr_accessor :user_id
890
+
891
+ def initialize(**args)
892
+ update!(**args)
893
+ end
894
+
895
+ # Update properties of this object
896
+ def update!(**args)
897
+ @region_code = args[:region_code] if args.key?(:region_code)
898
+ @user_id = args[:user_id] if args.key?(:user_id)
899
+ end
900
+ end
769
901
  end
770
902
  end
771
903
  end