google-api-client 0.9.13 → 0.9.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/generated/google/apis/adsense_v1_4.rb +1 -1
  4. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  5. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  6. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -8
  7. data/generated/google/apis/appsactivity_v1.rb +1 -1
  8. data/generated/google/apis/appstate_v1.rb +1 -1
  9. data/generated/google/apis/bigquery_v2.rb +1 -1
  10. data/generated/google/apis/bigquery_v2/classes.rb +2 -6
  11. data/generated/google/apis/bigquery_v2/representations.rb +1 -1
  12. data/generated/google/apis/bigquery_v2/service.rb +4 -5
  13. data/generated/google/apis/books_v1.rb +1 -1
  14. data/generated/google/apis/books_v1/service.rb +5 -1
  15. data/generated/google/apis/calendar_v3.rb +1 -1
  16. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  17. data/generated/google/apis/cloudbuild_v1/classes.rb +32 -19
  18. data/generated/google/apis/cloudbuild_v1/representations.rb +5 -3
  19. data/generated/google/apis/cloudbuild_v1/service.rb +4 -1
  20. data/generated/google/apis/compute_beta.rb +1 -1
  21. data/generated/google/apis/compute_beta/classes.rb +226 -11
  22. data/generated/google/apis/compute_beta/representations.rb +85 -0
  23. data/generated/google/apis/compute_beta/service.rb +465 -0
  24. data/generated/google/apis/compute_v1.rb +1 -1
  25. data/generated/google/apis/compute_v1/classes.rb +654 -11
  26. data/generated/google/apis/compute_v1/representations.rb +231 -0
  27. data/generated/google/apis/compute_v1/service.rb +574 -0
  28. data/generated/google/apis/content_v2.rb +1 -1
  29. data/generated/google/apis/content_v2/classes.rb +6 -0
  30. data/generated/google/apis/content_v2/representations.rb +1 -0
  31. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  32. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  33. data/generated/google/apis/drive_v2.rb +1 -1
  34. data/generated/google/apis/drive_v3.rb +1 -1
  35. data/generated/google/apis/drive_v3/classes.rb +30 -16
  36. data/generated/google/apis/fitness_v1.rb +1 -1
  37. data/generated/google/apis/fitness_v1/classes.rb +8 -1
  38. data/generated/google/apis/fitness_v1/representations.rb +1 -0
  39. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  40. data/generated/google/apis/games_management_v1management.rb +1 -1
  41. data/generated/google/apis/games_v1.rb +1 -1
  42. data/generated/google/apis/genomics_v1.rb +1 -1
  43. data/generated/google/apis/genomics_v1/classes.rb +7 -7
  44. data/generated/google/apis/genomics_v1/service.rb +1 -1
  45. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  46. data/generated/google/apis/identitytoolkit_v3/classes.rb +63 -4
  47. data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -0
  48. data/generated/google/apis/language_v1beta1.rb +1 -1
  49. data/generated/google/apis/monitoring_v3.rb +2 -2
  50. data/generated/google/apis/monitoring_v3/classes.rb +14 -10
  51. data/generated/google/apis/monitoring_v3/service.rb +1 -1
  52. data/generated/google/apis/oauth2_v2.rb +1 -1
  53. data/generated/google/apis/plus_domains_v1.rb +1 -1
  54. data/generated/google/apis/plus_v1.rb +1 -1
  55. data/generated/google/apis/sheets_v4.rb +1 -1
  56. data/generated/google/apis/speech_v1beta1.rb +1 -1
  57. data/generated/google/apis/speech_v1beta1/classes.rb +9 -0
  58. data/generated/google/apis/speech_v1beta1/representations.rb +1 -0
  59. data/generated/google/apis/speech_v1beta1/service.rb +2 -2
  60. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  61. data/generated/google/apis/storage_v1.rb +1 -1
  62. data/generated/google/apis/storage_v1/classes.rb +0 -34
  63. data/generated/google/apis/storage_v1/representations.rb +0 -16
  64. data/generated/google/apis/storage_v1/service.rb +3 -18
  65. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  66. data/lib/google/apis/core/api_command.rb +4 -0
  67. data/lib/google/apis/core/download.rb +7 -2
  68. data/lib/google/apis/core/http_command.rb +5 -1
  69. data/lib/google/apis/version.rb +1 -1
  70. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd052e976a82cbdc9862642efef6c2b95755bdde
4
- data.tar.gz: 1366274fbbf964ad84e08f81f5ad217b3d182473
3
+ metadata.gz: c86b6760edd178aec1fd5ec8d250d038635e0a20
4
+ data.tar.gz: 9e6b6fcf21f5afd1f24019c6322057eef8c49dfd
5
5
  SHA512:
