google-api-client 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/README.md +34 -0
  4. data/api_names.yaml +3 -0
  5. data/api_names_out.yaml +1058 -20
  6. data/bin/generate-api +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +203 -6
  9. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +78 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +36 -0
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/adsense_v1_4.rb +1 -1
  13. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  14. data/generated/google/apis/androidenterprise_v1.rb +2 -3
  15. data/generated/google/apis/androidenterprise_v1/classes.rb +11 -4
  16. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  17. data/generated/google/apis/androidenterprise_v1/service.rb +5 -6
  18. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  19. data/generated/google/apis/androidpublisher_v2/classes.rb +47 -0
  20. data/generated/google/apis/androidpublisher_v2/representations.rb +6 -0
  21. data/generated/google/apis/appengine_v1beta5.rb +2 -3
  22. data/generated/google/apis/appengine_v1beta5/classes.rb +143 -8
  23. data/generated/google/apis/appengine_v1beta5/representations.rb +42 -0
  24. data/generated/google/apis/appengine_v1beta5/service.rb +48 -6
  25. data/generated/google/apis/appstate_v1.rb +1 -1
  26. data/generated/google/apis/bigquery_v2.rb +1 -1
  27. data/generated/google/apis/bigquery_v2/classes.rb +68 -14
  28. data/generated/google/apis/bigquery_v2/representations.rb +30 -0
  29. data/generated/google/apis/books_v1.rb +1 -1
  30. data/generated/google/apis/books_v1/classes.rb +68 -3
  31. data/generated/google/apis/books_v1/representations.rb +21 -0
  32. data/generated/google/apis/calendar_v3.rb +2 -2
  33. data/generated/google/apis/calendar_v3/service.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  35. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  36. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  37. data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
  38. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  39. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
  40. data/generated/google/apis/clouduseraccounts_beta.rb +1 -1
  41. data/generated/google/apis/clouduseraccounts_beta/classes.rb +1 -1
  42. data/generated/google/apis/compute_beta.rb +1 -1
  43. data/generated/google/apis/compute_beta/classes.rb +138 -108
  44. data/generated/google/apis/compute_beta/representations.rb +16 -18
  45. data/generated/google/apis/compute_beta/service.rb +52 -2
  46. data/generated/google/apis/compute_v1.rb +1 -1
  47. data/generated/google/apis/compute_v1/classes.rb +55 -74
  48. data/generated/google/apis/compute_v1/representations.rb +14 -18
  49. data/generated/google/apis/compute_v1/service.rb +45 -1
  50. data/generated/google/apis/container_v1.rb +3 -3
  51. data/generated/google/apis/container_v1/classes.rb +200 -42
  52. data/generated/google/apis/container_v1/representations.rb +54 -0
  53. data/generated/google/apis/container_v1/service.rb +31 -30
  54. data/generated/google/apis/content_v2.rb +1 -1
  55. data/generated/google/apis/datastore_v1beta2.rb +2 -2
  56. data/generated/google/apis/datastore_v1beta2/service.rb +1 -1
  57. data/generated/google/apis/deploymentmanager_v2.rb +2 -3
  58. data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -1
  59. data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
  60. data/generated/google/apis/deploymentmanager_v2/service.rb +26 -27
  61. data/generated/google/apis/dfareporting_v2_3.rb +2 -2
  62. data/generated/google/apis/dfareporting_v2_3/classes.rb +1 -1
  63. data/generated/google/apis/dfareporting_v2_3/service.rb +2 -2
  64. data/generated/google/apis/dns_v1.rb +1 -1
  65. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  66. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  67. data/generated/google/apis/drive_v2.rb +1 -1
  68. data/generated/google/apis/drive_v2/classes.rb +10 -4
  69. data/generated/google/apis/drive_v2/representations.rb +1 -0
  70. data/generated/google/apis/drive_v3.rb +1 -1
  71. data/generated/google/apis/drive_v3/classes.rb +7 -0
  72. data/generated/google/apis/drive_v3/representations.rb +1 -0
  73. data/generated/google/apis/fusiontables_v2.rb +1 -1
  74. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  75. data/generated/google/apis/games_management_v1management.rb +1 -1
  76. data/generated/google/apis/games_v1.rb +1 -1
  77. data/generated/google/apis/genomics_v1.rb +2 -2
  78. data/generated/google/apis/genomics_v1/classes.rb +770 -82
  79. data/generated/google/apis/genomics_v1/representations.rb +287 -24
  80. data/generated/google/apis/genomics_v1/service.rb +412 -13
  81. data/generated/google/apis/gmail_v1.rb +1 -1
  82. data/generated/google/apis/groupssettings_v1.rb +1 -1
  83. data/generated/google/apis/groupssettings_v1/classes.rb +13 -6
  84. data/generated/google/apis/groupssettings_v1/representations.rb +1 -0
  85. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  86. data/generated/google/apis/identitytoolkit_v3/classes.rb +50 -0
  87. data/generated/google/apis/identitytoolkit_v3/representations.rb +10 -0
  88. data/generated/google/apis/logging_v2beta1.rb +2 -3
  89. data/generated/google/apis/logging_v2beta1/classes.rb +219 -63
  90. data/generated/google/apis/logging_v2beta1/representations.rb +24 -1
  91. data/generated/google/apis/logging_v2beta1/service.rb +25 -32
  92. data/generated/google/apis/oauth2_v2.rb +2 -2
  93. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  94. data/generated/google/apis/plus_domains_v1.rb +1 -1
  95. data/generated/google/apis/plus_v1.rb +1 -1
  96. data/generated/google/apis/pubsub_v1.rb +1 -1
  97. data/generated/google/apis/pubsub_v1/classes.rb +20 -12
  98. data/generated/google/apis/pubsub_v1/service.rb +32 -35
  99. data/generated/google/apis/reseller_v1.rb +1 -1
  100. data/generated/google/apis/reseller_v1/classes.rb +23 -9
  101. data/generated/google/apis/reseller_v1/representations.rb +2 -0
  102. data/generated/google/apis/sheets_v1.rb +43 -0
  103. data/generated/google/apis/sheets_v1/classes.rb +4542 -0
  104. data/generated/google/apis/sheets_v1/representations.rb +1703 -0
  105. data/generated/google/apis/sheets_v1/service.rb +363 -0
  106. data/generated/google/apis/sqladmin_v1beta4.rb +3 -2
  107. data/generated/google/apis/sqladmin_v1beta4/classes.rb +4 -3
  108. data/generated/google/apis/sqladmin_v1beta4/service.rb +2 -1
  109. data/generated/google/apis/storage_v1.rb +1 -1
  110. data/generated/google/apis/vision_v1.rb +2 -2
  111. data/generated/google/apis/vision_v1/classes.rb +11 -11
  112. data/generated/google/apis/vision_v1/service.rb +1 -1
  113. data/generated/google/apis/webmasters_v3.rb +2 -2
  114. data/generated/google/apis/webmasters_v3/classes.rb +7 -0
  115. data/generated/google/apis/webmasters_v3/representations.rb +1 -0
  116. data/generated/google/apis/webmasters_v3/service.rb +1 -1
  117. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  118. data/generated/google/apis/youtube_partner_v1/classes.rb +3656 -0
  119. data/generated/google/apis/youtube_partner_v1/representations.rb +1452 -0
  120. data/generated/google/apis/youtube_partner_v1/service.rb +3165 -0
  121. data/generated/google/apis/youtube_v3.rb +3 -2
  122. data/generated/google/apis/youtube_v3/classes.rb +100 -3
  123. data/generated/google/apis/youtube_v3/representations.rb +50 -0
  124. data/generated/google/apis/youtube_v3/service.rb +2 -1
  125. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  126. data/generated/google/apis/youtubereporting_v1/classes.rb +17 -0
  127. data/generated/google/apis/youtubereporting_v1/representations.rb +2 -0
  128. data/generated/google/apis/youtubereporting_v1/service.rb +21 -3
  129. data/google-api-client.gemspec +2 -0
  130. data/lib/google/apis.rb +12 -2
  131. data/lib/google/apis/version.rb +1 -1
  132. data/script/generate +5 -2
  133. data/spec/google/apis/logging_spec.rb +55 -0
  134. metadata +12 -4
