google-api-client 0.28.0 → 0.28.1

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 (83) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -0
  3. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  4. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +4 -5
  5. data/generated/google/apis/admin_directory_v1.rb +1 -1
  6. data/generated/google/apis/admin_directory_v1/classes.rb +13 -1
  7. data/generated/google/apis/admin_directory_v1/representations.rb +2 -0
  8. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  9. data/generated/google/apis/androidenterprise_v1/classes.rb +3 -2
  10. data/generated/google/apis/androidenterprise_v1/service.rb +0 -33
  11. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  12. data/generated/google/apis/androidpublisher_v1_1/classes.rb +1 -0
  13. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  14. data/generated/google/apis/androidpublisher_v2/classes.rb +1 -0
  15. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  16. data/generated/google/apis/androidpublisher_v3/classes.rb +1 -0
  17. data/generated/google/apis/appsmarket_v2.rb +3 -3
  18. data/generated/google/apis/appsmarket_v2/service.rb +2 -2
  19. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  20. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +48 -0
  21. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +17 -0
  22. data/generated/google/apis/books_v1.rb +1 -1
  23. data/generated/google/apis/books_v1/classes.rb +6 -0
  24. data/generated/google/apis/books_v1/representations.rb +1 -0
  25. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  26. data/generated/google/apis/cloudidentity_v1/service.rb +12 -12
  27. data/generated/google/apis/compute_alpha.rb +1 -1
  28. data/generated/google/apis/compute_alpha/classes.rb +698 -240
  29. data/generated/google/apis/compute_alpha/representations.rb +185 -63
  30. data/generated/google/apis/compute_alpha/service.rb +286 -2
  31. data/generated/google/apis/compute_beta.rb +1 -1
  32. data/generated/google/apis/compute_beta/classes.rb +195 -148
  33. data/generated/google/apis/compute_beta/representations.rb +80 -62
  34. data/generated/google/apis/compute_beta/service.rb +85 -2
  35. data/generated/google/apis/compute_v1.rb +1 -1
  36. data/generated/google/apis/compute_v1/classes.rb +209 -17
  37. data/generated/google/apis/compute_v1/representations.rb +70 -0
  38. data/generated/google/apis/compute_v1/service.rb +2 -2
  39. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  40. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +78 -0
  41. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +33 -0
  42. data/generated/google/apis/content_v2.rb +1 -1
  43. data/generated/google/apis/content_v2/classes.rb +9 -6
  44. data/generated/google/apis/content_v2/service.rb +1 -1
  45. data/generated/google/apis/content_v2_1.rb +1 -1
  46. data/generated/google/apis/content_v2_1/classes.rb +12 -213
  47. data/generated/google/apis/content_v2_1/representations.rb +2 -117
  48. data/generated/google/apis/content_v2_1/service.rb +1 -161
  49. data/generated/google/apis/dialogflow_v2.rb +1 -1
  50. data/generated/google/apis/dialogflow_v2/classes.rb +39 -29
  51. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  52. data/generated/google/apis/dialogflow_v2beta1/classes.rb +39 -29
  53. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  54. data/generated/google/apis/file_v1.rb +34 -0
  55. data/generated/google/apis/file_v1/classes.rb +576 -0
  56. data/generated/google/apis/file_v1/representations.rb +219 -0
  57. data/generated/google/apis/file_v1/service.rb +472 -0
  58. data/generated/google/apis/gmail_v1.rb +1 -1
  59. data/generated/google/apis/gmail_v1/classes.rb +6 -2
  60. data/generated/google/apis/jobs_v3.rb +1 -1
  61. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  62. data/generated/google/apis/jobs_v3p1beta1/classes.rb +3 -3
  63. data/generated/google/apis/ml_v1.rb +1 -1
  64. data/generated/google/apis/ml_v1/service.rb +33 -33
  65. data/generated/google/apis/monitoring_v3.rb +1 -1
  66. data/generated/google/apis/monitoring_v3/classes.rb +1 -1
  67. data/generated/google/apis/pubsub_v1.rb +1 -1
  68. data/generated/google/apis/pubsub_v1/service.rb +4 -2
  69. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  70. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +2 -0
  71. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  72. data/generated/google/apis/servicenetworking_v1beta/service.rb +40 -40
  73. data/generated/google/apis/testing_v1.rb +1 -1
  74. data/generated/google/apis/texttospeech_v1.rb +1 -1
  75. data/generated/google/apis/texttospeech_v1/classes.rb +12 -0
  76. data/generated/google/apis/texttospeech_v1/representations.rb +1 -0
  77. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  78. data/generated/google/apis/vision_v1.rb +1 -1
  79. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  80. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  81. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  82. data/lib/google/apis/version.rb +1 -1
  83. metadata +6 -2
