google-api-client 0.51.0 → 0.52.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release-please.yml +23 -45
  3. data/CHANGELOG.md +100 -0
  4. data/README.md +2 -2
  5. data/generated/google/apis/admin_datatransfer_v1.rb +2 -2
  6. data/generated/google/apis/admin_datatransfer_v1/classes.rb +6 -16
  7. data/generated/google/apis/admin_datatransfer_v1/service.rb +3 -3
  8. data/generated/google/apis/admin_directory_v1.rb +2 -2
  9. data/generated/google/apis/admin_directory_v1/classes.rb +453 -321
  10. data/generated/google/apis/admin_directory_v1/representations.rb +15 -15
  11. data/generated/google/apis/admin_directory_v1/service.rb +323 -183
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  13. data/generated/google/apis/admin_reports_v1/classes.rb +48 -43
  14. data/generated/google/apis/admin_reports_v1/service.rb +198 -179
  15. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  16. data/generated/google/apis/analytics_v3/service.rb +1 -1
  17. data/generated/google/apis/analyticsadmin_v1alpha.rb +1 -1
  18. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +2 -2
  19. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +5 -12
  20. data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
  21. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +11 -11
  22. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  23. data/generated/google/apis/apigateway_v1beta.rb +1 -1
  24. data/generated/google/apis/apigateway_v1beta/classes.rb +3 -9
  25. data/generated/google/apis/apigateway_v1beta/representations.rb +0 -1
  26. data/generated/google/apis/apigee_v1.rb +1 -1
  27. data/generated/google/apis/apigee_v1/classes.rb +71 -0
  28. data/generated/google/apis/apigee_v1/representations.rb +42 -0
  29. data/generated/google/apis/apigee_v1/service.rb +206 -0
  30. data/generated/google/apis/appengine_v1.rb +1 -1
  31. data/generated/google/apis/appengine_v1/classes.rb +7 -0
  32. data/generated/google/apis/appengine_v1/representations.rb +1 -0
  33. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  34. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +2 -2
  35. data/generated/google/apis/artifactregistry_v1beta1/service.rb +4 -1
  36. data/generated/google/apis/artifactregistry_v1beta2.rb +1 -1
  37. data/generated/google/apis/artifactregistry_v1beta2/classes.rb +2 -2
  38. data/generated/google/apis/artifactregistry_v1beta2/service.rb +4 -1
  39. data/generated/google/apis/cloudasset_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  41. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  42. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  43. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  44. data/generated/google/apis/cloudfunctions_v1/classes.rb +6 -0
  45. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  46. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  47. data/generated/google/apis/cloudidentity_v1/classes.rb +240 -0
  48. data/generated/google/apis/cloudidentity_v1/representations.rb +125 -0
  49. data/generated/google/apis/cloudidentity_v1/service.rb +202 -2
  50. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  51. data/generated/google/apis/cloudidentity_v1beta1/service.rb +8 -2
  52. data/generated/google/apis/cloudkms_v1.rb +1 -1
  53. data/generated/google/apis/cloudkms_v1/classes.rb +0 -6
  54. data/generated/google/apis/cloudkms_v1/representations.rb +0 -1
  55. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +19 -0
  57. data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +2 -0
  58. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +12 -2
  59. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  60. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +59 -0
  61. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +19 -0
  62. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  63. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +102 -0
  64. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +35 -0
  65. data/generated/google/apis/cloudtasks_v2beta3/service.rb +16 -2
  66. data/generated/google/apis/composer_v1beta1.rb +1 -1
  67. data/generated/google/apis/composer_v1beta1/classes.rb +64 -0
  68. data/generated/google/apis/composer_v1beta1/representations.rb +18 -0
  69. data/generated/google/apis/compute_alpha.rb +1 -1
  70. data/generated/google/apis/compute_alpha/classes.rb +1071 -341
  71. data/generated/google/apis/compute_alpha/representations.rb +248 -19
  72. data/generated/google/apis/compute_alpha/service.rb +291 -15
  73. data/generated/google/apis/compute_beta.rb +1 -1
  74. data/generated/google/apis/compute_beta/classes.rb +926 -283
  75. data/generated/google/apis/compute_beta/representations.rb +221 -18
  76. data/generated/google/apis/compute_beta/service.rb +24 -15
  77. data/generated/google/apis/compute_v1.rb +1 -1
  78. data/generated/google/apis/compute_v1/classes.rb +419 -158
  79. data/generated/google/apis/compute_v1/representations.rb +55 -0
  80. data/generated/google/apis/compute_v1/service.rb +9 -7
  81. data/generated/google/apis/container_v1.rb +1 -1
  82. data/generated/google/apis/container_v1/classes.rb +48 -9
  83. data/generated/google/apis/container_v1/representations.rb +17 -0
  84. data/generated/google/apis/container_v1/service.rb +4 -2
  85. data/generated/google/apis/container_v1beta1.rb +1 -1
  86. data/generated/google/apis/container_v1beta1/classes.rb +24 -13
  87. data/generated/google/apis/container_v1beta1/representations.rb +2 -0
  88. data/generated/google/apis/container_v1beta1/service.rb +6 -2
  89. data/generated/google/apis/content_v2_1.rb +1 -1
  90. data/generated/google/apis/content_v2_1/classes.rb +16 -7
  91. data/generated/google/apis/content_v2_1/representations.rb +1 -0
  92. data/generated/google/apis/datamigration_v1beta1.rb +1 -1
  93. data/generated/google/apis/datamigration_v1beta1/classes.rb +0 -6
  94. data/generated/google/apis/datamigration_v1beta1/representations.rb +0 -1
  95. data/generated/google/apis/deploymentmanager_alpha.rb +6 -5
  96. data/generated/google/apis/deploymentmanager_alpha/classes.rb +276 -644
  97. data/generated/google/apis/deploymentmanager_alpha/representations.rb +10 -143
  98. data/generated/google/apis/deploymentmanager_alpha/service.rb +247 -398
  99. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  100. data/generated/google/apis/deploymentmanager_v2/service.rb +5 -25
  101. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  102. data/generated/google/apis/deploymentmanager_v2beta/service.rb +8 -40
  103. data/generated/google/apis/dialogflow_v2.rb +1 -1
  104. data/generated/google/apis/dialogflow_v2/classes.rb +692 -0
  105. data/generated/google/apis/dialogflow_v2/representations.rb +326 -0
  106. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  107. data/generated/google/apis/dialogflow_v2beta1/classes.rb +692 -0
  108. data/generated/google/apis/dialogflow_v2beta1/representations.rb +326 -0
  109. data/generated/google/apis/{bigqueryreservation_v1alpha2.rb → dialogflow_v3.rb} +13 -12
  110. data/generated/google/apis/dialogflow_v3/classes.rb +8943 -0
  111. data/generated/google/apis/dialogflow_v3/representations.rb +3773 -0
  112. data/generated/google/apis/dialogflow_v3/service.rb +3006 -0
  113. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  114. data/generated/google/apis/dialogflow_v3beta1/classes.rb +784 -0
  115. data/generated/google/apis/dialogflow_v3beta1/representations.rb +360 -0
  116. data/generated/google/apis/dialogflow_v3beta1/service.rb +173 -0
  117. data/generated/google/apis/dlp_v2.rb +1 -1
  118. data/generated/google/apis/dlp_v2/service.rb +294 -1
  119. data/generated/google/apis/dns_v1.rb +1 -1
  120. data/generated/google/apis/dns_v1/classes.rb +65 -0
  121. data/generated/google/apis/dns_v1/representations.rb +32 -0
  122. data/generated/google/apis/documentai_v1beta2.rb +1 -1
  123. data/generated/google/apis/documentai_v1beta2/classes.rb +220 -102
  124. data/generated/google/apis/documentai_v1beta2/representations.rb +105 -9
  125. data/generated/google/apis/documentai_v1beta3.rb +1 -1
  126. data/generated/google/apis/documentai_v1beta3/classes.rb +241 -117
  127. data/generated/google/apis/documentai_v1beta3/representations.rb +105 -9
  128. data/generated/google/apis/documentai_v1beta3/service.rb +81 -2
  129. data/generated/google/apis/eventarc_v1beta1.rb +1 -1
  130. data/generated/google/apis/eventarc_v1beta1/classes.rb +8 -9
  131. data/generated/google/apis/eventarc_v1beta1/service.rb +25 -5
  132. data/generated/google/apis/file_v1.rb +1 -1
  133. data/generated/google/apis/file_v1/classes.rb +61 -0
  134. data/generated/google/apis/file_v1/representations.rb +19 -0
  135. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  136. data/generated/google/apis/genomics_v2alpha1/classes.rb +11 -7
  137. data/generated/google/apis/healthcare_v1.rb +1 -1
  138. data/generated/google/apis/healthcare_v1/classes.rb +0 -6
  139. data/generated/google/apis/healthcare_v1/representations.rb +0 -1
  140. data/generated/google/apis/healthcare_v1/service.rb +13 -12
  141. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  142. data/generated/google/apis/healthcare_v1beta1/classes.rb +45 -19
  143. data/generated/google/apis/healthcare_v1beta1/representations.rb +3 -1
  144. data/generated/google/apis/healthcare_v1beta1/service.rb +37 -37
  145. data/generated/google/apis/iap_v1.rb +1 -1
  146. data/generated/google/apis/iap_v1/classes.rb +0 -6
  147. data/generated/google/apis/iap_v1/representations.rb +0 -1
  148. data/generated/google/apis/iap_v1beta1.rb +1 -1
  149. data/generated/google/apis/iap_v1beta1/classes.rb +0 -6
  150. data/generated/google/apis/iap_v1beta1/representations.rb +0 -1
  151. data/generated/google/apis/metastore_v1beta.rb +35 -0
  152. data/generated/google/apis/metastore_v1beta/classes.rb +1151 -0
  153. data/generated/google/apis/metastore_v1beta/representations.rb +479 -0
  154. data/generated/google/apis/metastore_v1beta/service.rb +800 -0
  155. data/generated/google/apis/ml_v1.rb +1 -1
  156. data/generated/google/apis/ml_v1/classes.rb +51 -18
  157. data/generated/google/apis/ml_v1/representations.rb +16 -0
  158. data/generated/google/apis/monitoring_v3.rb +1 -1
  159. data/generated/google/apis/monitoring_v3/classes.rb +8 -4
  160. data/generated/google/apis/privateca_v1beta1.rb +1 -1
  161. data/generated/google/apis/privateca_v1beta1/classes.rb +2 -1
  162. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  163. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +37 -0
  164. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +18 -0
  165. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  166. data/generated/google/apis/recommender_v1beta1/service.rb +317 -0
  167. data/generated/google/apis/redis_v1.rb +1 -1
  168. data/generated/google/apis/redis_v1/classes.rb +2 -2
  169. data/generated/google/apis/redis_v1beta1.rb +1 -1
  170. data/generated/google/apis/redis_v1beta1/classes.rb +2 -2
  171. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  172. data/generated/google/apis/safebrowsing_v4/classes.rb +277 -277
  173. data/generated/google/apis/safebrowsing_v4/representations.rb +128 -128
  174. data/generated/google/apis/safebrowsing_v4/service.rb +44 -44
  175. data/generated/google/apis/searchconsole_v1.rb +1 -1
  176. data/generated/google/apis/searchconsole_v1/classes.rb +7 -0
  177. data/generated/google/apis/searchconsole_v1/representations.rb +1 -0
  178. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  179. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +11 -10
  180. data/generated/google/apis/servicecontrol_v1.rb +3 -3
  181. data/generated/google/apis/servicecontrol_v1/service.rb +2 -2
  182. data/generated/google/apis/servicecontrol_v2.rb +3 -3
  183. data/generated/google/apis/servicecontrol_v2/service.rb +2 -2
  184. data/generated/google/apis/servicedirectory_v1.rb +35 -0
  185. data/generated/google/apis/servicedirectory_v1/classes.rb +721 -0
  186. data/generated/google/apis/servicedirectory_v1/representations.rb +304 -0
  187. data/generated/google/apis/servicedirectory_v1/service.rb +957 -0
  188. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  189. data/generated/google/apis/servicenetworking_v1/classes.rb +1 -1
  190. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  191. data/generated/google/apis/servicenetworking_v1beta/classes.rb +1 -1
  192. data/generated/google/apis/serviceusage_v1.rb +1 -1
  193. data/generated/google/apis/serviceusage_v1/classes.rb +11 -10
  194. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  195. data/generated/google/apis/serviceusage_v1beta1/classes.rb +11 -10
  196. data/generated/google/apis/slides_v1.rb +1 -1
  197. data/generated/google/apis/slides_v1/classes.rb +9 -3
  198. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  199. data/generated/google/apis/speech_v1p1beta1/classes.rb +0 -22
  200. data/generated/google/apis/speech_v1p1beta1/representations.rb +0 -2
  201. data/generated/google/apis/testing_v1.rb +1 -1
  202. data/generated/google/apis/testing_v1/classes.rb +1 -1
  203. data/generated/google/apis/trafficdirector_v2.rb +2 -2
  204. data/generated/google/apis/trafficdirector_v2/service.rb +1 -1
  205. data/generated/google/apis/transcoder_v1beta1.rb +1 -1
  206. data/generated/google/apis/transcoder_v1beta1/classes.rb +12 -2
  207. data/generated/google/apis/transcoder_v1beta1/representations.rb +1 -0
  208. data/generated/google/apis/translate_v3.rb +1 -1
  209. data/generated/google/apis/translate_v3/classes.rb +1 -1
  210. data/generated/google/apis/translate_v3beta1.rb +1 -1
  211. data/generated/google/apis/translate_v3beta1/classes.rb +1 -1
  212. data/generated/google/apis/workflows_v1beta.rb +1 -1
  213. data/generated/google/apis/workflows_v1beta/classes.rb +4 -4
  214. data/lib/google/apis/version.rb +1 -1
  215. metadata +15 -7
  216. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +0 -426
  217. data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +0 -195
  218. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +0 -622
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/memorystore/docs/redis/
26
26
  module RedisV1
