google-api-client 0.17.3 → 0.17.4

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 (72) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  4. data/generated/google/apis/androidenterprise_v1/classes.rb +77 -2
  5. data/generated/google/apis/androidenterprise_v1/representations.rb +31 -0
  6. data/generated/google/apis/androidenterprise_v1/service.rb +100 -0
  7. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  8. data/generated/google/apis/androidmanagement_v1/classes.rb +300 -0
  9. data/generated/google/apis/androidmanagement_v1/representations.rb +76 -0
  10. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  11. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +5 -2
  12. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +4 -8
  13. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  14. data/generated/google/apis/cloudkms_v1.rb +1 -1
  15. data/generated/google/apis/cloudkms_v1/classes.rb +1 -1
  16. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  17. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +20 -10
  18. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -1
  19. data/generated/google/apis/cloudtasks_v2beta2/service.rb +11 -6
  20. data/generated/google/apis/compute_alpha.rb +1 -1
  21. data/generated/google/apis/compute_alpha/classes.rb +782 -111
  22. data/generated/google/apis/compute_alpha/representations.rb +282 -2
  23. data/generated/google/apis/compute_alpha/service.rb +611 -6
  24. data/generated/google/apis/compute_beta.rb +1 -1
  25. data/generated/google/apis/compute_beta/classes.rb +342 -43
  26. data/generated/google/apis/compute_beta/representations.rb +109 -0
  27. data/generated/google/apis/compute_beta/service.rb +225 -6
  28. data/generated/google/apis/compute_v1.rb +1 -1
  29. data/generated/google/apis/compute_v1/classes.rb +48 -43
  30. data/generated/google/apis/compute_v1/service.rb +6 -6
  31. data/generated/google/apis/container_v1beta1/classes.rb +17 -0
  32. data/generated/google/apis/container_v1beta1/representations.rb +1 -0
  33. data/generated/google/apis/content_v2.rb +1 -1
  34. data/generated/google/apis/content_v2/classes.rb +131 -9
  35. data/generated/google/apis/content_v2/representations.rb +38 -0
  36. data/generated/google/apis/content_v2/service.rb +35 -23
  37. data/generated/google/apis/content_v2sandbox.rb +1 -1
  38. data/generated/google/apis/content_v2sandbox/classes.rb +99 -9
  39. data/generated/google/apis/content_v2sandbox/representations.rb +22 -0
  40. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  41. data/generated/google/apis/dialogflow_v2beta1/service.rb +11 -11
  42. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  43. data/generated/google/apis/firestore_v1beta1/classes.rb +1 -1
  44. data/generated/google/apis/fusiontables_v2.rb +1 -1
  45. data/generated/google/apis/fusiontables_v2/service.rb +37 -0
  46. data/generated/google/apis/ml_v1.rb +1 -1
  47. data/generated/google/apis/ml_v1/classes.rb +26 -177
  48. data/generated/google/apis/ml_v1/representations.rb +3 -0
  49. data/generated/google/apis/ml_v1/service.rb +3 -1
  50. data/generated/google/apis/monitoring_v3.rb +1 -1
  51. data/generated/google/apis/monitoring_v3/classes.rb +10 -1
  52. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  53. data/generated/google/apis/poly_v1.rb +32 -0
  54. data/generated/google/apis/poly_v1/classes.rb +426 -0
  55. data/generated/google/apis/poly_v1/representations.rb +194 -0
  56. data/generated/google/apis/poly_v1/service.rb +273 -0
  57. data/generated/google/apis/pubsub_v1.rb +1 -1
  58. data/generated/google/apis/pubsub_v1/classes.rb +243 -0
  59. data/generated/google/apis/pubsub_v1/representations.rb +115 -0
  60. data/generated/google/apis/pubsub_v1/service.rb +269 -1
  61. data/generated/google/apis/speech_v1.rb +4 -1
  62. data/generated/google/apis/speech_v1beta1.rb +4 -1
  63. data/generated/google/apis/testing_v1.rb +1 -1
  64. data/generated/google/apis/testing_v1/classes.rb +1 -1
  65. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  66. data/generated/google/apis/youtube_v3.rb +1 -1
  67. data/generated/google/apis/youtube_v3/classes.rb +13 -0
  68. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  69. data/lib/google/apis/core/base_service.rb +4 -1
  70. data/lib/google/apis/options.rb +5 -1
  71. data/lib/google/apis/version.rb +1 -1
  72. metadata +6 -2
