google-api-client 0.14.1 → 0.14.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +0 -18
  5. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  6. data/generated/google/apis/adexperiencereport_v1/classes.rb +0 -6
  7. data/generated/google/apis/adexperiencereport_v1/representations.rb +0 -1
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +46 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +19 -2
  11. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  12. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +14 -12
  13. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +7 -5
  14. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  15. data/generated/google/apis/androidmanagement_v1/classes.rb +8 -9
  16. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  17. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  18. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +4 -2
  19. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  20. data/generated/google/apis/cloudbuild_v1/classes.rb +3 -0
  21. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  22. data/generated/google/apis/container_v1.rb +1 -1
  23. data/generated/google/apis/container_v1/classes.rb +93 -0
  24. data/generated/google/apis/container_v1/representations.rb +58 -0
  25. data/generated/google/apis/container_v1/service.rb +42 -0
  26. data/generated/google/apis/container_v1beta1.rb +1 -1
  27. data/generated/google/apis/container_v1beta1/classes.rb +119 -0
  28. data/generated/google/apis/container_v1beta1/representations.rb +62 -0
  29. data/generated/google/apis/container_v1beta1/service.rb +77 -0
  30. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  31. data/generated/google/apis/dataproc_v1beta2/classes.rb +184 -0
  32. data/generated/google/apis/dataproc_v1beta2/representations.rb +70 -0
  33. data/generated/google/apis/dataproc_v1beta2/service.rb +105 -0
  34. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  35. data/generated/google/apis/deploymentmanager_alpha/classes.rb +63 -64
  36. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  37. data/generated/google/apis/deploymentmanager_v2/classes.rb +51 -50
  38. data/generated/google/apis/deploymentmanager_v2/service.rb +1 -1
  39. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  40. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +62 -62
  41. data/generated/google/apis/dlp_v2beta1.rb +1 -1
  42. data/generated/google/apis/dlp_v2beta1/classes.rb +23 -17
  43. data/generated/google/apis/dlp_v2beta1/service.rb +10 -10
  44. data/generated/google/apis/dns_v1/service.rb +1 -1
  45. data/generated/google/apis/genomics_v1.rb +1 -1
  46. data/generated/google/apis/genomics_v1/classes.rb +1 -1
  47. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  48. data/generated/google/apis/genomics_v1alpha2/classes.rb +1 -1
  49. data/generated/google/apis/gmail_v1.rb +1 -1
  50. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  51. data/generated/google/apis/oslogin_v1alpha.rb +7 -1
  52. data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -1
  53. data/generated/google/apis/oslogin_v1alpha/representations.rb +2 -2
  54. data/generated/google/apis/oslogin_v1beta.rb +43 -0
  55. data/generated/google/apis/oslogin_v1beta/classes.rb +202 -0
  56. data/generated/google/apis/oslogin_v1beta/representations.rb +105 -0
  57. data/generated/google/apis/oslogin_v1beta/service.rb +228 -0
  58. data/generated/google/apis/sheets_v4.rb +1 -1
  59. data/generated/google/apis/sheets_v4/classes.rb +906 -0
  60. data/generated/google/apis/sheets_v4/representations.rb +389 -0
  61. data/generated/google/apis/sheets_v4/service.rb +230 -0
  62. data/generated/google/apis/spanner_v1.rb +1 -1
  63. data/generated/google/apis/spanner_v1/classes.rb +73 -2
  64. data/generated/google/apis/spanner_v1/representations.rb +32 -0
  65. data/generated/google/apis/spanner_v1/service.rb +52 -1
  66. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  67. data/generated/google/apis/storage_v1.rb +1 -1
  68. data/generated/google/apis/storage_v1/service.rb +15 -13
  69. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  70. data/generated/google/apis/storagetransfer_v1/classes.rb +0 -1
  71. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  72. data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -1
  73. data/generated/google/apis/tagmanager_v2.rb +1 -1
  74. data/generated/google/apis/tagmanager_v2/classes.rb +181 -0
  75. data/generated/google/apis/tagmanager_v2/representations.rb +75 -0
  76. data/generated/google/apis/testing_v1.rb +38 -0
  77. data/generated/google/apis/testing_v1/classes.rb +1616 -0
  78. data/generated/google/apis/testing_v1/representations.rb +688 -0
  79. data/generated/google/apis/testing_v1/service.rb +221 -0
  80. data/generated/google/apis/videointelligence_v1beta1.rb +3 -3
  81. data/generated/google/apis/videointelligence_v1beta1/service.rb +2 -2
  82. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  83. data/generated/google/apis/youtube_v3.rb +1 -1
  84. data/generated/google/apis/youtube_v3/classes.rb +9 -0
  85. data/generated/google/apis/youtube_v3/representations.rb +1 -0
  86. data/generated/google/apis/youtube_v3/service.rb +1 -1
  87. data/lib/google/apis/version.rb +1 -1
  88. metadata +11 -3
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/container-builder/docs/
26
26
  module CloudbuildV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170912'
