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
@@ -26,7 +26,13 @@ module Google
26
26
  # @see https://developers.google.com/webmaster-tools/search-console-api/
27
27
  module SearchconsoleV1
28
28
  VERSION = 'V1'
29
- REVISION = '20200803'
29
+ REVISION = '20200919'
30
+
31
+ # View and manage Search Console data for your verified sites
32
+ AUTH_WEBMASTERS = 'https://www.googleapis.com/auth/webmasters'
33
+
34
+ # View Search Console data for your verified sites
35
+ AUTH_WEBMASTERS_READONLY = 'https://www.googleapis.com/auth/webmasters.readonly'
30
36
  end
31
37
  end
32
38
  end
@@ -22,6 +22,112 @@ module Google
22
22
  module Apis
23
23
  module SearchconsoleV1
24
24
 
25
+ #
26
+ class ApiDataRow
27
+ include Google::Apis::Core::Hashable
28
+
29
+ #
30
+ # Corresponds to the JSON property `clicks`
31
+ # @return [Float]
32
+ attr_accessor :clicks
33
+
34
+ #
35
+ # Corresponds to the JSON property `ctr`
36
+ # @return [Float]
37
+ attr_accessor :ctr
38
+
39
+ #
40
+ # Corresponds to the JSON property `impressions`
41
+ # @return [Float]
42
+ attr_accessor :impressions
43
+
44
+ #
45
+ # Corresponds to the JSON property `keys`
46
+ # @return [Array<String>]
47
+ attr_accessor :keys
48
+
49
+ #
50
+ # Corresponds to the JSON property `position`
51
+ # @return [Float]
52
+ attr_accessor :position
53
+
54
+ def initialize(**args)
55
+ update!(**args)
56
+ end
57
+
58
+ # Update properties of this object
59
+ def update!(**args)
60
+ @clicks = args[:clicks] if args.key?(:clicks)
61
+ @ctr = args[:ctr] if args.key?(:ctr)
62
+ @impressions = args[:impressions] if args.key?(:impressions)
63
+ @keys = args[:keys] if args.key?(:keys)
64
+ @position = args[:position] if args.key?(:position)
65
+ end
66
+ end
67
+
68
+ # A filter test to be applied to each row in the data set, where a match can
69
+ # return the row. Filters are string comparisons, and values and dimension names
70
+ # are not case-sensitive. Individual filters are either AND'ed or OR'ed within
71
+ # their parent filter group, according to the group's group type. You do not
72
+ # need to group by a specified dimension to filter against it.
73
+ class ApiDimensionFilter
74
+ include Google::Apis::Core::Hashable
75
+
76
+ #
77
+ # Corresponds to the JSON property `dimension`
78
+ # @return [String]
79
+ attr_accessor :dimension
80
+
81
+ #
82
+ # Corresponds to the JSON property `expression`
83
+ # @return [String]
84
+ attr_accessor :expression
85
+
86
+ #
87
+ # Corresponds to the JSON property `operator`
88
+ # @return [String]
89
+ attr_accessor :operator
90
+
91
+ def initialize(**args)
92
+ update!(**args)
93
+ end
94
+
95
+ # Update properties of this object
96
+ def update!(**args)
97
+ @dimension = args[:dimension] if args.key?(:dimension)
98
+ @expression = args[:expression] if args.key?(:expression)
99
+ @operator = args[:operator] if args.key?(:operator)
100
+ end
101
+ end
102
+
103
+ # A set of dimension value filters to test against each row. Only rows that pass
104
+ # all filter groups will be returned. All results within a filter group are
105
+ # either AND'ed or OR'ed together, depending on the group type selected. All
106
+ # filter groups are AND'ed together.
107
+ class ApiDimensionFilterGroup
108
+ include Google::Apis::Core::Hashable
109
+
110
+ #
111
+ # Corresponds to the JSON property `filters`
112
+ # @return [Array<Google::Apis::SearchconsoleV1::ApiDimensionFilter>]
113
+ attr_accessor :filters
114
+
115
+ #
116
+ # Corresponds to the JSON property `groupType`
117
+ # @return [String]
118
+ attr_accessor :group_type
119
+
120
+ def initialize(**args)
121
+ update!(**args)
122
+ end
123
+
124
+ # Update properties of this object
125
+ def update!(**args)
126
+ @filters = args[:filters] if args.key?(:filters)
127
+ @group_type = args[:group_type] if args.key?(:group_type)
128
+ end
129
+ end
130
+
25
131
  # Blocked resource.
26
132
  class BlockedResource
27
133
  include Google::Apis::Core::Hashable