@@ -1432,6 +1432,42 @@ module Google
1432
1432
  include Google::Apis::Core::JsonObjectSupport
1433
1433
  end
1434
1434
 
1435
+ class LicenseCode
1436
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1437
+
1438
+ include Google::Apis::Core::JsonObjectSupport
1439
+ end
1440
+
1441
+ class LicenseCodeLicenseAlias
1442
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1443
+
1444
+ include Google::Apis::Core::JsonObjectSupport
1445
+ end
1446
+
1447
+ class LicenseResourceRequirements
1448
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1449
+
1450
+ include Google::Apis::Core::JsonObjectSupport
1451
+ end
1452
+
1453
+ class LicensesListResponse
1454
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1455
+
1456
+ class Warning
1457
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1458
+
1459
+ class Datum
1460
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1461
+
1462
+ include Google::Apis::Core::JsonObjectSupport
1463
+ end
1464
+
1465
+ include Google::Apis::Core::JsonObjectSupport
1466
+ end
1467
+
1468
+ include Google::Apis::Core::JsonObjectSupport
1469
+ end
1470
+
1435
1471
  class LogConfig
1436
1472
  class Representation < Google::Apis::Core::JsonRepresentation; end
1437
1473
 
@@ -3705,6 +3741,7 @@ module Google
3705
3741
  hash :labels, as: 'labels'
3706
3742
  property :last_attach_timestamp, as: 'lastAttachTimestamp'
3707
3743
  property :last_detach_timestamp, as: 'lastDetachTimestamp'
3744
+ collection :license_codes, as: 'licenseCodes'
3708
3745
  collection :licenses, as: 'licenses'
3709
3746
  property :name, as: 'name'
3710
3747
  property :options, as: 'options'
@@ -4412,6 +4449,7 @@ module Google
4412
4449
  property :kind, as: 'kind'
4413
4450
  property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
4414
4451
  hash :labels, as: 'labels'
4452
+ collection :license_codes, as: 'licenseCodes'
4415
4453
  collection :licenses, as: 'licenses'
4416
4454
  property :name, as: 'name'
4417
4455
  property :raw_disk, as: 'rawDisk', class: Google::Apis::ComputeBeta::Image::RawDisk, decorator: Google::Apis::ComputeBeta::Image::RawDisk::Representation
@@ -5465,9 +5503,79 @@ module Google
5465
5503
  # @private
5466
5504
  class Representation < Google::Apis::Core::JsonRepresentation
5467
5505
  property :charges_use_fee, as: 'chargesUseFee'
5506
+ property :creation_timestamp, as: 'creationTimestamp'
5507
+ property :description, as: 'description'
5508
+ property :id, :numeric_string => true, as: 'id'
5509
+ property :kind, as: 'kind'
5510
+ property :license_code, :numeric_string => true, as: 'licenseCode'
5511
+ property :name, as: 'name'
5512
+ property :resource_requirements, as: 'resourceRequirements', class: Google::Apis::ComputeBeta::LicenseResourceRequirements, decorator: Google::Apis::ComputeBeta::LicenseResourceRequirements::Representation
5513
+
5514
+ property :self_link, as: 'selfLink'
5515
+ property :transferable, as: 'transferable'
5516
+ end
5517
+ end
5518
+
5519
+ class LicenseCode
5520
+ # @private
5521
+ class Representation < Google::Apis::Core::JsonRepresentation
5522
+ property :creation_timestamp, as: 'creationTimestamp'
5523
+ property :description, as: 'description'
5524
+ property :id, :numeric_string => true, as: 'id'
5468
5525
  property :kind, as: 'kind'
5526
+ collection :license_alias, as: 'licenseAlias', class: Google::Apis::ComputeBeta::LicenseCodeLicenseAlias, decorator: Google::Apis::ComputeBeta::LicenseCodeLicenseAlias::Representation
5527
+
5469
5528
  property :name, as: 'name'
5470
5529
  property :self_link, as: 'selfLink'
