google-api-client 0.46.2 → 0.47.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/.kokoro/trampoline.sh +0 -0
  3. data/CHANGELOG.md +370 -192
  4. data/Gemfile +1 -0
  5. data/Rakefile +31 -3
  6. data/generated/google/apis/accessapproval_v1.rb +1 -1
  7. data/generated/google/apis/accessapproval_v1/classes.rb +13 -15
  8. data/generated/google/apis/admob_v1.rb +1 -1
  9. data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
  10. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +26 -12
  11. data/generated/google/apis/analyticsdata_v1alpha/service.rb +3 -1
  12. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  13. data/generated/google/apis/androidmanagement_v1/classes.rb +29 -26
  14. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  15. data/generated/google/apis/androidpublisher_v3/classes.rb +2 -1
  16. data/generated/google/apis/apigee_v1.rb +1 -1
  17. data/generated/google/apis/apigee_v1/classes.rb +16 -54
  18. data/generated/google/apis/apigee_v1/representations.rb +1 -18
  19. data/generated/google/apis/apigee_v1/service.rb +21 -13
  20. data/generated/google/apis/area120tables_v1alpha1.rb +46 -0
  21. data/generated/google/apis/area120tables_v1alpha1/classes.rb +423 -0
  22. data/generated/google/apis/area120tables_v1alpha1/representations.rb +248 -0
  23. data/generated/google/apis/area120tables_v1alpha1/service.rb +381 -0
  24. data/generated/google/apis/bigquery_v2.rb +1 -1
  25. data/generated/google/apis/bigquery_v2/classes.rb +72 -0
  26. data/generated/google/apis/bigquery_v2/representations.rb +33 -0
  27. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  28. data/generated/google/apis/binaryauthorization_v1/classes.rb +2 -2
  29. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  30. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +2 -2
  31. data/generated/google/apis/books_v1.rb +1 -1
  32. data/generated/google/apis/books_v1/service.rb +52 -52
  33. data/generated/google/apis/chat_v1.rb +1 -1
  34. data/generated/google/apis/chat_v1/classes.rb +8 -0
  35. data/generated/google/apis/chat_v1/representations.rb +1 -0
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbilling_v1/classes.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1/classes.rb +2 -1
  40. data/generated/google/apis/cloudbuild_v1/service.rb +10 -2
  41. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  42. data/generated/google/apis/cloudresourcemanager_v2/service.rb +7 -7
  43. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  44. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +7 -7
  45. data/generated/google/apis/compute_v1.rb +1 -1
  46. data/generated/google/apis/compute_v1/classes.rb +15 -8
  47. data/generated/google/apis/content_v2.rb +2 -3
  48. data/generated/google/apis/content_v2/classes.rb +508 -1216
  49. data/generated/google/apis/content_v2/service.rb +373 -646
  50. data/generated/google/apis/dataproc_v1.rb +1 -1
  51. data/generated/google/apis/dataproc_v1/classes.rb +15 -3
  52. data/generated/google/apis/dataproc_v1/representations.rb +1 -0
  53. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  54. data/generated/google/apis/dataproc_v1beta2/classes.rb +15 -3
  55. data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
  56. data/generated/google/apis/dialogflow_v2.rb +1 -1
  57. data/generated/google/apis/dialogflow_v2/classes.rb +651 -374
  58. data/generated/google/apis/dialogflow_v2/representations.rb +284 -185
  59. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  60. data/generated/google/apis/dialogflow_v2beta1/classes.rb +651 -374
  61. data/generated/google/apis/dialogflow_v2beta1/representations.rb +288 -189
  62. data/generated/google/apis/dialogflow_v2beta1/service.rb +2 -2
  63. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  64. data/generated/google/apis/dialogflow_v3beta1/classes.rb +682 -374
  65. data/generated/google/apis/dialogflow_v3beta1/representations.rb +303 -188
  66. data/generated/google/apis/dialogflow_v3beta1/service.rb +1 -1
  67. data/generated/google/apis/dlp_v2.rb +1 -1
  68. data/generated/google/apis/dlp_v2/classes.rb +29 -29
  69. data/generated/google/apis/dns_v1.rb +2 -2
  70. data/generated/google/apis/dns_v1/service.rb +1 -1
  71. data/generated/google/apis/dns_v1beta2.rb +2 -2
  72. data/generated/google/apis/dns_v1beta2/classes.rb +1 -1
  73. data/generated/google/apis/dns_v1beta2/service.rb +1 -1
  74. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  75. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +3 -2
  76. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  77. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +3 -2
  78. data/generated/google/apis/eventarc_v1beta1.rb +34 -0
  79. data/generated/google/apis/eventarc_v1beta1/classes.rb +933 -0
  80. data/generated/google/apis/eventarc_v1beta1/representations.rb +379 -0
  81. data/generated/google/apis/eventarc_v1beta1/service.rb +579 -0
  82. data/generated/google/apis/games_v1.rb +1 -1
  83. data/generated/google/apis/healthcare_v1.rb +1 -1
  84. data/generated/google/apis/healthcare_v1/service.rb +2 -1
  85. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  86. data/generated/google/apis/healthcare_v1beta1/classes.rb +79 -0
  87. data/generated/google/apis/healthcare_v1beta1/representations.rb +31 -0
  88. data/generated/google/apis/healthcare_v1beta1/service.rb +53 -11
  89. data/generated/google/apis/licensing_v1.rb +1 -1
  90. data/generated/google/apis/licensing_v1/service.rb +2 -2
  91. data/generated/google/apis/localservices_v1.rb +1 -1
  92. data/generated/google/apis/localservices_v1/classes.rb +7 -0
  93. data/generated/google/apis/localservices_v1/representations.rb +2 -0
  94. data/generated/google/apis/logging_v2.rb +1 -1
  95. data/generated/google/apis/logging_v2/classes.rb +4 -5
  96. data/generated/google/apis/ml_v1.rb +1 -1
  97. data/generated/google/apis/ml_v1/classes.rb +238 -77
  98. data/generated/google/apis/ml_v1/representations.rb +17 -0
  99. data/generated/google/apis/monitoring_v3.rb +1 -1
  100. data/generated/google/apis/monitoring_v3/classes.rb +11 -5
  101. data/generated/google/apis/monitoring_v3/service.rb +50 -1
  102. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  103. data/generated/google/apis/pubsub_v1.rb +1 -1
  104. data/generated/google/apis/pubsub_v1/service.rb +2 -2
  105. data/generated/google/apis/recommender_v1.rb +1 -1
  106. data/generated/google/apis/recommender_v1/classes.rb +1 -1
  107. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  108. data/generated/google/apis/recommender_v1beta1/classes.rb +1 -1
  109. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  110. data/generated/google/apis/sasportal_v1alpha1/service.rb +109 -0
  111. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  112. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +5 -63
  113. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -18
  114. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  115. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +5 -63
  116. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +0 -18
  117. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  118. data/generated/google/apis/servicecontrol_v1/classes.rb +32 -2
  119. data/generated/google/apis/servicecontrol_v1/representations.rb +4 -0
  120. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  121. data/generated/google/apis/servicecontrol_v2/classes.rb +17 -0
  122. data/generated/google/apis/servicecontrol_v2/representations.rb +2 -0
  123. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  124. data/generated/google/apis/servicemanagement_v1/classes.rb +4 -3
  125. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  126. data/generated/google/apis/servicenetworking_v1/classes.rb +78 -60
  127. data/generated/google/apis/servicenetworking_v1/representations.rb +29 -14
  128. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  129. data/generated/google/apis/servicenetworking_v1beta/classes.rb +32 -60
  130. data/generated/google/apis/servicenetworking_v1beta/representations.rb +12 -14
  131. data/generated/google/apis/serviceusage_v1.rb +1 -1
  132. data/generated/google/apis/serviceusage_v1/classes.rb +5 -63
  133. data/generated/google/apis/serviceusage_v1/representations.rb +0 -18
  134. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  135. data/generated/google/apis/serviceusage_v1beta1/classes.rb +5 -63
  136. data/generated/google/apis/serviceusage_v1beta1/representations.rb +0 -18
  137. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  138. data/generated/google/apis/storagetransfer_v1/classes.rb +29 -29
  139. data/generated/google/apis/tagmanager_v2.rb +1 -1
  140. data/generated/google/apis/tagmanager_v2/classes.rb +12 -0
  141. data/generated/google/apis/tagmanager_v2/representations.rb +3 -0
  142. data/generated/google/apis/testing_v1.rb +1 -1
  143. data/generated/google/apis/testing_v1/classes.rb +45 -33
  144. data/generated/google/apis/testing_v1/representations.rb +1 -0
  145. data/generated/google/apis/testing_v1/service.rb +4 -4
  146. data/generated/google/apis/videointelligence_v1.rb +1 -1
  147. data/generated/google/apis/videointelligence_v1/service.rb +0 -62
  148. data/generated/google/apis/youtube_v3.rb +1 -1
  149. data/generated/google/apis/youtube_v3/service.rb +2 -2
  150. data/google-api-client.gemspec +25 -25
  151. data/lib/google/apis/core/http_command.rb +2 -1
  152. data/lib/google/apis/options.rb +8 -5
  153. data/lib/google/apis/version.rb +1 -1
  154. metadata +12 -8
  155. data/generated/google/apis/safebrowsing_v4.rb +0 -35
  156. data/generated/google/apis/safebrowsing_v4/classes.rb +0 -909
  157. data/generated/google/apis/safebrowsing_v4/representations.rb +0 -445
  158. data/generated/google/apis/safebrowsing_v4/service.rb +0 -286
