google-api-client 0.46.1 → 0.46.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/autoapprove.yml +49 -0
  3. data/.gitignore +2 -0
  4. data/CHANGELOG.md +58 -0
  5. data/api_list_config.yaml +8 -0
  6. data/bin/generate-api +77 -15
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +30 -30
  9. data/generated/google/apis/admin_directory_v1.rb +1 -1
  10. data/generated/google/apis/admin_directory_v1/classes.rb +135 -0
  11. data/generated/google/apis/admin_directory_v1/representations.rb +62 -0
  12. data/generated/google/apis/admin_directory_v1/service.rb +72 -0
  13. data/generated/google/apis/admin_reports_v1.rb +1 -1
  14. data/generated/google/apis/admob_v1.rb +1 -1
  15. data/generated/google/apis/admob_v1/classes.rb +29 -29
  16. data/generated/google/apis/analyticsadmin_v1alpha.rb +1 -1
  17. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +6 -6
  18. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +8 -9
  19. data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
  20. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +1 -1
  21. data/generated/google/apis/analyticsdata_v1alpha/service.rb +7 -7
  22. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v3/service.rb +5 -2
  24. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  25. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +7 -0
  26. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +1 -0
  27. data/generated/google/apis/bigquery_v2.rb +1 -1
  28. data/generated/google/apis/bigquery_v2/classes.rb +80 -5
  29. data/generated/google/apis/bigquery_v2/representations.rb +33 -0
  30. data/generated/google/apis/bigquery_v2/service.rb +46 -0
  31. data/generated/google/apis/billingbudgets_v1.rb +1 -1
  32. data/generated/google/apis/billingbudgets_v1/classes.rb +1 -1
  33. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  34. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +1 -1
  35. data/generated/google/apis/civicinfo_v2.rb +1 -1
  36. data/generated/google/apis/civicinfo_v2/classes.rb +0 -24
  37. data/generated/google/apis/civicinfo_v2/representations.rb +0 -3
  38. data/generated/google/apis/classroom_v1.rb +1 -1
  39. data/generated/google/apis/classroom_v1/classes.rb +21 -21
  40. data/generated/google/apis/container_v1.rb +1 -1
  41. data/generated/google/apis/container_v1/classes.rb +22 -10
  42. data/generated/google/apis/container_v1beta1.rb +1 -1
  43. data/generated/google/apis/container_v1beta1/classes.rb +22 -10
  44. data/generated/google/apis/content_v2.rb +1 -1
  45. data/generated/google/apis/content_v2_1.rb +1 -1
  46. data/generated/google/apis/content_v2_1/classes.rb +6 -3
  47. data/generated/google/apis/displayvideo_v1.rb +1 -1
  48. data/generated/google/apis/displayvideo_v1/classes.rb +30 -30
  49. data/generated/google/apis/displayvideo_v1/service.rb +8 -8
  50. data/generated/google/apis/dlp_v2.rb +1 -1
  51. data/generated/google/apis/dlp_v2/classes.rb +4 -3
  52. data/generated/google/apis/dns_v1.rb +1 -1
  53. data/generated/google/apis/dns_v1/classes.rb +181 -0
  54. data/generated/google/apis/dns_v1/representations.rb +83 -0
  55. data/generated/google/apis/dns_v1beta2.rb +1 -1
  56. data/generated/google/apis/dns_v1beta2/classes.rb +181 -0
  57. data/generated/google/apis/dns_v1beta2/representations.rb +83 -0
  58. data/generated/google/apis/domains_v1alpha2.rb +34 -0
  59. data/generated/google/apis/domains_v1alpha2/classes.rb +1534 -0
  60. data/generated/google/apis/domains_v1alpha2/representations.rb +605 -0
  61. data/generated/google/apis/domains_v1alpha2/service.rb +805 -0
  62. data/generated/google/apis/domains_v1beta1.rb +34 -0
  63. data/generated/google/apis/domains_v1beta1/classes.rb +1534 -0
  64. data/generated/google/apis/domains_v1beta1/representations.rb +605 -0
  65. data/generated/google/apis/domains_v1beta1/service.rb +805 -0
  66. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  67. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  68. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  69. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +1 -1
  70. data/generated/google/apis/drive_v2.rb +1 -1
  71. data/generated/google/apis/drive_v2/classes.rb +2 -0
  72. data/generated/google/apis/drive_v3.rb +1 -1
  73. data/generated/google/apis/drive_v3/classes.rb +4 -2
  74. data/generated/google/apis/fitness_v1.rb +1 -1
  75. data/generated/google/apis/fitness_v1/service.rb +3 -1
  76. data/generated/google/apis/gameservices_v1.rb +1 -1
  77. data/generated/google/apis/gameservices_v1/classes.rb +15 -14
  78. data/generated/google/apis/gameservices_v1/service.rb +54 -51
  79. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  80. data/generated/google/apis/gameservices_v1beta/classes.rb +15 -14
  81. data/generated/google/apis/gameservices_v1beta/service.rb +54 -51
  82. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +1 -1
  83. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +10 -10
  84. data/generated/google/apis/healthcare_v1.rb +1 -1
  85. data/generated/google/apis/healthcare_v1/classes.rb +4 -4
  86. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  87. data/generated/google/apis/healthcare_v1beta1/classes.rb +7 -6
  88. data/generated/google/apis/licensing_v1.rb +1 -1
  89. data/generated/google/apis/licensing_v1/service.rb +2 -2
  90. data/generated/google/apis/localservices_v1.rb +1 -1
  91. data/generated/google/apis/localservices_v1/service.rb +20 -20
  92. data/generated/google/apis/managedidentities_v1.rb +1 -1
  93. data/generated/google/apis/managedidentities_v1/classes.rb +1 -1
  94. data/generated/google/apis/managedidentities_v1/service.rb +1 -4
  95. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  96. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +80 -9
  97. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +33 -1
  98. data/generated/google/apis/managedidentities_v1alpha1/service.rb +83 -5
  99. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  100. data/generated/google/apis/managedidentities_v1beta1/classes.rb +81 -9
  101. data/generated/google/apis/managedidentities_v1beta1/representations.rb +33 -1
  102. data/generated/google/apis/managedidentities_v1beta1/service.rb +83 -5
  103. data/generated/google/apis/monitoring_v3.rb +1 -1
  104. data/generated/google/apis/monitoring_v3/classes.rb +8 -8
  105. data/generated/google/apis/people_v1.rb +1 -1
  106. data/generated/google/apis/people_v1/classes.rb +45 -45
  107. data/generated/google/apis/playablelocations_v3.rb +1 -1
  108. data/generated/google/apis/playablelocations_v3/classes.rb +6 -6
  109. data/generated/google/apis/poly_v1.rb +3 -4
  110. data/generated/google/apis/poly_v1/classes.rb +65 -79
  111. data/generated/google/apis/poly_v1/service.rb +50 -63
  112. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  113. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +109 -0
  114. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  115. data/generated/google/apis/realtimebidding_v1/classes.rb +33 -33
  116. data/generated/google/apis/realtimebidding_v1/service.rb +4 -4
  117. data/generated/google/apis/run_v1.rb +1 -1
  118. data/generated/google/apis/run_v1/classes.rb +7 -6
  119. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  120. data/generated/google/apis/servicenetworking_v1/classes.rb +107 -4
  121. data/generated/google/apis/servicenetworking_v1/representations.rb +34 -0
  122. data/generated/google/apis/servicenetworking_v1/service.rb +2 -2
  123. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  124. data/generated/google/apis/servicenetworking_v1beta/classes.rb +107 -4
  125. data/generated/google/apis/servicenetworking_v1beta/representations.rb +34 -0
  126. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  127. data/generated/google/apis/storagetransfer_v1/classes.rb +8 -0
  128. data/generated/google/apis/storagetransfer_v1/representations.rb +1 -0
  129. data/generated/google/apis/storagetransfer_v1/service.rb +17 -18
  130. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  131. data/generated/google/apis/streetviewpublish_v1/classes.rb +4 -4
  132. data/generated/google/apis/sts_v1beta.rb +1 -1
  133. data/generated/google/apis/sts_v1beta/classes.rb +12 -11
  134. data/generated/google/apis/tpu_v1.rb +1 -1
  135. data/generated/google/apis/tpu_v1/classes.rb +3 -3
  136. data/generated/google/apis/tpu_v1/service.rb +8 -8
  137. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  138. data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -3
  139. data/generated/google/apis/tpu_v1alpha1/service.rb +8 -8
  140. data/generated/google/apis/vault_v1.rb +1 -1
  141. data/generated/google/apis/vault_v1/classes.rb +333 -0
  142. data/generated/google/apis/vault_v1/representations.rb +162 -0
  143. data/generated/google/apis/vault_v1/service.rb +151 -0
  144. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  145. data/generated/google/apis/youtube_v3.rb +1 -1
  146. data/generated/google/apis/youtube_v3/service.rb +2 -2
  147. data/google-api-client.gemspec +1 -1
  148. data/lib/google/apis/core/api_command.rb +1 -0
  149. data/lib/google/apis/version.rb +1 -1
  150. data/synth.py +40 -0
  151. metadata +13 -3