27
27
  VERSION = 'V1'
28
- REVISION = '20201110'
28
+ REVISION = '20201210'
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'
@@ -394,8 +394,8 @@ module Google
394
394
  # @return [String]
395
395
  attr_accessor :tier
396
396
 
397
- # Optional. The In-transit encryption mode of Redis instance. If not provided,
398
- # in-transit encryption is disabled for instance.
397
+ # Optional. The TLS mode of the Redis instance. If not provided, TLS is disabled
398
+ # for the instance.
399
399
  # Corresponds to the JSON property `transitEncryptionMode`
400
400
  # @return [String]
401
401
  attr_accessor :transit_encryption_mode
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/memorystore/docs/redis/
26
26
  module RedisV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20201110'
28
+ REVISION = '20201210'
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'
@@ -397,8 +397,8 @@ module Google
397
397
  # @return [String]
398
398
  attr_accessor :tier
399
399
 
400
- # Optional. The In-transit encryption mode of Redis instance. If not provided,
401
- # in-transit encryption is disabled for instance.
400
+ # Optional. The TLS mode of the Redis instance. If not provided, TLS is disabled
401
+ # for the instance.
402
402
  # Corresponds to the JSON property `transitEncryptionMode`
403
403
  # @return [String]
404
404
  attr_accessor :transit_encryption_mode