data/Gemfile CHANGED
@@ -23,6 +23,7 @@ group :development do
23
23
  gem 'logging', '~> 2.2'
24
24
  gem 'opencensus', '~> 0.4'
25
25
  gem 'httparty'
26
+ gem 'gems', '~> 1.2'
26
27
  end
27
28
 
28
29
  platforms :jruby do
data/Rakefile CHANGED
@@ -79,10 +79,28 @@ namespace :kokoro do
79
79
  end
80
80
 
81
81
  task :release do
82
- # Until code generation process is updated and release-please is set up, just publish docs
83
- require_relative "rakelib/devsite/devsite_builder.rb"
82
+ Rake::Task["kokoro:publish_gem"].invoke
83
+ Rake::Task["kokoro:publish_docs"].invoke
84
+ end
85
+
86
+ task :publish_gem do
87
+ require "gems"
88
+
89
+ load_env_vars if ENV["KOKORO_GFILE_DIR"]
90
+ api_token = ENV["RUBYGEMS_API_TOKEN"]
91
+ if api_token
92
+ ::Gems.configure do |config|
93
+ config.key = api_token
94
+ end
95
+ end
96
+
97
+ rm_rf "pkg"
98
+ Rake::Task["build"].invoke
99
+ built_gem_path = Dir.glob("pkg/google-api-client-*.gem").last
84
100
 