@@ -176,6 +282,156 @@ module Google
176
282
  end
177
283
  end
178
284
 
285
+ #
286
+ class SearchAnalyticsQueryRequest
287
+ include Google::Apis::Core::Hashable
288
+
289
+ # [Optional; Default is \"auto\"] How data is aggregated. If aggregated by
290
+ # property, all data for the same property is aggregated; if aggregated by page,
291
+ # all data is aggregated by canonical URI. If you filter or group by page,
292
+ # choose AUTO; otherwise you can aggregate either by property or by page,
293
+ # depending on how you want your data calculated; see the help documentation to
294
+ # learn how data is calculated differently by site versus by page. **Note:** If
295
+ # you group or filter by page, you cannot aggregate by property. If you specify
296
+ # any value other than AUTO, the aggregation type in the result will match the
297
+ # requested type, or if you request an invalid type, you will get an error. The
298
+ # API will never change your aggregation type if the requested type is invalid.
299
+ # Corresponds to the JSON property `aggregationType`
300
+ # @return [String]
301
+ attr_accessor :aggregation_type
302
+
303
+ # [Optional] Zero or more filters to apply to the dimension grouping values; for
304
+ # example, 'query contains \"buy\"' to see only data where the query string
305
+ # contains the substring \"buy\" (not case-sensitive). You can filter by a
306
+ # dimension without grouping by it.
307
+ # Corresponds to the JSON property `dimensionFilterGroups`
308
+ # @return [Array<Google::Apis::SearchconsoleV1::ApiDimensionFilterGroup>]
309
+ attr_accessor :dimension_filter_groups
310
+
311
+ # [Optional] Zero or more dimensions to group results by. Dimensions are the
312
+ # group-by values in the Search Analytics page. Dimensions are combined to
313
+ # create a unique row key for each row. Results are grouped in the order that
314
+ # you supply these dimensions.
315
+ # Corresponds to the JSON property `dimensions`
316
+ # @return [Array<String>]
317
+ attr_accessor :dimensions
318
+
319
+ # [Required] End date of the requested date range, in YYYY-MM-DD format, in PST (
320
+ # UTC - 8:00). Must be greater than or equal to the start date. This value is
321
+ # included in the range.
322
+ # Corresponds to the JSON property `endDate`
323
+ # @return [String]
324
+ attr_accessor :end_date
325
+
326
+ # [Optional; Default is 1000] The maximum number of rows to return. Must be a
327
+ # number from 1 to 25,000 (inclusive).
328
+ # Corresponds to the JSON property `rowLimit`
329
+ # @return [Fixnum]
330
+ attr_accessor :row_limit
331
+
332
+ # [Optional; Default is \"web\"] The search type to filter for.
333
+ # Corresponds to the JSON property `searchType`
334
+ # @return [String]
335
+ attr_accessor :search_type
336
+
337
+ # [Required] Start date of the requested date range, in YYYY-MM-DD format, in
338
+ # PST time (UTC - 8:00). Must be less than or equal to the end date. This value
339
+ # is included in the range.
340
+ # Corresponds to the JSON property `startDate`
341
+ # @return [String]
342
+ attr_accessor :start_date
343
+
344
+ # [Optional; Default is 0] Zero-based index of the first row in the response.
345
+ # Must be a non-negative number.
346
+ # Corresponds to the JSON property `startRow`
347
+ # @return [Fixnum]
348
+ attr_accessor :start_row
349
+
350
+ def initialize(**args)
351
+ update!(**args)
352
+ end
353
+
354
+ # Update properties of this object
355
+ def update!(**args)
356
+ @aggregation_type = args[:aggregation_type] if args.key?(:aggregation_type)
357
+ @dimension_filter_groups = args[:dimension_filter_groups] if args.key?(:dimension_filter_groups)
358
+ @dimensions = args[:dimensions] if args.key?(:dimensions)
359
+ @end_date = args[:end_date] if args.key?(:end_date)
360
+ @row_limit = args[:row_limit] if args.key?(:row_limit)
361
+ @search_type = args[:search_type] if args.key?(:search_type)
362
+ @start_date = args[:start_date] if args.key?(:start_date)
363
+ @start_row = args[:start_row] if args.key?(:start_row)
364
+ end
365
+ end
366
+
367
+ # A list of rows, one per result, grouped by key. Metrics in each row are
368
+ # aggregated for all data grouped by that key either by page or property, as
369
+ # specified by the aggregation type parameter.
370
+ class SearchAnalyticsQueryResponse
371
+ include Google::Apis::Core::Hashable
372
+
373
+ # How the results were aggregated.
374
+ # Corresponds to the JSON property `responseAggregationType`
375
+ # @return [String]
376
+ attr_accessor :response_aggregation_type
377
+
378
+ # A list of rows grouped by the key values in the order given in the query.
379
+ # Corresponds to the JSON property `rows`
380
+ # @return [Array<Google::Apis::SearchconsoleV1::ApiDataRow>]
381
+ attr_accessor :rows
382
+
383
+ def initialize(**args)
384
+ update!(**args)
385
+ end
386
+
387
+ # Update properties of this object
388
+ def update!(**args)
389
+ @response_aggregation_type = args[:response_aggregation_type] if args.key?(:response_aggregation_type)
390
+ @rows = args[:rows] if args.key?(:rows)
391
+ end
392
+ end
393
+
394
+ # List of sitemaps.
395
+ class SitemapsListResponse
396
+ include Google::Apis::Core::Hashable
397
+
398
+ # Contains detailed information about a specific URL submitted as a [sitemap](
399
+ # https://support.google.com/webmasters/answer/156184).
400
+ # Corresponds to the JSON property `sitemap`
401
+ # @return [Array<Google::Apis::SearchconsoleV1::WmxSitemap>]
402
+ attr_accessor :sitemap
403
+
404
+ def initialize(**args)
405
+ update!(**args)
406
+ end
407
+
408
+ # Update properties of this object
409
+ def update!(**args)
410
+ @sitemap = args[:sitemap] if args.key?(:sitemap)
411
+ end
412
+ end
413
+
414
+ # List of sites with access level information.
415
+ class SitesListResponse
416
+ include Google::Apis::Core::Hashable
417
+
418
+ # Contains permission level information about a Search Console site. For more
419
+ # information, see [Permissions in Search Console](https://support.google.com/
420
+ # webmasters/answer/2451999).
421
+ # Corresponds to the JSON property `siteEntry`
422
+ # @return [Array<Google::Apis::SearchconsoleV1::WmxSite>]
423
+ attr_accessor :site_entry
424
+
425
+ def initialize(**args)
426
+ update!(**args)
427
+ end
428
+
429
+ # Update properties of this object
430
+ def update!(**args)
431
+ @site_entry = args[:site_entry] if args.key?(:site_entry)
432
+ end
433
+ end
434
+
179
435
  # Final state of the test, including error details if necessary.