@@ -29,7 +29,7 @@ module Google
29
29
  # @see https://developers.google.com/safe-browsing/
30
30
  module SafebrowsingV4
31
31
  VERSION = 'V4'
32
- REVISION = '20201017'
32
+ REVISION = '20201204'
33
33
  end
34
34
  end
35
35
  end
@@ -22,8 +22,25 @@ module Google
22
22
  module Apis
23
23
  module SafebrowsingV4
24
24
 
25
+ # A generic empty message that you can re-use to avoid defining duplicated empty
26
+ # messages in your APIs. A typical example is to use it as the request or the
27
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
28
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
29
+ # `Empty` is empty JSON object ````.
30
+ class GoogleProtobufEmpty
31
+ include Google::Apis::Core::Hashable
32
+
33
+ def initialize(**args)
34
+ update!(**args)
35
+ end
36
+
37
+ # Update properties of this object
38
+ def update!(**args)
39
+ end
40
+ end
41
+
25
42
  # The expected state of a client's local database.
26
- class Checksum
43
+ class GoogleSecuritySafebrowsingV4Checksum
27
44
  include Google::Apis::Core::Hashable
28
45
 
29
46
  # The SHA256 hash of the client state; that is, of the sorted list of all hashes
@@ -44,7 +61,7 @@ module Google
44
61
  end
45
62
 
46
63
  # The client metadata associated with Safe Browsing API requests.
47
- class ClientInfo
64
+ class GoogleSecuritySafebrowsingV4ClientInfo
48
65
  include Google::Apis::Core::Hashable
49
66
 
50
67
  # A client ID that (hopefully) uniquely identifies the client implementation of
@@ -69,8 +86,79 @@ module Google
69
86
  end
70
87
  end
71
88
 