6
- metadata.gz: 67daa592a6451421f833f3a4510279eefa4e6dd1437bbbf16fd4c1090ae570bc3c17dc9fd1f97ae2b165356397cba5f8388a28272cd2fa62d88c77319ee7d7d7
7
- data.tar.gz: dc344ae552ebb22eecc33a4f6227f946af7128f3fce942b581af1e33e7b760a638d6a74245f1bf4510a63f4ad952f38a0752583bd5adb31fad89cd56490467da
6
+ metadata.gz: 8c1ebc9e366607bbac64c1950d4c8d140db48e7be1d2c17ee794b141b37036130f0c53a68af4c67cdf06544141939bc74f4b939da8bd5e90803e11a64bfff14d
7
+ data.tar.gz: cff8c9fd6c2243abe130d7df40ae51779da233ab1040d11aa2e4fb7a8e062fc31dc15b538c28b9a630c725f9151e7ad1585507d088753044caae21144978e944
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.9.14
2
+ * Fix error handling with downloads, no longer fails silently
3
+ * Prevent form-encoding query parameters for APIs that don't expect it
4
+ * Regenerate APIs
5
+
1
6
  # 0.9.13
2
7
  * Fix fetch_all to work correctly with the genomics API
3
8
  * Add speech & language APIs, regenerate APIs
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/adsense/management/
26
26
  module AdsenseV1_4
27
27
  VERSION = 'V1_4'
28
- REVISION = '20160830'
28
+ REVISION = '20160910'
29
29
 
30
30
  # View and manage your AdSense data
31
31
  AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/adsense/host/
27
27
  module AdsensehostV4_1
28
28
  VERSION = 'V4_1'
29
- REVISION = '20160830'
29
+ REVISION = '20160910'
30
30
 
31
31
  # View and manage your AdSense host data and associated accounts
32
32
  AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/android/work/play/emm-api
26
26
  module AndroidenterpriseV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160825'
28
+ REVISION = '20160913'
29
29
 
30
30
  # Manage corporate Android devices
31
31
  AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
@@ -442,14 +442,14 @@ module Google
442
442
  # Identifies the extent to which the device is controlled by an Android for Work
443
443
  # EMM in various deployment configurations.
444
444
  # Possible values include:
445
- # - "managedDevice"—A device that has the EMM's device policy controller (DPC)
446
- # as the device owner.
447
- # - "managedProfile"—A device that has a work profile managed by the DPC (DPC is
448
- # profile owner) in addition to a separate, personal profile that is unavailable
449
- # to the DPC.
450
- # - "containerApp"—A device running the Android for Work App. The Android for
451
- # Work App is managed by the DPC.
452
- # - "unmanagedProfile"—A device that has been allowed (by the domain's admin,
445
+ # - "managedDevice", a device that has the EMM's device policy controller (DPC)
446
+ # as the device owner,
447
+ # - "managedProfile", a device that has a work profile managed by the DPC (DPC
448
+ # is profile owner) in addition to a separate, personal profile that is
449
+ # unavailable to the DPC,
450
+ # - "containerApp", a device running the Android for Work App. The Android for
451
+ # Work App is managed by the DPC,
452
+ # - "unmanagedProfile", a device that has been allowed (by the domain's admin,
453
453
  # using the Admin Console to enable the privilege) to use Android for Work apps
454
454
  # or Google Apps for Work, but the profile is itself not owned by a DPC.
455
455
  # Corresponds to the JSON property `managementType`
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/google-apps/activity/
26
26
  module AppsactivityV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160805'
28
+ REVISION = '20160830'
29
29
 
30
30
  # View the activity history of your Google Apps
31
31
  AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/games/services/web/api/states
26
26
  module AppstateV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160824'
28
+ REVISION = '20160908'
29
29
 
30
30
  # View and manage your data for this application
31
31
  AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/bigquery/
26
26
  module BigqueryV2
27
27
  VERSION = 'V2'
28
- REVISION = '20160822'
28
+ REVISION = '20160910'
29
29
 
30
30
  # View and manage your data in Google BigQuery
31
31
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -336,11 +336,7 @@ module Google
336
336
 
337
337
  # [Experimental] The labels associated with this dataset. You can use these to
338
338
  # organize and group your datasets. You can set this property when inserting or
339
- # updating a dataset. Label keys and values can be no longer than 63 characters,
340
- # can only contain letters, numeric characters, underscores and dashes.
341
- # International characters are allowed. Label values are optional. Label keys
342
- # must start with a letter and must be unique within a dataset. Both keys and
343
- # values are additionally constrained to be <= 128 bytes in size.
339
+ # updating a dataset. See Labeling Datasets for more information.
344
340
  # Corresponds to the JSON property `labels`