85
- DevsiteBuilder.new.publish_if_missing ENV["DOCS_BUILD_TAG"]
101
+ response = ::Gems.push File.new built_gem_path
102
+ puts response
103
+ raise "Failed to release gem" unless response.include? "Successfully registered gem:"
86
104
  end
87
105
 
88
106
  desc "Publish docs for the latest git tag"
@@ -93,6 +111,16 @@ namespace :kokoro do
93
111
  end
94
112
  end
95
113
 
114
+ def load_env_vars
115
+ service_account = "#{ENV['KOKORO_GFILE_DIR']}/service-account.json"
116
+ raise "#{service_account} is not a file" unless File.file? service_account
117
+ ENV["GOOGLE_APPLICATION_CREDENTIALS"] = service_account
118
+ filename = "#{ENV['KOKORO_GFILE_DIR']}/ruby_env_vars.json"
119
+ raise "#{filename} is not a file" unless File.file? filename
120
+ env_vars = JSON.parse File.read(filename)
121
+ env_vars.each { |k, v| ENV[k] ||= v }
122
+ end
123
+
96
124
  def header str, token = "#"
97
125
  line_length = str.length + 8
98
126
  puts
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/access-approval/docs
26
26
  module AccessapprovalV1
27
27
  VERSION = 'V1'
28
- REVISION = '20200930'
28
+ REVISION = '20201014'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -317,21 +317,19 @@ module Google
317
317
  include Google::Apis::Core::Hashable
318
318
 
319
319
  # The product for which Access Approval will be enrolled. Allowed values are