89
+ # Describes a Safe Browsing API update request. Clients can request updates for
90
+ # multiple lists in a single request. NOTE: Field index 2 is unused. NEXT: 5
91
+ class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest
92
+ include Google::Apis::Core::Hashable
93
+
94
+ # The client metadata associated with Safe Browsing API requests.
95
+ # Corresponds to the JSON property `client`
96
+ # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo]
97
+ attr_accessor :client
98
+
99
+ # The requested threat list updates.
100
+ # Corresponds to the JSON property `listUpdateRequests`
101
+ # @return [Array<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest>]
102
+ attr_accessor :list_update_requests
103
+
104
+ def initialize(**args)
105
+ update!(**args)
106
+ end
107
+
108
+ # Update properties of this object
109
+ def update!(**args)
110
+ @client = args[:client] if args.key?(:client)
111
+ @list_update_requests = args[:list_update_requests] if args.key?(:list_update_requests)
112
+ end
113
+ end
114
+
115
+ # A single list update request.
116
+ class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest
117
+ include Google::Apis::Core::Hashable
118
+
119
+ # The constraints for this update.
120
+ # Corresponds to the JSON property `constraints`
121
+ # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints]
122
+ attr_accessor :constraints
123
+
124
+ # The type of platform at risk by entries present in the list.
125
+ # Corresponds to the JSON property `platformType`
126
+ # @return [String]
127
+ attr_accessor :platform_type
128
+
129
+ # The current state of the client for the requested list (the encrypted client
130
+ # state that was received from the last successful list update).
131
+ # Corresponds to the JSON property `state`
132
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
133
+ # @return [String]
134
+ attr_accessor :state
135
+
136
+ # The types of entries present in the list.
137
+ # Corresponds to the JSON property `threatEntryType`
138
+ # @return [String]
139
+ attr_accessor :threat_entry_type
140
+
141
+ # The type of threat posed by entries present in the list.
142
+ # Corresponds to the JSON property `threatType`
143
+ # @return [String]
144
+ attr_accessor :threat_type
145
+
146
+ def initialize(**args)
147
+ update!(**args)
148
+ end
149
+
150
+ # Update properties of this object
151
+ def update!(**args)
152
+ @constraints = args[:constraints] if args.key?(:constraints)
153
+ @platform_type = args[:platform_type] if args.key?(:platform_type)
154
+ @state = args[:state] if args.key?(:state)
155
+ @threat_entry_type = args[:threat_entry_type] if args.key?(:threat_entry_type)
156
+ @threat_type = args[:threat_type] if args.key?(:threat_type)
157
+ end
158
+ end
159
+
72
160
  # The constraints for this update.
73
- class Constraints
161
+ class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints
74
162
  include Google::Apis::Core::Hashable
75
163
 
76
164
  # A client's physical location, expressed as a ISO 31166-1 alpha-2 region code.
@@ -124,63 +212,79 @@ module Google
124
212
  end
125
213
  end
126
214
 
127
- # A generic empty message that you can re-use to avoid defining duplicated empty
128
- # messages in your APIs. A typical example is to use it as the request or the
129
- # response type of an API method. For instance: service Foo ` rpc Bar(google.
130
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
131
- # `Empty` is empty JSON object ````.
132
- class Empty
215
+ #
216
+ class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse
133
217
  include Google::Apis::Core::Hashable
134
218
 
219
+ # The list updates requested by the clients.
220
+ # Corresponds to the JSON property `listUpdateResponses`
221
+ # @return [Array<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse>]
222
+ attr_accessor :list_update_responses
223
+
224
+ # The minimum duration the client must wait before issuing any update request.
225
+ # If this field is not set clients may update as soon as they want.
226
+ # Corresponds to the JSON property `minimumWaitDuration`
227
+ # @return [String]
228
+ attr_accessor :minimum_wait_duration
229
+
135
230
  def initialize(**args)
136
231
  update!(**args)
137
232
  end
138
233
 
139
234
  # Update properties of this object
140
235
  def update!(**args)
236
+ @list_update_responses = args[:list_update_responses] if args.key?(:list_update_responses)
237
+ @minimum_wait_duration = args[:minimum_wait_duration] if args.key?(:minimum_wait_duration)
141
238
  end
142
239
  end
143
240
 
144
- # Describes a Safe Browsing API update request. Clients can request updates for
145
- # multiple lists in a single request. NOTE: Field index 2 is unused. NEXT: 5
146
- class FetchThreatListUpdatesRequest
241
+ # An update to an individual list.
242
+ class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse
147
243
  include Google::Apis::Core::Hashable
148
244
 
149
- # The client metadata associated with Safe Browsing API requests.
150
- # Corresponds to the JSON property `client`
151
- # @return [Google::Apis::SafebrowsingV4::ClientInfo]
152
- attr_accessor :client
245
+ # A set of entries to add to a local threat type's list. Repeated to allow for a
246
+ # combination of compressed and raw data to be sent in a single response.
247
+ # Corresponds to the JSON property `additions`
248
+ # @return [Array<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntrySet>]
249
+ attr_accessor :additions
153
250
 
154
- # The requested threat list updates.
155
- # Corresponds to the JSON property `listUpdateRequests`
156
- # @return [Array<Google::Apis::SafebrowsingV4::ListUpdateRequest>]
157
- attr_accessor :list_update_requests
251
+ # The expected state of a client's local database.
252
+ # Corresponds to the JSON property `checksum`
253
+ # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4Checksum]
254
+ attr_accessor :checksum
158
255
 
159
- def initialize(**args)
160
- update!(**args)
161
- end
256
+ # The new client state, in encrypted format. Opaque to clients.
257
+ # Corresponds to the JSON property `newClientState`
258
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
259
+ # @return [String]
260
+ attr_accessor :new_client_state
162
261
 
163
- # Update properties of this object
164
- def update!(**args)
165
- @client = args[:client] if args.key?(:client)
166
- @list_update_requests = args[:list_update_requests] if args.key?(:list_update_requests)
167
- end
168
- end
262
+ # The platform type for which data is returned.
263
+ # Corresponds to the JSON property `platformType`
264
+ # @return [String]
265
+ attr_accessor :platform_type
169
266
 
170
- #
171
- class FetchThreatListUpdatesResponse
172
- include Google::Apis::Core::Hashable
267
+ # A set of entries to remove from a local threat type's list. In practice, this
268
+ # field is empty or contains exactly one ThreatEntrySet.
269
+ # Corresponds to the JSON property `removals`
270
+ # @return [Array<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntrySet>]
271
+ attr_accessor :removals
173
272
 
174
- # The list updates requested by the clients.
175
- # Corresponds to the JSON property `listUpdateResponses`
176
- # @return [Array<Google::Apis::SafebrowsingV4::ListUpdateResponse>]
177
- attr_accessor :list_update_responses
273
+ # The type of response. This may indicate that an action is required by the
274
+ # client when the response is received.
275
+ # Corresponds to the JSON property `responseType`
276
+ # @return [String]
277
+ attr_accessor :response_type
178
278
 
179
- # The minimum duration the client must wait before issuing any update request.
180
- # If this field is not set clients may update as soon as they want.
181
- # Corresponds to the JSON property `minimumWaitDuration`
279
+ # The format of the threats.
280
+ # Corresponds to the JSON property `threatEntryType`
182
281
  # @return [String]