28
+ REVISION = '20170920'
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'
@@ -35,6 +35,7 @@ module Google
35
35
  # - $TAG_NAME: the tag name specified by RepoSource.
36
36
  # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
37
37
  # resolved from the specified branch or tag.
38
+ # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
38
39
  class Build
39
40
  include Google::Apis::Core::Hashable
40
41
 
@@ -210,6 +211,7 @@ module Google
210
211
  # - $TAG_NAME: the tag name specified by RepoSource.
211
212
  # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
212
213
  # resolved from the specified branch or tag.
214
+ # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
213
215
  # Corresponds to the JSON property `build`
214
216
  # @return [Google::Apis::CloudbuildV1::Build]
215
217
  attr_accessor :build
@@ -372,6 +374,7 @@ module Google
372
374
  # - $TAG_NAME: the tag name specified by RepoSource.
373
375
  # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
374
376
  # resolved from the specified branch or tag.
377
+ # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
375
378
  # Corresponds to the JSON property `build`
376
379
  # @return [Google::Apis::CloudbuildV1::Build]
377
380
  attr_accessor :build
@@ -28,7 +28,7 @@ module Google
28
28
  # @see https://cloud.google.com/trace
29
29
  module CloudtraceV2
30
30
  VERSION = 'V2'
31
- REVISION = '20170905'
31
+ REVISION = '20170919'
32
32
 
33
33
  # View and manage your data across Google Cloud Platform services
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/container-engine/
27
27
  module ContainerV1
28
28
  VERSION = 'V1'
29
- REVISION = '20170901'
29
+ REVISION = '20170908'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -301,6 +301,11 @@ module Google
301
301
  # @return [String]
302
302
  attr_accessor :logging_service
303
303
 
304
+ # MaintenancePolicy defines the maintenance policy to be used for the cluster.
305
+ # Corresponds to the JSON property `maintenancePolicy`
306
+ # @return [Google::Apis::ContainerV1::MaintenancePolicy]
307
+ attr_accessor :maintenance_policy
308
+
304
309
  # The authentication information for accessing the master endpoint.
305
310
  # Authentication can be done using HTTP basic auth or using client
306
311
  # certificates.
@@ -437,6 +442,7 @@ module Google
437
442
  @legacy_abac = args[:legacy_abac] if args.key?(:legacy_abac)
438
443
  @locations = args[:locations] if args.key?(:locations)
439
444
  @logging_service = args[:logging_service] if args.key?(:logging_service)
445
+ @maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy)
440
446
  @master_auth = args[:master_auth] if args.key?(:master_auth)
441
447
  @master_authorized_networks_config = args[:master_authorized_networks_config] if args.key?(:master_authorized_networks_config)
442
448
  @monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service)
@@ -603,6 +609,36 @@ module Google
603
609
  end
604
610
  end
605
611
 