@@ -2656,56 +2656,56 @@ module Google
2656
2656
  include Google::Apis::Core::JsonObjectSupport
2657
2657
  end
2658
2658
 
2659
- class ResourcePolicyBackupSchedulePolicy
2659
+ class ResourcePolicyDailyCycle
2660
2660
  class Representation < Google::Apis::Core::JsonRepresentation; end
2661
2661
 
2662
2662
  include Google::Apis::Core::JsonObjectSupport
2663
2663
  end
2664
2664
 
2665
- class ResourcePolicyBackupSchedulePolicyRetentionPolicy
2665
+ class ResourcePolicyHourlyCycle
2666
2666
  class Representation < Google::Apis::Core::JsonRepresentation; end
2667
2667
 
2668
2668
  include Google::Apis::Core::JsonObjectSupport
2669
2669
  end
2670
2670
 
2671
- class ResourcePolicyBackupSchedulePolicySchedule
2671
+ class ResourcePolicyList
2672
2672
  class Representation < Google::Apis::Core::JsonRepresentation; end
2673
+
2674
+ class Warning
2675
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2676
+
2677
+ class Datum
2678
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2679
+
2680
+ include Google::Apis::Core::JsonObjectSupport
2681
+ end
2682
+
2683
+ include Google::Apis::Core::JsonObjectSupport
2684
+ end
2673
2685
 
2674
2686
  include Google::Apis::Core::JsonObjectSupport
2675
2687
  end
2676
2688
 
2677
- class ResourcePolicyBackupSchedulePolicySnapshotProperties
2689
+ class ResourcePolicySnapshotSchedulePolicy
2678
2690
  class Representation < Google::Apis::Core::JsonRepresentation; end
2679
2691
 
2680
2692
  include Google::Apis::Core::JsonObjectSupport
2681
2693
  end
2682
2694
 
2683
- class ResourcePolicyDailyCycle
2695
+ class ResourcePolicySnapshotSchedulePolicyRetentionPolicy
2684
2696
  class Representation < Google::Apis::Core::JsonRepresentation; end
2685
2697
 
2686
2698
  include Google::Apis::Core::JsonObjectSupport
2687
2699
  end
2688
2700
 
2689
- class ResourcePolicyHourlyCycle
2701
+ class ResourcePolicySnapshotSchedulePolicySchedule
2690
2702
  class Representation < Google::Apis::Core::JsonRepresentation; end
2691
2703
 
2692
2704
  include Google::Apis::Core::JsonObjectSupport
2693
2705
  end
2694
2706
 
2695
- class ResourcePolicyList
2707
+ class ResourcePolicySnapshotSchedulePolicySnapshotProperties
2696
2708
  class Representation < Google::Apis::Core::JsonRepresentation; end
2697
-
2698
- class Warning
2699
- class Representation < Google::Apis::Core::JsonRepresentation; end
2700
-
2701
- class Datum
2702
- class Representation < Google::Apis::Core::JsonRepresentation; end
2703
-
2704
- include Google::Apis::Core::JsonObjectSupport
2705
- end
2706
-
2707
- include Google::Apis::Core::JsonObjectSupport
2708
- end
2709
2709
 
2710
2710
  include Google::Apis::Core::JsonObjectSupport
2711
2711
  end
@@ -2830,6 +2830,12 @@ module Google
2830
2830
  include Google::Apis::Core::JsonObjectSupport
2831
2831
  end
2832
2832
 
2833
+ class RouterNatLogConfig
2834
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2835
+
2836
+ include Google::Apis::Core::JsonObjectSupport
2837
+ end
2838
+
2833
2839
  class RouterNatSubnetworkToNat
2834
2840
  class Representation < Google::Apis::Core::JsonRepresentation; end
2835
2841
 
@@ -6430,6 +6436,8 @@ module Google
6430
6436
  property :description, as: 'description'
6431
6437
  collection :disks, as: 'disks', class: Google::Apis::ComputeBeta::AttachedDisk, decorator: Google::Apis::ComputeBeta::AttachedDisk::Representation
6432
6438
 
6439
+ property :display_device, as: 'displayDevice', class: Google::Apis::ComputeBeta::DisplayDevice, decorator: Google::Apis::ComputeBeta::DisplayDevice::Representation
6440
+
6433
6441
  collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeBeta::AcceleratorConfig, decorator: Google::Apis::ComputeBeta::AcceleratorConfig::Representation