@@ -460,6 +460,12 @@ module Google
460
460
  include Google::Apis::Core::JsonObjectSupport
461
461
  end
462
462
 
463
+ class InstanceGroupManagersResizeAdvancedRequest
464
+ class Representation < Google::Apis::Core::JsonRepresentation; end
465
+
466
+ include Google::Apis::Core::JsonObjectSupport
467
+ end
468
+
463
469
  class InstanceGroupManagersScopedList
464
470
  class Representation < Google::Apis::Core::JsonRepresentation; end
465
471
 
@@ -1272,12 +1278,6 @@ module Google
1272
1278
 
1273
1279
  class Zone
1274
1280
  class Representation < Google::Apis::Core::JsonRepresentation; end
1275
-
1276
- class MaintenanceWindow
1277
- class Representation < Google::Apis::Core::JsonRepresentation; end
1278
-
1279
- include Google::Apis::Core::JsonObjectSupport
1280
- end
1281
1281
 
1282
1282
  include Google::Apis::Core::JsonObjectSupport
1283
1283
  end
@@ -1540,6 +1540,7 @@ module Google
1540
1540
  property :port, as: 'port'
1541
1541
  property :port_name, as: 'portName'
1542
1542
  property :protocol, as: 'protocol'
1543
+ property :region, as: 'region'
1543
1544
  property :self_link, as: 'selfLink'