320
- # listed below (case-sensitive): * all * GA * App Engine * BigQuery * Cloud
321
- # Bigtable * Cloud Key Management Service * Compute Engine * Cloud Dataflow *
322
- # Cloud Identity and Access Management * Cloud Pub/Sub * Cloud Storage *
323
- # Persistent Disk Note: These values are supported as input for legacy purposes,
324
- # but will not be returned from the API. * all * ga-only * appengine.googleapis.
325
- # com * bigquery.googleapis.com * bigtable.googleapis.com * cloudkms.googleapis.
326
- # com * compute.googleapis.com * dataflow.googleapis.com * iam.googleapis.com *
327
- # pubsub.googleapis.com * storage.googleapis.com Calls to
328
- # UpdateAccessApprovalSettings using 'all', 'ga-only', or any of the XXX.
329
- # googleapis.com will be translated to the associated product name ('all', 'GA',
330
- # 'App Engine', etc.). Note: 'all' will enroll the resource in all products
331
- # supported at both 'GA' and 'Preview' levels. 'ga-only'/'GA' will only enroll
332
- # the resource in products supported at 'GA' level. More information about
333
- # levels of support is available at https://cloud.google.com/access-approval/
334
- # docs/supported-services
320
+ # listed below (case-sensitive): * all * App Engine * BigQuery * Cloud Bigtable *
321
+ # Cloud Key Management Service * Compute Engine * Cloud Dataflow * Cloud
322
+ # Identity and Access Management * Cloud Pub/Sub * Cloud Storage * Persistent
323
+ # Disk Note: These values are supported as input for legacy purposes, but will
324
+ # not be returned from the API. * all * appengine.googleapis.com * bigquery.
325
+ # googleapis.com * bigtable.googleapis.com * cloudkms.googleapis.com * compute.
326
+ # googleapis.com * dataflow.googleapis.com * iam.googleapis.com * pubsub.
327
+ # googleapis.com * storage.googleapis.com Calls to UpdateAccessApprovalSettings
328
+ # using 'all' or any of the XXX.googleapis.com will be translated to the
329
+ # associated product name ('all', 'App Engine', etc.). Note: 'all' will enroll
330
+ # the resource in all products supported at both 'GA' and 'Preview' levels. More
331
+ # information about levels of support is available at https://cloud.google.com/
332
+ # access-approval/docs/supported-services
335
333
  # Corresponds to the JSON property `cloudProduct`
336
334
  # @return [String]
337
335
  attr_accessor :cloud_product
@@ -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 = '20201013'
29
+ REVISION = '20201022'
30
30
 
31
31
  # See your AdMob data
32
32
  AUTH_ADMOB_REPORT = 'https://www.googleapis.com/auth/admob.report'
@@ -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 = '20201013'
28
+ REVISION = '20201023'
29
29
 
30
30
  # View and manage your Google Analytics data
31
31
  AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
@@ -353,9 +353,10 @@ module Google
353
353
  end
354
354
  end
355
355
 
356
- # Dimensions are attributes of your data. For example, the dimension City
357
- # indicates the city, for example, "Paris" or "New York", from which an event
358
- # originates. Requests are allowed up to 8 dimensions.
356
+ # Dimensions are attributes of your data. For example, the dimension city
357
+ # indicates the city from which an event originates. Dimension values in report
358
+ # responses are strings; for example, city could be "Paris" or "New York".
359
+ # Requests are allowed up to 8 dimensions.
359
360
  class Dimension
360
361
  include Google::Apis::Core::Hashable
361
362
 
@@ -366,7 +367,13 @@ module Google
366
367
  # @return [Google::Apis::AnalyticsdataV1alpha::DimensionExpression]
367
368
  attr_accessor :dimension_expression
368
369
 
369
- # The name of the dimension.
370
+ # The name of the dimension. See the [API Dimensions](https://developers.google.
371
+ # com/analytics/trusted-testing/analytics-data/api-schema#dimensions) for the
372
+ # list of dimension names. If `dimensionExpression` is specified, `name` can be
373
+ # any string that you would like. For example if a `dimensionExpression`
374
+ # concatenates `country` and `city`, you could call that dimension `
375
+ # countryAndCity`. Dimensions are referenced by `name` in `dimensionFilter`, `
376
+ # orderBys`, `dimensionExpression`, and `pivots`.
370
377
  # Corresponds to the JSON property `name`