6434
6442
 
6435
6443
  hash :labels, as: 'labels'
@@ -8613,8 +8621,6 @@ module Google
8613
8621
  class ResourcePolicy
8614
8622
  # @private
8615
8623
  class Representation < Google::Apis::Core::JsonRepresentation
8616
- property :backup_schedule_policy, as: 'backupSchedulePolicy', class: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicy, decorator: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicy::Representation
8617
-
8618
8624
  property :creation_timestamp, as: 'creationTimestamp'
8619
8625
  property :description, as: 'description'
8620
8626
  property :id, :numeric_string => true, as: 'id'
@@ -8622,6 +8628,8 @@ module Google
8622
8628
  property :name, as: 'name'
8623
8629
  property :region, as: 'region'
8624
8630
  property :self_link, as: 'selfLink'
8631
+ property :snapshot_schedule_policy, as: 'snapshotSchedulePolicy', class: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicy, decorator: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicy::Representation
8632
+
8625
8633
  end
8626
8634
  end
8627
8635
 
@@ -8658,47 +8666,6 @@ module Google
8658
8666
  end
8659
8667
  end
8660
8668
 
8661
- class ResourcePolicyBackupSchedulePolicy
8662
- # @private
8663
- class Representation < Google::Apis::Core::JsonRepresentation
8664
- property :retention_policy, as: 'retentionPolicy', class: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicyRetentionPolicy, decorator: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicyRetentionPolicy::Representation
8665
-
8666
- property :schedule, as: 'schedule', class: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySchedule, decorator: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySchedule::Representation
8667
-
8668
- property :snapshot_properties, as: 'snapshotProperties', class: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySnapshotProperties, decorator: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySnapshotProperties::Representation
8669
-
8670
- end
8671
- end
8672
-
8673
- class ResourcePolicyBackupSchedulePolicyRetentionPolicy
8674
- # @private
8675
- class Representation < Google::Apis::Core::JsonRepresentation
8676
- property :max_retention_days, as: 'maxRetentionDays'
8677
- property :on_source_disk_delete, as: 'onSourceDiskDelete'
8678
- end
8679
- end
8680
-
8681
- class ResourcePolicyBackupSchedulePolicySchedule
8682
- # @private
8683
- class Representation < Google::Apis::Core::JsonRepresentation
8684
- property :daily_schedule, as: 'dailySchedule', class: Google::Apis::ComputeBeta::ResourcePolicyDailyCycle, decorator: Google::Apis::ComputeBeta::ResourcePolicyDailyCycle::Representation
8685
-
8686
- property :hourly_schedule, as: 'hourlySchedule', class: Google::Apis::ComputeBeta::ResourcePolicyHourlyCycle, decorator: Google::Apis::ComputeBeta::ResourcePolicyHourlyCycle::Representation
8687
-
8688
- property :weekly_schedule, as: 'weeklySchedule', class: Google::Apis::ComputeBeta::ResourcePolicyWeeklyCycle, decorator: Google::Apis::ComputeBeta::ResourcePolicyWeeklyCycle::Representation
8689
-
8690
- end
8691
- end
8692
-
8693
- class ResourcePolicyBackupSchedulePolicySnapshotProperties
8694
- # @private
8695
- class Representation < Google::Apis::Core::JsonRepresentation
8696
- property :guest_flush, as: 'guestFlush'
8697
- hash :labels, as: 'labels'
8698
- collection :storage_locations, as: 'storageLocations'
8699
- end
8700
- end
8701
-
8702
8669
  class ResourcePolicyDailyCycle
8703
8670
  # @private
8704
8671
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -8750,6 +8717,47 @@ module Google
8750
8717
  end
8751
8718
  end
8752
8719
 