1544
1545
  property :timeout_sec, as: 'timeoutSec'
1545
1546
  end
@@ -2126,6 +2127,7 @@ module Google
2126
2127
  class Representation < Google::Apis::Core::JsonRepresentation
2127
2128
  property :abandoning, as: 'abandoning'
2128
2129
  property :creating, as: 'creating'
2130
+ property :creating_without_retries, as: 'creatingWithoutRetries'
2129
2131
  property :deleting, as: 'deleting'
2130
2132
  property :none, as: 'none'
2131
2133
  property :recreating, as: 'recreating'
@@ -2195,6 +2197,14 @@ module Google
2195
2197
  end
2196
2198
  end
2197
2199
 
2200
+ class InstanceGroupManagersResizeAdvancedRequest
2201
+ # @private
2202
+ class Representation < Google::Apis::Core::JsonRepresentation
2203
+ property :no_creation_retries, as: 'noCreationRetries'
2204
+ property :target_size, as: 'targetSize'
2205
+ end
2206
+ end
2207
+
2198
2208
  class InstanceGroupManagersScopedList
2199
2209
  # @private
2200
2210
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3684,23 +3694,11 @@ module Google
3684
3694
  property :description, as: 'description'
3685
3695
  property :id, as: 'id'
3686
3696
  property :kind, as: 'kind'
3687
- collection :maintenance_windows, as: 'maintenanceWindows', class: Google::Apis::ComputeBeta::Zone::MaintenanceWindow, decorator: Google::Apis::ComputeBeta::Zone::MaintenanceWindow::Representation
3688
-
3689
3697
  property :name, as: 'name'
3690
3698
  property :region, as: 'region'
3691
3699
  property :self_link, as: 'selfLink'
3692
3700
  property :status, as: 'status'
3693
3701
  end
3694
-
3695
- class MaintenanceWindow
3696
- # @private
3697
- class Representation < Google::Apis::Core::JsonRepresentation
3698
- property :begin_time, as: 'beginTime'
3699
- property :description, as: 'description'
3700
- property :end_time, as: 'endTime'
3701
- property :name, as: 'name'
3702
- end
3703
- end
3704
3702
  end
3705
3703
 
3706
3704
  class ZoneList
@@ -1580,7 +1580,7 @@ module Google
1580
1580
 
1581
1581
  # Creates a persistent disk in the specified project using the data in the
1582
1582
  # request. You can create a disk with a sourceImage, a sourceSnapshot, or create
1583
- # an empty 200 GB data disk by omitting all properties. You can also create a
1583
+ # an empty 500 GB data disk by omitting all properties. You can also create a
1584
1584
  # disk that is larger than the default size by specifying the sizeGb property.
1585
1585
  # @param [String] project
1586
1586
  # Project ID for this request.
@@ -4041,7 +4041,7 @@ module Google
4041
4041
  execute_or_queue_command(command, &block)
4042
4042
  end
4043
4043
 
4044
- # Returns the latest undeprecated image for an image family.
4044
+ # Returns the latest image that is part of an image family and is not deprecated.
4045
4045
  # @param [String] project
4046
4046
  # Project ID for this request.
4047
4047
  # @param [String] family
@@ -4824,6 +4824,56 @@ module Google
4824
4824
  execute_or_queue_command(command, &block)