371
378
  # @return [String]
372
379
  attr_accessor :name
@@ -527,7 +534,9 @@ module Google
527
534
  class Entity
528
535
  include Google::Apis::Core::Hashable
529
536
 
530
- # A Google Analytics GA4 property id.
537
+ # A Google Analytics GA4 property id. To learn more, see [where to find your
538
+ # Property ID](https://developers.google.com/analytics/trusted-testing/analytics-
539
+ # data/property-id).
531
540
  # Corresponds to the JSON property `propertyId`
532
541
  # @return [String]
533
542
  attr_accessor :property_id
@@ -681,7 +690,7 @@ module Google
681
690
  class Metadata
682
691
  include Google::Apis::Core::Hashable
683
692
 
684
- # The dimensions descriptions.
693
+ # The dimension descriptions.
685
694
  # Corresponds to the JSON property `dimensions`
686
695
  # @return [Array<Google::Apis::AnalyticsdataV1alpha::DimensionMetadata>]
687
696
  attr_accessor :dimensions
@@ -708,26 +717,31 @@ module Google
708
717
  end
709
718
  end
710
719
 
711
- # The quantitative measurements of a report. For example, the metric eventCount
720
+ # The quantitative measurements of a report. For example, the metric `eventCount`
712
721
  # is the total number of events. Requests are allowed up to 10 metrics.
713
722
  class Metric
714
723
  include Google::Apis::Core::Hashable
715
724
 
716
725
  # A mathematical expression for derived metrics. For example, the metric Event
717
- # count per user is eventCount/totalUsers.
726
+ # count per user is `eventCount/totalUsers`.
718
727
  # Corresponds to the JSON property `expression`
719
728
  # @return [String]
720
729
  attr_accessor :expression
721
730
 
722
- # Indicates if a metric is invisible. If a metric is invisible, the metric is
723
- # not in the response, but can be used in filters, order_bys or being referred
724
- # to in a metric expression.
731
+ # Indicates if a metric is invisible in the report response. If a metric is
732
+ # invisible, the metric will not produce a column in the response, but can be
733
+ # used in `metricFilter`, `orderBys`, or a metric `expression`.
725
734
  # Corresponds to the JSON property `invisible`
726
735
  # @return [Boolean]
727
736
  attr_accessor :invisible
728
737
  alias_method :invisible?, :invisible
729
738
 
730
- # The name of the metric.
739
+ # The name of the metric. See the [API Metrics](https://developers.google.com/
740
+ # analytics/trusted-testing/analytics-data/api-schema#metrics) for the list of
741
+ # metric names. If `expression` is specified, `name` can be any string that you
742
+ # would like. For example if `expression` is `screenPageViews/sessions`, you
743
+ # could call that metric's name = `viewsPerSession`. Metrics are referenced by `
744
+ # name` in `metricFilter`, `orderBys`, and metric `expression`.
731
745
  # Corresponds to the JSON property `name`
732
746
  # @return [String]
733
747
  attr_accessor :name
@@ -58,7 +58,9 @@ module Google
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 GA4 Property identifier. Example: properties/1234/metadata
61
+ # Analytics GA4 Property identifier. To learn more, see [where to find your
62
+ # Property ID](https://developers.google.com/analytics/trusted-testing/analytics-
63
+ # data/property-id). Example: properties/1234/metadata
62
64
  # @param [String] fields
63
65
  # Selector specifying which fields to include in a partial response.
64
66
  # @param [String] quota_user
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/android/management
27
27
  module AndroidmanagementV1
28
28
  VERSION = 'V1'
29
- REVISION = '20200925'
29
+ REVISION = '20201012'
30
30
 
31
31
  # Manage Android devices and apps for your customers
32
32
  AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'
@@ -618,30 +618,31 @@ module Google
618
618
  end
619
619
  end
620
620
 
