google-api-client 0.36.0 → 0.36.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +69 -0
  3. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  4. data/generated/google/apis/androidenterprise_v1/classes.rb +2 -1
  5. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  6. data/generated/google/apis/androidmanagement_v1/classes.rb +7 -4
  7. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  8. data/generated/google/apis/androidpublisher_v3/classes.rb +32 -32
  9. data/generated/google/apis/androidpublisher_v3/representations.rb +17 -17
  10. data/generated/google/apis/bigquery_v2.rb +1 -1
  11. data/generated/google/apis/bigquery_v2/classes.rb +2 -1
  12. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  13. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +81 -41
  14. data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +2 -0
  15. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +8 -8
  16. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  17. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +60 -30
  18. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  19. data/generated/google/apis/bigtableadmin_v2/classes.rb +75 -40
  20. data/generated/google/apis/bigtableadmin_v2/service.rb +1 -1
  21. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  22. data/generated/google/apis/binaryauthorization_v1/classes.rb +75 -41
  23. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  24. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +75 -41
  25. data/generated/google/apis/chat_v1.rb +1 -1
  26. data/generated/google/apis/chat_v1/service.rb +5 -2
  27. data/generated/google/apis/cloudasset_v1.rb +1 -1
  28. data/generated/google/apis/cloudasset_v1/classes.rb +206 -0
  29. data/generated/google/apis/cloudasset_v1/representations.rb +101 -0
  30. data/generated/google/apis/cloudasset_v1/service.rb +174 -0
  31. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  32. data/generated/google/apis/cloudbilling_v1/classes.rb +59 -41
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +9 -5
  35. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  36. data/generated/google/apis/cloudfunctions_v1/classes.rb +75 -41
  37. data/generated/google/apis/cloudiot_v1.rb +1 -1
  38. data/generated/google/apis/cloudiot_v1/classes.rb +75 -41
  39. data/generated/google/apis/cloudkms_v1.rb +1 -1
  40. data/generated/google/apis/cloudkms_v1/classes.rb +104 -41
  41. data/generated/google/apis/cloudkms_v1/representations.rb +15 -0
  42. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  43. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +75 -41
  44. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  45. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +75 -41
  46. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +1 -1
  47. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  48. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +75 -41
  49. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  50. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +75 -41
  51. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  52. data/generated/google/apis/cloudsearch_v1/classes.rb +3 -2
  53. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  54. data/generated/google/apis/cloudtasks_v2/classes.rb +81 -47
  55. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  56. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +75 -41
  57. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  58. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +81 -47
  59. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  60. data/generated/google/apis/cloudtrace_v2/classes.rb +5 -3
  61. data/generated/google/apis/compute_alpha.rb +1 -1
  62. data/generated/google/apis/compute_alpha/classes.rb +68 -47
  63. data/generated/google/apis/compute_alpha/representations.rb +2 -1
  64. data/generated/google/apis/compute_alpha/service.rb +54 -0
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +597 -40
  67. data/generated/google/apis/compute_beta/representations.rb +164 -0
  68. data/generated/google/apis/compute_beta/service.rb +343 -1
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +54 -39
  71. data/generated/google/apis/compute_v1/representations.rb +1 -0
  72. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  73. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +75 -41
  74. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  75. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +77 -43
  76. data/generated/google/apis/containeranalysis_v1beta1/service.rb +26 -20
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +46 -42
  79. data/generated/google/apis/content_v2_1.rb +1 -1
  80. data/generated/google/apis/content_v2_1/classes.rb +46 -42
  81. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  82. data/generated/google/apis/datacatalog_v1beta1/classes.rb +75 -41
  83. data/generated/google/apis/datastore_v1.rb +1 -1
  84. data/generated/google/apis/datastore_v1/classes.rb +16 -22
  85. data/generated/google/apis/datastore_v1/service.rb +10 -10
  86. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  87. data/generated/google/apis/datastore_v1beta3/classes.rb +5 -4
  88. data/generated/google/apis/datastore_v1beta3/service.rb +8 -8
  89. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  90. data/generated/google/apis/dfareporting_v3_4/classes.rb +88 -88
  91. data/generated/google/apis/dfareporting_v3_4/representations.rb +39 -39
  92. data/generated/google/apis/dialogflow_v2.rb +1 -1
  93. data/generated/google/apis/dialogflow_v2/classes.rb +1 -1
  94. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  95. data/generated/google/apis/dialogflow_v2beta1/classes.rb +1 -1
  96. data/generated/google/apis/dlp_v2.rb +1 -1
  97. data/generated/google/apis/dlp_v2/classes.rb +77 -0
  98. data/generated/google/apis/dlp_v2/representations.rb +42 -0
  99. data/generated/google/apis/file_v1.rb +1 -1
  100. data/generated/google/apis/file_v1/classes.rb +59 -12
  101. data/generated/google/apis/file_v1/representations.rb +19 -2
  102. data/generated/google/apis/file_v1/service.rb +8 -4
  103. data/generated/google/apis/file_v1beta1.rb +1 -1
  104. data/generated/google/apis/file_v1beta1/classes.rb +59 -12
  105. data/generated/google/apis/file_v1beta1/representations.rb +19 -2
  106. data/generated/google/apis/file_v1beta1/service.rb +8 -4
  107. data/generated/google/apis/firebaserules_v1.rb +1 -1
  108. data/generated/google/apis/firebaserules_v1/classes.rb +75 -0
  109. data/generated/google/apis/firebaserules_v1/representations.rb +35 -0
  110. data/generated/google/apis/gmail_v1.rb +1 -1
  111. data/generated/google/apis/gmail_v1/classes.rb +6 -2
  112. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  113. data/generated/google/apis/iamcredentials_v1/classes.rb +7 -4
  114. data/generated/google/apis/iamcredentials_v1/service.rb +4 -4
  115. data/generated/google/apis/iap_v1.rb +1 -1
  116. data/generated/google/apis/iap_v1/classes.rb +225 -40
  117. data/generated/google/apis/iap_v1/representations.rb +84 -0
  118. data/generated/google/apis/iap_v1/service.rb +292 -0
  119. data/generated/google/apis/iap_v1beta1.rb +1 -1
  120. data/generated/google/apis/iap_v1beta1/classes.rb +75 -40
  121. data/generated/google/apis/logging_v2.rb +1 -1
  122. data/generated/google/apis/logging_v2/classes.rb +29 -41
  123. data/generated/google/apis/ml_v1.rb +1 -1
  124. data/generated/google/apis/ml_v1/classes.rb +14 -21
  125. data/generated/google/apis/ml_v1/service.rb +15 -18
  126. data/generated/google/apis/monitoring_v1.rb +1 -1
  127. data/generated/google/apis/monitoring_v1/classes.rb +15 -11
  128. data/generated/google/apis/monitoring_v3.rb +1 -1
  129. data/generated/google/apis/monitoring_v3/classes.rb +6 -10
  130. data/generated/google/apis/monitoring_v3/representations.rb +0 -1
  131. data/generated/google/apis/{fusiontables_v1.rb → policytroubleshooter_v1.rb} +10 -13
  132. data/generated/google/apis/policytroubleshooter_v1/classes.rb +700 -0
  133. data/generated/google/apis/policytroubleshooter_v1/representations.rb +203 -0
  134. data/generated/google/apis/policytroubleshooter_v1/service.rb +90 -0
  135. data/generated/google/apis/pubsub_v1.rb +1 -1
  136. data/generated/google/apis/pubsub_v1/classes.rb +75 -41
  137. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  138. data/generated/google/apis/pubsub_v1beta2/classes.rb +75 -41
  139. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  140. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
  141. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  142. data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
  143. data/generated/google/apis/run_v1.rb +1 -1
  144. data/generated/google/apis/run_v1/classes.rb +75 -41
  145. data/generated/google/apis/run_v1alpha1.rb +1 -1
  146. data/generated/google/apis/run_v1alpha1/classes.rb +82 -41
  147. data/generated/google/apis/run_v1alpha1/representations.rb +2 -0
  148. data/generated/google/apis/{fusiontables_v2.rb → secretmanager_v1beta1.rb} +11 -14
  149. data/generated/google/apis/secretmanager_v1beta1/classes.rb +936 -0
  150. data/generated/google/apis/secretmanager_v1beta1/representations.rb +388 -0
  151. data/generated/google/apis/secretmanager_v1beta1/service.rb +674 -0
  152. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  153. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +85 -1
  154. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +32 -0
  155. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  156. data/generated/google/apis/servicecontrol_v1/classes.rb +4 -3
  157. data/generated/google/apis/servicecontrol_v1/service.rb +2 -1
  158. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  159. data/generated/google/apis/servicenetworking_v1/classes.rb +38 -1
  160. data/generated/google/apis/servicenetworking_v1/representations.rb +14 -0
  161. data/generated/google/apis/servicenetworking_v1/service.rb +35 -0
  162. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  163. data/generated/google/apis/servicenetworking_v1beta/classes.rb +16 -1
  164. data/generated/google/apis/servicenetworking_v1beta/representations.rb +1 -0
  165. data/generated/google/apis/serviceusage_v1.rb +1 -1
  166. data/generated/google/apis/serviceusage_v1/classes.rb +16 -1
  167. data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
  168. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  169. data/generated/google/apis/serviceusage_v1beta1/classes.rb +16 -1
  170. data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
  171. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  172. data/generated/google/apis/storagetransfer_v1/service.rb +4 -2
  173. data/generated/google/apis/testing_v1.rb +1 -1
  174. data/generated/google/apis/testing_v1/classes.rb +2 -2
  175. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  176. data/generated/google/apis/toolresults_v1beta3/classes.rb +374 -2
  177. data/generated/google/apis/toolresults_v1beta3/representations.rb +109 -0
  178. data/generated/google/apis/toolresults_v1beta3/service.rb +98 -0
  179. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  180. data/lib/google/apis/version.rb +1 -1
  181. metadata +11 -11
  182. data/generated/google/apis/fusiontables_v1/classes.rb +0 -977
  183. data/generated/google/apis/fusiontables_v1/representations.rb +0 -449
  184. data/generated/google/apis/fusiontables_v1/service.rb +0 -1307
  185. data/generated/google/apis/fusiontables_v2/classes.rb +0 -1049
  186. data/generated/google/apis/fusiontables_v2/representations.rb +0 -457
  187. data/generated/google/apis/fusiontables_v2/service.rb +0 -1431