345
341
  # @return [Hash<String,String>]
346
342
  attr_accessor :labels
@@ -2137,7 +2133,7 @@ module Google
2137
2133
 
2138
2134
  # [Optional] The struct field values, in order of the struct type's declaration.
2139
2135
  # Corresponds to the JSON property `structValues`
2140
- # @return [Array<Google::Apis::BigqueryV2::QueryParameterValue>]
2136
+ # @return [Hash<String,Google::Apis::BigqueryV2::QueryParameterValue>]
2141
2137
  attr_accessor :struct_values
2142
2138
 
2143
2139
  # [Optional] The value of this value, if a simple scalar type.
@@ -853,7 +853,7 @@ module Google
853
853
  class Representation < Google::Apis::Core::JsonRepresentation
854
854
  collection :array_values, as: 'arrayValues', class: Google::Apis::BigqueryV2::QueryParameterValue, decorator: Google::Apis::BigqueryV2::QueryParameterValue::Representation
855
855
 
856
- collection :struct_values, as: 'structValues', class: Google::Apis::BigqueryV2::QueryParameterValue, decorator: Google::Apis::BigqueryV2::QueryParameterValue::Representation
856
+ hash :struct_values, as: 'structValues', class: Google::Apis::BigqueryV2::QueryParameterValue, decorator: Google::Apis::BigqueryV2::QueryParameterValue::Representation
857
857
 
858
858
  property :value, as: 'value'
859
859
  end
@@ -179,10 +179,9 @@ module Google
179
179
  # Whether to list all datasets, including hidden ones
180
180
  # @param [String] filter
181
181
  # An expression for filtering the results of the request by label. The syntax is
182
- # "labels.[:]". Multiple filters can be ANDed together by connecting with a
183
- # space. Example: "labels.department:receiving labels.active". See https://cloud.
184
- # google.com/bigquery/docs/labeling-datasets#filtering_datasets_using_labels for
185
- # details.
182
+ # "labels.<name>[:<value>]". Multiple filters can be ANDed together by
183
+ # connecting with a space. Example: "labels.department:receiving labels.active".
184
+ # See Filtering datasets using labels for details.
186
185
  # @param [Fixnum] max_results
187
186
  # The maximum number of results to return
188
187
  # @param [String] page_token
@@ -339,7 +338,7 @@ module Google
339
338
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
340
339
  # @raise [Google::Apis::AuthorizationError] Authorization is required