612
+ # Time window specified for daily maintenance operations.
613
+ class DailyMaintenanceWindow
614
+ include Google::Apis::Core::Hashable
615
+
616
+ # [Output only] Duration of the time window, automatically chosen to be
617
+ # smallest possible in the given scenario.
618
+ # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
619
+ # format "PTnHnMnS".
620
+ # Corresponds to the JSON property `duration`
621
+ # @return [String]
622
+ attr_accessor :duration
623
+
624
+ # Time within the maintenance window to start the maintenance operations.
625
+ # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
626
+ # format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
627
+ # Corresponds to the JSON property `startTime`
628
+ # @return [String]
629
+ attr_accessor :start_time
630
+
631
+ def initialize(**args)
632
+ update!(**args)
633
+ end
634
+
635
+ # Update properties of this object
636
+ def update!(**args)
637
+ @duration = args[:duration] if args.key?(:duration)
638
+ @start_time = args[:start_time] if args.key?(:start_time)
639
+ end
640
+ end
641
+
606
642
  # A generic empty message that you can re-use to avoid defining duplicated
607
643
  # empty messages in your APIs. A typical example is to use it as the request
608
644
  # or the response type of an API method. For instance:
@@ -908,6 +944,44 @@ module Google
908
944
  end
909
945
  end
910
946
 
947
+ # MaintenancePolicy defines the maintenance policy to be used for the cluster.
948
+ class MaintenancePolicy
949
+ include Google::Apis::Core::Hashable
950
+
951
+ # MaintenanceWindow defines the maintenance window to be used for the cluster.
952
+ # Corresponds to the JSON property `window`
953
+ # @return [Google::Apis::ContainerV1::MaintenanceWindow]
954
+ attr_accessor :window
955
+
956
+ def initialize(**args)
957
+ update!(**args)
958
+ end
959
+
960
+ # Update properties of this object
961
+ def update!(**args)
962
+ @window = args[:window] if args.key?(:window)
963
+ end
964
+ end
965
+
966
+ # MaintenanceWindow defines the maintenance window to be used for the cluster.
967
+ class MaintenanceWindow
968
+ include Google::Apis::Core::Hashable
969
+
970
+ # Time window specified for daily maintenance operations.
971
+ # Corresponds to the JSON property `dailyMaintenanceWindow`
972
+ # @return [Google::Apis::ContainerV1::DailyMaintenanceWindow]
973
+ attr_accessor :daily_maintenance_window
974
+
975
+ def initialize(**args)
976
+ update!(**args)
977
+ end
978
+
979
+ # Update properties of this object
980
+ def update!(**args)
981
+ @daily_maintenance_window = args[:daily_maintenance_window] if args.key?(:daily_maintenance_window)
982
+ end
983
+ end
984
+
911
985
  # The authentication information for accessing the master endpoint.
912
986
  # Authentication can be done using HTTP basic auth or using client
913
987
  # certificates.
@@ -1578,6 +1652,25 @@ module Google
1578
1652
  end
1579
1653
  end
1580
1654
 
1655
+ # SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
1656
+ class SetMaintenancePolicyRequest
1657
+ include Google::Apis::Core::Hashable
1658
+
1659
+ # MaintenancePolicy defines the maintenance policy to be used for the cluster.
1660
+ # Corresponds to the JSON property `maintenancePolicy`
1661
+ # @return [Google::Apis::ContainerV1::MaintenancePolicy]
1662
+ attr_accessor :maintenance_policy
1663
+
1664
+ def initialize(**args)
1665
+ update!(**args)
1666
+ end
1667
+
1668
+ # Update properties of this object
1669
+ def update!(**args)
1670
+ @maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy)
1671
+ end
1672
+ end
1673
+
1581
1674
  # SetMasterAuthRequest updates the admin password of a cluster.
1582
1675
  class SetMasterAuthRequest
1583
1676
  include Google::Apis::Core::Hashable
@@ -88,6 +88,12 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
+ class DailyMaintenanceWindow
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
91
97
  class Empty
92
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
99
 
@@ -142,6 +148,18 @@ module Google
142
148
  include Google::Apis::Core::JsonObjectSupport