183
- attr_accessor :minimum_wait_duration
282
+ attr_accessor :threat_entry_type
283
+
284
+ # The threat type for which data is returned.
285
+ # Corresponds to the JSON property `threatType`
286
+ # @return [String]
287
+ attr_accessor :threat_type
184
288
 
185
289
  def initialize(**args)
186
290
  update!(**args)
@@ -188,23 +292,29 @@ module Google
188
292
 
189
293
  # Update properties of this object
190
294
  def update!(**args)
191
- @list_update_responses = args[:list_update_responses] if args.key?(:list_update_responses)
192
- @minimum_wait_duration = args[:minimum_wait_duration] if args.key?(:minimum_wait_duration)
295
+ @additions = args[:additions] if args.key?(:additions)
296
+ @checksum = args[:checksum] if args.key?(:checksum)
297
+ @new_client_state = args[:new_client_state] if args.key?(:new_client_state)
298
+ @platform_type = args[:platform_type] if args.key?(:platform_type)
299
+ @removals = args[:removals] if args.key?(:removals)
300
+ @response_type = args[:response_type] if args.key?(:response_type)
301
+ @threat_entry_type = args[:threat_entry_type] if args.key?(:threat_entry_type)
302
+ @threat_type = args[:threat_type] if args.key?(:threat_type)
193
303
  end
194
304
  end
195
305
 
196
306
  # Request to return full hashes matched by the provided hash prefixes.
197
- class FindFullHashesRequest
307
+ class GoogleSecuritySafebrowsingV4FindFullHashesRequest
198
308
  include Google::Apis::Core::Hashable
199
309
 
200
310
  # The client metadata associated with Safe Browsing API requests.
201
311
  # Corresponds to the JSON property `apiClient`
202
- # @return [Google::Apis::SafebrowsingV4::ClientInfo]
312
+ # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo]
203
313
  attr_accessor :api_client
204
314
 
205
315
  # The client metadata associated with Safe Browsing API requests.
206
316
  # Corresponds to the JSON property `client`
207
- # @return [Google::Apis::SafebrowsingV4::ClientInfo]
317
+ # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo]
208
318
  attr_accessor :client
209
319
 
210
320
  # The current client states for each of the client's local threat lists.
@@ -215,7 +325,7 @@ module Google
215
325
  # The information regarding one or more threats that a client submits when
216
326
  # checking for matches in threat lists.
217
327
  # Corresponds to the JSON property `threatInfo`
218
- # @return [Google::Apis::SafebrowsingV4::ThreatInfo]
328
+ # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatInfo]
219
329
  attr_accessor :threat_info
220
330
 
221
331
  def initialize(**args)
@@ -232,12 +342,12 @@ module Google
232
342
  end
233
343
 
234
344
  #
235
- class FindFullHashesResponse
345
+ class GoogleSecuritySafebrowsingV4FindFullHashesResponse
236
346
  include Google::Apis::Core::Hashable
237
347
 
238
348
  # The full hashes that matched the requested prefixes.
239
349
  # Corresponds to the JSON property `matches`
240
- # @return [Array<Google::Apis::SafebrowsingV4::ThreatMatch>]
350
+ # @return [Array<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatMatch>]
241
351
  attr_accessor :matches
242
352
 
243
353
  # The minimum duration the client must wait before issuing any find hashes
@@ -266,18 +376,18 @@ module Google
266
376
  end
267
377
 
268
378
  # Request to check entries against lists.
269
- class FindThreatMatchesRequest
379
+ class GoogleSecuritySafebrowsingV4FindThreatMatchesRequest
270
380
  include Google::Apis::Core::Hashable
271
381
 
272
382
  # The client metadata associated with Safe Browsing API requests.
273
383
  # Corresponds to the JSON property `client`
274
- # @return [Google::Apis::SafebrowsingV4::ClientInfo]
384
+ # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo]
275
385
  attr_accessor :client
276
386
 
277
387
  # The information regarding one or more threats that a client submits when
278
388
  # checking for matches in threat lists.
279
389
  # Corresponds to the JSON property `threatInfo`
280
- # @return [Google::Apis::SafebrowsingV4::ThreatInfo]
390
+ # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatInfo]
281
391
  attr_accessor :threat_info
282
392
 
283
393
  def initialize(**args)
@@ -292,12 +402,12 @@ module Google
292
402
  end
293
403
 
294
404
  #
295
- class FindThreatMatchesResponse
405
+ class GoogleSecuritySafebrowsingV4FindThreatMatchesResponse
296
406
  include Google::Apis::Core::Hashable
297
407
 
298
408
  # The threat list matches.
299
409
  # Corresponds to the JSON property `matches`
300
- # @return [Array<Google::Apis::SafebrowsingV4::ThreatMatch>]
410
+ # @return [Array<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatMatch>]
301
411
  attr_accessor :matches
302
412
 
303
413
  def initialize(**args)
@@ -311,12 +421,12 @@ module Google
311
421
  end
312
422
 
313
423
  #
314
- class ListThreatListsResponse
424
+ class GoogleSecuritySafebrowsingV4ListThreatListsResponse
315
425
  include Google::Apis::Core::Hashable
316
426
 
317
427
  # The lists available for download by the client.
318
428
  # Corresponds to the JSON property `threatLists`
319
- # @return [Array<Google::Apis::SafebrowsingV4::ThreatListDescriptor>]
429
+ # @return [Array<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatListDescriptor>]
320
430
  attr_accessor :threat_lists
321
431
 
322
432
  def initialize(**args)
@@ -329,150 +439,13 @@ module Google
329
439
  end
330
440
  end
331
441
 