4825
4825
  end
4826
4826
 
4827
+ # Resizes the managed instance group. If you increase the size, the group
4828
+ # creates new instances using the current instance template. If you decrease the
4829
+ # size, the group deletes instances. The resize operation is marked DONE when
4830
+ # the resize actions are scheduled even if the group has not yet added or
4831
+ # deleted any instances. You must separately verify the status of the creating
4832
+ # or deleting actions with the listmanagedinstances method. This method is an
4833
+ # extended version of Resize and it supports more advanced options.
4834
+ # @param [String] project
4835
+ # Project ID for this request.
4836
+ # @param [String] zone
4837
+ # The name of the zone where the managed instance group is located.
4838
+ # @param [String] instance_group_manager
4839
+ # The name of the managed instance group.
4840
+ # @param [Google::Apis::ComputeBeta::InstanceGroupManagersResizeAdvancedRequest] instance_group_managers_resize_advanced_request_object
4841
+ # @param [String] fields
4842
+ # Selector specifying which fields to include in a partial response.
4843
+ # @param [String] quota_user
4844
+ # Available to use for quota purposes for server-side applications. Can be any
4845
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4846
+ # Overrides userIp if both are provided.
4847
+ # @param [String] user_ip
4848
+ # IP address of the site where the request originates. Use this if you want to
4849
+ # enforce per-user limits.
4850
+ # @param [Google::Apis::RequestOptions] options
4851
+ # Request-specific options
4852
+ #
4853
+ # @yield [result, err] Result & error if block supplied
4854
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
4855
+ # @yieldparam err [StandardError] error object if request failed
4856
+ #
4857
+ # @return [Google::Apis::ComputeBeta::Operation]
4858
+ #
4859
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4860
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4861
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4862
+ def resize_instance_group_manager_advanced(project, zone, instance_group_manager, instance_group_managers_resize_advanced_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4863
+ command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced', options)
4864
+ command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManagersResizeAdvancedRequest::Representation
4865
+ command.request_object = instance_group_managers_resize_advanced_request_object
4866
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
4867
+ command.response_class = Google::Apis::ComputeBeta::Operation
4868
+ command.params['project'] = project unless project.nil?
4869
+ command.params['zone'] = zone unless zone.nil?
4870
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
4871
+ command.query['fields'] = fields unless fields.nil?
4872
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4873
+ command.query['userIp'] = user_ip unless user_ip.nil?
4874
+ execute_or_queue_command(command, &block)
4875
+ end
4876
+
4827
4877
  # Modifies the autohealing policies.
4828
4878
  # @param [String] project
4829
4879
  # 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 = '20160302'
28
+ REVISION = '20160407'
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'
@@ -474,16 +474,21 @@ module Google
474
474
  # @return [String]
475
475
  attr_accessor :disk_type
476
476
 
477
- # A source image used to create the disk. You can provide a private (custom)
478
- # image, and Compute Engine will use the corresponding image from your project.
479
- # For example:
477
+ # The source image used to create this disk. If the source image is deleted,
478
+ # this field will not be set.
479
+ # To create a disk with one of the public operating system images, specify the
480
+ # image by its family name. For example, specify family/debian-8 to use the
481
+ # latest Debian 8 image:
482
+ # projects/debian-cloud/global/images/family/debian-8
483
+ # Alternatively, use a specific version of a public operating system image:
484
+ # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
485
+ # To create a disk with a private image that you created, specify the image name
486
+ # in the following format:
480
487
  # global/images/my-private-image
481
- # Or you can provide an image from a publicly-available project. For example, to
482
- # use a Debian image from the debian-cloud project, make sure to include the
483
- # project in the URL:
484
- # projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD
485
- # where vYYYYMMDD is the image version. The fully-qualified URL will also work
486
- # in both cases.
488
+ # You can also specify a private image by its image family, which returns the
489
+ # latest version of the image in that family. Replace the image name with family/
490
+ # family-name:
491
+ # global/images/family/my-private-family
487
492
  # Corresponds to the JSON property `sourceImage`
488
493
  # @return [String]
489
494
  attr_accessor :source_image
@@ -1068,6 +1073,12 @@ module Google
1068
1073
  # @return [String]
1069
1074
  attr_accessor :protocol
1070
1075
 
1076
+ # [Output Only] URL of the region where the regional backend service resides.
1077
+ # This field is not applicable to global backend services.
1078
+ # Corresponds to the JSON property `region`
1079
+ # @return [String]
1080
+ attr_accessor :region
1081
+
1071
1082
  # [Output Only] Server-defined URL for the resource.
1072
1083
  # Corresponds to the JSON property `selfLink`
1073
1084
  # @return [String]
@@ -1096,6 +1107,7 @@ module Google
1096
1107
  @port = args[:port] if args.key?(:port)
1097
1108
  @port_name = args[:port_name] if args.key?(:port_name)
1098
1109
  @protocol = args[:protocol] if args.key?(:protocol)
1110
+ @region = args[:region] if args.key?(:region)
1099
1111
  @self_link = args[:self_link] if args.key?(:self_link)
1100
1112
  @timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec)