8720
+ class ResourcePolicySnapshotSchedulePolicy
8721
+ # @private
8722
+ class Representation < Google::Apis::Core::JsonRepresentation
8723
+ property :retention_policy, as: 'retentionPolicy', class: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicyRetentionPolicy, decorator: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicyRetentionPolicy::Representation
8724
+
8725
+ property :schedule, as: 'schedule', class: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicySchedule, decorator: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicySchedule::Representation
8726
+
8727
+ property :snapshot_properties, as: 'snapshotProperties', class: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicySnapshotProperties, decorator: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicySnapshotProperties::Representation
8728
+
8729
+ end
8730
+ end
8731
+
8732
+ class ResourcePolicySnapshotSchedulePolicyRetentionPolicy
8733
+ # @private
8734
+ class Representation < Google::Apis::Core::JsonRepresentation
8735
+ property :max_retention_days, as: 'maxRetentionDays'
8736
+ property :on_source_disk_delete, as: 'onSourceDiskDelete'
8737
+ end
8738
+ end
8739
+
8740
+ class ResourcePolicySnapshotSchedulePolicySchedule
8741
+ # @private
8742
+ class Representation < Google::Apis::Core::JsonRepresentation
8743
+ property :daily_schedule, as: 'dailySchedule', class: Google::Apis::ComputeBeta::ResourcePolicyDailyCycle, decorator: Google::Apis::ComputeBeta::ResourcePolicyDailyCycle::Representation
8744
+
8745
+ property :hourly_schedule, as: 'hourlySchedule', class: Google::Apis::ComputeBeta::ResourcePolicyHourlyCycle, decorator: Google::Apis::ComputeBeta::ResourcePolicyHourlyCycle::Representation
8746
+
8747
+ property :weekly_schedule, as: 'weeklySchedule', class: Google::Apis::ComputeBeta::ResourcePolicyWeeklyCycle, decorator: Google::Apis::ComputeBeta::ResourcePolicyWeeklyCycle::Representation
8748
+
8749
+ end
8750
+ end
8751
+
8752
+ class ResourcePolicySnapshotSchedulePolicySnapshotProperties
8753
+ # @private
8754
+ class Representation < Google::Apis::Core::JsonRepresentation
8755
+ property :guest_flush, as: 'guestFlush'
8756
+ hash :labels, as: 'labels'
8757
+ collection :storage_locations, as: 'storageLocations'
8758
+ end
8759
+ end
8760
+
8753
8761
  class ResourcePolicyWeeklyCycle
8754
8762
  # @private
8755
8763
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -8979,6 +8987,8 @@ module Google
8979
8987
  # @private
8980
8988
  class Representation < Google::Apis::Core::JsonRepresentation
8981
8989
  property :icmp_idle_timeout_sec, as: 'icmpIdleTimeoutSec'
8990
+ property :log_config, as: 'logConfig', class: Google::Apis::ComputeBeta::RouterNatLogConfig, decorator: Google::Apis::ComputeBeta::RouterNatLogConfig::Representation
8991
+
8982
8992
  property :min_ports_per_vm, as: 'minPortsPerVm'
8983
8993
  property :name, as: 'name'
8984
8994
  property :nat_ip_allocate_option, as: 'natIpAllocateOption'
@@ -8992,6 +9002,14 @@ module Google
8992
9002
  end
8993
9003
  end
8994
9004
 
9005
+ class RouterNatLogConfig
9006
+ # @private
9007
+ class Representation < Google::Apis::Core::JsonRepresentation
9008
+ property :enable, as: 'enable'
9009
+ property :filter, as: 'filter'
9010
+ end
9011
+ end
9012
+
8995
9013
  class RouterNatSubnetworkToNat
8996
9014
  # @private
8997
9015
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -9242,8 +9242,8 @@ module Google
9242
9242
  execute_or_queue_command(command, &block)
9243
9243
  end
9244
9244
 
9245
- # Performs a reset on the instance. For more information, see Resetting an
9246
- # instance.
9245
+ # Performs a reset on the instance. This is a hard reset; the VM does not do a
9246
+ # graceful shutdown. For more information, see Resetting an instance.
9247
9247
  # @param [String] project
9248
9248
  # Project ID for this request.
9249
9249
  # @param [String] zone
@@ -16315,6 +16315,46 @@ module Google
16315
16315
  execute_or_queue_command(command, &block)
16316
16316
  end
16317
16317
 