5530
+ property :state, as: 'state'
5531
+ property :transferable, as: 'transferable'
5532
+ end
5533
+ end
5534
+
5535
+ class LicenseCodeLicenseAlias
5536
+ # @private
5537
+ class Representation < Google::Apis::Core::JsonRepresentation
5538
+ property :description, as: 'description'
5539
+ property :self_link, as: 'selfLink'
5540
+ end
5541
+ end
5542
+
5543
+ class LicenseResourceRequirements
5544
+ # @private
5545
+ class Representation < Google::Apis::Core::JsonRepresentation
5546
+ property :min_guest_cpu_count, as: 'minGuestCpuCount'
5547
+ property :min_memory_mb, as: 'minMemoryMb'
5548
+ end
5549
+ end
5550
+
5551
+ class LicensesListResponse
5552
+ # @private
5553
+ class Representation < Google::Apis::Core::JsonRepresentation
5554
+ property :id, as: 'id'
5555
+ collection :items, as: 'items', class: Google::Apis::ComputeBeta::License, decorator: Google::Apis::ComputeBeta::License::Representation
5556
+
5557
+ property :next_page_token, as: 'nextPageToken'
5558
+ property :self_link, as: 'selfLink'
5559
+ property :warning, as: 'warning', class: Google::Apis::ComputeBeta::LicensesListResponse::Warning, decorator: Google::Apis::ComputeBeta::LicensesListResponse::Warning::Representation
5560
+
5561
+ end
5562
+
5563
+ class Warning
5564
+ # @private
5565
+ class Representation < Google::Apis::Core::JsonRepresentation
5566
+ property :code, as: 'code'
5567
+ collection :data, as: 'data', class: Google::Apis::ComputeBeta::LicensesListResponse::Warning::Datum, decorator: Google::Apis::ComputeBeta::LicensesListResponse::Warning::Datum::Representation
5568
+
5569
+ property :message, as: 'message'
5570
+ end
5571
+
5572
+ class Datum
5573
+ # @private
5574
+ class Representation < Google::Apis::Core::JsonRepresentation
5575
+ property :key, as: 'key'
5576
+ property :value, as: 'value'
5577
+ end
5578
+ end
5471
5579
  end
5472
5580
  end
5473
5581
 
@@ -6729,6 +6837,7 @@ module Google
6729
6837
  property :kind, as: 'kind'
6730
6838
  property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
6731
6839
  hash :labels, as: 'labels'
6840
+ collection :license_codes, as: 'licenseCodes'
6732
6841
  collection :licenses, as: 'licenses'
6733
6842
  property :name, as: 'name'
6734
6843
  property :self_link, as: 'selfLink'
@@ -5753,12 +5753,12 @@ module Google
5753
5753
  execute_or_queue_command(command, &block)
5754
5754
  end
5755
5755
 
5756
- # Retrieves the list of private images available to the specified project.
5757
- # Private images are images you create that belong to your project. This method
5758
- # does not get any images that belong to other projects, including publicly-
5759
- # available images, like Debian 8. If you want to get a list of publicly-
5760
- # available images, use this method to make a request to the respective image
5761
- # project, such as debian-cloud or windows-cloud.
5756
+ # Retrieves the list of custom images available to the specified project. Custom
5757
+ # images are images you create that belong to your project. This method does not
5758
+ # get any images that belong to other projects, including publicly-available
5759
+ # images, like Debian 8. If you want to get a list of publicly-available images,
5760
+ # use this method to make a request to the respective image project, such as
5761
+ # debian-cloud or windows-cloud.
5762
5762
  # @param [String] project
5763
5763
  # Project ID for this request.
5764
5764
  # @param [String] filter
@@ -10240,6 +10240,95 @@ module Google
10240
10240
  execute_or_queue_command(command, &block)
10241
10241
  end
10242
10242
 