1101
1113
  end
@@ -1299,26 +1311,21 @@ module Google
1299
1311
  # @return [String]
1300
1312
  attr_accessor :size_gb
1301
1313
 
1302
- # The source image used to create this disk. If the source image is deleted from
1303
- # the system, this field will not be set, even if an image with the same name
1304
- # has been re-created.
1305
- # When creating a disk, you can provide a private (custom) image using the
1306
- # following input, and Compute Engine will use the corresponding image from your
1307
- # project. For example:
1314
+ # The source image used to create this disk. If the source image is deleted,
1315
+ # this field will not be set.
1316
+ # To create a disk with one of the public operating system images, specify the
1317
+ # image by its family name. For example, specify family/debian-8 to use the
1318
+ # latest Debian 8 image:
1319
+ # projects/debian-cloud/global/images/family/debian-8
1320
+ # Alternatively, use a specific version of a public operating system image:
1321
+ # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
1322
+ # To create a disk with a private image that you created, specify the image name
1323
+ # in the following format:
1308
1324
  # global/images/my-private-image
1309
- # Or you can provide an image from a publicly-available project. For example, to
1310
- # use a Debian image from the debian-cloud project, make sure to include the
1311
- # project in the URL:
1312
- # projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD
1313
- # where vYYYYMMDD is the image version. The fully-qualified URL will also work
1314
- # in both cases.
1315
- # You can also specify the latest image for a private image family by replacing
1316
- # the image name suffix with family/family-name. For example:
1325
+ # You can also specify a private image by its image family, which returns the
1326
+ # latest version of the image in that family. Replace the image name with family/
1327
+ # family-name:
1317
1328
  # global/images/family/my-private-family
1318
- # Or you can specify an image family from a publicly-available project. For
1319
- # example, to use the latest Debian 7 from the debian-cloud project, make sure
1320
- # to include the project in the URL:
1321
- # projects/debian-cloud/global/images/family/debian-7
1322
1329
  # Corresponds to the JSON property `sourceImage`
1323
1330
  # @return [String]
1324
1331
  attr_accessor :source_image
@@ -1795,6 +1802,25 @@ module Google
1795
1802
  end
1796
1803
  end
1797
1804
 
1805
+ #
1806
+ class DisksResizeRequest
1807
+ include Google::Apis::Core::Hashable
1808
+
1809
+ # The new size of the persistent disk, which is specified in GB.
1810
+ # Corresponds to the JSON property `sizeGb`
1811
+ # @return [String]
1812
+ attr_accessor :size_gb
1813
+
1814
+ def initialize(**args)
1815
+ update!(**args)
1816
+ end
1817
+
1818
+ # Update properties of this object
1819
+ def update!(**args)
1820
+ @size_gb = args[:size_gb] if args.key?(:size_gb)
1821
+ end
1822
+ end
1823
+
1798
1824
  #
1799
1825
  class DisksScopedList
1800
1826
  include Google::Apis::Core::Hashable
@@ -5379,7 +5405,7 @@ module Google
5379
5405
  # @return [String]
5380
5406
  attr_accessor :insert_time
5381
5407
 
5382
- # [Output Only] Type of the resource. Always compute#operation for operation
5408
+ # [Output Only] Type of the resource. Always compute#operation for Operation
5383
5409
  # resources.
5384
5410
  # Corresponds to the JSON property `kind`
5385
5411
  # @return [String]
@@ -6804,7 +6830,7 @@ module Google
6804
6830
  # @return [String]
6805
6831
  attr_accessor :network
6806
6832
 