@@ -76,6 +76,12 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
79
85
  class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
80
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
87
 
@@ -177,6 +183,7 @@ module Google
177
183
 
178
184
  hash :rollout_metadata, as: 'rolloutMetadata', class: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1RolloutMetadata, decorator: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1RolloutMetadata::Representation
179
185
 
186
+ property :slm_instance_template, as: 'slmInstanceTemplate'
180
187
  property :slo_metadata, as: 'sloMetadata', class: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata, decorator: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata::Representation
181
188
 
182
189
  hash :software_versions, as: 'softwareVersions'
@@ -234,19 +241,29 @@ module Google
234
241
  end
235
242
  end
236
243
 
244
+ class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
245
+ # @private
246
+ class Representation < Google::Apis::Core::JsonRepresentation
247
+ property :eligible, as: 'eligible'
248
+ property :reason, as: 'reason'
249
+ end
250
+ end
251
+
237
252
  class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
238
253
  # @private
239
254
  class Representation < Google::Apis::Core::JsonRepresentation
240
- property :exclusion_duration, as: 'exclusionDuration'
241
- property :exclusion_start_time, as: 'exclusionStartTime'
255
+ property :duration, as: 'duration'
242
256
  property :reason, as: 'reason'
243
257
  property :sli_name, as: 'sliName'