180
436
  class TestStatus
181
437
  include Google::Apis::Core::Hashable
@@ -200,6 +456,138 @@ module Google
200
456
  @status = args[:status] if args.key?(:status)
201
457
  end
202
458
  end
459
+
460
+ # Contains permission level information about a Search Console site. For more
461
+ # information, see [Permissions in Search Console](https://support.google.com/
462
+ # webmasters/answer/2451999).
463
+ class WmxSite
464
+ include Google::Apis::Core::Hashable
465
+
466
+ # The user's permission level for the site.
467
+ # Corresponds to the JSON property `permissionLevel`
468
+ # @return [String]
469
+ attr_accessor :permission_level
470
+
471
+ # The URL of the site.
472
+ # Corresponds to the JSON property `siteUrl`
473
+ # @return [String]
474
+ attr_accessor :site_url
475
+
476
+ def initialize(**args)
477
+ update!(**args)
478
+ end
479
+
480
+ # Update properties of this object
481
+ def update!(**args)
482
+ @permission_level = args[:permission_level] if args.key?(:permission_level)
483
+ @site_url = args[:site_url] if args.key?(:site_url)
484
+ end
485
+ end
486
+
487
+ # Contains detailed information about a specific URL submitted as a [sitemap](
488
+ # https://support.google.com/webmasters/answer/156184).
489
+ class WmxSitemap
490
+ include Google::Apis::Core::Hashable
491
+
492
+ # The various content types in the sitemap.
493
+ # Corresponds to the JSON property `contents`
494
+ # @return [Array<Google::Apis::SearchconsoleV1::WmxSitemapContent>]
495
+ attr_accessor :contents
496
+
497
+ # Number of errors in the sitemap. These are issues with the sitemap itself that
498
+ # need to be fixed before it can be processed correctly.
499
+ # Corresponds to the JSON property `errors`
500
+ # @return [Fixnum]
501
+ attr_accessor :errors
502
+
503
+ # If true, the sitemap has not been processed.
504
+ # Corresponds to the JSON property `isPending`
505
+ # @return [Boolean]
506
+ attr_accessor :is_pending
507
+ alias_method :is_pending?, :is_pending
508
+
509
+ # If true, the sitemap is a collection of sitemaps.
510
+ # Corresponds to the JSON property `isSitemapsIndex`
511
+ # @return [Boolean]
512
+ attr_accessor :is_sitemaps_index
513
+ alias_method :is_sitemaps_index?, :is_sitemaps_index
514
+
515
+ # Date & time in which this sitemap was last downloaded. Date format is in RFC
516
+ # 3339 format (yyyy-mm-dd).
517
+ # Corresponds to the JSON property `lastDownloaded`
518
+ # @return [String]
519
+ attr_accessor :last_downloaded
520
+
521
+ # Date & time in which this sitemap was submitted. Date format is in RFC 3339
522
+ # format (yyyy-mm-dd).
523
+ # Corresponds to the JSON property `lastSubmitted`
524
+ # @return [String]
525
+ attr_accessor :last_submitted
526
+
527
+ # The url of the sitemap.
528
+ # Corresponds to the JSON property `path`
529
+ # @return [String]
530
+ attr_accessor :path
531
+
532
+ # The type of the sitemap. For example: `rssFeed`.
533
+ # Corresponds to the JSON property `type`
534
+ # @return [String]
535
+ attr_accessor :type
536
+
537
+ # Number of warnings for the sitemap. These are generally non-critical issues
538
+ # with URLs in the sitemaps.
539
+ # Corresponds to the JSON property `warnings`
540
+ # @return [Fixnum]
541
+ attr_accessor :warnings
542
+
543
+ def initialize(**args)
544
+ update!(**args)
545
+ end
546
+
547
+ # Update properties of this object
548
+ def update!(**args)
549
+ @contents = args[:contents] if args.key?(:contents)
550
+ @errors = args[:errors] if args.key?(:errors)
551
+ @is_pending = args[:is_pending] if args.key?(:is_pending)
552
+ @is_sitemaps_index = args[:is_sitemaps_index] if args.key?(:is_sitemaps_index)
553
+ @last_downloaded = args[:last_downloaded] if args.key?(:last_downloaded)
554
+ @last_submitted = args[:last_submitted] if args.key?(:last_submitted)
555
+ @path = args[:path] if args.key?(:path)
556
+ @type = args[:type] if args.key?(:type)
557
+ @warnings = args[:warnings] if args.key?(:warnings)
558
+ end
559
+ end
560
+
561
+ # Information about the various content types in the sitemap.
562
+ class WmxSitemapContent
563
+ include Google::Apis::Core::Hashable
564
+
565
+ # The number of URLs from the sitemap that were indexed (of the content type).
566
+ # Corresponds to the JSON property `indexed`
567
+ # @return [Fixnum]
568
+ attr_accessor :indexed
569
+
570
+ # The number of URLs in the sitemap (of the content type).
571
+ # Corresponds to the JSON property `submitted`
572
+ # @return [Fixnum]
573
+ attr_accessor :submitted
574
+
575
+ # The specific type of content in this sitemap. For example: `web`.
576
+ # Corresponds to the JSON property `type`
577
+ # @return [String]
578
+ attr_accessor :type
579
+
580
+ def initialize(**args)
581
+ update!(**args)
582
+ end
583
+
584
+ # Update properties of this object
585
+ def update!(**args)
586
+ @indexed = args[:indexed] if args.key?(:indexed)
587
+ @submitted = args[:submitted] if args.key?(:submitted)
588
+ @type = args[:type] if args.key?(:type)
589
+ end
590
+ end
203
591
  end