16318
+ # Gets the access control policy for a resource. May be empty if no such policy
16319
+ # or resource exists.
16320
+ # @param [String] project
16321
+ # Project ID for this request.
16322
+ # @param [String] region
16323
+ # The name of the region for this request.
16324
+ # @param [String] resource
16325
+ # Name or id of the resource for this request.
16326
+ # @param [String] fields
16327
+ # Selector specifying which fields to include in a partial response.
16328
+ # @param [String] quota_user
16329
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16330
+ # characters.
16331
+ # @param [String] user_ip
16332
+ # Deprecated. Please use quotaUser instead.
16333
+ # @param [Google::Apis::RequestOptions] options
16334
+ # Request-specific options
16335
+ #
16336
+ # @yield [result, err] Result & error if block supplied
16337
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
16338
+ # @yieldparam err [StandardError] error object if request failed
16339
+ #
16340
+ # @return [Google::Apis::ComputeBeta::Policy]
16341
+ #
16342
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16343
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16344
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16345
+ def get_region_disk_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16346
+ command = make_simple_command(:get, '{project}/regions/{region}/disks/{resource}/getIamPolicy', options)
16347
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
16348
+ command.response_class = Google::Apis::ComputeBeta::Policy
16349
+ command.params['project'] = project unless project.nil?
16350
+ command.params['region'] = region unless region.nil?
16351
+ command.params['resource'] = resource unless resource.nil?
16352
+ command.query['fields'] = fields unless fields.nil?
16353
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16354
+ command.query['userIp'] = user_ip unless user_ip.nil?
16355
+ execute_or_queue_command(command, &block)
16356
+ end
16357
+
16318
16358
  # Creates a persistent regional disk in the specified project using the data
16319
16359
  # included in the request.
16320
16360
  # @param [String] project
@@ -16552,6 +16592,49 @@ module Google
16552
16592
  execute_or_queue_command(command, &block)
16553
16593
  end
16554
16594
 
16595
+ # Sets the access control policy on the specified resource. Replaces any
16596
+ # existing policy.
16597
+ # @param [String] project
16598
+ # Project ID for this request.
16599
+ # @param [String] region
16600
+ # The name of the region for this request.
16601
+ # @param [String] resource
16602
+ # Name or id of the resource for this request.
16603
+ # @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
16604
+ # @param [String] fields
16605
+ # Selector specifying which fields to include in a partial response.
16606
+ # @param [String] quota_user
16607
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16608
+ # characters.
16609
+ # @param [String] user_ip
16610
+ # Deprecated. Please use quotaUser instead.
16611
+ # @param [Google::Apis::RequestOptions] options
16612
+ # Request-specific options
16613
+ #
16614
+ # @yield [result, err] Result & error if block supplied
16615
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
16616
+ # @yieldparam err [StandardError] error object if request failed
16617
+ #
16618
+ # @return [Google::Apis::ComputeBeta::Policy]
16619
+ #
16620
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16621
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16622
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16623
+ def set_region_disk_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16624
+ command = make_simple_command(:post, '{project}/regions/{region}/disks/{resource}/setIamPolicy', options)
16625
+ command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation
16626
+ command.request_object = region_set_policy_request_object
16627
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
16628
+ command.response_class = Google::Apis::ComputeBeta::Policy
16629
+ command.params['project'] = project unless project.nil?
16630
+ command.params['region'] = region unless region.nil?
16631
+ command.params['resource'] = resource unless resource.nil?
16632
+ command.query['fields'] = fields unless fields.nil?
16633
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16634
+ command.query['userIp'] = user_ip unless user_ip.nil?
16635
+ execute_or_queue_command(command, &block)
16636
+ end
16637
+
16555
16638
  # Sets the labels on the target regional disk.
16556
16639
  # @param [String] project
16557
16640
  # 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 = '20181217'
28
+ REVISION = '20190107'
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'
@@ -5194,6 +5194,45 @@ module Google
5194
5194
  end
5195
5195
  end
5196
5196
 
5197
+ # Encapsulates numeric value that can be either absolute or relative.
5198
+ class FixedOrPercent
5199
+ include Google::Apis::Core::Hashable
5200
+
5201
+ # [Output Only] Absolute value of VM instances calculated based on the specific
5202
+ # mode.
5203
+ #
5204
+ # - If the value is fixed, then the caculated value is equal to the fixed value.
5205
+ # - If the value is a percent, then the calculated value is percent/100 *
5206
+ # targetSize. For example, the calculated value of a 80% of a managed instance
5207
+ # group with 150 instances would be (80/100 * 150) = 120 VM instances. If there
5208
+ # is a remainder, the number is rounded up.
5209
+ # Corresponds to the JSON property `calculated`
5210
+ # @return [Fixnum]
5211
+ attr_accessor :calculated
5212
+
5213
+ # Specifies a fixed number of VM instances. This must be a positive integer.
5214
+ # Corresponds to the JSON property `fixed`
5215
+ # @return [Fixnum]
5216
+ attr_accessor :fixed
5217
+
5218
+ # Specifies a percentage of instances between 0 to 100%, inclusive. For example,
5219
+ # specify 80 for 80%.
5220
+ # Corresponds to the JSON property `percent`
5221
+ # @return [Fixnum]
5222
+ attr_accessor :percent
5223
+
5224
+ def initialize(**args)
5225
+ update!(**args)
5226
+ end
5227
+
5228
+ # Update properties of this object
5229
+ def update!(**args)
5230
+ @calculated = args[:calculated] if args.key?(:calculated)
5231
+ @fixed = args[:fixed] if args.key?(:fixed)
5232
+ @percent = args[:percent] if args.key?(:percent)
5233
+ end
5234
+ end
5235
+
5197
5236
  # A ForwardingRule resource. A ForwardingRule resource specifies which pool of