258
+ property :start_time, as: 'startTime'
244
259
  end
245
260
  end
246
261
 
247
262
  class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
248
263
  # @private
249
264
  class Representation < Google::Apis::Core::JsonRepresentation
265
+ property :eligibility, as: 'eligibility', class: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility, decorator: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility::Representation
266
+
250
267
  collection :exclusions, as: 'exclusions', class: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion, decorator: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion::Representation
251
268
 
252
269
  collection :nodes, as: 'nodes', class: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata, decorator: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata::Representation
@@ -82,6 +82,9 @@ module Google
82
82
  # The resource that owns the locations collection, if applicable.
83
83
  # @param [String] filter
84
84
  # The standard list filter.
85
+ # @param [Boolean] include_unrevealed_locations
86
+ # If true, the returned list will include locations which are not yet
87
+ # revealed.
85
88
  # @param [Fixnum] page_size
86
89
  # The standard list page size.
87
90
  # @param [String] page_token
@@ -103,12 +106,13 @@ module Google
103
106
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
104
107
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
105
108
  # @raise [Google::Apis::AuthorizationError] Authorization is required
106
- def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
109
+ def list_project_locations(name, filter: nil, include_unrevealed_locations: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
107
110
  command = make_simple_command(:get, 'v1/{+name}/locations', options)
108
111
  command.response_representation = Google::Apis::FileV1::ListLocationsResponse::Representation
109
112
  command.response_class = Google::Apis::FileV1::ListLocationsResponse
110
113
  command.params['name'] = name unless name.nil?
111
114
  command.query['filter'] = filter unless filter.nil?
115
+ command.query['includeUnrevealedLocations'] = include_unrevealed_locations unless include_unrevealed_locations.nil?
112
116
  command.query['pageSize'] = page_size unless page_size.nil?
113
117
  command.query['pageToken'] = page_token unless page_token.nil?
114
118
  command.query['fields'] = fields unless fields.nil?
@@ -274,9 +278,9 @@ module Google
274
278
  # Mask of fields to update. At least one path must be supplied in this
275
279
  # field. The elements of the repeated paths field may only include these
276
280
  # fields:
277
- # "description"
278
- # "file_shares"
279
- # "labels"
281
+ # * "description"
282
+ # * "file_shares"
283
+ # * "labels"
280
284
  # @param [String] fields
281
285
  # Selector specifying which fields to include in a partial response.
282
286
  # @param [String] quota_user
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/filestore/
26
26
  module FileV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20190917'
28
+ REVISION = '20191213'
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'
@@ -224,6 +224,14 @@ module Google
224
224
  # @return [Hash<String,Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1RolloutMetadata>]
225
225
  attr_accessor :rollout_metadata
226
226
 
227
+ # Link to the SLM instance template. Only populated when updating SLM
228
+ # instances via SSA's Actuation service adaptor.
229
+ # Service producers with custom control plane (e.g. Cloud SQL) doesn't
230
+ # need to populate this field. Instead they should use software_versions.
231
+ # Corresponds to the JSON property `slmInstanceTemplate`
232
+ # @return [String]
233
+ attr_accessor :slm_instance_template
234
+
227
235
  # SloMetadata contains resources required for proper SLO classification of the
228
236
  # instance.
229
237
  # Corresponds to the JSON property `sloMetadata`
@@ -268,6 +276,7 @@ module Google
268
276
  @producer_metadata = args[:producer_metadata] if args.key?(:producer_metadata)
269
277
  @provisioned_resources = args[:provisioned_resources] if args.key?(:provisioned_resources)
270
278
  @rollout_metadata = args[:rollout_metadata] if args.key?(:rollout_metadata)
279
+ @slm_instance_template = args[:slm_instance_template] if args.key?(:slm_instance_template)
271
280
  @slo_metadata = args[:slo_metadata] if args.key?(:slo_metadata)
272
281
  @software_versions = args[:software_versions] if args.key?(:software_versions)
273
282
  @state = args[:state] if args.key?(:state)
@@ -460,7 +469,37 @@ module Google
460
469
  end
461
470
  end
462
471
 
463
- # SloExclusion represents an excusion in SLI calculation applies to all SLOs.
472
+ # SloEligibility is a tuple containing eligibility value: true if an instance
473
+ # is eligible for SLO calculation or false if it should be excluded from all
474
+ # SLO-related calculations along with a user-defined reason.
475
+ class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
476
+ include Google::Apis::Core::Hashable
477
+
478
+ # Whether an instance is eligible or ineligible.
479
+ # Corresponds to the JSON property `eligible`
480
+ # @return [Boolean]
481
+ attr_accessor :eligible
482
+ alias_method :eligible?, :eligible
483
+
484
+ # User-defined reason for the current value of instance eligibility. Usually,
485
+ # this can be directly mapped to the internal state. An empty reason is
486
+ # allowed.
487
+ # Corresponds to the JSON property `reason`
488
+ # @return [String]
489
+ attr_accessor :reason
490
+
491
+ def initialize(**args)
492
+ update!(**args)
493
+ end
494
+
495
+ # Update properties of this object
496
+ def update!(**args)
497
+ @eligible = args[:eligible] if args.key?(:eligible)
498
+ @reason = args[:reason] if args.key?(:reason)
499
+ end
500
+ end
501
+
502
+ # SloExclusion represents an exclusion in SLI calculation applies to all SLOs.
464
503
  class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
465
504
  include Google::Apis::Core::Hashable
466
505
 
@@ -471,14 +510,9 @@ module Google
471
510
  # as long as such extension is committed at least 10 minutes before the
472
511
  # original exclusion expiration - otherwise it is possible that there will
473
512
  # be "gaps" in the exclusion application in the exported timeseries.
474
- # Corresponds to the JSON property `exclusionDuration`
513
+ # Corresponds to the JSON property `duration`
475
514
  # @return [String]
476
- attr_accessor :exclusion_duration
477
-
478
- # Start time of the exclusion. No alignment (e.g. to a full minute) needed.
479
- # Corresponds to the JSON property `exclusionStartTime`
480
- # @return [String]
481
- attr_accessor :exclusion_start_time
515
+ attr_accessor :duration
482
516
 
483
517
  # Human-readable reason for the exclusion.
484
518
  # This should be a static string (e.g. "Disruptive update in progress")
@@ -495,16 +529,21 @@ module Google
495
529
  # @return [String]
496
530
  attr_accessor :sli_name
497
531
 
532
+ # Start time of the exclusion. No alignment (e.g. to a full minute) needed.
533
+ # Corresponds to the JSON property `startTime`
534
+ # @return [String]
535
+ attr_accessor :start_time
536
+
498
537
  def initialize(**args)
499
538
  update!(**args)
500
539
  end
501
540
 
502
541
  # Update properties of this object
503
542
  def update!(**args)
504
- @exclusion_duration = args[:exclusion_duration] if args.key?(:exclusion_duration)
505
- @exclusion_start_time = args[:exclusion_start_time] if args.key?(:exclusion_start_time)
543
+ @duration = args[:duration] if args.key?(:duration)
506
544
  @reason = args[:reason] if args.key?(:reason)
507
545
  @sli_name = args[:sli_name] if args.key?(:sli_name)
546
+ @start_time = args[:start_time] if args.key?(:start_time)
508
547
  end
509
548
  end
510
549
 
@@ -513,6 +552,13 @@ module Google
513
552
  class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
514
553
  include Google::Apis::Core::Hashable
515
554
 
555
+ # SloEligibility is a tuple containing eligibility value: true if an instance
556
+ # is eligible for SLO calculation or false if it should be excluded from all
557
+ # SLO-related calculations along with a user-defined reason.
558
+ # Corresponds to the JSON property `eligibility`
559
+ # @return [Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility]
560
+ attr_accessor :eligibility
561
+
516
562
  # List of SLO exclusion windows. When multiple entries in the list match
517
563
  # (matching the exclusion time-window against current time point)
518
564
  # the exclusion reason used in the first matching entry will be published.
@@ -522,8 +568,8 @@ module Google
522
568
  # in the historically produced timeseries regardless of the current state).
523
569
  # This field can be used to mark the instance as temporary ineligible
524
570
  # for the purpose of SLO calculation. For permanent instance SLO exclusion,
525
- # a dedicated tier name can be used that does not have targets specified
526
- # in the service SLO configuration.
571
+ # use of custom instance eligibility is recommended. See 'eligibility' field
572
+ # below.
527
573
  # Corresponds to the JSON property `exclusions`
528
574
  # @return [Array<Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>]
529
575
  attr_accessor :exclusions
@@ -550,6 +596,7 @@ module Google
550
596
 
551
597
  # Update properties of this object
552
598
  def update!(**args)
599
+ @eligibility = args[:eligibility] if args.key?(:eligibility)
553
600
  @exclusions = args[:exclusions] if args.key?(:exclusions)
554
601
  @nodes = args[:nodes] if args.key?(:nodes)
555
602
  @tier = args[:tier] if args.key?(:tier)
@@ -76,6 +76,12 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
79
85
  class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
80
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
87
 
@@ -177,6 +183,7 @@ module Google
177
183
 
178
184
  hash :rollout_metadata, as: 'rolloutMetadata', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1RolloutMetadata, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1RolloutMetadata::Representation
179
185
 
186
+ property :slm_instance_template, as: 'slmInstanceTemplate'
180
187
  property :slo_metadata, as: 'sloMetadata', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata::Representation
181
188
 
182
189
  hash :software_versions, as: 'softwareVersions'
@@ -234,19 +241,29 @@ module Google
234
241
  end
235
242
  end
236
243
 
244
+ class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
245
+ # @private
246
+ class Representation < Google::Apis::Core::JsonRepresentation
247
+ property :eligible, as: 'eligible'
248
+ property :reason, as: 'reason'
249
+ end
250
+ end
251
+
237
252
  class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
238
253
  # @private
239
254
  class Representation < Google::Apis::Core::JsonRepresentation
240
- property :exclusion_duration, as: 'exclusionDuration'
241
- property :exclusion_start_time, as: 'exclusionStartTime'
255
+ property :duration, as: 'duration'
242
256
  property :reason, as: 'reason'
243
257
  property :sli_name, as: 'sliName'
258
+ property :start_time, as: 'startTime'
244
259
  end
245
260
  end
246
261
 
247
262
  class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
248
263
  # @private
249
264
  class Representation < Google::Apis::Core::JsonRepresentation
265
+ property :eligibility, as: 'eligibility', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility::Representation
266
+
250
267
  collection :exclusions, as: 'exclusions', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion::Representation
251
268
 
252
269
  collection :nodes, as: 'nodes', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata::Representation
@@ -82,6 +82,9 @@ module Google
82
82
  # The resource that owns the locations collection, if applicable.
83
83
  # @param [String] filter
84
84
  # The standard list filter.
85
+ # @param [Boolean] include_unrevealed_locations
86
+ # If true, the returned list will include locations which are not yet
87
+ # revealed.
85
88
  # @param [Fixnum] page_size
86
89
  # The standard list page size.
87
90
  # @param [String] page_token
@@ -103,12 +106,13 @@ module Google
103
106
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
104
107
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
105
108
  # @raise [Google::Apis::AuthorizationError] Authorization is required
106
- def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
109
+ def list_project_locations(name, filter: nil, include_unrevealed_locations: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
107
110
  command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
108
111
  command.response_representation = Google::Apis::FileV1beta1::ListLocationsResponse::Representation
109
112
  command.response_class = Google::Apis::FileV1beta1::ListLocationsResponse
110
113
  command.params['name'] = name unless name.nil?
111
114
  command.query['filter'] = filter unless filter.nil?
115
+ command.query['includeUnrevealedLocations'] = include_unrevealed_locations unless include_unrevealed_locations.nil?
112
116
  command.query['pageSize'] = page_size unless page_size.nil?
113
117
  command.query['pageToken'] = page_token unless page_token.nil?
114
118
  command.query['fields'] = fields unless fields.nil?
@@ -274,9 +278,9 @@ module Google
274
278
  # Mask of fields to update. At least one path must be supplied in this
275
279
  # field. The elements of the repeated paths field may only include these
276
280
  # fields:
277
- # "description"
278
- # "file_shares"
279
- # "labels"
281
+ # * "description"
282
+ # * "file_shares"
283
+ # * "labels"
280
284
  # @param [String] fields
281
285
  # Selector specifying which fields to include in a partial response.
282
286
  # @param [String] quota_user
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://firebase.google.com/docs/storage/security
27
27
  module FirebaserulesV1
28
28
  VERSION = 'V1'
29
- REVISION = '20191115'
29
+ REVISION = '20191209'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -72,6 +72,39 @@ module Google
72
72
  end
73
73
  end
74
74
 
75
+ # Describes where in a file an expression is found and what it was
76
+ # evaluated to over the course of its use.
77
+ class ExpressionReport
78
+ include Google::Apis::Core::Hashable
79
+
80
+ # Subexpressions
81
+ # Corresponds to the JSON property `children`
82
+ # @return [Array<Google::Apis::FirebaserulesV1::ExpressionReport>]
83
+ attr_accessor :children
84
+
85
+ # Position in the `Source` content including its line, column number, and an
86
+ # index of the `File` in the `Source` message. Used for debug purposes.
87
+ # Corresponds to the JSON property `sourcePosition`
88
+ # @return [Google::Apis::FirebaserulesV1::SourcePosition]
89
+ attr_accessor :source_position
90
+
91
+ # Values that this expression evaluated to when encountered.
92
+ # Corresponds to the JSON property `values`
93
+ # @return [Array<Google::Apis::FirebaserulesV1::ValueCount>]
94
+ attr_accessor :values
95
+
96
+ def initialize(**args)
97
+ update!(**args)
98
+ end
99
+
100
+ # Update properties of this object
101
+ def update!(**args)
102
+ @children = args[:children] if args.key?(:children)
103
+ @source_position = args[:source_position] if args.key?(:source_position)
104
+ @values = args[:values] if args.key?(:values)
105
+ end
106
+ end
107
+
75
108
  # `File` containing source content.
76
109
  class File
77
110
  include Google::Apis::Core::Hashable
@@ -525,6 +558,11 @@ module Google
525
558
  # @return [String]
526
559
  attr_accessor :expectation
527
560
 
561
+ # Specifies what should be included in the response.
562
+ # Corresponds to the JSON property `expressionReportLevel`
563
+ # @return [String]
564
+ attr_accessor :expression_report_level
565
+
528
566
  # Optional function mocks for service-defined functions. If not set, any
529
567
  # service defined function is expected to return an error, which may or may
530
568
  # not influence the test outcome.
@@ -571,6 +609,7 @@ module Google
571
609
  # Update properties of this object
572
610
  def update!(**args)
573
611
  @expectation = args[:expectation] if args.key?(:expectation)
612
+ @expression_report_level = args[:expression_report_level] if args.key?(:expression_report_level)
574
613
  @function_mocks = args[:function_mocks] if args.key?(:function_mocks)
575
614
  @path_encoding = args[:path_encoding] if args.key?(:path_encoding)
576
615
  @request = args[:request] if args.key?(:request)
@@ -598,6 +637,15 @@ module Google
598
637
  # @return [Google::Apis::FirebaserulesV1::SourcePosition]
599
638
  attr_accessor :error_position
600
639
 
640
+ # The mapping from expression in the ruleset AST to the values they were
641
+ # evaluated to. Partially-nested to mirror AST structure. Note that this
642
+ # field is actually tracking expressions and not permission statements in
643
+ # contrast to the "visited_expressions" field above. Literal expressions
644
+ # are omitted.
645
+ # Corresponds to the JSON property `expressionReports`
646
+ # @return [Array<Google::Apis::FirebaserulesV1::ExpressionReport>]
647
+ attr_accessor :expression_reports
648
+
601
649
  # The set of function calls made to service-defined methods.
602
650
  # Function calls are included in the order in which they are encountered
603
651
  # during evaluation, are provided for both mocked and unmocked functions,
@@ -633,6 +681,7 @@ module Google
633
681
  def update!(**args)
634
682
  @debug_messages = args[:debug_messages] if args.key?(:debug_messages)
635
683
  @error_position = args[:error_position] if args.key?(:error_position)
684
+ @expression_reports = args[:expression_reports] if args.key?(:expression_reports)
636
685
  @function_calls = args[:function_calls] if args.key?(:function_calls)
637
686
  @state = args[:state] if args.key?(:state)
638
687
  @visited_expressions = args[:visited_expressions] if args.key?(:visited_expressions)
@@ -743,6 +792,32 @@ module Google
743
792
  end
744
793
  end
745
794
 
795
+ # Tuple for how many times an Expression was evaluated to a particular
796
+ # ExpressionValue.
797
+ class ValueCount
798
+ include Google::Apis::Core::Hashable
799
+
800
+ # The amount of times that expression returned.
801
+ # Corresponds to the JSON property `count`
802
+ # @return [Fixnum]
803
+ attr_accessor :count
804
+
805
+ # The return value of the expression
806
+ # Corresponds to the JSON property `value`
807
+ # @return [Object]
808
+ attr_accessor :value
809
+
810
+ def initialize(**args)
811
+ update!(**args)
812
+ end
813
+
814
+ # Update properties of this object
815
+ def update!(**args)
816
+ @count = args[:count] if args.key?(:count)
817
+ @value = args[:value] if args.key?(:value)
818
+ end
819
+ end
820
+
746
821
  # Store the position and access outcome for an expression visited in rules.
747
822
  class VisitedExpression
748
823
  include Google::Apis::Core::Hashable
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class ExpressionReport
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class File
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -148,6 +154,12 @@ module Google
148
154
  include Google::Apis::Core::JsonObjectSupport
149
155
  end
150
156
 
157
+ class ValueCount
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
151
163
  class VisitedExpression
152
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
165
 
@@ -169,6 +181,18 @@ module Google
169
181
  end
170
182
  end
171
183
 
184
+ class ExpressionReport
185
+ # @private
186
+ class Representation < Google::Apis::Core::JsonRepresentation
187
+ collection :children, as: 'children', class: Google::Apis::FirebaserulesV1::ExpressionReport, decorator: Google::Apis::FirebaserulesV1::ExpressionReport::Representation
188
+
189
+ property :source_position, as: 'sourcePosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation
190
+
191
+ collection :values, as: 'values', class: Google::Apis::FirebaserulesV1::ValueCount, decorator: Google::Apis::FirebaserulesV1::ValueCount::Representation
192
+
193
+ end
194
+ end
195
+
172
196
  class File
173
197
  # @private
174
198
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -296,6 +320,7 @@ module Google
296
320
  # @private
297
321
  class Representation < Google::Apis::Core::JsonRepresentation
298
322
  property :expectation, as: 'expectation'
323
+ property :expression_report_level, as: 'expressionReportLevel'
299
324
  collection :function_mocks, as: 'functionMocks', class: Google::Apis::FirebaserulesV1::FunctionMock, decorator: Google::Apis::FirebaserulesV1::FunctionMock::Representation
300
325
 
301
326
  property :path_encoding, as: 'pathEncoding'
@@ -310,6 +335,8 @@ module Google
310
335
  collection :debug_messages, as: 'debugMessages'
311
336
  property :error_position, as: 'errorPosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation
312
337
 
338
+ collection :expression_reports, as: 'expressionReports', class: Google::Apis::FirebaserulesV1::ExpressionReport, decorator: Google::Apis::FirebaserulesV1::ExpressionReport::Representation
339
+
313
340
  collection :function_calls, as: 'functionCalls', class: Google::Apis::FirebaserulesV1::FunctionCall, decorator: Google::Apis::FirebaserulesV1::FunctionCall::Representation
314
341
 
315
342
  property :state, as: 'state'
@@ -355,6 +382,14 @@ module Google
355
382
  end
356
383
  end
357
384
 
385
+ class ValueCount
386
+ # @private
387
+ class Representation < Google::Apis::Core::JsonRepresentation
388
+ property :count, as: 'count'
389
+ property :value, as: 'value'
390
+ end
391
+ end
392
+
358
393
  class VisitedExpression
359
394
  # @private
360
395
  class Representation < Google::Apis::Core::JsonRepresentation