332
- # A single list update request.
333
- class ListUpdateRequest
334
- include Google::Apis::Core::Hashable
335
-
336
- # The constraints for this update.
337
- # Corresponds to the JSON property `constraints`
338
- # @return [Google::Apis::SafebrowsingV4::Constraints]
339
- attr_accessor :constraints
340
-
341
- # The type of platform at risk by entries present in the list.
342
- # Corresponds to the JSON property `platformType`
343
- # @return [String]
344
- attr_accessor :platform_type
345
-
346
- # The current state of the client for the requested list (the encrypted client
347
- # state that was received from the last successful list update).
348
- # Corresponds to the JSON property `state`
349
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
350
- # @return [String]
351
- attr_accessor :state
352
-
353
- # The types of entries present in the list.
354
- # Corresponds to the JSON property `threatEntryType`
355
- # @return [String]
356
- attr_accessor :threat_entry_type
357
-
358
- # The type of threat posed by entries present in the list.
359
- # Corresponds to the JSON property `threatType`
360
- # @return [String]
361
- attr_accessor :threat_type
362
-
363
- def initialize(**args)
364
- update!(**args)
365
- end
366
-
367
- # Update properties of this object
368
- def update!(**args)
369
- @constraints = args[:constraints] if args.key?(:constraints)
370
- @platform_type = args[:platform_type] if args.key?(:platform_type)
371
- @state = args[:state] if args.key?(:state)
372
- @threat_entry_type = args[:threat_entry_type] if args.key?(:threat_entry_type)
373
- @threat_type = args[:threat_type] if args.key?(:threat_type)
374
- end
375
- end
376
-
377
- # An update to an individual list.
378
- class ListUpdateResponse
379
- include Google::Apis::Core::Hashable
380
-
381
- # A set of entries to add to a local threat type's list. Repeated to allow for a
382
- # combination of compressed and raw data to be sent in a single response.
383
- # Corresponds to the JSON property `additions`
384
- # @return [Array<Google::Apis::SafebrowsingV4::ThreatEntrySet>]
385
- attr_accessor :additions
386
-
387
- # The expected state of a client's local database.
388
- # Corresponds to the JSON property `checksum`
389
- # @return [Google::Apis::SafebrowsingV4::Checksum]
390
- attr_accessor :checksum
391
-
392
- # The new client state, in encrypted format. Opaque to clients.
393
- # Corresponds to the JSON property `newClientState`
394
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
395
- # @return [String]
396
- attr_accessor :new_client_state
397
-
398
- # The platform type for which data is returned.
399
- # Corresponds to the JSON property `platformType`
400
- # @return [String]
401
- attr_accessor :platform_type
402
-
403
- # A set of entries to remove from a local threat type's list. In practice, this
404
- # field is empty or contains exactly one ThreatEntrySet.
405
- # Corresponds to the JSON property `removals`
406
- # @return [Array<Google::Apis::SafebrowsingV4::ThreatEntrySet>]
407
- attr_accessor :removals
408
-
409
- # The type of response. This may indicate that an action is required by the
410
- # client when the response is received.
411
- # Corresponds to the JSON property `responseType`
412
- # @return [String]
413
- attr_accessor :response_type
414
-
415
- # The format of the threats.
416
- # Corresponds to the JSON property `threatEntryType`
417
- # @return [String]
418
- attr_accessor :threat_entry_type
419
-
420
- # The threat type for which data is returned.
421
- # Corresponds to the JSON property `threatType`
422
- # @return [String]
423
- attr_accessor :threat_type
424
-
425
- def initialize(**args)
426
- update!(**args)
427
- end
428
-
429
- # Update properties of this object
430
- def update!(**args)
431
- @additions = args[:additions] if args.key?(:additions)
432
- @checksum = args[:checksum] if args.key?(:checksum)
433
- @new_client_state = args[:new_client_state] if args.key?(:new_client_state)
434
- @platform_type = args[:platform_type] if args.key?(:platform_type)
435
- @removals = args[:removals] if args.key?(:removals)
436
- @response_type = args[:response_type] if args.key?(:response_type)
437
- @threat_entry_type = args[:threat_entry_type] if args.key?(:threat_entry_type)
438
- @threat_type = args[:threat_type] if args.key?(:threat_type)
439
- end
440
- end
441
-
442
- # A single metadata entry.
443
- class MetadataEntry
444
- include Google::Apis::Core::Hashable
445
-
446
- # The metadata entry key. For JSON requests, the key is base64-encoded.
447
- # Corresponds to the JSON property `key`
448
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
449
- # @return [String]
450
- attr_accessor :key
451
-
452
- # The metadata entry value. For JSON requests, the value is base64-encoded.
453
- # Corresponds to the JSON property `value`
454
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
455
- # @return [String]
456
- attr_accessor :value
457
-
458
- def initialize(**args)
459
- update!(**args)
460
- end
461
-
462
- # Update properties of this object
463
- def update!(**args)
464
- @key = args[:key] if args.key?(:key)
465
- @value = args[:value] if args.key?(:value)
466
- end
467
- end
468
-
469
442
  # The uncompressed threat entries in hash format of a particular prefix length.
470
443
  # Hashes can be anywhere from 4 to 32 bytes in size. A large majority are 4
471
444
  # bytes, but some hashes are lengthened if they collide with the hash of a
472
445
  # popular URL. Used for sending ThreatEntrySet to clients that do not support
473
446
  # compression, or when sending non-4-byte hashes to clients that do support
474
447
  # compression.
475
- class RawHashes
448
+ class GoogleSecuritySafebrowsingV4RawHashes
476
449
  include Google::Apis::Core::Hashable
477
450
 
478
451
  # The number of bytes for each prefix encoded below. This field can be anywhere
@@ -500,7 +473,7 @@ module Google
500
473
  end
501
474
 
502
475
  # A set of raw indices to remove from a local list.
503
- class RawIndices
476
+ class GoogleSecuritySafebrowsingV4RawIndices
504
477
  include Google::Apis::Core::Hashable
505
478
 
506
479
  # The indices to remove from a lexicographically-sorted local list.
@@ -520,7 +493,7 @@ module Google
520
493
 
521
494
  # The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or
522
495
  # compressed removal indices.
523
- class RiceDeltaEncoding
496
+ class GoogleSecuritySafebrowsingV4RiceDeltaEncoding
524
497
  include Google::Apis::Core::Hashable
525
498
 
526
499
  # The encoded deltas that are encoded using the Golomb-Rice coder.
@@ -564,7 +537,7 @@ module Google
564
537
 
565
538
  # An individual threat; for example, a malicious URL or its hash representation.