6807
- # [Output Only] URL of the region where the Subnetwork resides.
6833
+ # URL of the region where the Subnetwork resides.
6808
6834
  # Corresponds to the JSON property `region`
6809
6835
  # @return [String]
6810
6836
  attr_accessor :region
@@ -8978,13 +9004,6 @@ module Google
8978
9004
  # @return [String]
8979
9005
  attr_accessor :kind
8980
9006
 
8981
- # [Output Only] Any scheduled maintenance windows for this zone. When the zone
8982
- # is in a maintenance window, all resources which reside in the zone will be
8983
- # unavailable. For more information, see Maintenance Windows
8984
- # Corresponds to the JSON property `maintenanceWindows`
8985
- # @return [Array<Google::Apis::ComputeV1::Zone::MaintenanceWindow>]
8986
- attr_accessor :maintenance_windows
8987
-
8988
9007
  # [Output Only] Name of the resource.
8989
9008
  # Corresponds to the JSON property `name`
8990
9009
  # @return [String]
@@ -9016,49 +9035,11 @@ module Google
9016
9035
  @description = args[:description] if args.key?(:description)
9017
9036
  @id = args[:id] if args.key?(:id)
9018
9037
  @kind = args[:kind] if args.key?(:kind)
9019
- @maintenance_windows = args[:maintenance_windows] if args.key?(:maintenance_windows)
9020
9038
  @name = args[:name] if args.key?(:name)
9021
9039
  @region = args[:region] if args.key?(:region)
9022
9040
  @self_link = args[:self_link] if args.key?(:self_link)
9023
9041
  @status = args[:status] if args.key?(:status)
9024
9042
  end
9025
-
9026
- #
9027
- class MaintenanceWindow
9028
- include Google::Apis::Core::Hashable
9029
-
9030
- # [Output Only] Starting time of the maintenance window, in RFC3339 format.
9031
- # Corresponds to the JSON property `beginTime`
9032
- # @return [String]
9033
- attr_accessor :begin_time
9034
-
9035
- # [Output Only] Textual description of the maintenance window.
9036
- # Corresponds to the JSON property `description`
9037
- # @return [String]
9038
- attr_accessor :description
9039
-
9040
- # [Output Only] Ending time of the maintenance window, in RFC3339 format.
9041
- # Corresponds to the JSON property `endTime`
9042
- # @return [String]
9043
- attr_accessor :end_time
9044
-
9045
- # [Output Only] Name of the maintenance window.
9046
- # Corresponds to the JSON property `name`
9047
- # @return [String]
9048
- attr_accessor :name
9049
-
9050
- def initialize(**args)
9051
- update!(**args)
9052
- end
9053
-
9054
- # Update properties of this object
9055
- def update!(**args)
9056
- @begin_time = args[:begin_time] if args.key?(:begin_time)
9057
- @description = args[:description] if args.key?(:description)
9058
- @end_time = args[:end_time] if args.key?(:end_time)
9059
- @name = args[:name] if args.key?(:name)
9060
- end
9061
- end
9062
9043
  end
9063
9044
 
9064
9045
  # Contains a list of zone resources.
@@ -226,6 +226,12 @@ module Google
226
226
  include Google::Apis::Core::JsonObjectSupport
227
227
  end
228
228
 
229
+ class DisksResizeRequest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
229
235
  class DisksScopedList
230
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
237
 
@@ -1164,12 +1170,6 @@ module Google
1164
1170
 
1165
1171
  class Zone
1166
1172
  class Representation < Google::Apis::Core::JsonRepresentation; end
1167
-
1168
- class MaintenanceWindow
1169
- class Representation < Google::Apis::Core::JsonRepresentation; end
1170
-
1171
- include Google::Apis::Core::JsonObjectSupport
1172
- end
1173
1173
 
1174
1174
  include Google::Apis::Core::JsonObjectSupport
1175
1175
  end
@@ -1420,6 +1420,7 @@ module Google
1420
1420
  property :port, as: 'port'
1421
1421
  property :port_name, as: 'portName'
1422
1422
  property :protocol, as: 'protocol'
1423
+ property :region, as: 'region'
1423
1424
  property :self_link, as: 'selfLink'
1424
1425
  property :timeout_sec, as: 'timeoutSec'
1425
1426
  end
@@ -1583,6 +1584,13 @@ module Google
1583
1584
  end