5198
5237
  # target virtual machines to forward a packet to if it matches the given [
5199
5238
  # IPAddress, IPProtocol, ports] tuple. (== resource_for beta.forwardingRules ==)
@@ -5358,6 +5397,25 @@ module Google
5358
5397
  # @return [String]
5359
5398
  attr_accessor :self_link
5360
5399
 
5400
+ # An optional prefix to the service name for this Forwarding Rule. If specified,
5401
+ # will be the first label of the fully qualified service name.
5402
+ # The label must be 1-63 characters long, and comply with RFC1035. Specifically,
5403
+ # the label must be 1-63 characters long and match the regular expression `[a-z](
5404
+ # [-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase
5405
+ # letter, and all following characters must be a dash, lowercase letter, or
5406
+ # digit, except the last character, which cannot be a dash.
5407
+ # This field is only used for internal load balancing.
5408
+ # Corresponds to the JSON property `serviceLabel`
5409
+ # @return [String]
5410
+ attr_accessor :service_label
5411
+
5412
+ # [Output Only] The internal fully qualified service name for this Forwarding
5413
+ # Rule.
5414
+ # This field is only used for internal load balancing.
5415
+ # Corresponds to the JSON property `serviceName`
5416
+ # @return [String]
5417
+ attr_accessor :service_name
5418
+
5361
5419
  # This field is only used for INTERNAL load balancing.
5362
5420
  # For internal load balancing, this field identifies the subnetwork that the
5363
5421
  # load balanced IP should belong to for this Forwarding Rule.
@@ -5400,6 +5458,8 @@ module Google
5400
5458
  @ports = args[:ports] if args.key?(:ports)
5401
5459
  @region = args[:region] if args.key?(:region)
5402
5460
  @self_link = args[:self_link] if args.key?(:self_link)
5461
+ @service_label = args[:service_label] if args.key?(:service_label)
5462
+ @service_name = args[:service_name] if args.key?(:service_name)
5403
5463
  @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
5404
5464
  @target = args[:target] if args.key?(:target)
5405
5465
  end
@@ -7883,6 +7943,11 @@ module Google
7883
7943
  # @return [String]
7884
7944
  attr_accessor :self_link
7885
7945
 
7946
+ # [Output Only] The status of this managed instance group.
7947
+ # Corresponds to the JSON property `status`
7948
+ # @return [Google::Apis::ComputeV1::InstanceGroupManagerStatus]
7949
+ attr_accessor :status
7950
+
7886
7951
  # The URLs for all TargetPool resources to which instances in the instanceGroup
7887
7952
  # field are added. The target pools automatically apply to all of the instances
7888
7953
  # in the managed instance group.
@@ -7897,6 +7962,23 @@ module Google
7897
7962
  # @return [Fixnum]
7898
7963
  attr_accessor :target_size
7899
7964
 
7965
+ # The update policy for this managed instance group.
7966
+ # Corresponds to the JSON property `updatePolicy`
7967
+ # @return [Google::Apis::ComputeV1::InstanceGroupManagerUpdatePolicy]
7968
+ attr_accessor :update_policy
7969
+
7970
+ # Specifies the instance templates used by this managed instance group to create
7971
+ # instances.
7972
+ # Each version is defined by an instanceTemplate. Every template can appear at
7973
+ # most once per instance group. This field overrides the top-level
7974
+ # instanceTemplate field. Read more about the relationships between these fields.
7975
+ # Exactly one version must leave the targetSize field unset. That version will
7976
+ # be applied to all remaining instances. For more information, read about canary
7977
+ # updates.
7978
+ # Corresponds to the JSON property `versions`
7979
+ # @return [Array<Google::Apis::ComputeV1::InstanceGroupManagerVersion>]
7980
+ attr_accessor :versions
7981
+
7900
7982
  # [Output Only] The URL of the zone where the managed instance group is located (
7901
7983
  # for zonal resources).
7902
7984
  # Corresponds to the JSON property `zone`