143
149
  end
144
150
 
151
+ class MaintenancePolicy
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class MaintenanceWindow
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
145
163
  class MasterAuth
146
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
165
 
@@ -232,6 +250,12 @@ module Google
232
250
  include Google::Apis::Core::JsonObjectSupport
233
251
  end
234
252
 
253
+ class SetMaintenancePolicyRequest
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
235
259
  class SetMasterAuthRequest
236
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
261
 
@@ -365,6 +389,8 @@ module Google
365
389
 
366
390
  collection :locations, as: 'locations'
367
391
  property :logging_service, as: 'loggingService'
392
+ property :maintenance_policy, as: 'maintenancePolicy', class: Google::Apis::ContainerV1::MaintenancePolicy, decorator: Google::Apis::ContainerV1::MaintenancePolicy::Representation
393
+
368
394
  property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation
369
395
 
370
396
  property :master_authorized_networks_config, as: 'masterAuthorizedNetworksConfig', class: Google::Apis::ContainerV1::MasterAuthorizedNetworksConfig, decorator: Google::Apis::ContainerV1::MasterAuthorizedNetworksConfig::Representation
@@ -429,6 +455,14 @@ module Google
429
455
  end
430
456
  end
431
457
 
458
+ class DailyMaintenanceWindow
459
+ # @private
460
+ class Representation < Google::Apis::Core::JsonRepresentation
461
+ property :duration, as: 'duration'
462
+ property :start_time, as: 'startTime'
463
+ end
464
+ end
465
+
432
466
  class Empty
433
467
  # @private
434
468
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -506,6 +540,22 @@ module Google
506
540
  end
507
541
  end
508
542
 
543
+ class MaintenancePolicy
544
+ # @private
545
+ class Representation < Google::Apis::Core::JsonRepresentation
546
+ property :window, as: 'window', class: Google::Apis::ContainerV1::MaintenanceWindow, decorator: Google::Apis::ContainerV1::MaintenanceWindow::Representation
547
+
548
+ end
549
+ end
550
+
551
+ class MaintenanceWindow
552
+ # @private
553
+ class Representation < Google::Apis::Core::JsonRepresentation
554
+ property :daily_maintenance_window, as: 'dailyMaintenanceWindow', class: Google::Apis::ContainerV1::DailyMaintenanceWindow, decorator: Google::Apis::ContainerV1::DailyMaintenanceWindow::Representation
555
+
556
+ end
557
+ end
558
+
509
559
  class MasterAuth
510
560
  # @private
511
561
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -663,6 +713,14 @@ module Google
663
713
  end
664
714
  end
665
715
 
716
+ class SetMaintenancePolicyRequest
717
+ # @private
718
+ class Representation < Google::Apis::Core::JsonRepresentation
719
+ property :maintenance_policy, as: 'maintenancePolicy', class: Google::Apis::ContainerV1::MaintenancePolicy, decorator: Google::Apis::ContainerV1::MaintenancePolicy::Representation
720
+
721
+ end
722
+ end
723
+
666
724
  class SetMasterAuthRequest
667
725
  # @private
668
726
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -588,6 +588,48 @@ module Google
588
588
  execute_or_queue_command(command, &block)
589
589
  end
590
590
 