204
592
  end
205
593
  end
@@ -22,6 +22,24 @@ module Google
22
22
  module Apis
23
23
  module SearchconsoleV1
24
24
 
25
+ class ApiDataRow
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ApiDimensionFilter
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class ApiDimensionFilterGroup
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
25
43
  class BlockedResource
26
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
45
 
@@ -58,12 +76,83 @@ module Google
58
76
  include Google::Apis::Core::JsonObjectSupport
59
77
  end
60
78
 
79
+ class SearchAnalyticsQueryRequest
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class SearchAnalyticsQueryResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class SitemapsListResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class SitesListResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
61
103
  class TestStatus
62
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
105
 
64
106
  include Google::Apis::Core::JsonObjectSupport
65
107
  end
66
108
 
109
+ class WmxSite
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class WmxSitemap
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class WmxSitemapContent
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ApiDataRow
128
+ # @private
129
+ class Representation < Google::Apis::Core::JsonRepresentation
130
+ property :clicks, as: 'clicks'
131
+ property :ctr, as: 'ctr'
132
+ property :impressions, as: 'impressions'
133
+ collection :keys, as: 'keys'
134
+ property :position, as: 'position'
135
+ end
136
+ end
137
+
138
+ class ApiDimensionFilter
139
+ # @private
140
+ class Representation < Google::Apis::Core::JsonRepresentation
141
+ property :dimension, as: 'dimension'
142
+ property :expression, as: 'expression'
143
+ property :operator, as: 'operator'
144
+ end
145
+ end
146
+
147
+ class ApiDimensionFilterGroup
148
+ # @private
149
+ class Representation < Google::Apis::Core::JsonRepresentation
150
+ collection :filters, as: 'filters', class: Google::Apis::SearchconsoleV1::ApiDimensionFilter, decorator: Google::Apis::SearchconsoleV1::ApiDimensionFilter::Representation
151
+
152
+ property :group_type, as: 'groupType'
153
+ end
154
+ end
155
+
67
156
  class BlockedResource