341
340
  def cancel_job(project_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
342
- command = make_simple_command(:post, 'project/{projectId}/jobs/{jobId}/cancel', options)
341
+ command = make_simple_command(:post, 'projects/{projectId}/jobs/{jobId}/cancel', options)
343
342
  command.response_representation = Google::Apis::BigqueryV2::CancelJobResponse::Representation
344
343
  command.response_class = Google::Apis::BigqueryV2::CancelJobResponse
345
344
  command.params['projectId'] = project_id unless project_id.nil?
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/books/docs/v1/getting_started
26
26
  module BooksV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160629'
28
+ REVISION = '20160823'
29
29
 
30
30
  # Manage your books
31
31
  AUTH_BOOKS = 'https://www.googleapis.com/auth/books'
@@ -1979,6 +1979,9 @@ module Google
1979
1979
  # Restrict results to books with this language code.
1980
1980
  # @param [String] library_restrict
1981
1981
  # Restrict search to this user's library.
1982
+ # @param [String] max_allowed_maturity_rating
1983
+ # The maximum allowed maturity rating of returned recommendations. Books with a
1984
+ # higher maturity rating are filtered out.
1982
1985
  # @param [Fixnum] max_results
1983
1986
  # Maximum number of results to return.
1984
1987
  # @param [String] order_by
@@ -2016,7 +2019,7 @@ module Google
2016
2019
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2017
2020
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2018
2021
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2019
- def list_volumes(q, download: nil, filter: nil, lang_restrict: nil, library_restrict: nil, max_results: nil, order_by: nil, partner: nil, print_type: nil, projection: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2022
+ def list_volumes(q, download: nil, filter: nil, lang_restrict: nil, library_restrict: nil, max_allowed_maturity_rating: nil, max_results: nil, order_by: nil, partner: nil, print_type: nil, projection: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2020
2023
  command = make_simple_command(:get, 'volumes', options)
2021
2024
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
2022
2025
  command.response_class = Google::Apis::BooksV1::Volumes
@@ -2024,6 +2027,7 @@ module Google
2024
2027
  command.query['filter'] = filter unless filter.nil?
2025
2028
  command.query['langRestrict'] = lang_restrict unless lang_restrict.nil?
2026
2029
  command.query['libraryRestrict'] = library_restrict unless library_restrict.nil?
2030
+ command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil?
2027
2031
  command.query['maxResults'] = max_results unless max_results.nil?
2028
2032
  command.query['orderBy'] = order_by unless order_by.nil?
2029
2033
  command.query['partner'] = partner unless partner.nil?
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/google-apps/calendar/firstapp
26
26
  module CalendarV3
27
27
  VERSION = 'V3'
28
- REVISION = '20160829'
28
+ REVISION = '20160913'
29
29
 
30
30
  # Manage your calendars
31
31
  AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/container-builder/docs/
26
26
  module CloudbuildV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160831'
28
+ REVISION = '20160919'
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'
@@ -287,11 +287,16 @@ module Google
287
287
  class BuildTrigger
288
288
  include Google::Apis::Core::Hashable
289
289
 
290
- # Path, from the source root, to a file whose contents is used for the
291
- # template.
292
- # Corresponds to the JSON property `filename`
290
+ # Unique identifier of the trigger.
291
+ # @OutputOnly
292
+ # Corresponds to the JSON property `id`
293
293
  # @return [String]
294
- attr_accessor :filename
294
+ attr_accessor :id
295
+
296
+ # Human-readable description of this trigger.
297
+ # Corresponds to the JSON property `description`
298
+ # @return [String]
299
+ attr_accessor :description
295
300
 
296
301
  # RepoSource describes the location of the source in a Google Cloud Source
297
302
  # Repository.
@@ -299,13 +304,11 @@ module Google
299
304
  # @return [Google::Apis::CloudbuildV1::RepoSource]
300
305
  attr_accessor :trigger_template
301
306
 
302
- # A build resource in the Container Builder API.
303
- # At a high level, a Build describes where to find source code, how to build
304
- # it (for example, the builder image to run on the source), and what tag to
305
- # apply to the built image when it is pushed to Google Container Registry.
306
- # Corresponds to the JSON property `build`
307
- # @return [Google::Apis::CloudbuildV1::Build]
308
- attr_accessor :build
307
+ # If true, the trigger will never result in a build.
308
+ # Corresponds to the JSON property `disabled`
309
+ # @return [Boolean]
310
+ attr_accessor :disabled
311
+ alias_method :disabled?, :disabled
309
312
 
310
313
  # Time when the trigger was created.
311
314
  # @OutputOnly
@@ -313,11 +316,19 @@ module Google
313
316
  # @return [String]
314
317
  attr_accessor :create_time
315
318
 
316
- # Unique identifier of the trigger.
317
- # @OutputOnly
318
- # Corresponds to the JSON property `id`
319
+ # Path, from the source root, to a file whose contents is used for the
320
+ # template.
321
+ # Corresponds to the JSON property `filename`
319
322
  # @return [String]
320
- attr_accessor :id
323
+ attr_accessor :filename
324
+
325
+ # A build resource in the Container Builder API.
326
+ # At a high level, a Build describes where to find source code, how to build
327
+ # it (for example, the builder image to run on the source), and what tag to
328
+ # apply to the built image when it is pushed to Google Container Registry.
329
+ # Corresponds to the JSON property `build`
330
+ # @return [Google::Apis::CloudbuildV1::Build]
331
+ attr_accessor :build
321
332
 
322
333
  def initialize(**args)
323
334
  update!(**args)
@@ -325,11 +336,13 @@ module Google
325
336
 
326
337
  # Update properties of this object
327
338
  def update!(**args)
328
- @filename = args[:filename] if args.key?(:filename)
339
+ @id = args[:id] if args.key?(:id)
340
+ @description = args[:description] if args.key?(:description)
329
341
  @trigger_template = args[:trigger_template] if args.key?(:trigger_template)
330
- @build = args[:build] if args.key?(:build)
342
+ @disabled = args[:disabled] if args.key?(:disabled)
331
343
  @create_time = args[:create_time] if args.key?(:create_time)
332
- @id = args[:id] if args.key?(:id)
344
+ @filename = args[:filename] if args.key?(:filename)
345
+ @build = args[:build] if args.key?(:build)
333
346
  end
334
347
  end
335
348
 
@@ -785,7 +798,7 @@ module Google
785
798
  # @return [Array<String>]
786
799
  attr_accessor :source_provenance_hash
787
800
 
788
- # Options for a verifiable build with details uploaded to the Analysis API.
801
+ # Requested verifiability options.
789
802
  # Corresponds to the JSON property `requestedVerifyOption`
790
803
  # @return [String]
791
804
  attr_accessor :requested_verify_option
@@ -196,13 +196,15 @@ module Google
196
196
  class BuildTrigger
197
197
  # @private
198
198
  class Representation < Google::Apis::Core::JsonRepresentation
199
- property :filename, as: 'filename'
199
+ property :id, as: 'id'
200
+ property :description, as: 'description'
200
201
  property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
201
202
 
203
+ property :disabled, as: 'disabled'
204
+ property :create_time, as: 'createTime'
205
+ property :filename, as: 'filename'
202
206
  property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
203
207
 
204
- property :create_time, as: 'createTime'
205
- property :id, as: 'id'
206
208
  end
207
209
  end
208
210
 
@@ -294,6 +294,8 @@ module Google
294
294
  # ID of the project.
295
295
  # @param [Fixnum] page_size
296
296
  # Number of results to return in the list.
297
+ # @param [String] filter
298
+ # The raw filter text to constrain the results.
297
299
  # @param [String] page_token
298
300
  # Token to provide to skip to a particular spot in the list.
299
301
  # @param [String] quota_user
@@ -313,12 +315,13 @@ module Google
313
315
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
314
316
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
315
317
  # @raise [Google::Apis::AuthorizationError] Authorization is required
316
- def list_project_builds(project_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
318
+ def list_project_builds(project_id, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
317
319
  command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
318
320
  command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
319
321
  command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
320
322
  command.params['projectId'] = project_id unless project_id.nil?
321
323
  command.query['pageSize'] = page_size unless page_size.nil?
324
+ command.query['filter'] = filter unless filter.nil?
322
325
  command.query['pageToken'] = page_token unless page_token.nil?
323
326
  command.query['quotaUser'] = quota_user unless quota_user.nil?
324
327
  command.query['fields'] = fields unless fields.nil?
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/compute/docs/reference/latest/
26
26
  module ComputeBeta
27
27
  VERSION = 'Beta'
28
- REVISION = '20160817'
28
+ REVISION = '20160908'
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'
@@ -996,18 +996,19 @@ module Google
996
996
  class Backend
997
997
  include Google::Apis::Core::Hashable
998
998
 
999
- # Specifies the balancing mode for this backend. For global HTTP(S) load
1000
- # balancing, the default is UTILIZATION. Valid values are UTILIZATION and RATE.
999
+ # Specifies the balancing mode for this backend. For global HTTP(S) or TCP/SSL
1000
+ # load balancing, the default is UTILIZATION. Valid values are UTILIZATION, RATE
1001
+ # (for HTTP(S)) and CONNECTION (for TCP/SSL).
1001
1002
  # This cannot be used for internal load balancing.
1002
1003
  # Corresponds to the JSON property `balancingMode`
1003
1004
  # @return [String]
1004
1005
  attr_accessor :balancing_mode
1005
1006
 
1006
- # A multiplier applied to the group's maximum servicing capacity (either
1007
- # UTILIZATION or RATE). Default value is 1, which means the group will serve up
1008
- # to 100% of its configured CPU or RPS (depending on balancingMode). A setting
1009
- # of 0 means the group is completely drained, offering 0% of its available CPU
1010
- # or RPS. Valid range is [0.0,1.0].
1007
+ # A multiplier applied to the group's maximum servicing capacity (based on
1008
+ # UTILIZATION, RATE or CONNECTION). Default value is 1, which means the group
1009
+ # will serve up to 100% of its configured capacity (depending on balancingMode).
1010
+ # A setting of 0 means the group is completely drained, offering 0% of its
1011
+ # available Capacity. Valid range is [0.0,1.0].
1011
1012
  # This cannot be used for internal load balancing.
1012
1013
  # Corresponds to the JSON property `capacityScaler`
1013
1014
  # @return [Float]
@@ -1161,6 +1162,11 @@ module Google
1161
1162
  # @return [String]
1162
1163
  attr_accessor :kind
1163
1164
 
1165
+ #
1166
+ # Corresponds to the JSON property `loadBalancingScheme`
1167
+ # @return [String]
1168
+ attr_accessor :load_balancing_scheme
1169
+
1164
1170
  # Name of the resource. Provided by the client when the resource is created. The
1165
1171
  # name must be 1-63 characters long, and comply with RFC1035. Specifically, the
1166
1172
  # name must be 1-63 characters long and match the regular expression [a-z]([-a-
@@ -1237,6 +1243,7 @@ module Google
1237
1243
  @health_checks = args[:health_checks] if args.key?(:health_checks)
1238
1244
  @id = args[:id] if args.key?(:id)
1239
1245
  @kind = args[:kind] if args.key?(:kind)
1246
+ @load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme)
1240
1247
  @name = args[:name] if args.key?(:name)
1241
1248
  @port = args[:port] if args.key?(:port)
1242
1249
  @port_name = args[:port_name] if args.key?(:port_name)
@@ -1248,6 +1255,49 @@ module Google
1248
1255
  end
1249
1256
  end
1250
1257
 
1258
+ # Contains a list of BackendServicesScopedList.
1259
+ class BackendServiceAggregatedList
1260
+ include Google::Apis::Core::Hashable
1261
+
1262
+ # [Output Only] Unique identifier for the resource; defined by the server.
1263
+ # Corresponds to the JSON property `id`
1264
+ # @return [String]
1265
+ attr_accessor :id
1266
+
1267
+ # A map of scoped BackendService lists.
1268
+ # Corresponds to the JSON property `items`
1269
+ # @return [Hash<String,Google::Apis::ComputeBeta::BackendServicesScopedList>]
1270
+ attr_accessor :items
1271
+
1272
+ # Type of resource.
1273
+ # Corresponds to the JSON property `kind`
1274
+ # @return [String]
1275
+ attr_accessor :kind
1276
+
1277
+ # [Output Only] A token used to continue a truncated list request.
1278
+ # Corresponds to the JSON property `nextPageToken`
1279
+ # @return [String]
1280
+ attr_accessor :next_page_token
1281
+
1282
+ # [Output Only] Server-defined URL for this resource.
1283
+ # Corresponds to the JSON property `selfLink`
1284
+ # @return [String]
1285
+ attr_accessor :self_link
1286
+
1287
+ def initialize(**args)
1288
+ update!(**args)
1289
+ end
1290
+
1291
+ # Update properties of this object
1292
+ def update!(**args)
1293
+ @id = args[:id] if args.key?(:id)
1294
+ @items = args[:items] if args.key?(:items)
1295
+ @kind = args[:kind] if args.key?(:kind)
1296
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1297
+ @self_link = args[:self_link] if args.key?(:self_link)
1298
+ end
1299
+ end
1300
+
1251
1301
  #
1252
1302
  class BackendServiceGroupHealth
1253
1303
  include Google::Apis::Core::Hashable
@@ -1318,6 +1368,97 @@ module Google
1318
1368
  end
1319
1369
  end
1320
1370
 
1371
+ #
1372
+ class BackendServicesScopedList
1373
+ include Google::Apis::Core::Hashable
1374
+
1375
+ # List of BackendServices contained in this scope.
1376
+ # Corresponds to the JSON property `backendServices`
1377
+ # @return [Array<Google::Apis::ComputeBeta::BackendService>]
1378
+ attr_accessor :backend_services
1379
+
1380
+ # Informational warning which replaces the list of backend services when the
1381
+ # list is empty.
1382
+ # Corresponds to the JSON property `warning`
1383
+ # @return [Google::Apis::ComputeBeta::BackendServicesScopedList::Warning]
1384
+ attr_accessor :warning
1385
+
1386
+ def initialize(**args)
1387
+ update!(**args)
1388
+ end
1389
+
1390
+ # Update properties of this object
1391
+ def update!(**args)
1392
+ @backend_services = args[:backend_services] if args.key?(:backend_services)
1393
+ @warning = args[:warning] if args.key?(:warning)
1394
+ end
1395
+
1396
+ # Informational warning which replaces the list of backend services when the
1397
+ # list is empty.
1398
+ class Warning
1399
+ include Google::Apis::Core::Hashable
1400
+
1401
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
1402
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
1403
+ # Corresponds to the JSON property `code`
1404
+ # @return [String]
1405
+ attr_accessor :code
1406
+
1407
+ # [Output Only] Metadata about this warning in key: value format. For example:
1408
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
1409
+ # Corresponds to the JSON property `data`
1410
+ # @return [Array<Google::Apis::ComputeBeta::BackendServicesScopedList::Warning::Datum>]
1411
+ attr_accessor :data
1412
+
1413
+ # [Output Only] A human-readable description of the warning code.
1414
+ # Corresponds to the JSON property `message`
1415
+ # @return [String]
1416
+ attr_accessor :message
1417
+
1418
+ def initialize(**args)
1419
+ update!(**args)
1420
+ end
1421
+
1422
+ # Update properties of this object
1423
+ def update!(**args)
1424
+ @code = args[:code] if args.key?(:code)
1425
+ @data = args[:data] if args.key?(:data)
1426
+ @message = args[:message] if args.key?(:message)
1427
+ end
1428
+
1429
+ #
1430
+ class Datum
1431
+ include Google::Apis::Core::Hashable
1432
+
1433
+ # [Output Only] A key that provides more detail on the warning being returned.
1434
+ # For example, for warnings where there are no results in a list request for a
1435
+ # particular zone, this key might be scope and the key value might be the zone
1436
+ # name. Other examples might be a key indicating a deprecated resource and a
1437
+ # suggested replacement, or a warning about invalid network settings (for
1438
+ # example, if an instance attempts to perform IP forwarding but is not enabled
1439
+ # for IP forwarding).
1440
+ # Corresponds to the JSON property `key`
1441
+ # @return [String]
1442
+ attr_accessor :key
1443
+
1444
+ # [Output Only] A warning data value corresponding to the key.
1445
+ # Corresponds to the JSON property `value`
1446
+ # @return [String]
1447
+ attr_accessor :value
1448
+
1449
+ def initialize(**args)
1450
+ update!(**args)
1451
+ end
1452
+
1453
+ # Update properties of this object
1454
+ def update!(**args)
1455
+ @key = args[:key] if args.key?(:key)
1456
+ @value = args[:value] if args.key?(:value)
1457
+ end
1458
+ end
1459
+ end
1460
+ end
1461
+
1321
1462
  #
1322
1463
  class CacheInvalidationRule
1323
1464
  include Google::Apis::Core::Hashable
@@ -2408,6 +2549,13 @@ module Google
2408
2549
  # @return [String]
2409
2550
  attr_accessor :ip_protocol
2410
2551
 
2552
+ # This field is not used for external load balancing.
2553
+ # For internal load balancing, this field identifies the BackendService resource
2554
+ # to receive the matched traffic.
2555
+ # Corresponds to the JSON property `backendService`
2556
+ # @return [String]
2557
+ attr_accessor :backend_service
2558
+
2411
2559
  # [Output Only] Creation timestamp in RFC3339 text format.
2412
2560
  # Corresponds to the JSON property `creationTimestamp`
2413
2561
  # @return [String]
@@ -2431,6 +2579,15 @@ module Google
2431
2579
  # @return [String]
2432
2580
  attr_accessor :kind
2433
2581
 
2582
+ # This signifies what the ForwardingRule will be used for and can only take the
2583
+ # following values: INTERNAL EXTERNAL The value of INTERNAL means that this will
2584
+ # be used for Internal Network Load Balancing (TCP, UDP). The value of EXTERNAL
2585
+ # means that this will be used for External Load Balancing (HTTP(S) LB, External
2586
+ # TCP/UDP LB, SSL Proxy)
2587
+ # Corresponds to the JSON property `loadBalancingScheme`
2588
+ # @return [String]
2589
+ attr_accessor :load_balancing_scheme
2590
+
2434
2591
  # Name of the resource; provided by the client when the resource is created. The
2435
2592
  # name must be 1-63 characters long, and comply with RFC1035. Specifically, the
2436
2593
  # name must be 1-63 characters long and match the regular expression [a-z]([-a-
@@ -2441,6 +2598,14 @@ module Google
2441
2598
  # @return [String]
2442
2599
  attr_accessor :name
2443
2600
 
2601
+ # This field is not used for external load balancing.
2602
+ # For internal load balancing, this field identifies the network that the load
2603
+ # balanced IP should belong to for this Forwarding Rule. If this field is not
2604
+ # specified, the default network will be used.
2605
+ # Corresponds to the JSON property `network`
2606
+ # @return [String]
2607
+ attr_accessor :network
2608
+
2444
2609
  # Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed
2445
2610
  # to ports in the specified range will be forwarded to target. Forwarding rules
2446
2611
  # with the same [IPAddress, IPProtocol] pair must have disjoint port ranges.
@@ -2449,6 +2614,16 @@ module Google
2449
2614
  # @return [String]
2450
2615
  attr_accessor :port_range
2451
2616
 
2617
+ # This field is not used for external load balancing.
2618
+ # When the load balancing scheme is INTERNAL, a single port or a comma separated
2619
+ # list of ports can be configured. Only packets addressed to these ports will be
2620
+ # forwarded to the backends configured with this forwarding rule. If the port
2621
+ # list is not provided then all ports are allowed to pass through.
2622
+ # You may specify a maximum of up to 5 ports.
2623
+ # Corresponds to the JSON property `ports`
2624
+ # @return [Array<String>]
2625
+ attr_accessor :ports
2626
+
2452
2627
  # [Output Only] URL of the region where the regional forwarding rule resides.
2453
2628
  # This field is not applicable to global forwarding rules.
2454
2629
  # Corresponds to the JSON property `region`
@@ -2460,6 +2635,16 @@ module Google
2460
2635
  # @return [String]
2461
2636
  attr_accessor :self_link
2462
2637
 
2638
+ # This field is not used for external load balancing.
2639
+ # For internal load balancing, this field identifies the subnetwork that the
2640
+ # load balanced IP should belong to for this Forwarding Rule.
2641
+ # If the network specified is in auto subnet mode, this field is optional.
2642
+ # However, if the network is in custom subnet mode, a subnetwork must be
2643
+ # specified.
2644
+ # Corresponds to the JSON property `subnetwork`
2645
+ # @return [String]
2646
+ attr_accessor :subnetwork
2647
+
2463
2648
  # The URL of the target resource to receive the matched traffic. For regional
2464
2649
  # forwarding rules, this target must live in the same region as the forwarding
2465
2650
  # rule. For global forwarding rules, this target must be a global
@@ -2479,14 +2664,19 @@ module Google
2479
2664
  def update!(**args)
2480
2665
  @ip_address = args[:ip_address] if args.key?(:ip_address)
2481
2666
  @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
2667
+ @backend_service = args[:backend_service] if args.key?(:backend_service)
2482
2668
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
2483
2669
  @description = args[:description] if args.key?(:description)
2484
2670
  @id = args[:id] if args.key?(:id)
2485
2671
  @kind = args[:kind] if args.key?(:kind)
2672
+ @load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme)
2486
2673
  @name = args[:name] if args.key?(:name)
2674
+ @network = args[:network] if args.key?(:network)
2487
2675
  @port_range = args[:port_range] if args.key?(:port_range)
2676
+ @ports = args[:ports] if args.key?(:ports)
2488
2677
  @region = args[:region] if args.key?(:region)
2489
2678
  @self_link = args[:self_link] if args.key?(:self_link)
2679
+ @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
2490
2680
  @target = args[:target] if args.key?(:target)
2491
2681
  end
2492
2682
  end
@@ -2713,6 +2903,25 @@ module Google
2713
2903
  end
2714
2904
  end
2715
2905
 
2906
+ # Features supported by the guest os.
2907
+ class GuestOsFeature
2908
+ include Google::Apis::Core::Hashable
2909
+
2910
+ # The type of supported feature..
2911
+ # Corresponds to the JSON property `type`
2912
+ # @return [String]
2913
+ attr_accessor :type
2914
+
2915
+ def initialize(**args)
2916
+ update!(**args)
2917
+ end
2918
+
2919
+ # Update properties of this object
2920
+ def update!(**args)
2921
+ @type = args[:type] if args.key?(:type)
2922
+ end
2923
+ end
2924
+
2716
2925
  #
2717
2926
  class Http2HealthCheck
2718
2927
  include Google::Apis::Core::Hashable
@@ -3438,7 +3647,7 @@ module Google
3438
3647
  # @return [String]
3439
3648
  attr_accessor :archive_size_bytes
3440
3649
 
3441
- # [Output Only] Creation timestamp in RFC3339 text format.
3650
+ # Creation timestamp in RFC3339 text format.
3442
3651
  # Corresponds to the JSON property `creationTimestamp`
3443
3652
  # @return [String]
3444
3653
  attr_accessor :creation_timestamp
@@ -3467,6 +3676,11 @@ module Google
3467
3676
  # @return [String]
3468
3677
  attr_accessor :family
3469
3678
 
3679
+ # Features of the guest os, valid for bootable images only.
3680
+ # Corresponds to the JSON property `guestOsFeatures`
3681
+ # @return [Array<Google::Apis::ComputeBeta::GuestOsFeature>]
3682
+ attr_accessor :guest_os_features
3683
+
3470
3684
  # [Output Only] The unique identifier for the resource. This identifier is
3471
3685
  # defined by the server.
3472
3686
  # Corresponds to the JSON property `id`
@@ -3574,6 +3788,7 @@ module Google
3574
3788
  @description = args[:description] if args.key?(:description)
3575
3789
  @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
3576
3790
  @family = args[:family] if args.key?(:family)
3791
+ @guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
3577
3792
  @id = args[:id] if args.key?(:id)
3578
3793
  @image_encryption_key = args[:image_encryption_key] if args.key?(:image_encryption_key)
3579
3794
  @kind = args[:kind] if args.key?(:kind)
@@ -3794,7 +4009,7 @@ module Google
3794
4009
  attr_accessor :service_accounts
3795
4010
 
3796
4011
  # [Output Only] The status of the instance. One of the following values:
3797
- # PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDED, SUSPENDING, and
4012
+ # PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and
3798
4013
  # TERMINATED.
3799
4014
  # Corresponds to the JSON property `status`
3800
4015
  # @return [String]
@@ -3916,8 +4131,8 @@ module Google
3916
4131
  # @return [String]
3917
4132
  attr_accessor :fingerprint
3918
4133
 
3919
- # [Output Only] A unique identifier for this resource type. The server generates
3920
- # this identifier.
4134
+ # [Output Only] A unique identifier for this instance group. The server
4135
+ # generates this identifier.
3921
4136
  # Corresponds to the JSON property `id`
3922
4137
  # @return [String]
3923
4138
  attr_accessor :id