566
539
  # Only one of these fields should be set.
567
- class ThreatEntry
540
+ class GoogleSecuritySafebrowsingV4ThreatEntry
568
541
  include Google::Apis::Core::Hashable
569
542
 
570
543
  # The digest of an executable in SHA256 format. The API supports both binary and
@@ -600,12 +573,12 @@ module Google
600
573
 
601
574
  # The metadata associated with a specific threat entry. The client is expected
602
575
  # to know the metadata key/value pairs associated with each threat type.
603
- class ThreatEntryMetadata
576
+ class GoogleSecuritySafebrowsingV4ThreatEntryMetadata
604
577
  include Google::Apis::Core::Hashable
605
578
 
606
579
  # The metadata entries.
607
580
  # Corresponds to the JSON property `entries`
608
- # @return [Array<Google::Apis::SafebrowsingV4::MetadataEntry>]
581
+ # @return [Array<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry>]
609
582
  attr_accessor :entries
610
583
 
611
584
  def initialize(**args)
@@ -618,9 +591,36 @@ module Google
618
591
  end
619
592
  end
620
593
 
594
+ # A single metadata entry.
595
+ class GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry
596
+ include Google::Apis::Core::Hashable
597
+
598
+ # The metadata entry key. For JSON requests, the key is base64-encoded.
599
+ # Corresponds to the JSON property `key`
600
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
601
+ # @return [String]
602
+ attr_accessor :key
603
+
604
+ # The metadata entry value. For JSON requests, the value is base64-encoded.
605
+ # Corresponds to the JSON property `value`
606
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
607
+ # @return [String]
608
+ attr_accessor :value
609
+
610
+ def initialize(**args)
611
+ update!(**args)
612
+ end
613
+
614
+ # Update properties of this object
615
+ def update!(**args)
616
+ @key = args[:key] if args.key?(:key)
617
+ @value = args[:value] if args.key?(:value)
618
+ end
619
+ end
620
+
621
621
  # A set of threats that should be added or removed from a client's local
622
622
  # database.
623
- class ThreatEntrySet
623
+ class GoogleSecuritySafebrowsingV4ThreatEntrySet
624
624
  include Google::Apis::Core::Hashable
625
625
 
626
626
  # The compression type for the entries in this set.
@@ -635,24 +635,24 @@ module Google
635
635
  # compression, or when sending non-4-byte hashes to clients that do support
636
636
  # compression.
637
637
  # Corresponds to the JSON property `rawHashes`
638
- # @return [Google::Apis::SafebrowsingV4::RawHashes]
638
+ # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RawHashes]
639
639
  attr_accessor :raw_hashes
640
640
 
641
641
  # A set of raw indices to remove from a local list.
642
642
  # Corresponds to the JSON property `rawIndices`
643
- # @return [Google::Apis::SafebrowsingV4::RawIndices]
643
+ # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RawIndices]
644
644
  attr_accessor :raw_indices
645
645
 
646
646
  # The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or
647
647
  # compressed removal indices.
648
648
  # Corresponds to the JSON property `riceHashes`
649
- # @return [Google::Apis::SafebrowsingV4::RiceDeltaEncoding]
649
+ # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RiceDeltaEncoding]
650
650
  attr_accessor :rice_hashes
651
651
 
652
652
  # The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or
653
653
  # compressed removal indices.
654
654
  # Corresponds to the JSON property `riceIndices`
655
- # @return [Google::Apis::SafebrowsingV4::RiceDeltaEncoding]
655
+ # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RiceDeltaEncoding]
656
656
  attr_accessor :rice_indices
657
657
 
658
658
  def initialize(**args)
@@ -670,18 +670,18 @@ module Google
670
670
  end
671
671
 
672
672
  #
673
- class ThreatHit
673
+ class GoogleSecuritySafebrowsingV4ThreatHit
674
674
  include Google::Apis::Core::Hashable
675
675
 
676
676
  # The client metadata associated with Safe Browsing API requests.
677
677
  # Corresponds to the JSON property `clientInfo`
678
- # @return [Google::Apis::SafebrowsingV4::ClientInfo]
678
+ # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo]
679
679
  attr_accessor :client_info
680
680
 
681
681
  # An individual threat; for example, a malicious URL or its hash representation.
682
682
  # Only one of these fields should be set.
683
683
  # Corresponds to the JSON property `entry`
684
- # @return [Google::Apis::SafebrowsingV4::ThreatEntry]
684
+ # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry]
685
685
  attr_accessor :entry
686
686
 
687
687
  # The platform type reported.
@@ -691,7 +691,7 @@ module Google
691
691
 
692
692
  # The resources related to the threat hit.
693
693
  # Corresponds to the JSON property `resources`
694
- # @return [Array<Google::Apis::SafebrowsingV4::ThreatSource>]
694
+ # @return [Array<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitThreatSource>]
695
695
  attr_accessor :resources
696
696
 
697
697
  # The threat type reported.
@@ -701,7 +701,7 @@ module Google
701
701
 
702
702
  # Details about the user that encountered the threat.
703
703
  # Corresponds to the JSON property `userInfo`
704
- # @return [Google::Apis::SafebrowsingV4::UserInfo]
704
+ # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitUserInfo]
705
705
  attr_accessor :user_info
706
706
 
707
707
  def initialize(**args)
@@ -719,9 +719,72 @@ module Google
719
719
  end
720
720
  end
721
721
 