68
157
  # @private
69
158
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -117,6 +206,46 @@ module Google
117
206
  end
118
207
  end
119
208
 
209
+ class SearchAnalyticsQueryRequest
210
+ # @private
211
+ class Representation < Google::Apis::Core::JsonRepresentation
212
+ property :aggregation_type, as: 'aggregationType'
213
+ collection :dimension_filter_groups, as: 'dimensionFilterGroups', class: Google::Apis::SearchconsoleV1::ApiDimensionFilterGroup, decorator: Google::Apis::SearchconsoleV1::ApiDimensionFilterGroup::Representation
214
+
215
+ collection :dimensions, as: 'dimensions'
216
+ property :end_date, as: 'endDate'
217
+ property :row_limit, as: 'rowLimit'
218
+ property :search_type, as: 'searchType'
219
+ property :start_date, as: 'startDate'
220
+ property :start_row, as: 'startRow'
221
+ end
222
+ end
223
+
224
+ class SearchAnalyticsQueryResponse
225
+ # @private
226
+ class Representation < Google::Apis::Core::JsonRepresentation
227
+ property :response_aggregation_type, as: 'responseAggregationType'
228
+ collection :rows, as: 'rows', class: Google::Apis::SearchconsoleV1::ApiDataRow, decorator: Google::Apis::SearchconsoleV1::ApiDataRow::Representation
229
+
230
+ end
231
+ end
232
+
233
+ class SitemapsListResponse
234
+ # @private
235
+ class Representation < Google::Apis::Core::JsonRepresentation
236
+ collection :sitemap, as: 'sitemap', class: Google::Apis::SearchconsoleV1::WmxSitemap, decorator: Google::Apis::SearchconsoleV1::WmxSitemap::Representation
237
+
238
+ end
239
+ end
240
+
241
+ class SitesListResponse
242
+ # @private
243
+ class Representation < Google::Apis::Core::JsonRepresentation
244
+ collection :site_entry, as: 'siteEntry', class: Google::Apis::SearchconsoleV1::WmxSite, decorator: Google::Apis::SearchconsoleV1::WmxSite::Representation
245
+
246
+ end
247
+ end
248
+
120
249
  class TestStatus
121
250
  # @private
122
251
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -124,6 +253,39 @@ module Google
124
253
  property :status, as: 'status'
125
254
  end
126
255
  end
256
+
257
+ class WmxSite
258
+ # @private
259
+ class Representation < Google::Apis::Core::JsonRepresentation
260
+ property :permission_level, as: 'permissionLevel'
261
+ property :site_url, as: 'siteUrl'
262
+ end
263
+ end
264
+
265
+ class WmxSitemap
266
+ # @private
267
+ class Representation < Google::Apis::Core::JsonRepresentation
268
+ collection :contents, as: 'contents', class: Google::Apis::SearchconsoleV1::WmxSitemapContent, decorator: Google::Apis::SearchconsoleV1::WmxSitemapContent::Representation
269
+
270
+ property :errors, :numeric_string => true, as: 'errors'
271
+ property :is_pending, as: 'isPending'
272
+ property :is_sitemaps_index, as: 'isSitemapsIndex'
273
+ property :last_downloaded, as: 'lastDownloaded'
274
+ property :last_submitted, as: 'lastSubmitted'
275
+ property :path, as: 'path'
276
+ property :type, as: 'type'
277
+ property :warnings, :numeric_string => true, as: 'warnings'
278
+ end
279
+ end
280
+
281
+ class WmxSitemapContent
282
+ # @private
283
+ class Representation < Google::Apis::Core::JsonRepresentation
284
+ property :indexed, :numeric_string => true, as: 'indexed'
285
+ property :submitted, :numeric_string => true, as: 'submitted'
286
+ property :type, as: 'type'
287
+ end
288
+ end
127
289
  end
128
290
  end
129
291
  end