591
+ # Sets the maintenance policy for a cluster.
592
+ # @param [String] project_id
593
+ # The Google Developers Console [project ID or project
594
+ # number](https://support.google.com/cloud/answer/6158840).
595
+ # @param [String] zone
596
+ # The name of the Google Compute Engine
597
+ # [zone](/compute/docs/zones#available) in which the cluster
598
+ # resides.
599
+ # @param [String] cluster_id
600
+ # The name of the cluster to update.
601
+ # @param [Google::Apis::ContainerV1::SetMaintenancePolicyRequest] set_maintenance_policy_request_object
602
+ # @param [String] fields
603
+ # Selector specifying which fields to include in a partial response.
604
+ # @param [String] quota_user
605
+ # Available to use for quota purposes for server-side applications. Can be any
606
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
607
+ # @param [Google::Apis::RequestOptions] options
608
+ # Request-specific options
609
+ #
610
+ # @yield [result, err] Result & error if block supplied
611
+ # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
612
+ # @yieldparam err [StandardError] error object if request failed
613
+ #
614
+ # @return [Google::Apis::ContainerV1::Operation]
615
+ #
616
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
617
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
618
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
619
+ def set_cluster_maintenance_policy(project_id, zone, cluster_id, set_maintenance_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
620
+ command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy', options)
621
+ command.request_representation = Google::Apis::ContainerV1::SetMaintenancePolicyRequest::Representation
622
+ command.request_object = set_maintenance_policy_request_object
623
+ command.response_representation = Google::Apis::ContainerV1::Operation::Representation
624
+ command.response_class = Google::Apis::ContainerV1::Operation
625
+ command.params['projectId'] = project_id unless project_id.nil?
626
+ command.params['zone'] = zone unless zone.nil?
627
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
628
+ command.query['fields'] = fields unless fields.nil?
629
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
630
+ execute_or_queue_command(command, &block)
631
+ end
632
+
591
633
  # Used to set master auth materials. Currently supports :-
592
634
  # Changing the admin password of a specific cluster.
593
635
  # This can be either via password generation or explicitly set the password.
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/container-engine/
27
27
  module ContainerV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20170901'
29
+ REVISION = '20170908'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -328,6 +328,11 @@ module Google
328
328
  # @return [String]
329
329
  attr_accessor :logging_service
330
330
 
331
+ # MaintenancePolicy defines the maintenance policy to be used for the cluster.
332
+ # Corresponds to the JSON property `maintenancePolicy`
333
+ # @return [Google::Apis::ContainerV1beta1::MaintenancePolicy]
334
+ attr_accessor :maintenance_policy
335
+
331
336
  # The authentication information for accessing the master endpoint.
332
337
  # Authentication can be done using HTTP basic auth or using client
333
338
  # certificates.
@@ -457,6 +462,7 @@ module Google
457
462
  @location = args[:location] if args.key?(:location)
458
463
  @locations = args[:locations] if args.key?(:locations)
459
464
  @logging_service = args[:logging_service] if args.key?(:logging_service)
465
+ @maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy)
460
466
  @master_auth = args[:master_auth] if args.key?(:master_auth)
461
467
  @master_authorized_networks_config = args[:master_authorized_networks_config] if args.key?(:master_authorized_networks_config)
462
468
  @monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service)
@@ -708,6 +714,33 @@ module Google
708
714
  end
709
715
  end
710
716
 
717
+ # Time window specified for daily maintenance operations.
718
+ class DailyMaintenanceWindow
719
+ include Google::Apis::Core::Hashable
720
+
721
+ # [Output only] Duration of the time window, automatically chosen to be
722
+ # smallest possible in the given scenario.
723
+ # Corresponds to the JSON property `duration`
724
+ # @return [String]
725
+ attr_accessor :duration
726
+
727
+ # Time within the maintenance window to start the maintenance operations.
728
+ # It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
729
+ # Corresponds to the JSON property `startTime`
730
+ # @return [String]
731
+ attr_accessor :start_time
732
+
733
+ def initialize(**args)
734
+ update!(**args)
735
+ end
736
+
737
+ # Update properties of this object
738
+ def update!(**args)
739
+ @duration = args[:duration] if args.key?(:duration)
740
+ @start_time = args[:start_time] if args.key?(:start_time)
741
+ end
742
+ end
743
+
711
744
  # A generic empty message that you can re-use to avoid defining duplicated
712
745
  # empty messages in your APIs. A typical example is to use it as the request
713
746
  # or the response type of an API method. For instance:
@@ -989,6 +1022,44 @@ module Google
989
1022
  end
990
1023
  end
991
1024
 