621
- # Represents a whole or partial calendar date, e.g. a birthday. The time of day
622
- # and time zone are either specified elsewhere or are not significant. The date
623
- # is relative to the Proleptic Gregorian Calendar. This can represent: A full
624
- # date, with non-zero year, month and day values A month and day value, with a
625
- # zero year, e.g. an anniversary A year on its own, with zero month and day
626
- # values A year and month value, with a zero day, e.g. a credit card expiration
627
- # dateRelated types are google.type.TimeOfDay and google.protobuf.Timestamp.
621
+ # Represents a whole or partial calendar date, such as a birthday. The time of
622
+ # day and time zone are either specified elsewhere or are insignificant. The
623
+ # date is relative to the Gregorian Calendar. This can represent one of the
624
+ # following: A full date, with non-zero year, month, and day values A month and
625
+ # day value, with a zero year, such as an anniversary A year on its own, with
626
+ # zero month and day values A year and month value, with a zero day, such as a
627
+ # credit card expiration dateRelated types are google.type.TimeOfDay and google.
628
+ # protobuf.Timestamp.
628
629
  class Date
629
630
  include Google::Apis::Core::Hashable
630
631
 
631
- # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if
632
- # specifying a year by itself or a year and month where the day is not
633
- # significant.
632
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
633
+ # specify a year by itself or a year and month where the day isn't significant.
634
634
  # Corresponds to the JSON property `day`
635
635
  # @return [Fixnum]
636
636
  attr_accessor :day
637
637
 
638
- # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month
638
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
639
639
  # and day.
640
640
  # Corresponds to the JSON property `month`
641
641
  # @return [Fixnum]
642
642
  attr_accessor :month
643
643
 
644
- # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
644
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
645
+ # year.
645
646
  # Corresponds to the JSON property `year`
646
647
  # @return [Fixnum]
647
648
  attr_accessor :year
@@ -1252,24 +1253,26 @@ module Google
1252
1253
  class FreezePeriod
1253
1254
  include Google::Apis::Core::Hashable
1254
1255
 
1255
- # Represents a whole or partial calendar date, e.g. a birthday. The time of day
1256
- # and time zone are either specified elsewhere or are not significant. The date
1257
- # is relative to the Proleptic Gregorian Calendar. This can represent: A full
1258
- # date, with non-zero year, month and day values A month and day value, with a
1259
- # zero year, e.g. an anniversary A year on its own, with zero month and day
1260
- # values A year and month value, with a zero day, e.g. a credit card expiration
1261
- # dateRelated types are google.type.TimeOfDay and google.protobuf.Timestamp.
1256
+ # Represents a whole or partial calendar date, such as a birthday. The time of
1257
+ # day and time zone are either specified elsewhere or are insignificant. The
1258
+ # date is relative to the Gregorian Calendar. This can represent one of the
1259
+ # following: A full date, with non-zero year, month, and day values A month and
1260
+ # day value, with a zero year, such as an anniversary A year on its own, with
1261
+ # zero month and day values A year and month value, with a zero day, such as a
1262
+ # credit card expiration dateRelated types are google.type.TimeOfDay and google.
1263
+ # protobuf.Timestamp.
1262
1264
  # Corresponds to the JSON property `endDate`
1263
1265
  # @return [Google::Apis::AndroidmanagementV1::Date]
1264
1266
  attr_accessor :end_date
1265
1267
 
1266
- # Represents a whole or partial calendar date, e.g. a birthday. The time of day
1267
- # and time zone are either specified elsewhere or are not significant. The date
1268
- # is relative to the Proleptic Gregorian Calendar. This can represent: A full
1269
- # date, with non-zero year, month and day values A month and day value, with a
1270
- # zero year, e.g. an anniversary A year on its own, with zero month and day
1271
- # values A year and month value, with a zero day, e.g. a credit card expiration
1272
- # dateRelated types are google.type.TimeOfDay and google.protobuf.Timestamp.
1268
+ # Represents a whole or partial calendar date, such as a birthday. The time of
1269
+ # day and time zone are either specified elsewhere or are insignificant. The
1270
+ # date is relative to the Gregorian Calendar. This can represent one of the
1271
+ # following: A full date, with non-zero year, month, and day values A month and
1272
+ # day value, with a zero year, such as an anniversary A year on its own, with
1273
+ # zero month and day values A year and month value, with a zero day, such as a
1274
+ # credit card expiration dateRelated types are google.type.TimeOfDay and google.
1275
+ # protobuf.Timestamp.
1273
1276
  # Corresponds to the JSON property `startDate`