1584
1585
  end
1585
1586
 
1587
+ class DisksResizeRequest
1588
+ # @private
1589
+ class Representation < Google::Apis::Core::JsonRepresentation
1590
+ property :size_gb, as: 'sizeGb'
1591
+ end
1592
+ end
1593
+
1586
1594
  class DisksScopedList
1587
1595
  # @private
1588
1596
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3354,23 +3362,11 @@ module Google
3354
3362
  property :description, as: 'description'
3355
3363
  property :id, as: 'id'
3356
3364
  property :kind, as: 'kind'
3357
- collection :maintenance_windows, as: 'maintenanceWindows', class: Google::Apis::ComputeV1::Zone::MaintenanceWindow, decorator: Google::Apis::ComputeV1::Zone::MaintenanceWindow::Representation
3358
-
3359
3365
  property :name, as: 'name'
3360
3366
  property :region, as: 'region'
3361
3367
  property :self_link, as: 'selfLink'
3362
3368
  property :status, as: 'status'
3363
3369
  end
3364
-
3365
- class MaintenanceWindow
3366
- # @private
3367
- class Representation < Google::Apis::Core::JsonRepresentation
3368
- property :begin_time, as: 'beginTime'
3369
- property :description, as: 'description'
3370
- property :end_time, as: 'endTime'
3371
- property :name, as: 'name'
3372
- end
3373
- end
3374
3370
  end
3375
3371
 
3376
3372
  class ZoneList
@@ -1371,7 +1371,7 @@ module Google
1371
1371
 
1372
1372
  # Creates a persistent disk in the specified project using the data in the
1373
1373
  # request. You can create a disk with a sourceImage, a sourceSnapshot, or create
1374
- # an empty 200 GB data disk by omitting all properties. You can also create a
1374
+ # an empty 500 GB data disk by omitting all properties. You can also create a
1375
1375
  # disk that is larger than the default size by specifying the sizeGb property.
1376
1376
  # @param [String] project
1377
1377
  # Project ID for this request.
@@ -1488,6 +1488,50 @@ module Google
1488
1488
  execute_or_queue_command(command, &block)
1489
1489
  end
1490
1490
 
1491
+ # Resizes the specified persistent disk.
1492
+ # @param [String] project
1493
+ # Project ID for this request.
1494
+ # @param [String] zone
1495
+ # The name of the zone for this request.
1496
+ # @param [String] disk
1497
+ # The name of the persistent disk.
1498
+ # @param [Google::Apis::ComputeV1::DisksResizeRequest] disks_resize_request_object
1499
+ # @param [String] fields
1500
+ # Selector specifying which fields to include in a partial response.
1501
+ # @param [String] quota_user
1502
+ # Available to use for quota purposes for server-side applications. Can be any
1503
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1504
+ # Overrides userIp if both are provided.
1505
+ # @param [String] user_ip
1506
+ # IP address of the site where the request originates. Use this if you want to
1507
+ # enforce per-user limits.
1508
+ # @param [Google::Apis::RequestOptions] options
1509
+ # Request-specific options
1510
+ #
1511
+ # @yield [result, err] Result & error if block supplied
1512
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
1513
+ # @yieldparam err [StandardError] error object if request failed
1514
+ #
1515
+ # @return [Google::Apis::ComputeV1::Operation]
1516
+ #
1517
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1518
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1519
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1520
+ def resize_disk(project, zone, disk, disks_resize_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1521
+ command = make_simple_command(:post, '{project}/zones/{zone}/disks/{disk}/resize', options)
1522
+ command.request_representation = Google::Apis::ComputeV1::DisksResizeRequest::Representation
1523
+ command.request_object = disks_resize_request_object
1524
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
1525
+ command.response_class = Google::Apis::ComputeV1::Operation
1526
+ command.params['project'] = project unless project.nil?
1527
+ command.params['zone'] = zone unless zone.nil?
1528
+ command.params['disk'] = disk unless disk.nil?
1529
+ command.query['fields'] = fields unless fields.nil?
1530
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1531
+ command.query['userIp'] = user_ip unless user_ip.nil?
1532
+ execute_or_queue_command(command, &block)
1533
+ end
1534
+
1491
1535
  # Deletes the specified firewall.
1492
1536
  # @param [String] project
1493
1537
  # Project ID for this request.