google-api-client 0.45.0 → 0.45.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +56 -0
  3. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +7 -9
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  6. data/generated/google/apis/analyticsadmin_v1alpha.rb +43 -0
  7. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +1361 -0
  8. data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +610 -0
  9. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +2135 -0
  10. data/generated/google/apis/apigateway_v1alpha2.rb +34 -0
  11. data/generated/google/apis/apigateway_v1alpha2/classes.rb +633 -0
  12. data/generated/google/apis/apigateway_v1alpha2/representations.rb +250 -0
  13. data/generated/google/apis/apigateway_v1alpha2/service.rb +623 -0
  14. data/generated/google/apis/apigee_v1.rb +1 -1
  15. data/generated/google/apis/apigee_v1/classes.rb +0 -6
  16. data/generated/google/apis/apigee_v1/representations.rb +0 -1
  17. data/generated/google/apis/apigee_v1/service.rb +1 -5
  18. data/generated/google/apis/appsmarket_v2.rb +1 -1
  19. data/generated/google/apis/bigquery_v2.rb +1 -1
  20. data/generated/google/apis/bigquery_v2/classes.rb +22 -0
  21. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  22. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  23. data/generated/google/apis/binaryauthorization_v1/classes.rb +187 -0
  24. data/generated/google/apis/binaryauthorization_v1/representations.rb +74 -0
  25. data/generated/google/apis/binaryauthorization_v1/service.rb +35 -0
  26. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  27. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +187 -0
  28. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +74 -0
  29. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +35 -0
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/classes.rb +2 -1
  32. data/generated/google/apis/chat_v1.rb +1 -1
  33. data/generated/google/apis/chat_v1/classes.rb +76 -2
  34. data/generated/google/apis/chat_v1/representations.rb +35 -0
  35. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  36. data/generated/google/apis/cloudbuild_v1/classes.rb +0 -34
  37. data/generated/google/apis/cloudbuild_v1/representations.rb +0 -15
  38. data/generated/google/apis/cloudbuild_v1/service.rb +7 -4
  39. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  40. data/generated/google/apis/cloudfunctions_v1/classes.rb +12 -1
  41. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  42. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  43. data/generated/google/apis/cloudidentity_v1/classes.rb +0 -34
  44. data/generated/google/apis/cloudidentity_v1/representations.rb +0 -17
  45. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +185 -0
  47. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +94 -0
  48. data/generated/google/apis/cloudidentity_v1beta1/service.rb +164 -0
  49. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  50. data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
  51. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
  53. data/generated/google/apis/content_v2_1.rb +1 -1
  54. data/generated/google/apis/content_v2_1/service.rb +1 -1
  55. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  56. data/generated/google/apis/datacatalog_v1beta1/classes.rb +1 -1
  57. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  58. data/generated/google/apis/dataflow_v1b3/classes.rb +20 -8
  59. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  60. data/generated/google/apis/dfareporting_v3_3/classes.rb +0 -164
  61. data/generated/google/apis/dfareporting_v3_3/representations.rb +0 -42
  62. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  63. data/generated/google/apis/dfareporting_v3_4/classes.rb +0 -164
  64. data/generated/google/apis/dfareporting_v3_4/representations.rb +0 -42
  65. data/generated/google/apis/dialogflow_v2.rb +1 -1
  66. data/generated/google/apis/dialogflow_v2/classes.rb +73 -0
  67. data/generated/google/apis/dialogflow_v2/representations.rb +51 -0
  68. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  69. data/generated/google/apis/dialogflow_v2beta1/classes.rb +73 -0
  70. data/generated/google/apis/dialogflow_v2beta1/representations.rb +51 -0
  71. data/generated/google/apis/dialogflow_v2beta1/service.rb +6 -6
  72. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  73. data/generated/google/apis/dialogflow_v3beta1/classes.rb +142 -0
  74. data/generated/google/apis/dialogflow_v3beta1/representations.rb +83 -0
  75. data/generated/google/apis/displayvideo_v1.rb +1 -1
  76. data/generated/google/apis/displayvideo_v1/classes.rb +8 -0
  77. data/generated/google/apis/displayvideo_v1/representations.rb +1 -0
  78. data/generated/google/apis/dlp_v2.rb +1 -1
  79. data/generated/google/apis/dlp_v2/classes.rb +26 -0
  80. data/generated/google/apis/dlp_v2/representations.rb +16 -0
  81. data/generated/google/apis/dlp_v2/service.rb +328 -328
  82. data/generated/google/apis/firestore_v1.rb +1 -1
  83. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  84. data/generated/google/apis/gmail_v1.rb +1 -1
  85. data/generated/google/apis/gmail_v1/service.rb +1 -1
  86. data/generated/google/apis/healthcare_v1.rb +1 -1
  87. data/generated/google/apis/healthcare_v1/classes.rb +3 -1
  88. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  89. data/generated/google/apis/healthcare_v1beta1/classes.rb +1014 -16
  90. data/generated/google/apis/healthcare_v1beta1/representations.rb +453 -0
  91. data/generated/google/apis/healthcare_v1beta1/service.rb +1226 -0
  92. data/generated/google/apis/logging_v2.rb +1 -1
  93. data/generated/google/apis/logging_v2/classes.rb +98 -55
  94. data/generated/google/apis/logging_v2/representations.rb +32 -0
  95. data/generated/google/apis/logging_v2/service.rb +1214 -264
  96. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  97. data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -2
  98. data/generated/google/apis/oslogin_v1alpha/service.rb +13 -13
  99. data/generated/google/apis/people_v1.rb +1 -1
  100. data/generated/google/apis/people_v1/service.rb +8 -6
  101. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  102. data/generated/google/apis/realtimebidding_v1/classes.rb +4 -4
  103. data/generated/google/apis/realtimebidding_v1/service.rb +4 -1
  104. data/generated/google/apis/run_v1.rb +1 -1
  105. data/generated/google/apis/run_v1/classes.rb +0 -124
  106. data/generated/google/apis/run_v1/representations.rb +0 -61
  107. data/generated/google/apis/run_v1/service.rb +0 -342
  108. data/generated/google/apis/searchconsole_v1.rb +7 -1
  109. data/generated/google/apis/searchconsole_v1/classes.rb +388 -0
  110. data/generated/google/apis/searchconsole_v1/representations.rb +162 -0
  111. data/generated/google/apis/searchconsole_v1/service.rb +287 -0
  112. data/generated/google/apis/securitycenter_v1.rb +1 -1
  113. data/generated/google/apis/securitycenter_v1/classes.rb +5 -199
  114. data/generated/google/apis/securitycenter_v1/representations.rb +0 -72
  115. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  116. data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -196
  117. data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -72
  118. data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
  119. data/generated/google/apis/securitycenter_v1beta2/classes.rb +2 -196
  120. data/generated/google/apis/securitycenter_v1beta2/representations.rb +0 -72
  121. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  122. data/generated/google/apis/servicecontrol_v1/classes.rb +1 -2
  123. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  124. data/generated/google/apis/servicecontrol_v2/classes.rb +1 -2
  125. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  126. data/generated/google/apis/servicemanagement_v1/classes.rb +0 -22
  127. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -13
  128. data/generated/google/apis/servicemanagement_v1/service.rb +0 -36
  129. data/generated/google/apis/smartdevicemanagement_v1.rb +35 -0
  130. data/generated/google/apis/smartdevicemanagement_v1/classes.rb +313 -0
  131. data/generated/google/apis/smartdevicemanagement_v1/representations.rb +174 -0
  132. data/generated/google/apis/smartdevicemanagement_v1/service.rb +312 -0
  133. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  134. data/generated/google/apis/sourcerepo_v1/classes.rb +250 -400
  135. data/generated/google/apis/sourcerepo_v1/service.rb +40 -49
  136. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  137. data/generated/google/apis/sqladmin_v1beta4/classes.rb +83 -52
  138. data/generated/google/apis/sqladmin_v1beta4/representations.rb +33 -17
  139. data/generated/google/apis/storage_v1.rb +1 -1
  140. data/generated/google/apis/sts_v1beta.rb +1 -1
  141. data/generated/google/apis/sts_v1beta/classes.rb +4 -1
  142. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  143. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  144. data/generated/google/apis/workflowexecutions_v1beta.rb +2 -2
  145. data/generated/google/apis/workflowexecutions_v1beta/service.rb +1 -1
  146. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  147. data/generated/google/apis/youtube_v3.rb +1 -1
  148. data/generated/google/apis/youtube_v3/classes.rb +0 -134
  149. data/generated/google/apis/youtube_v3/representations.rb +0 -55
  150. data/generated/google/apis/youtube_v3/service.rb +2 -2
  151. data/lib/google/apis/version.rb +1 -1
  152. metadata +15 -3
