forked from googleapis/google-api-ruby-client
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclasses.rb
More file actions
4300 lines (3623 loc) · 186 KB
/
classes.rb
File metadata and controls
4300 lines (3623 loc) · 186 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module VmwareengineV1
# Request message for VmwareEngine.AcceleratePrivateCloudDeletion
class AcceleratePrivateCloudDeletionRequest
include Google::Apis::Core::Hashable
# Optional. Checksum used to ensure that the user-provided value is up to date
# before the server processes the request. The server compares provided checksum
# with the current checksum of the resource. If the user-provided value is out
# of date, this request returns an `ABORTED` error.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Optional. The request ID must be a valid UUID with the exception that zero
# UUID is not supported (00000000-0000-0000-0000-000000000000).
# Corresponds to the JSON property `requestId`
# @return [String]
attr_accessor :request_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@request_id = args[:request_id] if args.key?(:request_id)
end
end
# Announcement for the resources of Vmware Engine.
class Announcement
include Google::Apis::Core::Hashable
# Optional. Activity type of the announcement There can be only one active
# announcement for a given activity type and target resource.
# Corresponds to the JSON property `activityType`
# @return [String]
attr_accessor :activity_type
# A Cluster resource name.
# Corresponds to the JSON property `cluster`
# @return [String]
attr_accessor :cluster
# Required. Code of the announcement. Indicates the presence of a VMware Engine
# related announcement and corresponds to a related message in the `description`
# field.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# Output only. Creation time of this resource. It also serves as start time of
# notification.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. Description of the announcement.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Output only. Additional structured details about this announcement.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,String>]
attr_accessor :metadata
# Output only. The resource name of the announcement. Resource names are
# schemeless URIs that follow the conventions in https://cloud.google.com/apis/
# design/resource_names. For example: `projects/my-project/locations/us-west1-a/
# announcements/my-announcement-id`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# A Private Cloud resource name.
# Corresponds to the JSON property `privateCloud`
# @return [String]
attr_accessor :private_cloud
# Output only. State of the resource. New values may be added to this enum when
# appropriate.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Output only. Target Resource Type defines the type of the target for the
# announcement
# Corresponds to the JSON property `targetResourceType`
# @return [String]
attr_accessor :target_resource_type
# Output only. Last update time of this resource.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@activity_type = args[:activity_type] if args.key?(:activity_type)
@cluster = args[:cluster] if args.key?(:cluster)
@code = args[:code] if args.key?(:code)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@metadata = args[:metadata] if args.key?(:metadata)
@name = args[:name] if args.key?(:name)
@private_cloud = args[:private_cloud] if args.key?(:private_cloud)
@state = args[:state] if args.key?(:state)
@target_resource_type = args[:target_resource_type] if args.key?(:target_resource_type)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# Specifies the audit configuration for a service. The configuration determines
# which permission types are logged, and what identities, if any, are exempted
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
# are AuditConfigs for both `allServices` and a specific service, the union of
# the two AuditConfigs is used for that service: the log_types specified in each
# AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
# exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
# service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
# exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
# ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
# "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
# , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
# this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
# exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com`
# from DATA_WRITE logging.
class AuditConfig
include Google::Apis::Core::Hashable
# The configuration for logging of each type of permission.
# Corresponds to the JSON property `auditLogConfigs`
# @return [Array<Google::Apis::VmwareengineV1::AuditLogConfig>]
attr_accessor :audit_log_configs
# Specifies a service that will be enabled for audit logging. For example, `
# storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
# value that covers all services.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
@service = args[:service] if args.key?(:service)
end
end
# Provides the configuration for logging a type of permissions. Example: ` "
# audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
# jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
# DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
# DATA_READ logging.
class AuditLogConfig
include Google::Apis::Core::Hashable
# Specifies the identities that do not cause logging for this type of permission.
# Follows the same format of Binding.members.
# Corresponds to the JSON property `exemptedMembers`
# @return [Array<String>]
attr_accessor :exempted_members
# The log type that this config enables.
# Corresponds to the JSON property `logType`
# @return [String]
attr_accessor :log_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@log_type = args[:log_type] if args.key?(:log_type)
end
end
# Autoscaling policy describes the behavior of the autoscaling with respect to
# the resource utilization. The scale-out operation is initiated if the
# utilization exceeds ANY of the respective thresholds. The scale-in operation
# is initiated if the utilization is below ALL of the respective thresholds.
class AutoscalingPolicy
include Google::Apis::Core::Hashable
# Thresholds define the utilization of resources triggering scale-out and scale-
# in operations.
# Corresponds to the JSON property `consumedMemoryThresholds`
# @return [Google::Apis::VmwareengineV1::Thresholds]
attr_accessor :consumed_memory_thresholds
# Thresholds define the utilization of resources triggering scale-out and scale-
# in operations.
# Corresponds to the JSON property `cpuThresholds`
# @return [Google::Apis::VmwareengineV1::Thresholds]
attr_accessor :cpu_thresholds
# Thresholds define the utilization of resources triggering scale-out and scale-
# in operations.
# Corresponds to the JSON property `grantedMemoryThresholds`
# @return [Google::Apis::VmwareengineV1::Thresholds]
attr_accessor :granted_memory_thresholds
# Required. The canonical identifier of the node type to add or remove.
# Corresponds to the `NodeType`.
# Corresponds to the JSON property `nodeTypeId`
# @return [String]
attr_accessor :node_type_id
# Required. Number of nodes to add to a cluster during a scale-out operation.
# Must be divisible by 2 for stretched clusters. During a scale-in operation
# only one node (or 2 for stretched clusters) are removed in a single iteration.
# Corresponds to the JSON property `scaleOutSize`
# @return [Fixnum]
attr_accessor :scale_out_size
# Thresholds define the utilization of resources triggering scale-out and scale-
# in operations.
# Corresponds to the JSON property `storageThresholds`
# @return [Google::Apis::VmwareengineV1::Thresholds]
attr_accessor :storage_thresholds
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@consumed_memory_thresholds = args[:consumed_memory_thresholds] if args.key?(:consumed_memory_thresholds)
@cpu_thresholds = args[:cpu_thresholds] if args.key?(:cpu_thresholds)
@granted_memory_thresholds = args[:granted_memory_thresholds] if args.key?(:granted_memory_thresholds)
@node_type_id = args[:node_type_id] if args.key?(:node_type_id)
@scale_out_size = args[:scale_out_size] if args.key?(:scale_out_size)
@storage_thresholds = args[:storage_thresholds] if args.key?(:storage_thresholds)
end
end
# Autoscaling settings define the rules used by VMware Engine to automatically
# scale-out and scale-in the clusters in a private cloud.
class AutoscalingSettings
include Google::Apis::Core::Hashable
# Required. The map with autoscaling policies applied to the cluster. The key is
# the identifier of the policy. It must meet the following requirements: * Only
# contains 1-63 alphanumeric characters and hyphens * Begins with an
# alphabetical character * Ends with a non-hyphen character * Not formatted as a
# UUID * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
# (section 3.5) Currently there map must contain only one element that describes
# the autoscaling policy for compute nodes.
# Corresponds to the JSON property `autoscalingPolicies`
# @return [Hash<String,Google::Apis::VmwareengineV1::AutoscalingPolicy>]
attr_accessor :autoscaling_policies
# Optional. The minimum duration between consecutive autoscale operations. It
# starts once addition or removal of nodes is fully completed. Defaults to 30
# minutes if not specified. Cool down period must be in whole minutes (for
# example, 30, 31, 50, 180 minutes).
# Corresponds to the JSON property `coolDownPeriod`
# @return [String]
attr_accessor :cool_down_period
# Optional. Maximum number of nodes of any type in a cluster. If not specified
# the default limits apply.
# Corresponds to the JSON property `maxClusterNodeCount`
# @return [Fixnum]
attr_accessor :max_cluster_node_count
# Optional. Minimum number of nodes of any type in a cluster. If not specified
# the default limits apply.
# Corresponds to the JSON property `minClusterNodeCount`
# @return [Fixnum]
attr_accessor :min_cluster_node_count
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@autoscaling_policies = args[:autoscaling_policies] if args.key?(:autoscaling_policies)
@cool_down_period = args[:cool_down_period] if args.key?(:cool_down_period)
@max_cluster_node_count = args[:max_cluster_node_count] if args.key?(:max_cluster_node_count)
@min_cluster_node_count = args[:min_cluster_node_count] if args.key?(:min_cluster_node_count)
end
end
# Associates `members`, or principals, with a `role`.
class Binding
include Google::Apis::Core::Hashable
# Represents a textual expression in the Common Expression Language (CEL) syntax.
# CEL is a C-like expression language. The syntax and semantics of CEL are
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
# "Summary size limit" description: "Determines if a summary is less than 100
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# Requestor is owner" description: "Determines if requestor is the document
# owner" expression: "document.owner == request.auth.claims.email" Example (
# Logic): title: "Public documents" description: "Determine whether the document
# should be publicly visible" expression: "document.type != 'private' &&
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
# string" description: "Create a notification string with a timestamp."
# expression: "'New message received at ' + string(document.create_time)" The
# exact variables and functions that may be referenced within an expression are
# determined by the service that evaluates it. See the service documentation for
# additional information.
# Corresponds to the JSON property `condition`
# @return [Google::Apis::VmwareengineV1::Expr]
attr_accessor :condition
# Specifies the principals requesting access for a Google Cloud resource. `
# members` can have the following values: * `allUsers`: A special identifier
# that represents anyone who is on the internet; with or without a Google
# account. * `allAuthenticatedUsers`: A special identifier that represents
# anyone who is authenticated with a Google account or a service account. Does
# not include identities that come from external identity providers (IdPs)
# through identity federation. * `user:`emailid``: An email address that
# represents a specific Google account. For example, `alice@example.com` . * `
# serviceAccount:`emailid``: An email address that represents a Google service
# account. For example, `my-other-app@appspot.gserviceaccount.com`. * `
# serviceAccount:`projectid`.svc.id.goog[`namespace`/`kubernetes-sa`]`: An
# identifier for a [Kubernetes service account](https://cloud.google.com/
# kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
# project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
# email address that represents a Google group. For example, `admins@example.com`
# . * `domain:`domain``: The G Suite domain (primary) that represents all the
# users of that domain. For example, `google.com` or `example.com`. * `principal:
# //iam.googleapis.com/locations/global/workforcePools/`pool_id`/subject/`
# subject_attribute_value``: A single identity in a workforce identity pool. * `
# principalSet://iam.googleapis.com/locations/global/workforcePools/`pool_id`/
# group/`group_id``: All workforce identities in a group. * `principalSet://iam.
# googleapis.com/locations/global/workforcePools/`pool_id`/attribute.`
# attribute_name`/`attribute_value``: All workforce identities with a specific
# attribute value. * `principalSet://iam.googleapis.com/locations/global/
# workforcePools/`pool_id`/*`: All identities in a workforce identity pool. * `
# principal://iam.googleapis.com/projects/`project_number`/locations/global/
# workloadIdentityPools/`pool_id`/subject/`subject_attribute_value``: A single
# identity in a workload identity pool. * `principalSet://iam.googleapis.com/
# projects/`project_number`/locations/global/workloadIdentityPools/`pool_id`/
# group/`group_id``: A workload identity pool group. * `principalSet://iam.
# googleapis.com/projects/`project_number`/locations/global/
# workloadIdentityPools/`pool_id`/attribute.`attribute_name`/`attribute_value``:
# All identities in a workload identity pool with a certain attribute. * `
# principalSet://iam.googleapis.com/projects/`project_number`/locations/global/
# workloadIdentityPools/`pool_id`/*`: All identities in a workload identity pool.
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
# identifier) representing a user that has been recently deleted. For example, `
# alice@example.com?uid=123456789012345678901`. If the user is recovered, this
# value reverts to `user:`emailid`` and the recovered user retains the role in
# the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
# address (plus unique identifier) representing a service account that has been
# recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
# 123456789012345678901`. If the service account is undeleted, this value
# reverts to `serviceAccount:`emailid`` and the undeleted service account
# retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
# An email address (plus unique identifier) representing a Google group that has
# been recently deleted. For example, `admins@example.com?uid=
# 123456789012345678901`. If the group is recovered, this value reverts to `
# group:`emailid`` and the recovered group retains the role in the binding. * `
# deleted:principal://iam.googleapis.com/locations/global/workforcePools/`
# pool_id`/subject/`subject_attribute_value``: Deleted single identity in a
# workforce identity pool. For example, `deleted:principal://iam.googleapis.com/
# locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
# Corresponds to the JSON property `members`
# @return [Array<String>]
attr_accessor :members
# Role that is assigned to the list of `members`, or principals. For example, `
# roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM
# roles and permissions, see the [IAM documentation](https://cloud.google.com/
# iam/docs/roles-overview). For a list of the available pre-defined roles, see [
# here](https://cloud.google.com/iam/docs/understanding-roles).
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@condition = args[:condition] if args.key?(:condition)
@members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role)
end
end
# A cluster in a private cloud.
class Cluster
include Google::Apis::Core::Hashable
# Autoscaling settings define the rules used by VMware Engine to automatically
# scale-out and scale-in the clusters in a private cloud.
# Corresponds to the JSON property `autoscalingSettings`
# @return [Google::Apis::VmwareengineV1::AutoscalingSettings]
attr_accessor :autoscaling_settings
# Output only. Creation time of this resource.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. Configuration of a mounted datastore.
# Corresponds to the JSON property `datastoreMountConfig`
# @return [Array<Google::Apis::VmwareengineV1::DatastoreMountConfig>]
attr_accessor :datastore_mount_config
# Output only. True if the cluster is a management cluster; false otherwise.
# There can only be one management cluster in a private cloud and it has to be
# the first one.
# Corresponds to the JSON property `management`
# @return [Boolean]
attr_accessor :management
alias_method :management?, :management
# Output only. Identifier. The resource name of this cluster. Resource names are
# schemeless URIs that follow the conventions in https://cloud.google.com/apis/
# design/resource_names. For example: `projects/my-project/locations/us-central1-
# a/privateClouds/my-cloud/clusters/my-cluster`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Required. The map of cluster node types in this cluster, where the key is
# canonical identifier of the node type (corresponds to the `NodeType`).
# Corresponds to the JSON property `nodeTypeConfigs`
# @return [Hash<String,Google::Apis::VmwareengineV1::NodeTypeConfig>]
attr_accessor :node_type_configs
# Output only. State of the resource.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Configuration of a stretched cluster.
# Corresponds to the JSON property `stretchedClusterConfig`
# @return [Google::Apis::VmwareengineV1::StretchedClusterConfig]
attr_accessor :stretched_cluster_config
# Output only. System-generated unique identifier for the resource.
# Corresponds to the JSON property `uid`
# @return [String]
attr_accessor :uid
# Output only. Last update time of this resource.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@autoscaling_settings = args[:autoscaling_settings] if args.key?(:autoscaling_settings)
@create_time = args[:create_time] if args.key?(:create_time)
@datastore_mount_config = args[:datastore_mount_config] if args.key?(:datastore_mount_config)
@management = args[:management] if args.key?(:management)
@name = args[:name] if args.key?(:name)
@node_type_configs = args[:node_type_configs] if args.key?(:node_type_configs)
@state = args[:state] if args.key?(:state)
@stretched_cluster_config = args[:stretched_cluster_config] if args.key?(:stretched_cluster_config)
@uid = args[:uid] if args.key?(:uid)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# Constraints to be applied while editing a schedule. These constraints ensure
# that `Upgrade` specific requirements are met.
class Constraints
include Google::Apis::Core::Hashable
# Output only. Output Only. A list of intervals in which maintenance windows are
# not allowed. Any time window that overlaps with any of these intervals will be
# considered invalid.
# Corresponds to the JSON property `disallowedIntervals`
# @return [Array<Google::Apis::VmwareengineV1::WeeklyTimeInterval>]
attr_accessor :disallowed_intervals
# Output only. Minimum number of hours must be allotted for the upgrade
# activities for each selected day. This is a minimum; the upgrade schedule can
# allot more hours for the given day.
# Corresponds to the JSON property `minHoursDay`
# @return [Fixnum]
attr_accessor :min_hours_day
# Output only. The minimum number of weekly hours must be allotted for the
# upgrade activities. This is just a minimum; the schedule can assign more
# weekly hours.
# Corresponds to the JSON property `minHoursWeek`
# @return [Fixnum]
attr_accessor :min_hours_week
# Represents a time interval, encoded as a Timestamp start (inclusive) and a
# Timestamp end (exclusive). The start must be less than or equal to the end.
# When the start equals the end, the interval is empty (matches no time). When
# both start and end are unspecified, the interval matches any time.
# Corresponds to the JSON property `rescheduleDateRange`
# @return [Google::Apis::VmwareengineV1::Interval]
attr_accessor :reschedule_date_range
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@disallowed_intervals = args[:disallowed_intervals] if args.key?(:disallowed_intervals)
@min_hours_day = args[:min_hours_day] if args.key?(:min_hours_day)
@min_hours_week = args[:min_hours_week] if args.key?(:min_hours_week)
@reschedule_date_range = args[:reschedule_date_range] if args.key?(:reschedule_date_range)
end
end
# Credentials for a private cloud.
class Credentials
include Google::Apis::Core::Hashable
# Initial password.
# Corresponds to the JSON property `password`
# @return [String]
attr_accessor :password
# Initial username.
# Corresponds to the JSON property `username`
# @return [String]
attr_accessor :username
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@password = args[:password] if args.key?(:password)
@username = args[:username] if args.key?(:username)
end
end
# Represents a datastore resource.
class Datastore
include Google::Apis::Core::Hashable
# Output only. Clusters to which the datastore is attached.
# Corresponds to the JSON property `clusters`
# @return [Array<String>]
attr_accessor :clusters
# Output only. Creation time of this resource.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Optional. User-provided description for this datastore
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Optional. Checksum that may be sent on update and delete requests to ensure
# that the user-provided value is up to date before the server processes a
# request. The server computes checksums based on the value of other fields in
# the request.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Output only. Identifier. The resource name of this datastore. Resource names
# are schemeless URIs that follow the conventions in https://cloud.google.com/
# apis/design/resource_names. For example: `projects/my-project/locations/us-
# central1/datastores/datastore`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The NFS datastore configuration.
# Corresponds to the JSON property `nfsDatastore`
# @return [Google::Apis::VmwareengineV1::NfsDatastore]
attr_accessor :nfs_datastore
# Output only. The state of the Datastore.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Output only. System-generated unique identifier for the resource.
# Corresponds to the JSON property `uid`
# @return [String]
attr_accessor :uid
# Output only. Last update time of this resource.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@clusters = args[:clusters] if args.key?(:clusters)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@etag = args[:etag] if args.key?(:etag)
@name = args[:name] if args.key?(:name)
@nfs_datastore = args[:nfs_datastore] if args.key?(:nfs_datastore)
@state = args[:state] if args.key?(:state)
@uid = args[:uid] if args.key?(:uid)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# The Datastore Mount configuration
class DatastoreMountConfig
include Google::Apis::Core::Hashable
# Optional. The access mode of the NFS volume. Optional. Default value used will
# be READ_WRITE
# Corresponds to the JSON property `accessMode`
# @return [String]
attr_accessor :access_mode
# Required. The resource name of the datastore to mount. Resource names are
# schemeless URIs that follow the conventions in https://cloud.google.com/apis/
# design/resource_names. For example: `projects/my-project/locations/us-central1/
# datastores/my-datastore`
# Corresponds to the JSON property `datastore`
# @return [String]
attr_accessor :datastore
# The network configuration for the datastore.
# Corresponds to the JSON property `datastoreNetwork`
# @return [Google::Apis::VmwareengineV1::DatastoreNetwork]
attr_accessor :datastore_network
# Output only. File share name.
# Corresponds to the JSON property `fileShare`
# @return [String]
attr_accessor :file_share
# Optional. The NFS protocol supported by the NFS volume. Default value used
# will be NFS_V3
# Corresponds to the JSON property `nfsVersion`
# @return [String]
attr_accessor :nfs_version
# Output only. Server IP addresses of the NFS volume. For NFS 3, you can only
# provide a single server IP address or DNS names.
# Corresponds to the JSON property `servers`
# @return [Array<String>]
attr_accessor :servers
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@access_mode = args[:access_mode] if args.key?(:access_mode)
@datastore = args[:datastore] if args.key?(:datastore)
@datastore_network = args[:datastore_network] if args.key?(:datastore_network)
@file_share = args[:file_share] if args.key?(:file_share)
@nfs_version = args[:nfs_version] if args.key?(:nfs_version)
@servers = args[:servers] if args.key?(:servers)
end
end
# The network configuration for the datastore.
class DatastoreNetwork
include Google::Apis::Core::Hashable
# Optional. connection_count is used to set multiple connections from NFS client
# on ESXi host to NFS server. A higher number of connections results in better
# performance on datastores. In MountDatastore API by default max 4 connections
# are configured. User can set value of connection_count between 1 to 4.
# Connection_count is supported from vsphere 8.0u1 for earlier version 1
# connection count is set on the ESXi hosts.
# Corresponds to the JSON property `connectionCount`
# @return [Fixnum]
attr_accessor :connection_count
# Optional. MTU value is set on the VMKernel adapter for the NFS traffic. By
# default standard 1500 MTU size is set in MountDatastore API which is good for
# typical setups. However google VPC networks supports jumbo MTU 8896. We
# recommend to tune this value based on the NFS traffic performance. Performance
# can be determined using benchmarking I/O tools like fio (Flexible I/O Tester)
# utility.
# Corresponds to the JSON property `mtu`
# @return [Fixnum]
attr_accessor :mtu
# Output only. The resource name of the network peering, used to access the file
# share by clients on private cloud. Resource names are schemeless URIs that
# follow the conventions in https://cloud.google.com/apis/design/resource_names.
# e.g. projects/my-project/locations/us-central1/networkPeerings/my-network-
# peering
# Corresponds to the JSON property `networkPeering`
# @return [String]
attr_accessor :network_peering
# Required. The resource name of the subnet Resource names are schemeless URIs
# that follow the conventions in https://cloud.google.com/apis/design/
# resource_names. e.g. projects/my-project/locations/us-central1/subnets/my-
# subnet
# Corresponds to the JSON property `subnet`
# @return [String]
attr_accessor :subnet
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@connection_count = args[:connection_count] if args.key?(:connection_count)
@mtu = args[:mtu] if args.key?(:mtu)
@network_peering = args[:network_peering] if args.key?(:network_peering)
@subnet = args[:subnet] if args.key?(:subnet)
end
end
# DnsBindPermission resource that contains the accounts having the consumer DNS
# bind permission on the corresponding intranet VPC of the consumer project.
class DnsBindPermission
include Google::Apis::Core::Hashable
# Required. Output only. The name of the resource which stores the users/service
# accounts having the permission to bind to the corresponding intranet VPC of
# the consumer project. DnsBindPermission is a global resource and location can
# only be global. Resource names are schemeless URIs that follow the conventions
# in https://cloud.google.com/apis/design/resource_names. For example: `projects/
# my-project/locations/global/dnsBindPermission`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. Users/Service accounts which have access for binding on the
# intranet VPC project corresponding to the consumer project.
# Corresponds to the JSON property `principals`
# @return [Array<Google::Apis::VmwareengineV1::Principal>]
attr_accessor :principals
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@principals = args[:principals] if args.key?(:principals)
end
end
# DNS forwarding config. This config defines a list of domain to name server
# mappings, and is attached to the private cloud for custom domain resolution.
class DnsForwarding
include Google::Apis::Core::Hashable
# Output only. Creation time of this resource.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Required. List of domain mappings to configure
# Corresponds to the JSON property `forwardingRules`
# @return [Array<Google::Apis::VmwareengineV1::ForwardingRule>]
attr_accessor :forwarding_rules
# Output only. Identifier. The resource name of this DNS profile. Resource names
# are schemeless URIs that follow the conventions in https://cloud.google.com/
# apis/design/resource_names. For example: `projects/my-project/locations/us-
# central1-a/privateClouds/my-cloud/dnsForwarding`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. Last update time of this resource.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@forwarding_rules = args[:forwarding_rules] if args.key?(:forwarding_rules)
@name = args[:name] if args.key?(:name)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance: service Foo ` rpc Bar(google.
# protobuf.Empty) returns (google.protobuf.Empty); `
class Empty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Represents a textual expression in the Common Expression Language (CEL) syntax.
# CEL is a C-like expression language. The syntax and semantics of CEL are
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
# "Summary size limit" description: "Determines if a summary is less than 100
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# Requestor is owner" description: "Determines if requestor is the document
# owner" expression: "document.owner == request.auth.claims.email" Example (
# Logic): title: "Public documents" description: "Determine whether the document
# should be publicly visible" expression: "document.type != 'private' &&
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
# string" description: "Create a notification string with a timestamp."
# expression: "'New message received at ' + string(document.create_time)" The
# exact variables and functions that may be referenced within an expression are
# determined by the service that evaluates it. See the service documentation for
# additional information.
class Expr
include Google::Apis::Core::Hashable
# Optional. Description of the expression. This is a longer text which describes
# the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Textual representation of an expression in Common Expression Language syntax.
# Corresponds to the JSON property `expression`
# @return [String]
attr_accessor :expression
# Optional. String indicating the location of the expression for error reporting,
# e.g. a file name and a position in the file.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# Optional. Title for the expression, i.e. a short string describing its purpose.
# This can be used e.g. in UIs which allow to enter the expression.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@expression = args[:expression] if args.key?(:expression)
@location = args[:location] if args.key?(:location)
@title = args[:title] if args.key?(:title)
end
end
# External access firewall rules for filtering incoming traffic destined to `
# ExternalAddress` resources.
class ExternalAccessRule
include Google::Apis::Core::Hashable
# The action that the external access rule performs.
# Corresponds to the JSON property `action`
# @return [String]
attr_accessor :action
# Output only. Creation time of this resource.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# User-provided description for this external access rule.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# If destination ranges are specified, the external access rule applies only to
# the traffic that has a destination IP address in these ranges. The specified
# IP addresses must have reserved external IP addresses in the scope of the
# parent network policy. To match all external IP addresses in the scope of the
# parent network policy, specify `0.0.0.0/0`. To match a specific external IP
# address, specify it using the `IpRange.external_address` property.
# Corresponds to the JSON property `destinationIpRanges`
# @return [Array<Google::Apis::VmwareengineV1::IpRange>]
attr_accessor :destination_ip_ranges
# A list of destination ports to which the external access rule applies. This
# field is only applicable for the UDP or TCP protocol. Each entry must be
# either an integer or a range. For example: `["22"]`, `["80","443"]`, or `["
# 12345-12349"]`. To match all destination ports, specify `["0-65535"]`.
# Corresponds to the JSON property `destinationPorts`
# @return [Array<String>]
attr_accessor :destination_ports
# The IP protocol to which the external access rule applies. This value can be
# one of the following three protocol strings (not case-sensitive): `tcp`, `udp`,
# or `icmp`.
# Corresponds to the JSON property `ipProtocol`
# @return [String]
attr_accessor :ip_protocol
# Output only. The resource name of this external access rule. Resource names
# are schemeless URIs that follow the conventions in https://cloud.google.com/
# apis/design/resource_names. For example: `projects/my-project/locations/us-
# central1/networkPolicies/my-policy/externalAccessRules/my-rule`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# External access rule priority, which determines the external access rule to
# use when multiple rules apply. If multiple rules have the same priority, their
# ordering is non-deterministic. If specific ordering is required, assign unique
# priorities to enforce such ordering. The external access rule priority is an
# integer from 100 to 4096, both inclusive. Lower integers indicate higher
# precedence. For example, a rule with priority `100` has higher precedence than
# a rule with priority `101`.
# Corresponds to the JSON property `priority`
# @return [Fixnum]
attr_accessor :priority
# If source ranges are specified, the external access rule applies only to
# traffic that has a source IP address in these ranges. These ranges can either
# be expressed in the CIDR format or as an IP address. As only inbound rules are
# supported, `ExternalAddress` resources cannot be the source IP addresses of an
# external access rule. To match all source addresses, specify `0.0.0.0/0`.
# Corresponds to the JSON property `sourceIpRanges`
# @return [Array<Google::Apis::VmwareengineV1::IpRange>]
attr_accessor :source_ip_ranges
# A list of source ports to which the external access rule applies. This field
# is only applicable for the UDP or TCP protocol. Each entry must be either an
# integer or a range. For example: `["22"]`, `["80","443"]`, or `["12345-12349"]`
# . To match all source ports, specify `["0-65535"]`.
# Corresponds to the JSON property `sourcePorts`
# @return [Array<String>]
attr_accessor :source_ports
# Output only. The state of the resource.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Output only. System-generated unique identifier for the resource.
# Corresponds to the JSON property `uid`
# @return [String]
attr_accessor :uid
# Output only. Last update time of this resource.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object