@@ -7924,8 +8006,11 @@ module Google
7924
8006
  @named_ports = args[:named_ports] if args.key?(:named_ports)
7925
8007
  @region = args[:region] if args.key?(:region)
7926
8008
  @self_link = args[:self_link] if args.key?(:self_link)
8009
+ @status = args[:status] if args.key?(:status)
7927
8010
  @target_pools = args[:target_pools] if args.key?(:target_pools)
7928
8011
  @target_size = args[:target_size] if args.key?(:target_size)
8012
+ @update_policy = args[:update_policy] if args.key?(:update_policy)
8013
+ @versions = args[:versions] if args.key?(:versions)
7929
8014
  @zone = args[:zone] if args.key?(:zone)
7930
8015
  end
7931
8016
  end
@@ -8284,6 +8369,105 @@ module Google
8284
8369
  end
8285
8370
  end
8286
8371
 
8372
+ #
8373
+ class InstanceGroupManagerStatus
8374
+ include Google::Apis::Core::Hashable
8375
+
8376
+ # [Output Only] A bit indicating whether the managed instance group is in a
8377
+ # stable state. A stable state means that: none of the instances in the managed
8378
+ # instance group is currently undergoing any type of change (for example,
8379
+ # creation, restart, or deletion); no future changes are scheduled for instances
8380
+ # in the managed instance group; and the managed instance group itself is not
8381
+ # being modified.
8382
+ # Corresponds to the JSON property `isStable`
8383
+ # @return [Boolean]
8384
+ attr_accessor :is_stable
8385
+ alias_method :is_stable?, :is_stable
8386
+
8387
+ def initialize(**args)
8388
+ update!(**args)
8389
+ end
8390
+
8391
+ # Update properties of this object
8392
+ def update!(**args)
8393
+ @is_stable = args[:is_stable] if args.key?(:is_stable)
8394
+ end
8395
+ end
8396
+
8397
+ #
8398
+ class InstanceGroupManagerUpdatePolicy
8399
+ include Google::Apis::Core::Hashable
8400
+
8401
+ # Encapsulates numeric value that can be either absolute or relative.
8402
+ # Corresponds to the JSON property `maxSurge`
8403
+ # @return [Google::Apis::ComputeV1::FixedOrPercent]
8404
+ attr_accessor :max_surge
8405
+
8406
+ # Encapsulates numeric value that can be either absolute or relative.
8407
+ # Corresponds to the JSON property `maxUnavailable`
8408
+ # @return [Google::Apis::ComputeV1::FixedOrPercent]
8409
+ attr_accessor :max_unavailable
8410
+
8411
+ # Minimal action to be taken on an instance. You can specify either RESTART to
8412
+ # restart existing instances or REPLACE to delete and create new instances from
8413
+ # the target template. If you specify a RESTART, the Updater will attempt to
8414
+ # perform that action only. However, if the Updater determines that the minimal
8415
+ # action you specify is not enough to perform the update, it might perform a
8416
+ # more disruptive action.
8417
+ # Corresponds to the JSON property `minimalAction`
8418
+ # @return [String]
8419
+ attr_accessor :minimal_action
8420
+
8421
+ #
8422
+ # Corresponds to the JSON property `type`
8423
+ # @return [String]
8424
+ attr_accessor :type
8425
+
8426
+ def initialize(**args)
8427
+ update!(**args)
8428
+ end
8429
+
8430
+ # Update properties of this object
8431
+ def update!(**args)
8432
+ @max_surge = args[:max_surge] if args.key?(:max_surge)
8433
+ @max_unavailable = args[:max_unavailable] if args.key?(:max_unavailable)
8434
+ @minimal_action = args[:minimal_action] if args.key?(:minimal_action)
8435
+ @type = args[:type] if args.key?(:type)
8436
+ end
8437
+ end
8438
+
8439
+ #
8440
+ class InstanceGroupManagerVersion
8441
+ include Google::Apis::Core::Hashable
8442
+
8443
+ #
8444
+ # Corresponds to the JSON property `instanceTemplate`
8445
+ # @return [String]
8446
+ attr_accessor :instance_template
8447
+
8448
+ # Name of the version. Unique among all versions in the scope of this managed
8449
+ # instance group.
8450
+ # Corresponds to the JSON property `name`
8451
+ # @return [String]
8452
+ attr_accessor :name
8453
+
8454
+ # Encapsulates numeric value that can be either absolute or relative.
8455
+ # Corresponds to the JSON property `targetSize`
8456
+ # @return [Google::Apis::ComputeV1::FixedOrPercent]
8457
+ attr_accessor :target_size
8458
+
8459
+ def initialize(**args)
8460
+ update!(**args)
8461
+ end
8462
+
8463
+ # Update properties of this object
8464
+ def update!(**args)
8465
+ @instance_template = args[:instance_template] if args.key?(:instance_template)
8466
+ @name = args[:name] if args.key?(:name)
8467
+ @target_size = args[:target_size] if args.key?(:target_size)
8468
+ end
8469
+ end
8470
+
8287
8471
  #