1025
+ # MaintenancePolicy defines the maintenance policy to be used for the cluster.
1026
+ class MaintenancePolicy
1027
+ include Google::Apis::Core::Hashable
1028
+
1029
+ # MaintenanceWindow defines the maintenance window to be used for the cluster.
1030
+ # Corresponds to the JSON property `window`
1031
+ # @return [Google::Apis::ContainerV1beta1::MaintenanceWindow]
1032
+ attr_accessor :window
1033
+
1034
+ def initialize(**args)
1035
+ update!(**args)
1036
+ end
1037
+
1038
+ # Update properties of this object
1039
+ def update!(**args)
1040
+ @window = args[:window] if args.key?(:window)
1041
+ end
1042
+ end
1043
+
1044
+ # MaintenanceWindow defines the maintenance window to be used for the cluster.
1045
+ class MaintenanceWindow
1046
+ include Google::Apis::Core::Hashable
1047
+
1048
+ # Time window specified for daily maintenance operations.
1049
+ # Corresponds to the JSON property `dailyMaintenanceWindow`
1050
+ # @return [Google::Apis::ContainerV1beta1::DailyMaintenanceWindow]
1051
+ attr_accessor :daily_maintenance_window
1052
+
1053
+ def initialize(**args)
1054
+ update!(**args)
1055
+ end
1056
+
1057
+ # Update properties of this object
1058
+ def update!(**args)
1059
+ @daily_maintenance_window = args[:daily_maintenance_window] if args.key?(:daily_maintenance_window)
1060
+ end
1061
+ end
1062
+
992
1063
  # The authentication information for accessing the master endpoint.
993
1064
  # Authentication can be done using HTTP basic auth or using client
994
1065
  # certificates.
@@ -1740,6 +1811,54 @@ module Google
1740
1811
  end
1741
1812
  end
1742
1813
 
1814
+ # SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
1815
+ class SetMaintenancePolicyRequest
1816
+ include Google::Apis::Core::Hashable
1817
+
1818
+ # The name of the cluster to update.
1819
+ # Corresponds to the JSON property `clusterId`
1820
+ # @return [String]
1821
+ attr_accessor :cluster_id
1822
+
1823
+ # MaintenancePolicy defines the maintenance policy to be used for the cluster.
1824
+ # Corresponds to the JSON property `maintenancePolicy`
1825
+ # @return [Google::Apis::ContainerV1beta1::MaintenancePolicy]
1826
+ attr_accessor :maintenance_policy
1827
+
1828
+ # The name (project, location, cluster id) of the cluster to set maintenance
1829
+ # policy.
1830
+ # Specified in the format 'projects/*/locations/*/clusters/*'.
1831
+ # Corresponds to the JSON property `name`
1832
+ # @return [String]
1833
+ attr_accessor :name
1834
+
1835
+ # The Google Developers Console [project ID or project
1836
+ # number](https://support.google.com/cloud/answer/6158840).
1837
+ # Corresponds to the JSON property `projectId`
1838
+ # @return [String]
1839
+ attr_accessor :project_id
1840
+
1841
+ # The name of the Google Compute Engine
1842
+ # [zone](/compute/docs/zones#available) in which the cluster
1843
+ # resides.
1844
+ # Corresponds to the JSON property `zone`
1845
+ # @return [String]
1846
+ attr_accessor :zone
1847
+
1848
+ def initialize(**args)
1849
+ update!(**args)
1850
+ end
1851
+
1852
+ # Update properties of this object
1853
+ def update!(**args)
1854
+ @cluster_id = args[:cluster_id] if args.key?(:cluster_id)
1855
+ @maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy)
1856
+ @name = args[:name] if args.key?(:name)
1857
+ @project_id = args[:project_id] if args.key?(:project_id)
1858
+ @zone = args[:zone] if args.key?(:zone)
1859
+ end
1860
+ end
1861
+
1743
1862
  # SetMasterAuthRequest updates the admin password of a cluster.
1744
1863
  class SetMasterAuthRequest
1745
1864
  include Google::Apis::Core::Hashable