1274
1277
  # @return [Google::Apis::AndroidmanagementV1::Date]
1275
1278
  attr_accessor :start_date
@@ -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 = '20201012'
28
+ REVISION = '20201022'
29
29
 
30
30
  # View and manage your Google Play Developer account
31
31
  AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
@@ -1632,7 +1632,8 @@ module Google
1632
1632
  attr_accessor :order_id
1633
1633
 
1634
1634
  # The payment state of the subscription. Possible values are: 0. Payment pending
1635
- # 1. Payment received 2. Free trial 3. Pending deferred upgrade/downgrade
1635
+ # 1. Payment received 2. Free trial 3. Pending deferred upgrade/downgrade Not
1636
+ # present for canceled, expired subscriptions.
1636
1637
  # Corresponds to the JSON property `paymentState`
1637
1638
  # @return [Fixnum]
1638
1639
  attr_accessor :payment_state
@@ -29,7 +29,7 @@ module Google
29
29
  # @see https://cloud.google.com/apigee-api-management/
30
30
  module ApigeeV1
31
31
  VERSION = 'V1'
32
- REVISION = '20201002'
32
+ REVISION = '20201022'
33
33
 
34
34
  # View and manage your data across Google Cloud Platform services
35
35
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -3992,6 +3992,15 @@ module Google
3992
3992
  # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Properties]
3993
3993
  attr_accessor :properties
3994
3994
 
3995
+ # Cloud KMS key name used for encrypting the data that is stored and replicated
3996
+ # across runtime instances. Update is not allowed after the organization is
3997
+ # created. If not specified, a Google-Managed encryption key will be used. Valid
3998
+ # only when [RuntimeType] is CLOUD. For example: "projects/foo/locations/us/
3999
+ # keyRings/bar/cryptoKeys/baz". **Note:** Not supported for Apigee hybrid.
4000
+ # Corresponds to the JSON property `runtimeDatabaseEncryptionKeyName`
4001
+ # @return [String]
4002
+ attr_accessor :runtime_database_encryption_key_name
4003
+
3995
4004
  # Required. Runtime type of the Apigee organization based on the Apigee
3996
4005
  # subscription purchased.
3997
4006
  # Corresponds to the JSON property `runtimeType`
@@ -4030,6 +4039,7 @@ module Google
4030
4039
  @name = args[:name] if args.key?(:name)
4031
4040
  @project_id = args[:project_id] if args.key?(:project_id)
4032
4041
  @properties = args[:properties] if args.key?(:properties)
4042
+ @runtime_database_encryption_key_name = args[:runtime_database_encryption_key_name] if args.key?(:runtime_database_encryption_key_name)
4033
4043
  @runtime_type = args[:runtime_type] if args.key?(:runtime_type)
4034
4044
  @subscription_type = args[:subscription_type] if args.key?(:subscription_type)
4035
4045
  @type = args[:type] if args.key?(:type)
@@ -4946,7 +4956,7 @@ module Google
4946
4956
  # @return [String]
4947
4957
  attr_accessor :revision_id
4948
4958
 
4949
- # NEXT ID: 6 RuntimeTraceSamplingConfig represents the detail settings of
4959
+ # NEXT ID: 3 RuntimeTraceSamplingConfig represents the detail settings of
4950
4960
  # distributed tracing. Only the fields that are defined in the distributed trace
4951
4961
  # configuration can be overridden using the distribute trace configuration
4952
4962
  # override APIs.
@@ -4998,7 +5008,7 @@ module Google
4998
5008
  # @return [String]
4999
5009
  attr_accessor :revision_id
5000
5010
 
5001
- # NEXT ID: 6 RuntimeTraceSamplingConfig represents the detail settings of
5011
+ # NEXT ID: 3 RuntimeTraceSamplingConfig represents the detail settings of
5002
5012
  # distributed tracing. Only the fields that are defined in the distributed trace
5003
5013
  # configuration can be overridden using the distribute trace configuration
5004
5014
  # override APIs.
@@ -5007,7 +5017,7 @@ module Google
5007
5017
  attr_accessor :sampling_config
5008
5018
 
5009
5019
  # Unique ID for the configuration override. The ID will only change if the