8288
8472
  class InstanceGroupManagersAbandonInstancesRequest
8289
8473
  include Google::Apis::Core::Hashable
@@ -14818,12 +15002,14 @@ module Google
14818
15002
  # - https://www.googleapis.com/compute/v1/projects/project/global/
14819
15003
  # backendServices/backendService
14820
15004
  # - compute/v1/projects/project/global/backendServices/backendService
14821
- # - global/backendServices/backendService
14822
- # Use defaultService instead of defaultRouteAction when simple routing to a
14823
- # backend service is desired and other advanced capabilities like traffic
14824
- # splitting and URL rewrites are not required.
14825
- # Only one of defaultService, defaultRouteAction or defaultUrlRedirect must be
14826
- # set.
15005
+ # - global/backendServices/backendService If defaultRouteAction is additionally
15006
+ # specified, advanced routing actions like URL Rewrites, etc. take effect prior
15007
+ # to sending the request to the backend. However, if defaultService is specified,
15008
+ # defaultRouteAction cannot contain any weightedBackendServices. Conversely, if
15009
+ # defaultRouteAction specifies any weightedBackendServices, defaultService must
15010
+ # not be specified.
15011
+ # Only one of defaultService, defaultUrlRedirect or defaultRouteAction.
15012
+ # weightedBackendService must be set.
14827
15013
  # Authorization requires one or more of the following Google IAM permissions on
14828
15014
  # the specified resource default_service:
14829
15015
  # - compute.backendBuckets.use
@@ -14880,11 +15066,14 @@ module Google
14880
15066
  # @return [Array<String>]
14881
15067
  attr_accessor :paths
14882
15068
 
14883
- # The URL of the backend service resource if this rule is matched.
14884
- # Use service instead of routeAction when simple routing to a backend service is
14885
- # desired and other advanced capabilities like traffic splitting and rewrites
14886
- # are not required.
14887
- # Only one of service, routeAction or urlRedirect should must be set.
15069
+ # The full or partial URL of the backend service resource to which traffic is
15070
+ # directed if this rule is matched. If routeAction is additionally specified,
15071
+ # advanced routing actions like URL Rewrites, etc. take effect prior to sending
15072
+ # the request to the backend. However, if service is specified, routeAction
15073
+ # cannot contain any weightedBackendService s. Conversely, if routeAction
15074
+ # specifies any weightedBackendServices, service must not be specified.
15075
+ # Only one of urlRedirect, service or routeAction.weightedBackendService must be
15076
+ # set.
14888
15077
  # Corresponds to the JSON property `service`
14889
15078
  # @return [String]
14890
15079
  attr_accessor :service
@@ -22164,12 +22353,15 @@ module Google
22164
22353
  # @return [String]
22165
22354
  attr_accessor :creation_timestamp
22166
22355
 
22167
- # The URL of the backendService resource if none of the hostRules match.
22168
- # Use defaultService instead of defaultRouteAction when simple routing to a
22169
- # backendService is desired and other advanced capabilities like traffic
22170
- # splitting and rewrites are not required.
22171
- # Only one of defaultService, defaultRouteAction or defaultUrlRedirect should
22172
- # must be set.
22356
+ # The full or partial URL of the defaultService resource to which traffic is
22357
+ # directed if none of the hostRules match. If defaultRouteAction is additionally
22358
+ # specified, advanced routing actions like URL Rewrites, etc. take effect prior
22359
+ # to sending the request to the backend. However, if defaultService is specified,
22360
+ # defaultRouteAction cannot contain any weightedBackendServices. Conversely, if
22361
+ # routeAction specifies any weightedBackendServices, service must not be
22362
+ # specified.
22363
+ # Only one of defaultService, defaultUrlRedirect or defaultRouteAction.
22364
+ # weightedBackendService must be set.
22173
22365
  # Corresponds to the JSON property `defaultService`
22174
22366
  # @return [String]
22175
22367
  attr_accessor :default_service