@@ -48,6 +48,293 @@ module Google
48
48
  @batch_path = 'batch'
49
49
  end
50
50
 
51
+ # Query your data with filters and parameters that you define. Returns zero or
52
+ # more rows grouped by the row keys that you define. You must define a date
53
+ # range of one or more days. When date is one of the group by values, any days
54
+ # without data are omitted from the result list. If you need to know which days
55
+ # have data, issue a broad date range query grouped by date for any metric, and
56
+ # see which day rows are returned.
57
+ # @param [String] site_url
58
+ # The site's URL, including protocol. For example: `http://www.example.com/`.
59
+ # @param [Google::Apis::SearchconsoleV1::SearchAnalyticsQueryRequest] search_analytics_query_request_object
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
62
+ # @param [String] quota_user
63
+ # Available to use for quota purposes for server-side applications. Can be any
64
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
65
+ # @param [Google::Apis::RequestOptions] options
66
+ # Request-specific options
67
+ #
68
+ # @yield [result, err] Result & error if block supplied
69
+ # @yieldparam result [Google::Apis::SearchconsoleV1::SearchAnalyticsQueryResponse] parsed result object
70
+ # @yieldparam err [StandardError] error object if request failed
71
+ #
72
+ # @return [Google::Apis::SearchconsoleV1::SearchAnalyticsQueryResponse]
73
+ #
74
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
77
+ def query_searchanalytic(site_url, search_analytics_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
78
+ command = make_simple_command(:post, 'webmasters/v3/sites/{siteUrl}/searchAnalytics/query', options)
79
+ command.request_representation = Google::Apis::SearchconsoleV1::SearchAnalyticsQueryRequest::Representation
80
+ command.request_object = search_analytics_query_request_object
81
+ command.response_representation = Google::Apis::SearchconsoleV1::SearchAnalyticsQueryResponse::Representation
82
+ command.response_class = Google::Apis::SearchconsoleV1::SearchAnalyticsQueryResponse
83
+ command.params['siteUrl'] = site_url unless site_url.nil?
84
+ command.query['fields'] = fields unless fields.nil?
85
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
86
+ execute_or_queue_command(command, &block)
87
+ end
88
+
89
+ # Deletes a sitemap from this site.
90
+ # @param [String] site_url
91
+ # The site's URL, including protocol. For example: `http://www.example.com/`.
92
+ # @param [String] feedpath
93
+ # The URL of the actual sitemap. For example: `http://www.example.com/sitemap.
94
+ # xml`.
95
+ # @param [String] fields
96
+ # Selector specifying which fields to include in a partial response.
97
+ # @param [String] quota_user
98
+ # Available to use for quota purposes for server-side applications. Can be any
99
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
100
+ # @param [Google::Apis::RequestOptions] options
101
+ # Request-specific options
102
+ #
103
+ # @yield [result, err] Result & error if block supplied
104
+ # @yieldparam result [NilClass] No result returned for this method
105
+ # @yieldparam err [StandardError] error object if request failed
106
+ #
107
+ # @return [void]
108
+ #
109
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
110
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
111
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
112
+ def delete_sitemap(site_url, feedpath, fields: nil, quota_user: nil, options: nil, &block)
113
+ command = make_simple_command(:delete, 'webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}', options)
114
+ command.params['siteUrl'] = site_url unless site_url.nil?
115
+ command.params['feedpath'] = feedpath unless feedpath.nil?
116
+ command.query['fields'] = fields unless fields.nil?
117
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
118
+ execute_or_queue_command(command, &block)
119
+ end
120
+
121
+ # Retrieves information about a specific sitemap.
122
+ # @param [String] site_url
123
+ # The site's URL, including protocol. For example: `http://www.example.com/`.
124
+ # @param [String] feedpath
125
+ # The URL of the actual sitemap. For example: `http://www.example.com/sitemap.
126
+ # xml`.
127
+ # @param [String] fields
128
+ # Selector specifying which fields to include in a partial response.
129
+ # @param [String] quota_user
130
+ # Available to use for quota purposes for server-side applications. Can be any
131
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
132
+ # @param [Google::Apis::RequestOptions] options
133
+ # Request-specific options
134
+ #
135
+ # @yield [result, err] Result & error if block supplied
136
+ # @yieldparam result [Google::Apis::SearchconsoleV1::WmxSitemap] parsed result object
137
+ # @yieldparam err [StandardError] error object if request failed
138
+ #
139
+ # @return [Google::Apis::SearchconsoleV1::WmxSitemap]
140
+ #
141
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
142
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
143
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
144
+ def get_sitemap(site_url, feedpath, fields: nil, quota_user: nil, options: nil, &block)
145
+ command = make_simple_command(:get, 'webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}', options)
146
+ command.response_representation = Google::Apis::SearchconsoleV1::WmxSitemap::Representation
147
+ command.response_class = Google::Apis::SearchconsoleV1::WmxSitemap
148
+ command.params['siteUrl'] = site_url unless site_url.nil?
149
+ command.params['feedpath'] = feedpath unless feedpath.nil?
150
+ command.query['fields'] = fields unless fields.nil?
151
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
152
+ execute_or_queue_command(command, &block)
153
+ end
154
+
155
+ # Lists the [sitemaps-entries](/webmaster-tools/v3/sitemaps) submitted for this
156
+ # site, or included in the sitemap index file (if `sitemapIndex` is specified in
157
+ # the request).
158
+ # @param [String] site_url
159
+ # The site's URL, including protocol. For example: `http://www.example.com/`.
160
+ # @param [String] sitemap_index
161
+ # A URL of a site's sitemap index. For example: `http://www.example.com/
162
+ # sitemapindex.xml`.
163
+ # @param [String] fields
164
+ # Selector specifying which fields to include in a partial response.
165
+ # @param [String] quota_user
166
+ # Available to use for quota purposes for server-side applications. Can be any
167
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
168
+ # @param [Google::Apis::RequestOptions] options
169
+ # Request-specific options
170
+ #
171
+ # @yield [result, err] Result & error if block supplied
172
+ # @yieldparam result [Google::Apis::SearchconsoleV1::SitemapsListResponse] parsed result object
173
+ # @yieldparam err [StandardError] error object if request failed
174
+ #
175
+ # @return [Google::Apis::SearchconsoleV1::SitemapsListResponse]
176
+ #
177
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
178
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
179
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
180
+ def list_sitemaps(site_url, sitemap_index: nil, fields: nil, quota_user: nil, options: nil, &block)
181
+ command = make_simple_command(:get, 'webmasters/v3/sites/{siteUrl}/sitemaps', options)
182
+ command.response_representation = Google::Apis::SearchconsoleV1::SitemapsListResponse::Representation
183
+ command.response_class = Google::Apis::SearchconsoleV1::SitemapsListResponse
184
+ command.params['siteUrl'] = site_url unless site_url.nil?
185
+ command.query['sitemapIndex'] = sitemap_index unless sitemap_index.nil?
186
+ command.query['fields'] = fields unless fields.nil?
187
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
188
+ execute_or_queue_command(command, &block)
189
+ end
190
+
191
+ # Submits a sitemap for a site.
192
+ # @param [String] site_url
193
+ # The site's URL, including protocol. For example: `http://www.example.com/`.
194
+ # @param [String] feedpath
195
+ # The URL of the actual sitemap. For example: `http://www.example.com/sitemap.
196
+ # xml`.
197
+ # @param [String] fields
198
+ # Selector specifying which fields to include in a partial response.
199
+ # @param [String] quota_user
200
+ # Available to use for quota purposes for server-side applications. Can be any
201
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
202
+ # @param [Google::Apis::RequestOptions] options
203
+ # Request-specific options
204
+ #
205
+ # @yield [result, err] Result & error if block supplied
206
+ # @yieldparam result [NilClass] No result returned for this method
207
+ # @yieldparam err [StandardError] error object if request failed
208
+ #
209
+ # @return [void]
210
+ #
211
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
212
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
213
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
214
+ def submit_sitemap(site_url, feedpath, fields: nil, quota_user: nil, options: nil, &block)
215
+ command = make_simple_command(:put, 'webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}', options)
216
+ command.params['siteUrl'] = site_url unless site_url.nil?
217
+ command.params['feedpath'] = feedpath unless feedpath.nil?
218
+ command.query['fields'] = fields unless fields.nil?
219
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
220
+ execute_or_queue_command(command, &block)
221
+ end
222
+
223
+ # Adds a site to the set of the user's sites in Search Console.
224
+ # @param [String] site_url
225
+ # The URL of the site to add.
226
+ # @param [String] fields
227
+ # Selector specifying which fields to include in a partial response.
228
+ # @param [String] quota_user
229
+ # Available to use for quota purposes for server-side applications. Can be any
230
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
231
+ # @param [Google::Apis::RequestOptions] options
232
+ # Request-specific options
233
+ #
234
+ # @yield [result, err] Result & error if block supplied
235
+ # @yieldparam result [NilClass] No result returned for this method
236
+ # @yieldparam err [StandardError] error object if request failed
237
+ #
238
+ # @return [void]
239
+ #
240
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
241
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
242
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
243
+ def add_site(site_url, fields: nil, quota_user: nil, options: nil, &block)
244
+ command = make_simple_command(:put, 'webmasters/v3/sites/{siteUrl}', options)
245
+ command.params['siteUrl'] = site_url unless site_url.nil?
246
+ command.query['fields'] = fields unless fields.nil?
247
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
248
+ execute_or_queue_command(command, &block)
249
+ end
250
+
251
+ # Removes a site from the set of the user's Search Console sites.
252
+ # @param [String] site_url
253
+ # The URI of the property as defined in Search Console. **Examples:** `http://
254
+ # www.example.com/` or `sc-domain:example.com`.
255
+ # @param [String] fields
256
+ # Selector specifying which fields to include in a partial response.
257
+ # @param [String] quota_user
258
+ # Available to use for quota purposes for server-side applications. Can be any
259
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
260
+ # @param [Google::Apis::RequestOptions] options
261
+ # Request-specific options
262
+ #
263
+ # @yield [result, err] Result & error if block supplied
264
+ # @yieldparam result [NilClass] No result returned for this method
265
+ # @yieldparam err [StandardError] error object if request failed
266
+ #
267
+ # @return [void]
268
+ #
269
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
270
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
271
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
272
+ def delete_site(site_url, fields: nil, quota_user: nil, options: nil, &block)
273
+ command = make_simple_command(:delete, 'webmasters/v3/sites/{siteUrl}', options)
274
+ command.params['siteUrl'] = site_url unless site_url.nil?
275
+ command.query['fields'] = fields unless fields.nil?
276
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
277
+ execute_or_queue_command(command, &block)
278
+ end
279
+
280
+ # Retrieves information about specific site.
281
+ # @param [String] site_url
282
+ # The URI of the property as defined in Search Console. **Examples:** `http://
283
+ # www.example.com/` or `sc-domain:example.com`.
284
+ # @param [String] fields
285
+ # Selector specifying which fields to include in a partial response.
286
+ # @param [String] quota_user
287
+ # Available to use for quota purposes for server-side applications. Can be any
288
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
289
+ # @param [Google::Apis::RequestOptions] options
290
+ # Request-specific options
291
+ #
292
+ # @yield [result, err] Result & error if block supplied
293
+ # @yieldparam result [Google::Apis::SearchconsoleV1::WmxSite] parsed result object
294
+ # @yieldparam err [StandardError] error object if request failed
295
+ #
296
+ # @return [Google::Apis::SearchconsoleV1::WmxSite]
297
+ #
298
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
299
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
300
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
301
+ def get_site(site_url, fields: nil, quota_user: nil, options: nil, &block)
302
+ command = make_simple_command(:get, 'webmasters/v3/sites/{siteUrl}', options)
303
+ command.response_representation = Google::Apis::SearchconsoleV1::WmxSite::Representation
304
+ command.response_class = Google::Apis::SearchconsoleV1::WmxSite
305
+ command.params['siteUrl'] = site_url unless site_url.nil?
306
+ command.query['fields'] = fields unless fields.nil?
307
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
308
+ execute_or_queue_command(command, &block)
309
+ end
310
+
311
+ # Lists the user's Search Console sites.
312
+ # @param [String] fields
313
+ # Selector specifying which fields to include in a partial response.
314
+ # @param [String] quota_user
315
+ # Available to use for quota purposes for server-side applications. Can be any
316
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
317
+ # @param [Google::Apis::RequestOptions] options
318
+ # Request-specific options
319
+ #
320
+ # @yield [result, err] Result & error if block supplied
321
+ # @yieldparam result [Google::Apis::SearchconsoleV1::SitesListResponse] parsed result object
322
+ # @yieldparam err [StandardError] error object if request failed
323
+ #
324
+ # @return [Google::Apis::SearchconsoleV1::SitesListResponse]
325
+ #
326
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
327
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
328
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
329
+ def list_sites(fields: nil, quota_user: nil, options: nil, &block)
330
+ command = make_simple_command(:get, 'webmasters/v3/sites', options)
331
+ command.response_representation = Google::Apis::SearchconsoleV1::SitesListResponse::Representation
332
+ command.response_class = Google::Apis::SearchconsoleV1::SitesListResponse
333
+ command.query['fields'] = fields unless fields.nil?
334
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
335
+ execute_or_queue_command(command, &block)
336
+ end
337
+
51
338
  # Runs Mobile-Friendly Test for a given URL.
52
339
  # @param [Google::Apis::SearchconsoleV1::RunMobileFriendlyTestRequest] run_mobile_friendly_test_request_object
53
340
  # @param [String] fields
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
27
27
  module SecuritycenterV1
28
28
  VERSION = 'V1'
29
- REVISION = '20200820'
29
+ REVISION = '20200918'
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'
@@ -601,74 +601,6 @@ module Google
601
601
  end
602
602
  end
603
603
 
604
- # Security Command Center representation of a Google Cloud resource. The Asset
605
- # is a Security Command Center resource that captures information about a single
606
- # Google Cloud resource. All modifications to an Asset are only within the
607
- # context of Security Command Center and don't affect the referenced Google
608
- # Cloud resource.
609
- class GoogleCloudSecuritycenterV1p1beta1Asset
610
- include Google::Apis::Core::Hashable
611
-
612
- # The time at which the asset was created in Security Command Center.
613
- # Corresponds to the JSON property `createTime`
614
- # @return [String]
615
- attr_accessor :create_time
616
-
617
- # Cloud IAM Policy information associated with the Google Cloud resource
618
- # described by the Security Command Center asset. This information is managed
619
- # and defined by the Google Cloud resource and cannot be modified by the user.
620
- # Corresponds to the JSON property `iamPolicy`
621
- # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1IamPolicy]
622
- attr_accessor :iam_policy
623
-
624
- # The relative resource name of this asset. See: https://cloud.google.com/apis/
625
- # design/resource_names#relative_resource_name Example: "organizations/`
626
- # organization_id`/assets/`asset_id`".
627
- # Corresponds to the JSON property `name`
628
- # @return [String]
629
- attr_accessor :name
630
-
631
- # Resource managed properties. These properties are managed and defined by the
632
- # Google Cloud resource and cannot be modified by the user.
633
- # Corresponds to the JSON property `resourceProperties`
634
- # @return [Hash<String,Object>]
635
- attr_accessor :resource_properties
636
-
637
- # Security Command Center managed properties. These properties are managed by
638
- # Security Command Center and cannot be modified by the user.
639
- # Corresponds to the JSON property `securityCenterProperties`
640
- # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties]
641
- attr_accessor :security_center_properties
642
-
643
- # User specified security marks that are attached to the parent Security Command
644
- # Center resource. Security marks are scoped within a Security Command Center
645
- # organization -- they can be modified and viewed by all users who have proper
646
- # permissions on the organization.
647
- # Corresponds to the JSON property `securityMarks`
648
- # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
649
- attr_accessor :security_marks
650
-
651
- # The time at which the asset was last updated, added, or deleted in Cloud SCC.
652
- # Corresponds to the JSON property `updateTime`
653
- # @return [String]
654
- attr_accessor :update_time
655
-
656
- def initialize(**args)
657
- update!(**args)
658
- end
659
-
660
- # Update properties of this object
661
- def update!(**args)
662
- @create_time = args[:create_time] if args.key?(:create_time)
663
- @iam_policy = args[:iam_policy] if args.key?(:iam_policy)
664
- @name = args[:name] if args.key?(:name)
665
- @resource_properties = args[:resource_properties] if args.key?(:resource_properties)
666
- @security_center_properties = args[:security_center_properties] if args.key?(:security_center_properties)
667
- @security_marks = args[:security_marks] if args.key?(:security_marks)
668
- @update_time = args[:update_time] if args.key?(:update_time)
669
- end
670
- end
671
-
672
604
  # Security Command Center finding. A finding is a record of assessment data (
673
605
  # security, risk, health or privacy) ingested into Security Command Center for
674
606
  # presentation, notification, analysis, policy testing, and enforcement. For
@@ -735,7 +667,8 @@ module Google
735
667
  # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
736
668
  attr_accessor :security_marks
737
669
 
738
- # The severity of the finding.
670
+ # The severity of the finding. This field is managed by the source that writes
671
+ # the finding.
739
672
  # Corresponds to the JSON property `severity`
740
673
  # @return [String]
741
674
  attr_accessor :severity
@@ -773,28 +706,6 @@ module Google
773
706
  end
774
707
  end
775
708
 
776
- # Cloud IAM Policy information associated with the Google Cloud resource
777
- # described by the Security Command Center asset. This information is managed
778
- # and defined by the Google Cloud resource and cannot be modified by the user.
779
- class GoogleCloudSecuritycenterV1p1beta1IamPolicy
780
- include Google::Apis::Core::Hashable
781
-
782
- # The JSON representation of the Policy associated with the asset. See https://
783
- # cloud.google.com/iam/docs/reference/rest/v1/Policy for format details.
784
- # Corresponds to the JSON property `policyBlob`
785
- # @return [String]
786
- attr_accessor :policy_blob
787
-
788
- def initialize(**args)
789
- update!(**args)
790
- end
791
-
792
- # Update properties of this object
793
- def update!(**args)
794
- @policy_blob = args[:policy_blob] if args.key?(:policy_blob)
795
- end
796
- end
797
-
798
709
  # Security Command Center's Notification
799
710
  class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
800
711
  include Google::Apis::Core::Hashable
@@ -817,12 +728,6 @@ module Google
817
728
  # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Resource]
818
729
  attr_accessor :resource
819
730
 
820
- # Wrapper over asset object that also captures the state change for the asset e.
821
- # g. if it was a newly created asset vs updated or deleted asset.
822
- # Corresponds to the JSON property `temporalAsset`
823
- # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset]
824
- attr_accessor :temporal_asset
825
-
826
731
  def initialize(**args)
827
732
  update!(**args)
828
733
  end
@@ -832,7 +737,6 @@ module Google
832
737
  @finding = args[:finding] if args.key?(:finding)
833
738
  @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
834
739
  @resource = args[:resource] if args.key?(:resource)
835
- @temporal_asset = args[:temporal_asset] if args.key?(:temporal_asset)
836
740
  end
837
741
  end
838
742
 
@@ -905,74 +809,6 @@ module Google
905
809
  end
906
810
  end
907
811
 
908
- # Security Command Center managed properties. These properties are managed by
909
- # Security Command Center and cannot be modified by the user.
910
- class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
911
- include Google::Apis::Core::Hashable
912
-
913
- # The user defined display name for this resource.
914
- # Corresponds to the JSON property `resourceDisplayName`
915
- # @return [String]
916
- attr_accessor :resource_display_name
917
-
918
- # The full resource name of the Google Cloud resource this asset represents.
919
- # This field is immutable after create time. See: https://cloud.google.com/apis/
920
- # design/resource_names#full_resource_name
921
- # Corresponds to the JSON property `resourceName`
922
- # @return [String]
923
- attr_accessor :resource_name
924
-
925
- # Owners of the Google Cloud resource.
926
- # Corresponds to the JSON property `resourceOwners`
927
- # @return [Array<String>]
928
- attr_accessor :resource_owners
929
-
930
- # The full resource name of the immediate parent of the resource. See: https://
931
- # cloud.google.com/apis/design/resource_names#full_resource_name
932
- # Corresponds to the JSON property `resourceParent`
933
- # @return [String]
934
- attr_accessor :resource_parent
935
-
936
- # The user defined display name for the parent of this resource.
937
- # Corresponds to the JSON property `resourceParentDisplayName`
938
- # @return [String]
939
- attr_accessor :resource_parent_display_name
940
-
941
- # The full resource name of the project the resource belongs to. See: https://
942
- # cloud.google.com/apis/design/resource_names#full_resource_name
943
- # Corresponds to the JSON property `resourceProject`
944
- # @return [String]
945
- attr_accessor :resource_project
946
-
947
- # The user defined display name for the project of this resource.
948
- # Corresponds to the JSON property `resourceProjectDisplayName`
949
- # @return [String]
950
- attr_accessor :resource_project_display_name
951
-
952
- # The type of the Google Cloud resource. Examples include: APPLICATION, PROJECT,
953
- # and ORGANIZATION. This is a case insensitive field defined by Security Command
954
- # Center and/or the producer of the resource and is immutable after create time.
955
- # Corresponds to the JSON property `resourceType`
956
- # @return [String]
957
- attr_accessor :resource_type
958
-
959
- def initialize(**args)
960
- update!(**args)
961
- end
962
-
963
- # Update properties of this object
964
- def update!(**args)
965
- @resource_display_name = args[:resource_display_name] if args.key?(:resource_display_name)
966
- @resource_name = args[:resource_name] if args.key?(:resource_name)
967
- @resource_owners = args[:resource_owners] if args.key?(:resource_owners)
968
- @resource_parent = args[:resource_parent] if args.key?(:resource_parent)
969
- @resource_parent_display_name = args[:resource_parent_display_name] if args.key?(:resource_parent_display_name)
970
- @resource_project = args[:resource_project] if args.key?(:resource_project)
971
- @resource_project_display_name = args[:resource_project_display_name] if args.key?(:resource_project_display_name)
972
- @resource_type = args[:resource_type] if args.key?(:resource_type)
973
- end
974
- end
975
-
976
812
  # User specified security marks that are attached to the parent Security Command
977
813
  # Center resource. Security marks are scoped within a Security Command Center
978
814
  # organization -- they can be modified and viewed by all users who have proper
@@ -1008,36 +844,6 @@ module Google
1008
844
  end
1009
845
  end
1010
846
 
1011
- # Wrapper over asset object that also captures the state change for the asset e.
1012
- # g. if it was a newly created asset vs updated or deleted asset.
1013
- class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
1014
- include Google::Apis::Core::Hashable
1015
-
1016
- # Security Command Center representation of a Google Cloud resource. The Asset
1017
- # is a Security Command Center resource that captures information about a single
1018
- # Google Cloud resource. All modifications to an Asset are only within the
1019
- # context of Security Command Center and don't affect the referenced Google
1020
- # Cloud resource.
1021
- # Corresponds to the JSON property `asset`
1022
- # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Asset]
1023
- attr_accessor :asset
1024
-
1025
- # Represents if the asset was created/updated/deleted.
1026
- # Corresponds to the JSON property `changeType`
1027
- # @return [String]
1028
- attr_accessor :change_type
1029
-
1030
- def initialize(**args)
1031
- update!(**args)
1032
- end
1033
-
1034
- # Update properties of this object
1035
- def update!(**args)
1036
- @asset = args[:asset] if args.key?(:asset)
1037
- @change_type = args[:change_type] if args.key?(:change_type)
1038
- end
1039
- end
1040
-
1041
847
  # Request message for grouping by assets.
1042
848
  class GroupAssetsRequest
1043
849
  include Google::Apis::Core::Hashable
@@ -1609,14 +1415,14 @@ module Google
1609
1415
  # @return [String]
1610
1416
  attr_accessor :name
1611
1417
 
1612
- # The PubSub topic to send notifications to. Its format is "projects/[project_id]
1613
- # /topics/[topic]".
1418
+ # The Pub/Sub topic to send notifications to. Its format is "projects/[
1419
+ # project_id]/topics/[topic]".
1614
1420
  # Corresponds to the JSON property `pubsubTopic`
1615
1421
  # @return [String]
1616
1422
  attr_accessor :pubsub_topic
1617
1423
 
1618
1424
  # Output only. The service account that needs "pubsub.topics.publish" permission
1619
- # to publish to the PubSub topic.
1425
+ # to publish to the Pub/Sub topic.
1620
1426
  # Corresponds to the JSON property `serviceAccount`
1621
1427
  # @return [String]
1622
1428
  attr_accessor :service_account