5010
- # override is deleted and recreated.
5020
+ # override is deleted and recreated. Corresponds to name's "override" field.
5011
5021
  # Corresponds to the JSON property `uid`
5012
5022
  # @return [String]
5013
5023
  attr_accessor :uid
@@ -5027,37 +5037,20 @@ module Google
5027
5037
  end
5028
5038
  end
5029
5039
 
5030
- # NEXT ID: 6 RuntimeTraceSamplingConfig represents the detail settings of
5040
+ # NEXT ID: 3 RuntimeTraceSamplingConfig represents the detail settings of
5031
5041
  # distributed tracing. Only the fields that are defined in the distributed trace
5032
5042
  # configuration can be overridden using the distribute trace configuration
5033
5043
  # override APIs.
5034
5044
  class GoogleCloudApigeeV1RuntimeTraceSamplingConfig
5035
5045
  include Google::Apis::Core::Hashable
5036
5046
 
5037
- # Error sources from which to capture errors. If none are specified, error codes
5038
- # are captured from all sources.
5039
- # Corresponds to the JSON property `errorSources`
5040
- # @return [Array<String>]
5041
- attr_accessor :error_sources
5042
-
5043
- # List of response code ranges.
5044
- # Corresponds to the JSON property `responseCodeRanges`
5045
- # @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange>]
5046
- attr_accessor :response_code_ranges
5047
-
5048
- # List of single response codes.
5049
- # Corresponds to the JSON property `responseCodes`
5050
- # @return [Array<Fixnum>]
5051
- attr_accessor :response_codes
5052
-
5053
5047
  # Sampler of distributed tracing. OFF is the default value.
5054
5048
  # Corresponds to the JSON property `sampler`
5055
5049
  # @return [String]
5056
5050
  attr_accessor :sampler
5057
5051
 
5058
- # Field sampling rate. This value is only valid when is only applicable when
5059
- # sampling value is probabilistic(PROBABILITY). The supported values are > 0 and
5060
- # <= 0.5.
5052
+ # Field sampling rate. This value is only applicable when using the PROBABILITY
5053
+ # sampler. The supported values are > 0 and <= 0.5.
5061
5054
  # Corresponds to the JSON property `samplingRate`
5062
5055
  # @return [Float]
5063
5056
  attr_accessor :sampling_rate
@@ -5068,42 +5061,11 @@ module Google
5068
5061
 
5069
5062
  # Update properties of this object
5070
5063
  def update!(**args)
5071
- @error_sources = args[:error_sources] if args.key?(:error_sources)
5072
- @response_code_ranges = args[:response_code_ranges] if args.key?(:response_code_ranges)
5073
- @response_codes = args[:response_codes] if args.key?(:response_codes)
5074
5064
  @sampler = args[:sampler] if args.key?(:sampler)
5075
5065
  @sampling_rate = args[:sampling_rate] if args.key?(:sampling_rate)
5076
5066
  end
5077
5067
  end
5078
5068
 
5079
- # ResponseCodeRange represents a group of response codes to capture, from the
5080
- # first response code to the last response code. Each range is a close interval.
5081
- # For example, if an interval is [400, 403], then that means 400, 401, 402, 403
5082
- # will be all captured.
5083
- class GoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange
5084
- include Google::Apis::Core::Hashable
5085
-
5086
- # The first response code to capture.
5087
- # Corresponds to the JSON property `firstResponseCode`
5088
- # @return [Fixnum]
5089
- attr_accessor :first_response_code
5090
-
5091
- # The last response code to capture.
5092
- # Corresponds to the JSON property `lastResponseCode`
5093
- # @return [Fixnum]
5094
- attr_accessor :last_response_code
5095
-
5096
- def initialize(**args)
5097
- update!(**args)
5098
- end
5099
-
5100
- # Update properties of this object
5101
- def update!(**args)
5102
- @first_response_code = args[:first_response_code] if args.key?(:first_response_code)
5103
- @last_response_code = args[:last_response_code] if args.key?(:last_response_code)
5104
- end
5105
- end
5106
-
5107
5069
  # Response for Schema call
5108
5070
  class GoogleCloudApigeeV1Schema
5109
5071
  include Google::Apis::Core::Hashable