@@ -184,6 +184,30 @@ module Google
184
184
  include Google::Apis::Core::JsonObjectSupport
185
185
  end
186
186
 
187
+ class DirectoryChromeosdevicesCommand
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class DirectoryChromeosdevicesCommandResult
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class DirectoryChromeosdevicesIssueCommandRequest
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class DirectoryChromeosdevicesIssueCommandResponse
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
187
211
  class DomainAlias
188
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
213
 
@@ -857,6 +881,44 @@ module Google
857
881
  end
858
882
  end
859
883
 
884
+ class DirectoryChromeosdevicesCommand
885
+ # @private
886
+ class Representation < Google::Apis::Core::JsonRepresentation
887
+ property :command_expire_time, as: 'commandExpireTime'
888
+ property :command_id, :numeric_string => true, as: 'commandId'
889
+ property :command_result, as: 'commandResult', class: Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommandResult, decorator: Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommandResult::Representation
890
+
891
+ property :issue_time, as: 'issueTime'
892
+ property :payload, as: 'payload'
893
+ property :state, as: 'state'
894
+ property :type, as: 'type'
895
+ end
896
+ end
897
+
898
+ class DirectoryChromeosdevicesCommandResult
899
+ # @private
900
+ class Representation < Google::Apis::Core::JsonRepresentation
901
+ property :error_message, as: 'errorMessage'
902
+ property :execute_time, as: 'executeTime'
903
+ property :result, as: 'result'
904
+ end
905
+ end
906
+
907
+ class DirectoryChromeosdevicesIssueCommandRequest
908
+ # @private
909
+ class Representation < Google::Apis::Core::JsonRepresentation
910
+ property :command_type, as: 'commandType'
911
+ property :payload, as: 'payload'
912
+ end
913
+ end
914
+
915
+ class DirectoryChromeosdevicesIssueCommandResponse
916
+ # @private
917
+ class Representation < Google::Apis::Core::JsonRepresentation
918
+ property :command_id, :numeric_string => true, as: 'commandId'
919
+ end
920
+ end
921
+
860
922
  class DomainAlias