10243
+ # Return a specified license code. License codes are mirrored across all
10244
+ # projects that have permissions to read the License Code.
10245
+ # @param [String] project
10246
+ # Project ID for this request.
10247
+ # @param [String] license_code
10248
+ # Number corresponding to the License code resource to return.
10249
+ # @param [String] fields
10250
+ # Selector specifying which fields to include in a partial response.
10251
+ # @param [String] quota_user
10252
+ # Available to use for quota purposes for server-side applications. Can be any
10253
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10254
+ # Overrides userIp if both are provided.
10255
+ # @param [String] user_ip
10256
+ # IP address of the site where the request originates. Use this if you want to
10257
+ # enforce per-user limits.
10258
+ # @param [Google::Apis::RequestOptions] options
10259
+ # Request-specific options
10260
+ #
10261
+ # @yield [result, err] Result & error if block supplied
10262
+ # @yieldparam result [Google::Apis::ComputeBeta::LicenseCode] parsed result object
10263
+ # @yieldparam err [StandardError] error object if request failed
10264
+ #
10265
+ # @return [Google::Apis::ComputeBeta::LicenseCode]
10266
+ #
10267
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10268
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10269
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10270
+ def get_license_code(project, license_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10271
+ command = make_simple_command(:get, '{project}/global/licenseCodes/{licenseCode}', options)
10272
+ command.response_representation = Google::Apis::ComputeBeta::LicenseCode::Representation
10273
+ command.response_class = Google::Apis::ComputeBeta::LicenseCode
10274
+ command.params['project'] = project unless project.nil?
10275
+ command.params['licenseCode'] = license_code unless license_code.nil?
10276
+ command.query['fields'] = fields unless fields.nil?
10277
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10278
+ command.query['userIp'] = user_ip unless user_ip.nil?
10279
+ execute_or_queue_command(command, &block)
10280
+ end
10281
+
10282
+ # Deletes the specified license.
10283
+ # @param [String] project
10284
+ # Project ID for this request.
10285
+ # @param [String] license
10286
+ # Name of the license resource to delete.
10287
+ # @param [String] request_id
10288
+ # An optional request ID to identify requests. Specify a unique request ID so
10289
+ # that if you must retry your request, the server will know to ignore the
10290
+ # request if it has already been completed.
10291
+ # For example, consider a situation where you make an initial request and the
10292
+ # request times out. If you make the request again with the same request ID, the
10293
+ # server can check if original operation with the same request ID was received,
10294
+ # and if so, will ignore the second request. This prevents clients from
10295
+ # accidentally creating duplicate commitments.
10296
+ # The request ID must be a valid UUID with the exception that zero UUID is not
10297
+ # supported (00000000-0000-0000-0000-000000000000).
10298
+ # @param [String] fields
10299
+ # Selector specifying which fields to include in a partial response.
10300
+ # @param [String] quota_user
10301
+ # Available to use for quota purposes for server-side applications. Can be any
10302
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10303
+ # Overrides userIp if both are provided.
10304
+ # @param [String] user_ip
10305
+ # IP address of the site where the request originates. Use this if you want to
10306
+ # enforce per-user limits.
10307
+ # @param [Google::Apis::RequestOptions] options
10308
+ # Request-specific options
10309
+ #
10310
+ # @yield [result, err] Result & error if block supplied
10311
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
10312
+ # @yieldparam err [StandardError] error object if request failed
10313
+ #
10314
+ # @return [Google::Apis::ComputeBeta::Operation]
10315
+ #
10316
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10317
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10318
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10319
+ def delete_license(project, license, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10320
+ command = make_simple_command(:delete, '{project}/global/licenses/{license}', options)
10321
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
10322
+ command.response_class = Google::Apis::ComputeBeta::Operation
10323
+ command.params['project'] = project unless project.nil?
10324
+ command.params['license'] = license unless license.nil?
10325
+ command.query['requestId'] = request_id unless request_id.nil?
10326
+ command.query['fields'] = fields unless fields.nil?
10327
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10328
+ command.query['userIp'] = user_ip unless user_ip.nil?
10329
+ execute_or_queue_command(command, &block)
10330
+ end
10331
+
10243
10332
  # Returns the specified License resource.
10244
10333
  # @param [String] project
10245
10334
  # Project ID for this request.
@@ -10278,6 +10367,136 @@ module Google
10278
10367
  execute_or_queue_command(command, &block)
10279
10368
  end
10280
10369
 
10370
+ # Create a License resource in the specified project.
10371
+ # @param [String] project
10372
+ # Project ID for this request.
10373
+ # @param [Google::Apis::ComputeBeta::License] license_object
10374
+ # @param [String] request_id
10375
+ # An optional request ID to identify requests. Specify a unique request ID so
10376
+ # that if you must retry your request, the server will know to ignore the
10377
+ # request if it has already been completed.
10378
+ # For example, consider a situation where you make an initial request and the
10379
+ # request times out. If you make the request again with the same request ID, the
10380
+ # server can check if original operation with the same request ID was received,
10381
+ # and if so, will ignore the second request. This prevents clients from
10382
+ # accidentally creating duplicate commitments.
10383
+ # The request ID must be a valid UUID with the exception that zero UUID is not
10384
+ # supported (00000000-0000-0000-0000-000000000000).
10385
+ # @param [String] fields
10386
+ # Selector specifying which fields to include in a partial response.
10387
+ # @param [String] quota_user
10388
+ # Available to use for quota purposes for server-side applications. Can be any
10389
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10390
+ # Overrides userIp if both are provided.
10391
+ # @param [String] user_ip
10392
+ # IP address of the site where the request originates. Use this if you want to
10393
+ # enforce per-user limits.
10394
+ # @param [Google::Apis::RequestOptions] options
10395
+ # Request-specific options
10396
+ #
10397
+ # @yield [result, err] Result & error if block supplied
10398
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
10399
+ # @yieldparam err [StandardError] error object if request failed
10400
+ #
10401
+ # @return [Google::Apis::ComputeBeta::Operation]
10402
+ #
10403
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10404
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10405
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10406
+ def insert_license(project, license_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10407
+ command = make_simple_command(:post, '{project}/global/licenses', options)
10408
+ command.request_representation = Google::Apis::ComputeBeta::License::Representation
10409
+ command.request_object = license_object
10410
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
10411
+ command.response_class = Google::Apis::ComputeBeta::Operation
10412
+ command.params['project'] = project unless project.nil?
10413
+ command.query['requestId'] = request_id unless request_id.nil?
10414
+ command.query['fields'] = fields unless fields.nil?
10415
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10416
+ command.query['userIp'] = user_ip unless user_ip.nil?
10417
+ execute_or_queue_command(command, &block)
10418
+ end
10419
+
10420
+ # Retrieves the list of licenses available in the specified project. This method
10421
+ # does not get any licenses that belong to other projects, including licenses
10422
+ # attached to publicly-available images, like Debian 8. If you want to get a
10423
+ # list of publicly-available licenses, use this method to make a request to the
10424
+ # respective image project, such as debian-cloud or windows-cloud.
10425
+ # @param [String] project
10426
+ # Project ID for this request.
10427
+ # @param [String] filter
10428
+ # Sets a filter `expression` for filtering listed resources. Your `expression`
10429
+ # must be in the format: field_name comparison_string literal_string.
10430
+ # The field_name is the name of the field you want to compare. Only atomic field
10431
+ # types are supported (string, number, boolean). The comparison_string must be
10432
+ # either eq (equals) or ne (not equals). The literal_string is the string value
10433
+ # to filter to. The literal value must be valid for the type of field you are
10434
+ # filtering by (string, number, boolean). For string fields, the literal value
10435
+ # is interpreted as a regular expression using RE2 syntax. The literal value
10436
+ # must match the entire field.
10437
+ # For example, to filter for instances that do not have a name of example-
10438
+ # instance, you would use name ne example-instance.
10439
+ # You can filter on nested fields. For example, you could filter on instances
10440
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
10441
+ # nested fields to take advantage of labels to organize and search for results
10442
+ # based on label values.
10443
+ # To filter on multiple expressions, provide each separate expression within
10444
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
10445
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
10446
+ # resources must match all expressions to pass the filters.
10447
+ # @param [Fixnum] max_results
10448
+ # The maximum number of results per page that should be returned. If the number
10449
+ # of available results is larger than maxResults, Compute Engine returns a
10450
+ # nextPageToken that can be used to get the next page of results in subsequent
10451
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
10452
+ # @param [String] order_by
10453
+ # Sorts list results by a certain order. By default, results are returned in
10454
+ # alphanumerical order based on the resource name.
10455
+ # You can also sort results in descending order based on the creation timestamp
10456
+ # using orderBy="creationTimestamp desc". This sorts results based on the
10457
+ # creationTimestamp field in reverse chronological order (newest result first).
10458
+ # Use this to sort resources like operations so that the newest operation is
10459
+ # returned first.
10460
+ # Currently, only sorting by name or creationTimestamp desc is supported.
10461
+ # @param [String] page_token
10462
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
10463
+ # a previous list request to get the next page of results.
10464
+ # @param [String] fields
10465
+ # Selector specifying which fields to include in a partial response.
10466
+ # @param [String] quota_user
10467
+ # Available to use for quota purposes for server-side applications. Can be any
10468
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10469
+ # Overrides userIp if both are provided.
10470
+ # @param [String] user_ip
10471
+ # IP address of the site where the request originates. Use this if you want to
10472
+ # enforce per-user limits.
10473
+ # @param [Google::Apis::RequestOptions] options
10474
+ # Request-specific options
10475
+ #
10476
+ # @yield [result, err] Result & error if block supplied
10477
+ # @yieldparam result [Google::Apis::ComputeBeta::LicensesListResponse] parsed result object
10478
+ # @yieldparam err [StandardError] error object if request failed
10479
+ #
10480
+ # @return [Google::Apis::ComputeBeta::LicensesListResponse]
10481
+ #
10482
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10483
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10484
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10485
+ def list_licenses(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10486
+ command = make_simple_command(:get, '{project}/global/licenses', options)
10487
+ command.response_representation = Google::Apis::ComputeBeta::LicensesListResponse::Representation
10488
+ command.response_class = Google::Apis::ComputeBeta::LicensesListResponse
10489
+ command.params['project'] = project unless project.nil?
10490
+ command.query['filter'] = filter unless filter.nil?
10491
+ command.query['maxResults'] = max_results unless max_results.nil?
10492
+ command.query['orderBy'] = order_by unless order_by.nil?
10493
+ command.query['pageToken'] = page_token unless page_token.nil?
10494
+ command.query['fields'] = fields unless fields.nil?
10495
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10496
+ command.query['userIp'] = user_ip unless user_ip.nil?
10497
+ execute_or_queue_command(command, &block)
10498
+ end
10499
+
10281
10500
  # Retrieves an aggregated list of machine types.
10282
10501
  # @param [String] project
10283
10502
  # Project ID for this request.
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/compute/docs/reference/latest/
26
26
  module ComputeV1
27
27
  VERSION = 'V1'
28
- REVISION = '20171114'
28
+ REVISION = '20171127'
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'
@@ -500,7 +500,8 @@ module Google
500
500
  # @return [String]
501
501
  attr_accessor :address
502
502
 
503
- # The type of address to reserve. If unspecified, defaults to EXTERNAL.
503
+ # The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified,
504
+ # defaults to EXTERNAL.
504
505
  # Corresponds to the JSON property `addressType`
505
506
  # @return [String]
506
507
  attr_accessor :address_type
@@ -1112,13 +1113,13 @@ module Google
1112
1113
  # projects/debian-cloud/global/images/family/debian-8
1113
1114
  # Alternatively, use a specific version of a public operating system image:
1114
1115
  # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
1115
- # To create a disk with a private image that you created, specify the image name
1116
+ # To create a disk with a custom image that you created, specify the image name
1116
1117
  # in the following format:
1117
- # global/images/my-private-image
1118
- # You can also specify a private image by its image family, which returns the
1118
+ # global/images/my-custom-image
1119
+ # You can also specify a custom image by its image family, which returns the
1119
1120
  # latest version of the image in that family. Replace the image name with family/
1120
1121
  # family-name:
1121
- # global/images/family/my-private-family
1122
+ # global/images/family/my-image-family
1122
1123
  # If the source image is deleted later, this field will not be set.
1123
1124
  # Corresponds to the JSON property `sourceImage`
1124
1125
  # @return [String]
@@ -3366,13 +3367,13 @@ module Google
3366
3367
  # projects/debian-cloud/global/images/family/debian-8
3367
3368
  # Alternatively, use a specific version of a public operating system image:
3368
3369
  # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
3369
- # To create a disk with a private image that you created, specify the image name
3370
+ # To create a disk with a custom image that you created, specify the image name
3370
3371
  # in the following format:
3371
- # global/images/my-private-image
3372
- # You can also specify a private image by its image family, which returns the
3372
+ # global/images/my-custom-image
3373
+ # You can also specify a custom image by its image family, which returns the
3373
3374
  # latest version of the image in that family. Replace the image name with family/
3374
3375
  # family-name:
3375
- # global/images/family/my-private-family
3376
+ # global/images/family/my-image-family
3376
3377
  # Corresponds to the JSON property `sourceImage`
3377
3378
  # @return [String]
3378
3379
  attr_accessor :source_image
@@ -8739,16 +8740,16 @@ module Google
8739
8740
  end
8740
8741
  end
8741
8742
 
8742
- # Protocol definitions for Mixer API to support Interconnect. Next available tag:
8743
- # 25
8743
+ # Represents an Interconnects resource. The Interconnects resource is a
8744
+ # dedicated connection between Google's network and your on-premises network.
8745
+ # For more information, see the Dedicated overview page.
8744
8746
  class Interconnect
8745
8747
  include Google::Apis::Core::Hashable
8746
8748
 
8747
- # Administrative status of the interconnect. When this is set to ?true?, the
8748
- # Interconnect is functional and may carry traffic (assuming there are
8749
- # functional InterconnectAttachments and other requirements are satisfied). When
8750
- # set to ?false?, no packets will be carried over this Interconnect and no BGP
8751
- # routes will be exchanged over it. By default, it is set to ?true?.
8749
+ # Administrative status of the interconnect. When this is set to true, the
8750
+ # Interconnect is functional and can carry traffic. When set to false, no
8751
+ # packets can be carried over the interconnect and no BGP routes are exchanged
8752
+ # over it. By default, the status is set to true.
8752
8753
  # Corresponds to the JSON property `adminEnabled`
8753
8754
  # @return [Boolean]
8754
8755
  attr_accessor :admin_enabled
@@ -8806,7 +8807,8 @@ module Google
8806
8807
  # @return [Array<String>]
8807
8808
  attr_accessor :interconnect_attachments
8808
8809
 
8809
- #
8810
+ # Type of interconnect. Note that "IT_PRIVATE" has been deprecated in favor of "
8811
+ # DEDICATED"
8810
8812
  # Corresponds to the JSON property `interconnectType`
8811
8813
  # @return [String]
8812
8814
  attr_accessor :interconnect_type
@@ -8817,7 +8819,9 @@ module Google
8817
8819
  # @return [String]
8818
8820
  attr_accessor :kind
8819
8821
 
8820
- #
8822
+ # Type of link requested. This field indicates speed of each of the links in the
8823
+ # bundle, not the entire bundle. Only 10G per link is allowed for a dedicated
8824
+ # interconnect. Options: Ethernet_10G_LR
8821
8825
  # Corresponds to the JSON property `linkType`
8822
8826
  # @return [String]
8823
8827
  attr_accessor :link_type
@@ -8905,8 +8909,8 @@ module Google
8905
8909
  end
8906
8910
  end
8907
8911
 
8908
- # Protocol definitions for Mixer API to support InterconnectAttachment. Next
8909
- # available tag: 23
8912
+ # Represents an InterconnectAttachment (VLAN attachment) resource. For more
8913
+ # information, see Creating VLAN Attachments.
8910
8914
  class InterconnectAttachment
8911
8915
  include Google::Apis::Core::Hashable
8912
8916
 
@@ -8927,8 +8931,7 @@ module Google
8927
8931
  # @return [String]
8928
8932
  attr_accessor :customer_router_ip_address
8929
8933
 
8930
- # An optional description of this resource. Provide this property when you
8931
- # create the resource.
8934
+ # An optional description of this resource.
8932
8935
  # Corresponds to the JSON property `description`
8933
8936
  # @return [String]
8934
8937
  attr_accessor :description
@@ -8973,8 +8976,8 @@ module Google
8973
8976
  # @return [String]
8974
8977
  attr_accessor :operational_status
8975
8978
 
8976
- # Private information for an interconnect attachment when this belongs to an
8977
- # interconnect of type IT_PRIVATE.
8979
+ # Information for an interconnect attachment when this belongs to an
8980
+ # interconnect of type DEDICATED.
8978
8981
  # Corresponds to the JSON property `privateInterconnectInfo`
8979
8982
  # @return [Google::Apis::ComputeV1::InterconnectAttachmentPrivateInfo]
8980
8983
  attr_accessor :private_interconnect_info
@@ -9258,8 +9261,8 @@ module Google
9258
9261
  end
9259
9262
  end
9260
9263
 
9261
- # Private information for an interconnect attachment when this belongs to an
9262
- # interconnect of type IT_PRIVATE.
9264
+ # Information for an interconnect attachment when this belongs to an
9265
+ # interconnect of type DEDICATED.
9263
9266
  class InterconnectAttachmentPrivateInfo
9264
9267
  include Google::Apis::Core::Hashable
9265
9268
 
@@ -9376,8 +9379,7 @@ module Google
9376
9379
  class InterconnectCircuitInfo
9377
9380
  include Google::Apis::Core::Hashable
9378
9381
 
9379
- # Customer-side demarc ID for this circuit. This will only be set if it was
9380
- # provided by the Customer to Google during circuit turn-up.
9382
+ # Customer-side demarc ID for this circuit.
9381
9383
  # Corresponds to the JSON property `customerDemarcId`
9382
9384
  # @return [String]
9383
9385
  attr_accessor :customer_demarc_id
@@ -9523,7 +9525,9 @@ module Google
9523
9525
  end
9524
9526
  end
9525
9527
 
9526
- # Protocol definitions for Mixer API to support InterconnectLocation.
9528
+ # Represents an InterconnectLocations resource. The InterconnectLocations
9529
+ # resource describes the locations where you can connect to Google's networks.
9530
+ # For more information, see Colocation Facilities.
9527
9531
  class InterconnectLocation
9528
9532
  include Google::Apis::Core::Hashable
9529
9533
 
@@ -9533,22 +9537,20 @@ module Google
9533
9537
  # @return [String]
9534
9538
  attr_accessor :address
9535
9539
 
9536
- # Availability zone for this location. Within a city, maintenance will not be
9537
- # simultaneously scheduled in more than one availability zone. Example: "zone1"
9538
- # or "zone2".
9540
+ # [Output Only] Availability zone for this location. Within a metropolitan area (
9541
+ # metro), maintenance will not be simultaneously scheduled in more than one
9542
+ # availability zone. Example: "zone1" or "zone2".
9539
9543
  # Corresponds to the JSON property `availabilityZone`
9540
9544
  # @return [String]
9541
9545
  attr_accessor :availability_zone
9542
9546
 
9543
- # City designator used by the Interconnect UI to locate this
9544
- # InterconnectLocation within the Continent. For example: "Chicago, IL", "
9545
- # Amsterdam, Netherlands".
9547
+ # [Output Only] Metropolitan area designator that indicates which city an
9548
+ # interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands".
9546
9549
  # Corresponds to the JSON property `city`
9547
9550
  # @return [String]
9548
9551
  attr_accessor :city
9549
9552
 
9550
- # Continent for this location. Used by the location picker in the Interconnect
9551
- # UI.
9553
+ # [Output Only] Continent for this location.
9552
9554
  # Corresponds to the JSON property `continent`
9553
9555
  # @return [String]
9554
9556
  attr_accessor :continent
@@ -9793,17 +9795,18 @@ module Google
9793
9795
  # @return [Array<String>]
9794
9796
  attr_accessor :affected_circuits
9795
9797
 
9796
- # Short user-visible description of the purpose of the outage.
9798
+ # A description about the purpose of the outage.
9797
9799
  # Corresponds to the JSON property `description`
9798
9800
  # @return [String]
9799
9801
  attr_accessor :description
9800
9802
 
9801
- #
9803
+ # Scheduled end time for the outage (milliseconds since Unix epoch).
9802
9804
  # Corresponds to the JSON property `endTime`
9803
9805
  # @return [Fixnum]
9804
9806
  attr_accessor :end_time
9805
9807
 
9806
- #
9808
+ # Form this outage is expected to take. Note that the "IT_" versions of this
9809
+ # enum have been deprecated in favor of the unprefixed values.
9807
9810
  # Corresponds to the JSON property `issueType`
9808
9811
  # @return [String]
9809
9812
  attr_accessor :issue_type
@@ -9813,17 +9816,19 @@ module Google
9813
9816
  # @return [String]
9814
9817
  attr_accessor :name
9815
9818
 
9816
- #
9819
+ # The party that generated this notification. Note that "NSRC_GOOGLE" has been
9820
+ # deprecated in favor of "GOOGLE"
9817
9821
  # Corresponds to the JSON property `source`
9818
9822
  # @return [String]
9819
9823
  attr_accessor :source
9820
9824
 
9821
- # Scheduled start and end times for the outage (milliseconds since Unix epoch).
9825
+ # Scheduled start time for the outage (milliseconds since Unix epoch).
9822
9826
  # Corresponds to the JSON property `startTime`
9823
9827
  # @return [Fixnum]
9824
9828
  attr_accessor :start_time
9825
9829
 
9826
- #
9830
+ # State of this notification. Note that the "NS_" versions of this enum have
9831
+ # been deprecated in favor of the unprefixed values.
9827
9832
  # Corresponds to the JSON property `state`
9828
9833
  # @return [String]
9829
9834
  attr_accessor :state