722
+ # A single resource related to a threat hit.
723
+ class GoogleSecuritySafebrowsingV4ThreatHitThreatSource
724
+ include Google::Apis::Core::Hashable
725
+
726
+ # Referrer of the resource. Only set if the referrer is available.
727
+ # Corresponds to the JSON property `referrer`
728
+ # @return [String]
729
+ attr_accessor :referrer
730
+
731
+ # The remote IP of the resource in ASCII format. Either IPv4 or IPv6.
732
+ # Corresponds to the JSON property `remoteIp`
733
+ # @return [String]
734
+ attr_accessor :remote_ip
735
+
736
+ # The type of source reported.
737
+ # Corresponds to the JSON property `type`
738
+ # @return [String]
739
+ attr_accessor :type
740
+
741
+ # The URL of the resource.
742
+ # Corresponds to the JSON property `url`
743
+ # @return [String]
744
+ attr_accessor :url
745
+
746
+ def initialize(**args)
747
+ update!(**args)
748
+ end
749
+
750
+ # Update properties of this object
751
+ def update!(**args)
752
+ @referrer = args[:referrer] if args.key?(:referrer)
753
+ @remote_ip = args[:remote_ip] if args.key?(:remote_ip)
754
+ @type = args[:type] if args.key?(:type)
755
+ @url = args[:url] if args.key?(:url)
756
+ end
757
+ end
758
+
759
+ # Details about the user that encountered the threat.
760
+ class GoogleSecuritySafebrowsingV4ThreatHitUserInfo
761
+ include Google::Apis::Core::Hashable
762
+
763
+ # The UN M.49 region code associated with the user's location.
764
+ # Corresponds to the JSON property `regionCode`
765
+ # @return [String]
766
+ attr_accessor :region_code
767
+
768
+ # Unique user identifier defined by the client.
769
+ # Corresponds to the JSON property `userId`
770
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
771
+ # @return [String]
772
+ attr_accessor :user_id
773
+
774
+ def initialize(**args)
775
+ update!(**args)
776
+ end
777
+
778
+ # Update properties of this object
779
+ def update!(**args)
780
+ @region_code = args[:region_code] if args.key?(:region_code)
781
+ @user_id = args[:user_id] if args.key?(:user_id)
782
+ end
783
+ end
784
+
722
785
  # The information regarding one or more threats that a client submits when
723
786
  # checking for matches in threat lists.
724
- class ThreatInfo
787
+ class GoogleSecuritySafebrowsingV4ThreatInfo
725
788
  include Google::Apis::Core::Hashable
726
789
 
727
790
  # The platform types to be checked.
@@ -731,7 +794,7 @@ module Google
731
794
 
732
795
  # The threat entries to be checked.
733
796
  # Corresponds to the JSON property `threatEntries`
734
- # @return [Array<Google::Apis::SafebrowsingV4::ThreatEntry>]
797
+ # @return [Array<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry>]
735
798
  attr_accessor :threat_entries
736
799
 
737
800
  # The entry types to be checked.
@@ -760,7 +823,7 @@ module Google
760
823
  # Describes an individual threat list. A list is defined by three parameters:
761
824
  # the type of threat posed, the type of platform targeted by the threat, and the
762
825
  # type of entries in the list.
763
- class ThreatListDescriptor
826
+ class GoogleSecuritySafebrowsingV4ThreatListDescriptor
764
827
  include Google::Apis::Core::Hashable
765
828
 
766
829
  # The platform type targeted by the list's entries.
@@ -791,7 +854,7 @@ module Google
791
854
  end
792
855
 
793
856
  # A match when checking a threat entry in the Safe Browsing threat lists.
794
- class ThreatMatch
857
+ class GoogleSecuritySafebrowsingV4ThreatMatch
795
858
  include Google::Apis::Core::Hashable
796
859
 
797
860
  # The cache lifetime for the returned match. Clients must not cache this
@@ -808,13 +871,13 @@ module Google
808
871
  # An individual threat; for example, a malicious URL or its hash representation.
809
872
  # Only one of these fields should be set.
810
873
  # Corresponds to the JSON property `threat`
811
- # @return [Google::Apis::SafebrowsingV4::ThreatEntry]
874
+ # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry]
812
875
  attr_accessor :threat
813
876
 
814
877
  # The metadata associated with a specific threat entry. The client is expected
815
878
  # to know the metadata key/value pairs associated with each threat type.
816
879
  # Corresponds to the JSON property `threatEntryMetadata`
817
- # @return [Google::Apis::SafebrowsingV4::ThreatEntryMetadata]
880
+ # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntryMetadata]
818
881
  attr_accessor :threat_entry_metadata
819
882
 
820
883
  # The threat entry type matching this threat.
@@ -841,69 +904,6 @@ module Google
841
904
  @threat_type = args[:threat_type] if args.key?(:threat_type)
842
905
  end
843
906
  end
844
-
845
- # A single resource related to a threat hit.
846
- class ThreatSource
847
- include Google::Apis::Core::Hashable
848
-
849
- # Referrer of the resource. Only set if the referrer is available.
850
- # Corresponds to the JSON property `referrer`
851
- # @return [String]
852
- attr_accessor :referrer
853
-
854
- # The remote IP of the resource in ASCII format. Either IPv4 or IPv6.
855
- # Corresponds to the JSON property `remoteIp`
856
- # @return [String]
857
- attr_accessor :remote_ip
858
-
859
- # The type of source reported.
860
- # Corresponds to the JSON property `type`
861
- # @return [String]
862
- attr_accessor :type
863
-
864
- # The URL of the resource.
865
- # Corresponds to the JSON property `url`
866
- # @return [String]
867
- attr_accessor :url
868
-
869
- def initialize(**args)
870
- update!(**args)
871
- end
872
-
873
- # Update properties of this object
874
- def update!(**args)
875
- @referrer = args[:referrer] if args.key?(:referrer)
876
- @remote_ip = args[:remote_ip] if args.key?(:remote_ip)
877
- @type = args[:type] if args.key?(:type)
878
- @url = args[:url] if args.key?(:url)
879
- end
880
- end
881
-
882
- # Details about the user that encountered the threat.
883
- class UserInfo
884
- include Google::Apis::Core::Hashable
885
-
886
- # The UN M.49 region code associated with the user's location.
887
- # Corresponds to the JSON property `regionCode`
888
- # @return [String]
889
- attr_accessor :region_code
890
-
891
- # Unique user identifier defined by the client.
892
- # Corresponds to the JSON property `userId`
893
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
894
- # @return [String]
895
- attr_accessor :user_id
896
-
897
- def initialize(**args)
898
- update!(**args)
899
- end
900
-
901
- # Update properties of this object
902
- def update!(**args)
903
- @region_code = args[:region_code] if args.key?(:region_code)
904
- @user_id = args[:user_id] if args.key?(:user_id)
905
- end
906
- end
907
907
  end
908
908
  end
909
909
  end