861
923
  # @private
862
924
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -409,6 +409,78 @@ module Google
409
409
  execute_or_queue_command(command, &block)
410
410
  end
411
411
 
412
+ # Issues a command for the device to execute.
413
+ # @param [String] customer_id
414
+ # Immutable. Immutable ID of the G Suite account.
415
+ # @param [String] device_id
416
+ # Immutable. Immutable ID of Chrome OS Device.
417
+ # @param [Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesIssueCommandRequest] directory_chromeosdevices_issue_command_request_object
418
+ # @param [String] fields
419
+ # Selector specifying which fields to include in a partial response.
420
+ # @param [String] quota_user
421
+ # Available to use for quota purposes for server-side applications. Can be any
422
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
423
+ # @param [Google::Apis::RequestOptions] options
424
+ # Request-specific options
425
+ #
426
+ # @yield [result, err] Result & error if block supplied
427
+ # @yieldparam result [Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesIssueCommandResponse] parsed result object
428
+ # @yieldparam err [StandardError] error object if request failed
429
+ #
430
+ # @return [Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesIssueCommandResponse]
431
+ #
432
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
433
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
434
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
435
+ def issue_customer_device_chromeo_command(customer_id, device_id, directory_chromeosdevices_issue_command_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
436
+ command = make_simple_command(:post, 'admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}:issueCommand', options)
437
+ command.request_representation = Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesIssueCommandRequest::Representation
438
+ command.request_object = directory_chromeosdevices_issue_command_request_object
439
+ command.response_representation = Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesIssueCommandResponse::Representation
440
+ command.response_class = Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesIssueCommandResponse
441
+ command.params['customerId'] = customer_id unless customer_id.nil?
442
+ command.params['deviceId'] = device_id unless device_id.nil?
443
+ command.query['fields'] = fields unless fields.nil?
444
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
445
+ execute_or_queue_command(command, &block)
446
+ end
447
+
448
+ # Gets command data a specific command issued to the device.
449
+ # @param [String] customer_id
450
+ # Immutable. Immutable ID of the G Suite account.
451
+ # @param [String] device_id
452
+ # Immutable. Immutable ID of Chrome OS Device.
453
+ # @param [Fixnum] command_id
454
+ # Immutable. Immutable ID of Chrome OS Device Command.
455
+ # @param [String] fields
456
+ # Selector specifying which fields to include in a partial response.
457
+ # @param [String] quota_user
458
+ # Available to use for quota purposes for server-side applications. Can be any
459
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
460
+ # @param [Google::Apis::RequestOptions] options
461
+ # Request-specific options
462
+ #
463
+ # @yield [result, err] Result & error if block supplied
464
+ # @yieldparam result [Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommand] parsed result object
465
+ # @yieldparam err [StandardError] error object if request failed
466
+ #
467
+ # @return [Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommand]
468
+ #
469
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
470
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
471
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
472
+ def get_customer_device_chromeo_command(customer_id, device_id, command_id, fields: nil, quota_user: nil, options: nil, &block)
473
+ command = make_simple_command(:get, 'admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}/commands/{commandId}', options)
474
+ command.response_representation = Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommand::Representation
475
+ command.response_class = Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommand
476
+ command.params['customerId'] = customer_id unless customer_id.nil?
477
+ command.params['deviceId'] = device_id unless device_id.nil?
478
+ command.params['commandId'] = command_id unless command_id.nil?
479
+ command.query['fields'] = fields unless fields.nil?
480
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
481
+ execute_or_queue_command(command, &block)
482
+ end
483
+
412
484
  # Retrieves a customer.
413
485
  # @param [String] customer_key
414
486
  # Id of the customer to be retrieved
@@ -27,7 +27,7 @@ module Google
27
27
  # @see http://developers.google.com/admin-sdk/
28
28
  module AdminReportsV1
29
29
  VERSION = 'ReportsV1'
30
- REVISION = '20200819'
30
+ REVISION = '20201013'
31
31
 
32
32
  # View audit reports for your G Suite domain
33
33
  AUTH_ADMIN_REPORTS_AUDIT_READONLY = 'https://www.googleapis.com/auth/admin.reports.audit.readonly'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/admob/api/
27
27
  module AdmobV1
28
28
  VERSION = 'V1'
29
- REVISION = '20201002'
29
+ REVISION = '20201013'
30
30
 
31
31
  # See your AdMob data
32
32
  AUTH_ADMOB_REPORT = 'https://www.googleapis.com/auth/admob.report'
@@ -22,31 +22,31 @@ module Google
22
22
  module Apis
23
23
  module AdmobV1
24
24
 
25
- # Represents a whole or partial calendar date, e.g. a birthday. The time of day
26
- # and time zone are either specified elsewhere or are not significant. The date
27
- # is relative to the Proleptic Gregorian Calendar. This can represent: * A full
28
- # date, with non-zero year, month and day values * A month and day value, with a
29
- # zero year, e.g. an anniversary * A year on its own, with zero month and day
30
- # values * A year and month value, with a zero day, e.g. a credit card
31
- # expiration date Related types are google.type.TimeOfDay and `google.protobuf.
32
- # Timestamp`.
25
+ # Represents a whole or partial calendar date, such as a birthday. The time of
26
+ # day and time zone are either specified elsewhere or are insignificant. The
27
+ # date is relative to the Gregorian Calendar. This can represent one of the
28
+ # following: * A full date, with non-zero year, month, and day values * A month
29
+ # and day value, with a zero year, such as an anniversary * A year on its own,
30
+ # with zero month and day values * A year and month value, with a zero day, such
31
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
32
+ # google.protobuf.Timestamp`.
33
33
  class Date
34
34
  include Google::Apis::Core::Hashable
35
35
 
36
- # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if
37
- # specifying a year by itself or a year and month where the day is not
38
- # significant.
36
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
37
+ # specify a year by itself or a year and month where the day isn't significant.
39
38
  # Corresponds to the JSON property `day`
40
39
  # @return [Fixnum]
41
40
  attr_accessor :day
42
41
 
43
- # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month
42
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
44
43
  # and day.
45
44
  # Corresponds to the JSON property `month`
46
45
  # @return [Fixnum]
47
46
  attr_accessor :month
48
47
 
49
- # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
48
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
49
+ # year.
50
50
  # Corresponds to the JSON property `year`
51
51
  # @return [Fixnum]
52
52
  attr_accessor :year
@@ -67,26 +67,26 @@ module Google
67
67
  class DateRange
68
68
  include Google::Apis::Core::Hashable
69
69
 
70
- # Represents a whole or partial calendar date, e.g. a birthday. The time of day
71
- # and time zone are either specified elsewhere or are not significant. The date
72
- # is relative to the Proleptic Gregorian Calendar. This can represent: * A full
73
- # date, with non-zero year, month and day values * A month and day value, with a
74
- # zero year, e.g. an anniversary * A year on its own, with zero month and day
75
- # values * A year and month value, with a zero day, e.g. a credit card
76
- # expiration date Related types are google.type.TimeOfDay and `google.protobuf.
77
- # Timestamp`.
70
+ # Represents a whole or partial calendar date, such as a birthday. The time of
71
+ # day and time zone are either specified elsewhere or are insignificant. The
72
+ # date is relative to the Gregorian Calendar. This can represent one of the
73
+ # following: * A full date, with non-zero year, month, and day values * A month
74
+ # and day value, with a zero year, such as an anniversary * A year on its own,
75
+ # with zero month and day values * A year and month value, with a zero day, such
76
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
77
+ # google.protobuf.Timestamp`.
78
78
  # Corresponds to the JSON property `endDate`
79
79
  # @return [Google::Apis::AdmobV1::Date]
80
80
  attr_accessor :end_date
81
81
 
82
- # Represents a whole or partial calendar date, e.g. a birthday. The time of day
83
- # and time zone are either specified elsewhere or are not significant. The date
84
- # is relative to the Proleptic Gregorian Calendar. This can represent: * A full
85
- # date, with non-zero year, month and day values * A month and day value, with a
86
- # zero year, e.g. an anniversary * A year on its own, with zero month and day
87
- # values * A year and month value, with a zero day, e.g. a credit card
88
- # expiration date Related types are google.type.TimeOfDay and `google.protobuf.
89
- # Timestamp`.
82
+ # Represents a whole or partial calendar date, such as a birthday. The time of
83
+ # day and time zone are either specified elsewhere or are insignificant. The
84
+ # date is relative to the Gregorian Calendar. This can represent one of the
85
+ # following: * A full date, with non-zero year, month, and day values * A month
86
+ # and day value, with a zero year, such as an anniversary * A year on its own,
87
+ # with zero month and day values * A year and month value, with a zero day, such
88
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
89
+ # google.protobuf.Timestamp`.
90
90
  # Corresponds to the JSON property `startDate`
91
91
  # @return [Google::Apis::AdmobV1::Date]
92
92
  attr_accessor :start_date
@@ -25,7 +25,7 @@ module Google
25
25
  # @see http://code.google.com/apis/analytics/docs/mgmt/home.html
26
26
  module AnalyticsadminV1alpha
27
27
  VERSION = 'V1alpha'
28
- REVISION = '20200924'
28
+ REVISION = '20201015'
29
29
 
30
30
  # Edit Google Analytics management entities
31
31
  AUTH_ANALYTICS_EDIT = 'https://www.googleapis.com/auth/analytics.edit'
@@ -77,7 +77,7 @@ module Google
77
77
  end
78
78
 
79
79
  # A virtual resource representing an overview of an account and all its child
80
- # App+Web properties.
80
+ # GA4 properties.
81
81
  class GoogleAnalyticsAdminV1alphaAccountSummary
82
82
  include Google::Apis::Core::Hashable
83
83
 
@@ -662,7 +662,7 @@ module Google
662
662
  end
663
663
  end
664
664
 
665
- # A link between an App+Web property and a Firebase project.
665
+ # A link between an GA4 property and a Firebase project.
666
666
  class GoogleAnalyticsAdminV1alphaFirebaseLink
667
667
  include Google::Apis::Core::Hashable
668
668
 
@@ -671,7 +671,7 @@ module Google
671
671
  # @return [String]
672
672
  attr_accessor :create_time
673
673
 
674
- # Maximum user access to the App + Web property allowed to admins of the linked
674
+ # Maximum user access to the GA4 property allowed to admins of the linked
675
675
  # Firebase project.
676
676
  # Corresponds to the JSON property `maximumUserAccess`
677
677
  # @return [String]
@@ -725,7 +725,7 @@ module Google
725
725
  end
726
726
  end
727
727
 
728
- # A link between an App+Web property and a Google Ads account.
728
+ # A link between an GA4 property and a Google Ads account.
729
729
  class GoogleAnalyticsAdminV1alphaGoogleAdsLink
730
730
  include Google::Apis::Core::Hashable
731
731
 
@@ -1074,7 +1074,7 @@ module Google
1074
1074
  end
1075
1075
  end
1076
1076
 
1077
- # A resource message representing a Google Analytics App+Web property.
1077
+ # A resource message representing a Google Analytics GA4 property.
1078
1078
  class GoogleAnalyticsAdminV1alphaProperty
1079
1079
  include Google::Apis::Core::Hashable
1080
1080
 
@@ -1152,7 +1152,7 @@ module Google
1152
1152
  end
1153
1153
  end
1154
1154
 
1155
- # A virtual resource representing metadata for an App+Web property.
1155
+ # A virtual resource representing metadata for an GA4 property.
1156
1156
  class GoogleAnalyticsAdminV1alphaPropertySummary
1157
1157
  include Google::Apis::Core::Hashable
1158
1158
 
@@ -187,9 +187,8 @@ module Google
187
187
  end
188
188
 
189
189
  # Returns all accounts accessible by the caller. Note that these accounts might
190
- # not currently have App+Web properties. Soft-deleted (ie: "trashed") accounts
191
- # are excluded by default. Returns an empty list if no relevant accounts are
192
- # found.
190
+ # not currently have GA4 properties. Soft-deleted (ie: "trashed") accounts are
191
+ # excluded by default. Returns an empty list if no relevant accounts are found.
193
192
  # @param [Fixnum] page_size
194
193
  # The maximum number of resources to return. The service may return fewer than
195
194
  # this value, even if there are additional pages. If unspecified, at most 50
@@ -653,7 +652,7 @@ module Google
653
652
  execute_or_queue_command(command, &block)
654
653
  end
655
654
 
656
- # Creates an "App+Web" property with the specified location and attributes.
655
+ # Creates an "GA4" property with the specified location and attributes.
657
656
  # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty] google_analytics_admin_v1alpha_property_object
658
657
  # @param [String] fields
659
658
  # Selector specifying which fields to include in a partial response.
@@ -689,7 +688,7 @@ module Google
689
688
  # the expiration time, the Property and all child resources (eg: GoogleAdsLinks,
690
689
  # Streams, UserLinks) will be permanently purged. https://support.google.com/
691
690
  # analytics/answer/6154772 Returns an error if the target is not found, or is
692
- # not an App+Web Property.
691
+ # not an GA4 Property.
693
692
  # @param [String] name
694
693
  # Required. The name of the Property to soft-delete. Format: properties/`
695
694
  # property_id` Example: "properties/1000"
@@ -720,9 +719,9 @@ module Google
720
719
  execute_or_queue_command(command, &block)
721
720
  end
722
721
 
723
- # Lookup for a single "App+Web" Property. Throws "Target not found" if no such
724
- # property found, if property is not of the type "App+Web", or if caller does
725
- # not have permissions to access it.
722
+ # Lookup for a single "GA4" Property. Throws "Target not found" if no such
723
+ # property found, if property is not of the type "GA4", or if caller does not
724
+ # have permissions to access it.
726
725
  # @param [String] name
727
726
  # Required. The name of the property to lookup. Format: properties/`property_id`
728
727
  # Example: "properties/1000"
@@ -753,7 +752,7 @@ module Google
753
752
  execute_or_queue_command(command, &block)
754
753
  end
755
754
 
756
- # Returns child Properties under the specified parent Account. Only "App+Web"
755
+ # Returns child Properties under the specified parent Account. Only "GA4"
757
756
  # properties will be returned. Properties will be excluded if the caller does
758
757
  # not have access. Soft-deleted (ie: "trashed") properties are excluded by
759
758
  # default. Returns an empty list if no relevant properties are found.
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/analytics/trusted-testing/analytics-data/
26
26
  module AnalyticsdataV1alpha
27
27
  VERSION = 'V1alpha'
28
- REVISION = '20201006'
28
+ REVISION = '20201013'
29
29
 
30
30
  # View and manage your Google Analytics data
31
31
  AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
@@ -527,7 +527,7 @@ module Google
527
527
  class Entity
528
528
  include Google::Apis::Core::Hashable
529
529
 
530
- # A Google Analytics App + Web property id.
530
+ # A Google Analytics GA4 property id.
531
531
  # Corresponds to the JSON property `propertyId`
532
532
  # @return [String]
533
533
  attr_accessor :property_id
@@ -49,16 +49,16 @@ module Google
49
49
 
50
50
  # Returns metadata for dimensions and metrics available in reporting methods.
51
51
  # Used to explore the dimensions and metrics. In this method, a Google Analytics
52
- # App + Web Property Identifier is specified in the request, and the metadata
53
- # response includes Custom dimensions and metrics as well as Universal metadata.
54
- # For example if a custom metric with parameter name `levels_unlocked` is
55
- # registered to a property, the Metadata response will contain `customEvent:
56
- # levels_unlocked`. Universal metadata are dimensions and metrics applicable to
57
- # any property such as `country` and `totalUsers`.
52
+ # GA4 Property Identifier is specified in the request, and the metadata response
53
+ # includes Custom dimensions and metrics as well as Universal metadata. For
54
+ # example if a custom metric with parameter name `levels_unlocked` is registered
55
+ # to a property, the Metadata response will contain `customEvent:levels_unlocked`
56
+ # . Universal metadata are dimensions and metrics applicable to any property
57
+ # such as `country` and `totalUsers`.
58
58
  # @param [String] name
59
59
  # Required. The resource name of the metadata to retrieve. This name field is
60
60
  # specified in the URL path and not URL parameters. Property is a numeric Google
61
- # Analytics App + Web Property identifier. Example: properties/1234/metadata
61
+ # Analytics GA4 Property identifier. Example: properties/1234/metadata
62
62
  # @param [String] fields
63
63
  # Selector specifying which fields to include in a partial response.
64
64
  # @param [String] quota_user
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/android-publisher
26
26
  module AndroidpublisherV3
27
27
  VERSION = 'V3'
28
- REVISION = '20201007'
28
+ REVISION = '20201012'
29
29
 
30
30
  # View and manage your Google Play Developer account
31
31
  AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
@@ -1863,6 +1863,8 @@ module Google
1863
1863
  # @param [String] package_name
1864
1864
  # The package name of the application for which this subscription was purchased (
1865
1865
  # for example, 'com.some.thing').
1866
+ # @param [String] subscription_id
1867
+ # The purchased subscription ID (for example, 'monthly001').
1866
1868
  # @param [String] token
1867
1869
  # The token provided to the user's device when the subscription was purchased.
1868
1870
  # @param [String] fields
@@ -1882,9 +1884,10 @@ module Google
1882
1884
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1883
1885
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1884
1886
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1885
- def cancel_purchase_subscription(package_name, token, fields: nil, quota_user: nil, options: nil, &block)
1886
- command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/tokens/{token}:cancel', options)
1887
+ def cancel_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, options: nil, &block)
1888
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel', options)
1887
1889
  command.params['packageName'] = package_name unless package_name.nil?
1890
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
1888
1891
  command.params['token'] = token unless token.nil?
1889
1892
  command.query['fields'] = fields unless fields.nil?
1890
1893
  command.query['quotaUser'] = quota_user unless quota_user.nil?