google-api-client 0.22.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  4. data/generated/google/apis/androidmanagement_v1/classes.rb +1 -2
  5. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  6. data/generated/google/apis/androidpublisher_v2/classes.rb +1 -2
  7. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  8. data/generated/google/apis/androidpublisher_v3/classes.rb +2 -3
  9. data/generated/google/apis/appengine_v1.rb +1 -1
  10. data/generated/google/apis/appengine_v1/classes.rb +59 -1
  11. data/generated/google/apis/appengine_v1/representations.rb +18 -0
  12. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  13. data/generated/google/apis/cloudtasks_v2beta2/service.rb +0 -8
  14. data/generated/google/apis/compute_alpha.rb +1 -1
  15. data/generated/google/apis/compute_alpha/classes.rb +97 -12
  16. data/generated/google/apis/compute_alpha/representations.rb +23 -0
  17. data/generated/google/apis/compute_alpha/service.rb +41 -1
  18. data/generated/google/apis/compute_beta.rb +1 -1
  19. data/generated/google/apis/compute_beta/classes.rb +1616 -43
  20. data/generated/google/apis/compute_beta/representations.rb +685 -20
  21. data/generated/google/apis/compute_beta/service.rb +1286 -0
  22. data/generated/google/apis/compute_v1.rb +1 -1
  23. data/generated/google/apis/compute_v1/classes.rb +184 -3
  24. data/generated/google/apis/compute_v1/representations.rb +43 -0
  25. data/generated/google/apis/compute_v1/service.rb +108 -0
  26. data/generated/google/apis/content_v2.rb +1 -1
  27. data/generated/google/apis/content_v2/classes.rb +805 -102
  28. data/generated/google/apis/content_v2/representations.rb +393 -26
  29. data/generated/google/apis/content_v2/service.rb +242 -0
  30. data/generated/google/apis/content_v2sandbox.rb +1 -1
  31. data/generated/google/apis/content_v2sandbox/classes.rb +703 -0
  32. data/generated/google/apis/content_v2sandbox/representations.rb +367 -0
  33. data/generated/google/apis/content_v2sandbox/service.rb +242 -0
  34. data/generated/google/apis/dlp_v2.rb +1 -1
  35. data/generated/google/apis/dlp_v2/classes.rb +280 -2
  36. data/generated/google/apis/dlp_v2/representations.rb +120 -0
  37. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  38. data/generated/google/apis/genomics_v2alpha1/classes.rb +35 -0
  39. data/generated/google/apis/genomics_v2alpha1/representations.rb +16 -0
  40. data/generated/google/apis/logging_v2.rb +1 -1
  41. data/generated/google/apis/logging_v2/classes.rb +2 -2
  42. data/generated/google/apis/monitoring_v3.rb +1 -1
  43. data/generated/google/apis/monitoring_v3/classes.rb +7 -0
  44. data/generated/google/apis/monitoring_v3/representations.rb +2 -0
  45. data/generated/google/apis/monitoring_v3/service.rb +5 -3
  46. data/generated/google/apis/pagespeedonline_v4.rb +1 -1
  47. data/generated/google/apis/pubsub_v1.rb +1 -1
  48. data/generated/google/apis/pubsub_v1/classes.rb +0 -8
  49. data/generated/google/apis/pubsub_v1/service.rb +4 -8
  50. data/generated/google/apis/script_v1.rb +1 -1
  51. data/generated/google/apis/script_v1/classes.rb +7 -8
  52. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  53. data/generated/google/apis/servicemanagement_v1/classes.rb +0 -27
  54. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -15
  55. data/generated/google/apis/serviceuser_v1.rb +1 -1
  56. data/generated/google/apis/serviceuser_v1/classes.rb +0 -27
  57. data/generated/google/apis/serviceuser_v1/representations.rb +0 -15
  58. data/generated/google/apis/sheets_v4.rb +1 -1
  59. data/generated/google/apis/sheets_v4/service.rb +2 -1
  60. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  61. data/generated/google/apis/tpu_v1.rb +34 -0
  62. data/generated/google/apis/tpu_v1/classes.rb +736 -0
  63. data/generated/google/apis/tpu_v1/representations.rb +316 -0
  64. data/generated/google/apis/tpu_v1/service.rb +687 -0
  65. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  66. data/generated/google/apis/tpu_v1alpha1/classes.rb +26 -0
  67. data/generated/google/apis/tpu_v1alpha1/representations.rb +15 -0
  68. data/generated/google/apis/videointelligence_v1.rb +1 -1
  69. data/generated/google/apis/videointelligence_v1/classes.rb +0 -473
  70. data/generated/google/apis/videointelligence_v1/representations.rb +0 -222
  71. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  72. data/generated/google/apis/videointelligence_v1beta2/classes.rb +0 -473
  73. data/generated/google/apis/videointelligence_v1beta2/representations.rb +0 -222
  74. data/lib/google/apis/version.rb +1 -1
  75. metadata +6 -6
  76. data/generated/google/apis/photoslibrary_v1.rb +0 -49
  77. data/generated/google/apis/photoslibrary_v1/classes.rb +0 -1330
  78. data/generated/google/apis/photoslibrary_v1/representations.rb +0 -625
  79. data/generated/google/apis/photoslibrary_v1/service.rb +0 -399
@@ -388,6 +388,12 @@ module Google
388
388
  include Google::Apis::Core::JsonObjectSupport
389
389
  end
390
390
 
391
+ class BackendServiceIapoAuth2ClientInfo
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
391
397
  class BackendServiceList
392
398
  class Representation < Google::Apis::Core::JsonRepresentation; end
393
399
 
@@ -4351,6 +4357,7 @@ module Google
4351
4357
  property :source_image, as: 'sourceImage'
4352
4358
  property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
4353
4359
 
4360
+ property :source_snapshot, as: 'sourceSnapshot'
4354
4361
  end
4355
4362
  end
4356
4363
 
@@ -4756,11 +4763,22 @@ module Google
4756
4763
  class Representation < Google::Apis::Core::JsonRepresentation
4757
4764
  property :enabled, as: 'enabled'
4758
4765
  property :oauth2_client_id, as: 'oauth2ClientId'
4766
+ property :oauth2_client_info, as: 'oauth2ClientInfo', class: Google::Apis::ComputeAlpha::BackendServiceIapoAuth2ClientInfo, decorator: Google::Apis::ComputeAlpha::BackendServiceIapoAuth2ClientInfo::Representation
4767
+
4759
4768
  property :oauth2_client_secret, as: 'oauth2ClientSecret'
4760
4769
  property :oauth2_client_secret_sha256, as: 'oauth2ClientSecretSha256'
4761
4770
  end
4762
4771
  end
4763
4772
 
4773
+ class BackendServiceIapoAuth2ClientInfo
4774
+ # @private
4775
+ class Representation < Google::Apis::Core::JsonRepresentation
4776
+ property :application_name, as: 'applicationName'
4777
+ property :client_name, as: 'clientName'
4778
+ property :developer_email_address, as: 'developerEmailAddress'
4779
+ end
4780
+ end
4781
+
4764
4782
  class BackendServiceList
4765
4783
  # @private
4766
4784
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6217,6 +6235,7 @@ module Google
6217
6235
 
6218
6236
  property :shielded_vm_integrity_policy, as: 'shieldedVmIntegrityPolicy', class: Google::Apis::ComputeAlpha::ShieldedVmIntegrityPolicy, decorator: Google::Apis::ComputeAlpha::ShieldedVmIntegrityPolicy::Representation
6219
6237
 
6238
+ property :source_machine_image, as: 'sourceMachineImage'
6220
6239
  property :start_restricted, as: 'startRestricted'
6221
6240
  property :status, as: 'status'
6222
6241
  property :status_message, as: 'statusMessage'
@@ -8071,6 +8090,7 @@ module Google
8071
8090
  class Representation < Google::Apis::Core::JsonRepresentation
8072
8091
  property :index, as: 'index'
8073
8092
  collection :instances, as: 'instances'
8093
+ property :name, as: 'name'
8074
8094
  property :node_type, as: 'nodeType'
8075
8095
  end
8076
8096
  end
@@ -8086,6 +8106,7 @@ module Google
8086
8106
  # @private
8087
8107
  class Representation < Google::Apis::Core::JsonRepresentation
8088
8108
  collection :node_indexes, as: 'nodeIndexes'
8109
+ collection :nodes, as: 'nodes'
8089
8110
  end
8090
8111
  end
8091
8112
 
@@ -9629,6 +9650,8 @@ module Google
9629
9650
  property :fingerprint, :base64 => true, as: 'fingerprint'
9630
9651
  property :id, :numeric_string => true, as: 'id'
9631
9652
  property :kind, as: 'kind'
9653
+ property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
9654
+ hash :labels, as: 'labels'
9632
9655
  property :name, as: 'name'
9633
9656
  collection :rules, as: 'rules', class: Google::Apis::ComputeAlpha::SecurityPolicyRule, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
9634
9657
 
@@ -14216,7 +14216,7 @@ module Google
14216
14216
  execute_or_queue_command(command, &block)
14217
14217
  end
14218
14218
 
14219
- # Returns the specified NodeGroup. Gets a list of available NodeGroups by making
14219
+ # Returns the specified NodeGroup. Get a list of available NodeGroups by making
14220
14220
  # a list() request.
14221
14221
  # @param [String] project
14222
14222
  # Project ID for this request.
@@ -21792,6 +21792,46 @@ module Google
21792
21792
  execute_or_queue_command(command, &block)
21793
21793
  end
21794
21794
 
21795
+ # Sets the labels on a security policy. To learn more about labels, read the
21796
+ # Labeling Resources documentation.
21797
+ # @param [String] project
21798
+ # Project ID for this request.
21799
+ # @param [String] resource
21800
+ # Name of the resource for this request.
21801
+ # @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object
21802
+ # @param [String] fields
21803
+ # Selector specifying which fields to include in a partial response.
21804
+ # @param [String] quota_user
21805
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
21806
+ # characters.
21807
+ # @param [String] user_ip
21808
+ # Deprecated. Please use quotaUser instead.
21809
+ # @param [Google::Apis::RequestOptions] options
21810
+ # Request-specific options
21811
+ #
21812
+ # @yield [result, err] Result & error if block supplied
21813
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
21814
+ # @yieldparam err [StandardError] error object if request failed
21815
+ #
21816
+ # @return [Google::Apis::ComputeAlpha::Operation]
21817
+ #
21818
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
21819
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
21820
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
21821
+ def set_security_policy_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
21822
+ command = make_simple_command(:post, '{project}/global/securityPolicies/{resource}/setLabels', options)
21823
+ command.request_representation = Google::Apis::ComputeAlpha::GlobalSetLabelsRequest::Representation
21824
+ command.request_object = global_set_labels_request_object
21825
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
21826
+ command.response_class = Google::Apis::ComputeAlpha::Operation
21827
+ command.params['project'] = project unless project.nil?
21828
+ command.params['resource'] = resource unless resource.nil?
21829
+ command.query['fields'] = fields unless fields.nil?
21830
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
21831
+ command.query['userIp'] = user_ip unless user_ip.nil?
21832
+ execute_or_queue_command(command, &block)
21833
+ end
21834
+
21795
21835
  # Returns permissions that a caller has on the specified resource.
21796
21836
  # @param [String] project
21797
21837
  # 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 ComputeBeta
27
27
  VERSION = 'Beta'
28
- REVISION = '20180428'
28
+ REVISION = '20180518'
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'
@@ -4903,6 +4903,13 @@ module Google
4903
4903
  attr_accessor :disabled
4904
4904
  alias_method :disabled?, :disabled
4905
4905
 
4906
+ # This field denotes whether to enable logging for a particular firewall rule.
4907
+ # If logging is enabled, logs will be exported to Stackdriver.
4908
+ # Corresponds to the JSON property `enableLogging`
4909
+ # @return [Boolean]
4910
+ attr_accessor :enable_logging
4911
+ alias_method :enable_logging?, :enable_logging
4912
+
4906
4913
  # [Output Only] The unique identifier for the resource. This identifier is
4907
4914
  # defined by the server.
4908
4915
  # Corresponds to the JSON property `id`
@@ -5021,6 +5028,7 @@ module Google
5021
5028
  @destination_ranges = args[:destination_ranges] if args.key?(:destination_ranges)
5022
5029
  @direction = args[:direction] if args.key?(:direction)
5023
5030
  @disabled = args[:disabled] if args.key?(:disabled)
5031
+ @enable_logging = args[:enable_logging] if args.key?(:enable_logging)
5024
5032
  @id = args[:id] if args.key?(:id)
5025
5033
  @kind = args[:kind] if args.key?(:kind)
5026
5034
  @name = args[:name] if args.key?(:name)
@@ -7358,6 +7366,16 @@ module Google
7358
7366
  # @return [Array<Google::Apis::ComputeBeta::ServiceAccount>]
7359
7367
  attr_accessor :service_accounts
7360
7368
 
7369
+ # A set of Shielded VM options.
7370
+ # Corresponds to the JSON property `shieldedVmConfig`
7371
+ # @return [Google::Apis::ComputeBeta::ShieldedVmConfig]
7372
+ attr_accessor :shielded_vm_config
7373
+
7374
+ # The policy describes how boot integrity measurements are evaluated.
7375
+ # Corresponds to the JSON property `shieldedVmIntegrityPolicy`
7376
+ # @return [Google::Apis::ComputeBeta::ShieldedVmIntegrityPolicy]
7377
+ attr_accessor :shielded_vm_integrity_policy
7378
+
7361
7379
  # [Output Only] Whether a VM has been restricted for start because Compute
7362
7380
  # Engine has detected suspicious activity.
7363
7381
  # Corresponds to the JSON property `startRestricted`
@@ -7414,6 +7432,8 @@ module Google
7414
7432
  @scheduling = args[:scheduling] if args.key?(:scheduling)
7415
7433
  @self_link = args[:self_link] if args.key?(:self_link)
7416
7434
  @service_accounts = args[:service_accounts] if args.key?(:service_accounts)
7435
+ @shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config)
7436
+ @shielded_vm_integrity_policy = args[:shielded_vm_integrity_policy] if args.key?(:shielded_vm_integrity_policy)
7417
7437
  @start_restricted = args[:start_restricted] if args.key?(:start_restricted)
7418
7438
  @status = args[:status] if args.key?(:status)
7419
7439
  @status_message = args[:status_message] if args.key?(:status_message)
@@ -7936,8 +7956,7 @@ module Google
7936
7956
 
7937
7957
  # Fingerprint of this resource. This field may be used in optimistic locking. It
7938
7958
  # will be ignored when inserting an InstanceGroupManager. An up-to-date
7939
- # fingerprint must be provided in order to update the InstanceGroupManager or
7940
- # the field need to be unset.
7959
+ # fingerprint must be provided in order to update the InstanceGroupManager.
7941
7960
  # Corresponds to the JSON property `fingerprint`
7942
7961
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
7943
7962
  # @return [String]
@@ -9491,6 +9510,11 @@ module Google
9491
9510
  # @return [Array<Google::Apis::ComputeBeta::ServiceAccount>]
9492
9511
  attr_accessor :service_accounts
9493
9512
 
9513
+ # A set of Shielded VM options.
9514
+ # Corresponds to the JSON property `shieldedVmConfig`
9515
+ # @return [Google::Apis::ComputeBeta::ShieldedVmConfig]
9516
+ attr_accessor :shielded_vm_config
9517
+
9494
9518
  # A set of instance tags.
9495
9519
  # Corresponds to the JSON property `tags`
9496
9520
  # @return [Google::Apis::ComputeBeta::Tags]
@@ -9513,6 +9537,7 @@ module Google
9513
9537
  @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces)
9514
9538
  @scheduling = args[:scheduling] if args.key?(:scheduling)
9515
9539
  @service_accounts = args[:service_accounts] if args.key?(:service_accounts)
9540
+ @shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config)
9516
9541
  @tags = args[:tags] if args.key?(:tags)
9517
9542
  end
9518
9543
  end
@@ -12808,27 +12833,1353 @@ module Google
12808
12833
  end
12809
12834
 
12810
12835
  #
12811
- class NetworksAddPeeringRequest
12836
+ class NetworksAddPeeringRequest
12837
+ include Google::Apis::Core::Hashable
12838
+
12839
+ # Whether Google Compute Engine manages the routes automatically.
12840
+ # Corresponds to the JSON property `autoCreateRoutes`
12841
+ # @return [Boolean]
12842
+ attr_accessor :auto_create_routes
12843
+ alias_method :auto_create_routes?, :auto_create_routes
12844
+
12845
+ # Name of the peering, which should conform to RFC1035.
12846
+ # Corresponds to the JSON property `name`
12847
+ # @return [String]
12848
+ attr_accessor :name
12849
+
12850
+ # URL of the peer network. It can be either full URL or partial URL. The peer
12851
+ # network may belong to a different project. If the partial URL does not contain
12852
+ # project, it is assumed that the peer network is in the same project as the
12853
+ # current network.
12854
+ # Corresponds to the JSON property `peerNetwork`
12855
+ # @return [String]
12856
+ attr_accessor :peer_network
12857
+
12858
+ def initialize(**args)
12859
+ update!(**args)
12860
+ end
12861
+
12862
+ # Update properties of this object
12863
+ def update!(**args)
12864
+ @auto_create_routes = args[:auto_create_routes] if args.key?(:auto_create_routes)
12865
+ @name = args[:name] if args.key?(:name)
12866
+ @peer_network = args[:peer_network] if args.key?(:peer_network)
12867
+ end
12868
+ end
12869
+
12870
+ #
12871
+ class NetworksRemovePeeringRequest
12872
+ include Google::Apis::Core::Hashable
12873
+
12874
+ # Name of the peering, which should conform to RFC1035.
12875
+ # Corresponds to the JSON property `name`
12876
+ # @return [String]
12877
+ attr_accessor :name
12878
+
12879
+ def initialize(**args)
12880
+ update!(**args)
12881
+ end
12882
+
12883
+ # Update properties of this object
12884
+ def update!(**args)
12885
+ @name = args[:name] if args.key?(:name)
12886
+ end
12887
+ end
12888
+
12889
+ # A NodeGroup resource.
12890
+ class NodeGroup
12891
+ include Google::Apis::Core::Hashable
12892
+
12893
+ # [Output Only] Creation timestamp in RFC3339 text format.
12894
+ # Corresponds to the JSON property `creationTimestamp`
12895
+ # @return [String]
12896
+ attr_accessor :creation_timestamp
12897
+
12898
+ # An optional description of this resource. Provide this property when you
12899
+ # create the resource.
12900
+ # Corresponds to the JSON property `description`
12901
+ # @return [String]
12902
+ attr_accessor :description
12903
+
12904
+ # [Output Only] The unique identifier for the resource. This identifier is
12905
+ # defined by the server.
12906
+ # Corresponds to the JSON property `id`
12907
+ # @return [Fixnum]
12908
+ attr_accessor :id
12909
+
12910
+ # [Output Only] The type of the resource. Always compute#nodeGroup for node
12911
+ # group.
12912
+ # Corresponds to the JSON property `kind`
12913
+ # @return [String]
12914
+ attr_accessor :kind
12915
+
12916
+ # The name of the resource, provided by the client when initially creating the
12917
+ # resource. The resource name must be 1-63 characters long, and comply with
12918
+ # RFC1035. Specifically, the name must be 1-63 characters long and match the
12919
+ # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
12920
+ # character must be a lowercase letter, and all following characters must be a
12921
+ # dash, lowercase letter, or digit, except the last character, which cannot be a
12922
+ # dash.
12923
+ # Corresponds to the JSON property `name`
12924
+ # @return [String]
12925
+ attr_accessor :name
12926
+
12927
+ # The URL of the node template to which this node group belongs.
12928
+ # Corresponds to the JSON property `nodeTemplate`
12929
+ # @return [String]
12930
+ attr_accessor :node_template
12931
+
12932
+ # [Output Only] A list of nodes in this node group.
12933
+ # Corresponds to the JSON property `nodes`
12934
+ # @return [Array<Google::Apis::ComputeBeta::NodeGroupNode>]
12935
+ attr_accessor :nodes
12936
+
12937
+ # [Output Only] Server-defined URL for the resource.
12938
+ # Corresponds to the JSON property `selfLink`
12939
+ # @return [String]
12940
+ attr_accessor :self_link
12941
+
12942
+ #
12943
+ # Corresponds to the JSON property `status`
12944
+ # @return [String]
12945
+ attr_accessor :status
12946
+
12947
+ # [Output Only] The name of the zone where the node group resides, such as us-
12948
+ # central1-a.
12949
+ # Corresponds to the JSON property `zone`
12950
+ # @return [String]
12951
+ attr_accessor :zone
12952
+
12953
+ def initialize(**args)
12954
+ update!(**args)
12955
+ end
12956
+
12957
+ # Update properties of this object
12958
+ def update!(**args)
12959
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
12960
+ @description = args[:description] if args.key?(:description)
12961
+ @id = args[:id] if args.key?(:id)
12962
+ @kind = args[:kind] if args.key?(:kind)
12963
+ @name = args[:name] if args.key?(:name)
12964
+ @node_template = args[:node_template] if args.key?(:node_template)
12965
+ @nodes = args[:nodes] if args.key?(:nodes)
12966
+ @self_link = args[:self_link] if args.key?(:self_link)
12967
+ @status = args[:status] if args.key?(:status)
12968
+ @zone = args[:zone] if args.key?(:zone)
12969
+ end
12970
+ end
12971
+
12972
+ #
12973
+ class NodeGroupAggregatedList
12974
+ include Google::Apis::Core::Hashable
12975
+
12976
+ # [Output Only] Unique identifier for the resource; defined by the server.
12977
+ # Corresponds to the JSON property `id`
12978
+ # @return [String]
12979
+ attr_accessor :id
12980
+
12981
+ # A list of NodeGroupsScopedList resources.
12982
+ # Corresponds to the JSON property `items`
12983
+ # @return [Hash<String,Google::Apis::ComputeBeta::NodeGroupsScopedList>]
12984
+ attr_accessor :items
12985
+
12986
+ # [Output Only] Type of resource.Always compute#nodeGroupAggregatedList for
12987
+ # aggregated lists of node groups.
12988
+ # Corresponds to the JSON property `kind`
12989
+ # @return [String]
12990
+ attr_accessor :kind
12991
+
12992
+ # [Output Only] This token allows you to get the next page of results for list
12993
+ # requests. If the number of results is larger than maxResults, use the
12994
+ # nextPageToken as a value for the query parameter pageToken in the next list
12995
+ # request. Subsequent list requests will have their own nextPageToken to
12996
+ # continue paging through the results.
12997
+ # Corresponds to the JSON property `nextPageToken`
12998
+ # @return [String]
12999
+ attr_accessor :next_page_token
13000
+
13001
+ # [Output Only] Server-defined URL for this resource.
13002
+ # Corresponds to the JSON property `selfLink`
13003
+ # @return [String]
13004
+ attr_accessor :self_link
13005
+
13006
+ # [Output Only] Informational warning message.
13007
+ # Corresponds to the JSON property `warning`
13008
+ # @return [Google::Apis::ComputeBeta::NodeGroupAggregatedList::Warning]
13009
+ attr_accessor :warning
13010
+
13011
+ def initialize(**args)
13012
+ update!(**args)
13013
+ end
13014
+
13015
+ # Update properties of this object
13016
+ def update!(**args)
13017
+ @id = args[:id] if args.key?(:id)
13018
+ @items = args[:items] if args.key?(:items)
13019
+ @kind = args[:kind] if args.key?(:kind)
13020
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
13021
+ @self_link = args[:self_link] if args.key?(:self_link)
13022
+ @warning = args[:warning] if args.key?(:warning)
13023
+ end
13024
+
13025
+ # [Output Only] Informational warning message.
13026
+ class Warning
13027
+ include Google::Apis::Core::Hashable
13028
+
13029
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
13030
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
13031
+ # Corresponds to the JSON property `code`
13032
+ # @return [String]
13033
+ attr_accessor :code
13034
+
13035
+ # [Output Only] Metadata about this warning in key: value format. For example:
13036
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
13037
+ # Corresponds to the JSON property `data`
13038
+ # @return [Array<Google::Apis::ComputeBeta::NodeGroupAggregatedList::Warning::Datum>]
13039
+ attr_accessor :data
13040
+
13041
+ # [Output Only] A human-readable description of the warning code.
13042
+ # Corresponds to the JSON property `message`
13043
+ # @return [String]
13044
+ attr_accessor :message
13045
+
13046
+ def initialize(**args)
13047
+ update!(**args)
13048
+ end
13049
+
13050
+ # Update properties of this object
13051
+ def update!(**args)
13052
+ @code = args[:code] if args.key?(:code)
13053
+ @data = args[:data] if args.key?(:data)
13054
+ @message = args[:message] if args.key?(:message)
13055
+ end
13056
+
13057
+ #
13058
+ class Datum
13059
+ include Google::Apis::Core::Hashable
13060
+
13061
+ # [Output Only] A key that provides more detail on the warning being returned.
13062
+ # For example, for warnings where there are no results in a list request for a
13063
+ # particular zone, this key might be scope and the key value might be the zone
13064
+ # name. Other examples might be a key indicating a deprecated resource and a
13065
+ # suggested replacement, or a warning about invalid network settings (for
13066
+ # example, if an instance attempts to perform IP forwarding but is not enabled
13067
+ # for IP forwarding).
13068
+ # Corresponds to the JSON property `key`
13069
+ # @return [String]
13070
+ attr_accessor :key
13071
+
13072
+ # [Output Only] A warning data value corresponding to the key.
13073
+ # Corresponds to the JSON property `value`
13074
+ # @return [String]
13075
+ attr_accessor :value
13076
+
13077
+ def initialize(**args)
13078
+ update!(**args)
13079
+ end
13080
+
13081
+ # Update properties of this object
13082
+ def update!(**args)
13083
+ @key = args[:key] if args.key?(:key)
13084
+ @value = args[:value] if args.key?(:value)
13085
+ end
13086
+ end
13087
+ end
13088
+ end
13089
+
13090
+ # Contains a list of nodeGroups.
13091
+ class NodeGroupList
13092
+ include Google::Apis::Core::Hashable
13093
+
13094
+ # [Output Only] Unique identifier for the resource; defined by the server.
13095
+ # Corresponds to the JSON property `id`
13096
+ # @return [String]
13097
+ attr_accessor :id
13098
+
13099
+ # A list of NodeGroup resources.
13100
+ # Corresponds to the JSON property `items`
13101
+ # @return [Array<Google::Apis::ComputeBeta::NodeGroup>]
13102
+ attr_accessor :items
13103
+
13104
+ # [Output Only] Type of resource.Always compute#nodeGroupList for lists of node
13105
+ # groups.
13106
+ # Corresponds to the JSON property `kind`
13107
+ # @return [String]
13108
+ attr_accessor :kind
13109
+
13110
+ # [Output Only] This token allows you to get the next page of results for list
13111
+ # requests. If the number of results is larger than maxResults, use the
13112
+ # nextPageToken as a value for the query parameter pageToken in the next list
13113
+ # request. Subsequent list requests will have their own nextPageToken to
13114
+ # continue paging through the results.
13115
+ # Corresponds to the JSON property `nextPageToken`
13116
+ # @return [String]
13117
+ attr_accessor :next_page_token
13118
+
13119
+ # [Output Only] Server-defined URL for this resource.
13120
+ # Corresponds to the JSON property `selfLink`
13121
+ # @return [String]
13122
+ attr_accessor :self_link
13123
+
13124
+ # [Output Only] Informational warning message.
13125
+ # Corresponds to the JSON property `warning`
13126
+ # @return [Google::Apis::ComputeBeta::NodeGroupList::Warning]
13127
+ attr_accessor :warning
13128
+
13129
+ def initialize(**args)
13130
+ update!(**args)
13131
+ end
13132
+
13133
+ # Update properties of this object
13134
+ def update!(**args)
13135
+ @id = args[:id] if args.key?(:id)
13136
+ @items = args[:items] if args.key?(:items)
13137
+ @kind = args[:kind] if args.key?(:kind)
13138
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
13139
+ @self_link = args[:self_link] if args.key?(:self_link)
13140
+ @warning = args[:warning] if args.key?(:warning)
13141
+ end
13142
+
13143
+ # [Output Only] Informational warning message.
13144
+ class Warning
13145
+ include Google::Apis::Core::Hashable
13146
+
13147
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
13148
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
13149
+ # Corresponds to the JSON property `code`
13150
+ # @return [String]
13151
+ attr_accessor :code
13152
+
13153
+ # [Output Only] Metadata about this warning in key: value format. For example:
13154
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
13155
+ # Corresponds to the JSON property `data`
13156
+ # @return [Array<Google::Apis::ComputeBeta::NodeGroupList::Warning::Datum>]
13157
+ attr_accessor :data
13158
+
13159
+ # [Output Only] A human-readable description of the warning code.
13160
+ # Corresponds to the JSON property `message`
13161
+ # @return [String]
13162
+ attr_accessor :message
13163
+
13164
+ def initialize(**args)
13165
+ update!(**args)
13166
+ end
13167
+
13168
+ # Update properties of this object
13169
+ def update!(**args)
13170
+ @code = args[:code] if args.key?(:code)
13171
+ @data = args[:data] if args.key?(:data)
13172
+ @message = args[:message] if args.key?(:message)
13173
+ end
13174
+
13175
+ #
13176
+ class Datum
13177
+ include Google::Apis::Core::Hashable
13178
+
13179
+ # [Output Only] A key that provides more detail on the warning being returned.
13180
+ # For example, for warnings where there are no results in a list request for a
13181
+ # particular zone, this key might be scope and the key value might be the zone
13182
+ # name. Other examples might be a key indicating a deprecated resource and a
13183
+ # suggested replacement, or a warning about invalid network settings (for
13184
+ # example, if an instance attempts to perform IP forwarding but is not enabled
13185
+ # for IP forwarding).
13186
+ # Corresponds to the JSON property `key`
13187
+ # @return [String]
13188
+ attr_accessor :key
13189
+
13190
+ # [Output Only] A warning data value corresponding to the key.
13191
+ # Corresponds to the JSON property `value`
13192
+ # @return [String]
13193
+ attr_accessor :value
13194
+
13195
+ def initialize(**args)
13196
+ update!(**args)
13197
+ end
13198
+
13199
+ # Update properties of this object
13200
+ def update!(**args)
13201
+ @key = args[:key] if args.key?(:key)
13202
+ @value = args[:value] if args.key?(:value)
13203
+ end
13204
+ end
13205
+ end
13206
+ end
13207
+
13208
+ #
13209
+ class NodeGroupNode
13210
+ include Google::Apis::Core::Hashable
13211
+
13212
+ # Instances scheduled on this node.
13213
+ # Corresponds to the JSON property `instances`
13214
+ # @return [Array<String>]
13215
+ attr_accessor :instances
13216
+
13217
+ # The name of the node.
13218
+ # Corresponds to the JSON property `name`
13219
+ # @return [String]
13220
+ attr_accessor :name
13221
+
13222
+ # The type of this node.
13223
+ # Corresponds to the JSON property `nodeType`
13224
+ # @return [String]
13225
+ attr_accessor :node_type
13226
+
13227
+ def initialize(**args)
13228
+ update!(**args)
13229
+ end
13230
+
13231
+ # Update properties of this object
13232
+ def update!(**args)
13233
+ @instances = args[:instances] if args.key?(:instances)
13234
+ @name = args[:name] if args.key?(:name)
13235
+ @node_type = args[:node_type] if args.key?(:node_type)
13236
+ end
13237
+ end
13238
+
13239
+ #
13240
+ class NodeGroupsAddNodesRequest
13241
+ include Google::Apis::Core::Hashable
13242
+
13243
+ # Count of additional nodes to be added to the node group.
13244
+ # Corresponds to the JSON property `additionalNodeCount`
13245
+ # @return [Fixnum]
13246
+ attr_accessor :additional_node_count
13247
+
13248
+ def initialize(**args)
13249
+ update!(**args)
13250
+ end
13251
+
13252
+ # Update properties of this object
13253
+ def update!(**args)
13254
+ @additional_node_count = args[:additional_node_count] if args.key?(:additional_node_count)
13255
+ end
13256
+ end
13257
+
13258
+ #
13259
+ class NodeGroupsDeleteNodesRequest
13260
+ include Google::Apis::Core::Hashable
13261
+
13262
+ #
13263
+ # Corresponds to the JSON property `nodes`
13264
+ # @return [Array<String>]
13265
+ attr_accessor :nodes
13266
+
13267
+ def initialize(**args)
13268
+ update!(**args)
13269
+ end
13270
+
13271
+ # Update properties of this object
13272
+ def update!(**args)
13273
+ @nodes = args[:nodes] if args.key?(:nodes)
13274
+ end
13275
+ end
13276
+
13277
+ #
13278
+ class NodeGroupsScopedList
13279
+ include Google::Apis::Core::Hashable
13280
+
13281
+ # [Output Only] A list of node groups contained in this scope.
13282
+ # Corresponds to the JSON property `nodeGroups`
13283
+ # @return [Array<Google::Apis::ComputeBeta::NodeGroup>]
13284
+ attr_accessor :node_groups
13285
+
13286
+ # [Output Only] An informational warning that appears when the nodeGroup list is
13287
+ # empty.
13288
+ # Corresponds to the JSON property `warning`
13289
+ # @return [Google::Apis::ComputeBeta::NodeGroupsScopedList::Warning]
13290
+ attr_accessor :warning
13291
+
13292
+ def initialize(**args)
13293
+ update!(**args)
13294
+ end
13295
+
13296
+ # Update properties of this object
13297
+ def update!(**args)
13298
+ @node_groups = args[:node_groups] if args.key?(:node_groups)
13299
+ @warning = args[:warning] if args.key?(:warning)
13300
+ end
13301
+
13302
+ # [Output Only] An informational warning that appears when the nodeGroup list is
13303
+ # empty.
13304
+ class Warning
13305
+ include Google::Apis::Core::Hashable
13306
+
13307
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
13308
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
13309
+ # Corresponds to the JSON property `code`
13310
+ # @return [String]
13311
+ attr_accessor :code
13312
+
13313
+ # [Output Only] Metadata about this warning in key: value format. For example:
13314
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
13315
+ # Corresponds to the JSON property `data`
13316
+ # @return [Array<Google::Apis::ComputeBeta::NodeGroupsScopedList::Warning::Datum>]
13317
+ attr_accessor :data
13318
+
13319
+ # [Output Only] A human-readable description of the warning code.
13320
+ # Corresponds to the JSON property `message`
13321
+ # @return [String]
13322
+ attr_accessor :message
13323
+
13324
+ def initialize(**args)
13325
+ update!(**args)
13326
+ end
13327
+
13328
+ # Update properties of this object
13329
+ def update!(**args)
13330
+ @code = args[:code] if args.key?(:code)
13331
+ @data = args[:data] if args.key?(:data)
13332
+ @message = args[:message] if args.key?(:message)
13333
+ end
13334
+
13335
+ #
13336
+ class Datum
13337
+ include Google::Apis::Core::Hashable
13338
+
13339
+ # [Output Only] A key that provides more detail on the warning being returned.
13340
+ # For example, for warnings where there are no results in a list request for a
13341
+ # particular zone, this key might be scope and the key value might be the zone
13342
+ # name. Other examples might be a key indicating a deprecated resource and a
13343
+ # suggested replacement, or a warning about invalid network settings (for
13344
+ # example, if an instance attempts to perform IP forwarding but is not enabled
13345
+ # for IP forwarding).
13346
+ # Corresponds to the JSON property `key`
13347
+ # @return [String]
13348
+ attr_accessor :key
13349
+
13350
+ # [Output Only] A warning data value corresponding to the key.
13351
+ # Corresponds to the JSON property `value`
13352
+ # @return [String]
13353
+ attr_accessor :value
13354
+
13355
+ def initialize(**args)
13356
+ update!(**args)
13357
+ end
13358
+
13359
+ # Update properties of this object
13360
+ def update!(**args)
13361
+ @key = args[:key] if args.key?(:key)
13362
+ @value = args[:value] if args.key?(:value)
13363
+ end
13364
+ end
13365
+ end
13366
+ end
13367
+
13368
+ #
13369
+ class NodeGroupsSetNodeTemplateRequest
13370
+ include Google::Apis::Core::Hashable
13371
+
13372
+ # Full or partial URL of the node template resource to be updated for this node
13373
+ # group.
13374
+ # Corresponds to the JSON property `nodeTemplate`
13375
+ # @return [String]
13376
+ attr_accessor :node_template
13377
+
13378
+ def initialize(**args)
13379
+ update!(**args)
13380
+ end
13381
+
13382
+ # Update properties of this object
13383
+ def update!(**args)
13384
+ @node_template = args[:node_template] if args.key?(:node_template)
13385
+ end
13386
+ end
13387
+
13388
+ # A Node Template resource.
13389
+ class NodeTemplate
13390
+ include Google::Apis::Core::Hashable
13391
+
13392
+ # [Output Only] Creation timestamp in RFC3339 text format.
13393
+ # Corresponds to the JSON property `creationTimestamp`
13394
+ # @return [String]
13395
+ attr_accessor :creation_timestamp
13396
+
13397
+ # An optional description of this resource. Provide this property when you
13398
+ # create the resource.
13399
+ # Corresponds to the JSON property `description`
13400
+ # @return [String]
13401
+ attr_accessor :description
13402
+
13403
+ # [Output Only] The unique identifier for the resource. This identifier is
13404
+ # defined by the server.
13405
+ # Corresponds to the JSON property `id`
13406
+ # @return [Fixnum]
13407
+ attr_accessor :id
13408
+
13409
+ # [Output Only] The type of the resource. Always compute#nodeTemplate for node
13410
+ # templates.
13411
+ # Corresponds to the JSON property `kind`
13412
+ # @return [String]
13413
+ attr_accessor :kind
13414
+
13415
+ # The name of the resource, provided by the client when initially creating the
13416
+ # resource. The resource name must be 1-63 characters long, and comply with
13417
+ # RFC1035. Specifically, the name must be 1-63 characters long and match the
13418
+ # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
13419
+ # character must be a lowercase letter, and all following characters must be a
13420
+ # dash, lowercase letter, or digit, except the last charaicter, which cannot be
13421
+ # a dash.
13422
+ # Corresponds to the JSON property `name`
13423
+ # @return [String]
13424
+ attr_accessor :name
13425
+
13426
+ # Labels to use for node affinity, which will be used in instance scheduling.
13427
+ # Corresponds to the JSON property `nodeAffinityLabels`
13428
+ # @return [Hash<String,String>]
13429
+ attr_accessor :node_affinity_labels
13430
+
13431
+ # The node type to use for nodes group that are created from this template.
13432
+ # Corresponds to the JSON property `nodeType`
13433
+ # @return [String]
13434
+ attr_accessor :node_type
13435
+
13436
+ # The flexible properties of the desired node type. Node groups that use this
13437
+ # node template will create nodes of a type that matches these properties.
13438
+ # This field is mutually exclusive with the node_type property; you can only
13439
+ # define one or the other, but not both.
13440
+ # Corresponds to the JSON property `nodeTypeFlexibility`
13441
+ # @return [Google::Apis::ComputeBeta::NodeTemplateNodeTypeFlexibility]
13442
+ attr_accessor :node_type_flexibility
13443
+
13444
+ # [Output Only] The name of the region where the node template resides, such as
13445
+ # us-central1.
13446
+ # Corresponds to the JSON property `region`
13447
+ # @return [String]
13448
+ attr_accessor :region
13449
+
13450
+ # [Output Only] Server-defined URL for the resource.
13451
+ # Corresponds to the JSON property `selfLink`
13452
+ # @return [String]
13453
+ attr_accessor :self_link
13454
+
13455
+ # [Output Only] The status of the node template. One of the following values:
13456
+ # CREATING, READY, and DELETING.
13457
+ # Corresponds to the JSON property `status`
13458
+ # @return [String]
13459
+ attr_accessor :status
13460
+
13461
+ # [Output Only] An optional, human-readable explanation of the status.
13462
+ # Corresponds to the JSON property `statusMessage`
13463
+ # @return [String]
13464
+ attr_accessor :status_message
13465
+
13466
+ def initialize(**args)
13467
+ update!(**args)
13468
+ end
13469
+
13470
+ # Update properties of this object
13471
+ def update!(**args)
13472
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
13473
+ @description = args[:description] if args.key?(:description)
13474
+ @id = args[:id] if args.key?(:id)
13475
+ @kind = args[:kind] if args.key?(:kind)
13476
+ @name = args[:name] if args.key?(:name)
13477
+ @node_affinity_labels = args[:node_affinity_labels] if args.key?(:node_affinity_labels)
13478
+ @node_type = args[:node_type] if args.key?(:node_type)
13479
+ @node_type_flexibility = args[:node_type_flexibility] if args.key?(:node_type_flexibility)
13480
+ @region = args[:region] if args.key?(:region)
13481
+ @self_link = args[:self_link] if args.key?(:self_link)
13482
+ @status = args[:status] if args.key?(:status)
13483
+ @status_message = args[:status_message] if args.key?(:status_message)
13484
+ end
13485
+ end
13486
+
13487
+ #
13488
+ class NodeTemplateAggregatedList
13489
+ include Google::Apis::Core::Hashable
13490
+
13491
+ # [Output Only] Unique identifier for the resource; defined by the server.
13492
+ # Corresponds to the JSON property `id`
13493
+ # @return [String]
13494
+ attr_accessor :id
13495
+
13496
+ # A list of NodeTemplatesScopedList resources.
13497
+ # Corresponds to the JSON property `items`
13498
+ # @return [Hash<String,Google::Apis::ComputeBeta::NodeTemplatesScopedList>]
13499
+ attr_accessor :items
13500
+
13501
+ # [Output Only] Type of resource.Always compute#nodeTemplateAggregatedList for
13502
+ # aggregated lists of node templates.
13503
+ # Corresponds to the JSON property `kind`
13504
+ # @return [String]
13505
+ attr_accessor :kind
13506
+
13507
+ # [Output Only] This token allows you to get the next page of results for list
13508
+ # requests. If the number of results is larger than maxResults, use the
13509
+ # nextPageToken as a value for the query parameter pageToken in the next list
13510
+ # request. Subsequent list requests will have their own nextPageToken to
13511
+ # continue paging through the results.
13512
+ # Corresponds to the JSON property `nextPageToken`
13513
+ # @return [String]
13514
+ attr_accessor :next_page_token
13515
+
13516
+ # [Output Only] Server-defined URL for this resource.
13517
+ # Corresponds to the JSON property `selfLink`
13518
+ # @return [String]
13519
+ attr_accessor :self_link
13520
+
13521
+ # [Output Only] Informational warning message.
13522
+ # Corresponds to the JSON property `warning`
13523
+ # @return [Google::Apis::ComputeBeta::NodeTemplateAggregatedList::Warning]
13524
+ attr_accessor :warning
13525
+
13526
+ def initialize(**args)
13527
+ update!(**args)
13528
+ end
13529
+
13530
+ # Update properties of this object
13531
+ def update!(**args)
13532
+ @id = args[:id] if args.key?(:id)
13533
+ @items = args[:items] if args.key?(:items)
13534
+ @kind = args[:kind] if args.key?(:kind)
13535
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
13536
+ @self_link = args[:self_link] if args.key?(:self_link)
13537
+ @warning = args[:warning] if args.key?(:warning)
13538
+ end
13539
+
13540
+ # [Output Only] Informational warning message.
13541
+ class Warning
13542
+ include Google::Apis::Core::Hashable
13543
+
13544
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
13545
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
13546
+ # Corresponds to the JSON property `code`
13547
+ # @return [String]
13548
+ attr_accessor :code
13549
+
13550
+ # [Output Only] Metadata about this warning in key: value format. For example:
13551
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
13552
+ # Corresponds to the JSON property `data`
13553
+ # @return [Array<Google::Apis::ComputeBeta::NodeTemplateAggregatedList::Warning::Datum>]
13554
+ attr_accessor :data
13555
+
13556
+ # [Output Only] A human-readable description of the warning code.
13557
+ # Corresponds to the JSON property `message`
13558
+ # @return [String]
13559
+ attr_accessor :message
13560
+
13561
+ def initialize(**args)
13562
+ update!(**args)
13563
+ end
13564
+
13565
+ # Update properties of this object
13566
+ def update!(**args)
13567
+ @code = args[:code] if args.key?(:code)
13568
+ @data = args[:data] if args.key?(:data)
13569
+ @message = args[:message] if args.key?(:message)
13570
+ end
13571
+
13572
+ #
13573
+ class Datum
13574
+ include Google::Apis::Core::Hashable
13575
+
13576
+ # [Output Only] A key that provides more detail on the warning being returned.
13577
+ # For example, for warnings where there are no results in a list request for a
13578
+ # particular zone, this key might be scope and the key value might be the zone
13579
+ # name. Other examples might be a key indicating a deprecated resource and a
13580
+ # suggested replacement, or a warning about invalid network settings (for
13581
+ # example, if an instance attempts to perform IP forwarding but is not enabled
13582
+ # for IP forwarding).
13583
+ # Corresponds to the JSON property `key`
13584
+ # @return [String]
13585
+ attr_accessor :key
13586
+
13587
+ # [Output Only] A warning data value corresponding to the key.
13588
+ # Corresponds to the JSON property `value`
13589
+ # @return [String]
13590
+ attr_accessor :value
13591
+
13592
+ def initialize(**args)
13593
+ update!(**args)
13594
+ end
13595
+
13596
+ # Update properties of this object
13597
+ def update!(**args)
13598
+ @key = args[:key] if args.key?(:key)
13599
+ @value = args[:value] if args.key?(:value)
13600
+ end
13601
+ end
13602
+ end
13603
+ end
13604
+
13605
+ # Contains a list of node templates.
13606
+ class NodeTemplateList
13607
+ include Google::Apis::Core::Hashable
13608
+
13609
+ # [Output Only] Unique identifier for the resource; defined by the server.
13610
+ # Corresponds to the JSON property `id`
13611
+ # @return [String]
13612
+ attr_accessor :id
13613
+
13614
+ # A list of NodeTemplate resources.
13615
+ # Corresponds to the JSON property `items`
13616
+ # @return [Array<Google::Apis::ComputeBeta::NodeTemplate>]
13617
+ attr_accessor :items
13618
+
13619
+ # [Output Only] Type of resource.Always compute#nodeTemplateList for lists of
13620
+ # node templates.
13621
+ # Corresponds to the JSON property `kind`
13622
+ # @return [String]
13623
+ attr_accessor :kind
13624
+
13625
+ # [Output Only] This token allows you to get the next page of results for list
13626
+ # requests. If the number of results is larger than maxResults, use the
13627
+ # nextPageToken as a value for the query parameter pageToken in the next list
13628
+ # request. Subsequent list requests will have their own nextPageToken to
13629
+ # continue paging through the results.
13630
+ # Corresponds to the JSON property `nextPageToken`
13631
+ # @return [String]
13632
+ attr_accessor :next_page_token
13633
+
13634
+ # [Output Only] Server-defined URL for this resource.
13635
+ # Corresponds to the JSON property `selfLink`
13636
+ # @return [String]
13637
+ attr_accessor :self_link
13638
+
13639
+ # [Output Only] Informational warning message.
13640
+ # Corresponds to the JSON property `warning`
13641
+ # @return [Google::Apis::ComputeBeta::NodeTemplateList::Warning]
13642
+ attr_accessor :warning
13643
+
13644
+ def initialize(**args)
13645
+ update!(**args)
13646
+ end
13647
+
13648
+ # Update properties of this object
13649
+ def update!(**args)
13650
+ @id = args[:id] if args.key?(:id)
13651
+ @items = args[:items] if args.key?(:items)
13652
+ @kind = args[:kind] if args.key?(:kind)
13653
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
13654
+ @self_link = args[:self_link] if args.key?(:self_link)
13655
+ @warning = args[:warning] if args.key?(:warning)
13656
+ end
13657
+
13658
+ # [Output Only] Informational warning message.
13659
+ class Warning
13660
+ include Google::Apis::Core::Hashable
13661
+
13662
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
13663
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
13664
+ # Corresponds to the JSON property `code`
13665
+ # @return [String]
13666
+ attr_accessor :code
13667
+
13668
+ # [Output Only] Metadata about this warning in key: value format. For example:
13669
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
13670
+ # Corresponds to the JSON property `data`
13671
+ # @return [Array<Google::Apis::ComputeBeta::NodeTemplateList::Warning::Datum>]
13672
+ attr_accessor :data
13673
+
13674
+ # [Output Only] A human-readable description of the warning code.
13675
+ # Corresponds to the JSON property `message`
13676
+ # @return [String]
13677
+ attr_accessor :message
13678
+
13679
+ def initialize(**args)
13680
+ update!(**args)
13681
+ end
13682
+
13683
+ # Update properties of this object
13684
+ def update!(**args)
13685
+ @code = args[:code] if args.key?(:code)
13686
+ @data = args[:data] if args.key?(:data)
13687
+ @message = args[:message] if args.key?(:message)
13688
+ end
13689
+
13690
+ #
13691
+ class Datum
13692
+ include Google::Apis::Core::Hashable
13693
+
13694
+ # [Output Only] A key that provides more detail on the warning being returned.
13695
+ # For example, for warnings where there are no results in a list request for a
13696
+ # particular zone, this key might be scope and the key value might be the zone
13697
+ # name. Other examples might be a key indicating a deprecated resource and a
13698
+ # suggested replacement, or a warning about invalid network settings (for
13699
+ # example, if an instance attempts to perform IP forwarding but is not enabled
13700
+ # for IP forwarding).
13701
+ # Corresponds to the JSON property `key`
13702
+ # @return [String]
13703
+ attr_accessor :key
13704
+
13705
+ # [Output Only] A warning data value corresponding to the key.
13706
+ # Corresponds to the JSON property `value`
13707
+ # @return [String]
13708
+ attr_accessor :value
13709
+
13710
+ def initialize(**args)
13711
+ update!(**args)
13712
+ end
13713
+
13714
+ # Update properties of this object
13715
+ def update!(**args)
13716
+ @key = args[:key] if args.key?(:key)
13717
+ @value = args[:value] if args.key?(:value)
13718
+ end
13719
+ end
13720
+ end
13721
+ end
13722
+
13723
+ #
13724
+ class NodeTemplateNodeTypeFlexibility
13725
+ include Google::Apis::Core::Hashable
13726
+
13727
+ #
13728
+ # Corresponds to the JSON property `cpus`
13729
+ # @return [String]
13730
+ attr_accessor :cpus
13731
+
13732
+ #
13733
+ # Corresponds to the JSON property `localSsd`
13734
+ # @return [String]
13735
+ attr_accessor :local_ssd
13736
+
13737
+ #
13738
+ # Corresponds to the JSON property `memory`
13739
+ # @return [String]
13740
+ attr_accessor :memory
13741
+
13742
+ def initialize(**args)
13743
+ update!(**args)
13744
+ end
13745
+
13746
+ # Update properties of this object
13747
+ def update!(**args)
13748
+ @cpus = args[:cpus] if args.key?(:cpus)
13749
+ @local_ssd = args[:local_ssd] if args.key?(:local_ssd)
13750
+ @memory = args[:memory] if args.key?(:memory)
13751
+ end
13752
+ end
13753
+
13754
+ #
13755
+ class NodeTemplatesScopedList
13756
+ include Google::Apis::Core::Hashable
13757
+
13758
+ # [Output Only] A list of node templates contained in this scope.
13759
+ # Corresponds to the JSON property `nodeTemplates`
13760
+ # @return [Array<Google::Apis::ComputeBeta::NodeTemplate>]
13761
+ attr_accessor :node_templates
13762
+
13763
+ # [Output Only] An informational warning that appears when the node templates
13764
+ # list is empty.
13765
+ # Corresponds to the JSON property `warning`
13766
+ # @return [Google::Apis::ComputeBeta::NodeTemplatesScopedList::Warning]
13767
+ attr_accessor :warning
13768
+
13769
+ def initialize(**args)
13770
+ update!(**args)
13771
+ end
13772
+
13773
+ # Update properties of this object
13774
+ def update!(**args)
13775
+ @node_templates = args[:node_templates] if args.key?(:node_templates)
13776
+ @warning = args[:warning] if args.key?(:warning)
13777
+ end
13778
+
13779
+ # [Output Only] An informational warning that appears when the node templates
13780
+ # list is empty.
13781
+ class Warning
13782
+ include Google::Apis::Core::Hashable
13783
+
13784
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
13785
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
13786
+ # Corresponds to the JSON property `code`
13787
+ # @return [String]
13788
+ attr_accessor :code
13789
+
13790
+ # [Output Only] Metadata about this warning in key: value format. For example:
13791
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
13792
+ # Corresponds to the JSON property `data`
13793
+ # @return [Array<Google::Apis::ComputeBeta::NodeTemplatesScopedList::Warning::Datum>]
13794
+ attr_accessor :data
13795
+
13796
+ # [Output Only] A human-readable description of the warning code.
13797
+ # Corresponds to the JSON property `message`
13798
+ # @return [String]
13799
+ attr_accessor :message
13800
+
13801
+ def initialize(**args)
13802
+ update!(**args)
13803
+ end
13804
+
13805
+ # Update properties of this object
13806
+ def update!(**args)
13807
+ @code = args[:code] if args.key?(:code)
13808
+ @data = args[:data] if args.key?(:data)
13809
+ @message = args[:message] if args.key?(:message)
13810
+ end
13811
+
13812
+ #
13813
+ class Datum
13814
+ include Google::Apis::Core::Hashable
13815
+
13816
+ # [Output Only] A key that provides more detail on the warning being returned.
13817
+ # For example, for warnings where there are no results in a list request for a
13818
+ # particular zone, this key might be scope and the key value might be the zone
13819
+ # name. Other examples might be a key indicating a deprecated resource and a
13820
+ # suggested replacement, or a warning about invalid network settings (for
13821
+ # example, if an instance attempts to perform IP forwarding but is not enabled
13822
+ # for IP forwarding).
13823
+ # Corresponds to the JSON property `key`
13824
+ # @return [String]
13825
+ attr_accessor :key
13826
+
13827
+ # [Output Only] A warning data value corresponding to the key.
13828
+ # Corresponds to the JSON property `value`
13829
+ # @return [String]
13830
+ attr_accessor :value
13831
+
13832
+ def initialize(**args)
13833
+ update!(**args)
13834
+ end
13835
+
13836
+ # Update properties of this object
13837
+ def update!(**args)
13838
+ @key = args[:key] if args.key?(:key)
13839
+ @value = args[:value] if args.key?(:value)
13840
+ end
13841
+ end
13842
+ end
13843
+ end
13844
+
13845
+ # A Node Type resource.
13846
+ class NodeType
13847
+ include Google::Apis::Core::Hashable
13848
+
13849
+ # [Output Only] The CPU platform used by this node type.
13850
+ # Corresponds to the JSON property `cpuPlatform`
13851
+ # @return [String]
13852
+ attr_accessor :cpu_platform
13853
+
13854
+ # [Output Only] Creation timestamp in RFC3339 text format.
13855
+ # Corresponds to the JSON property `creationTimestamp`
13856
+ # @return [String]
13857
+ attr_accessor :creation_timestamp
13858
+
13859
+ # Deprecation status for a public resource.
13860
+ # Corresponds to the JSON property `deprecated`
13861
+ # @return [Google::Apis::ComputeBeta::DeprecationStatus]
13862
+ attr_accessor :deprecated
13863
+
13864
+ # [Output Only] An optional textual description of the resource.
13865
+ # Corresponds to the JSON property `description`
13866
+ # @return [String]
13867
+ attr_accessor :description
13868
+
13869
+ # [Output Only] The number of virtual CPUs that are available to the node type.
13870
+ # Corresponds to the JSON property `guestCpus`
13871
+ # @return [Fixnum]
13872
+ attr_accessor :guest_cpus
13873
+
13874
+ # [Output Only] The unique identifier for the resource. This identifier is
13875
+ # defined by the server.
13876
+ # Corresponds to the JSON property `id`
13877
+ # @return [Fixnum]
13878
+ attr_accessor :id
13879
+
13880
+ # [Output Only] The type of the resource. Always compute#nodeType for node types.
13881
+ # Corresponds to the JSON property `kind`
13882
+ # @return [String]
13883
+ attr_accessor :kind
13884
+
13885
+ # [Output Only] Local SSD available to the node type, defined in GB.
13886
+ # Corresponds to the JSON property `localSsdGb`
13887
+ # @return [Fixnum]
13888
+ attr_accessor :local_ssd_gb
13889
+
13890
+ # [Output Only] The amount of physical memory available to the node type,
13891
+ # defined in MB.
13892
+ # Corresponds to the JSON property `memoryMb`
13893
+ # @return [Fixnum]
13894
+ attr_accessor :memory_mb
13895
+
13896
+ # [Output Only] Name of the resource.
13897
+ # Corresponds to the JSON property `name`
13898
+ # @return [String]
13899
+ attr_accessor :name
13900
+
13901
+ # [Output Only] Server-defined URL for the resource.
13902
+ # Corresponds to the JSON property `selfLink`
13903
+ # @return [String]
13904
+ attr_accessor :self_link
13905
+
13906
+ # [Output Only] The name of the zone where the node type resides, such as us-
13907
+ # central1-a.
13908
+ # Corresponds to the JSON property `zone`
13909
+ # @return [String]
13910
+ attr_accessor :zone
13911
+
13912
+ def initialize(**args)
13913
+ update!(**args)
13914
+ end
13915
+
13916
+ # Update properties of this object
13917
+ def update!(**args)
13918
+ @cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform)
13919
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
13920
+ @deprecated = args[:deprecated] if args.key?(:deprecated)
13921
+ @description = args[:description] if args.key?(:description)
13922
+ @guest_cpus = args[:guest_cpus] if args.key?(:guest_cpus)
13923
+ @id = args[:id] if args.key?(:id)
13924
+ @kind = args[:kind] if args.key?(:kind)
13925
+ @local_ssd_gb = args[:local_ssd_gb] if args.key?(:local_ssd_gb)
13926
+ @memory_mb = args[:memory_mb] if args.key?(:memory_mb)
13927
+ @name = args[:name] if args.key?(:name)
13928
+ @self_link = args[:self_link] if args.key?(:self_link)
13929
+ @zone = args[:zone] if args.key?(:zone)
13930
+ end
13931
+ end
13932
+
13933
+ #
13934
+ class NodeTypeAggregatedList
13935
+ include Google::Apis::Core::Hashable
13936
+
13937
+ # [Output Only] Unique identifier for the resource; defined by the server.
13938
+ # Corresponds to the JSON property `id`
13939
+ # @return [String]
13940
+ attr_accessor :id
13941
+
13942
+ # A list of NodeTypesScopedList resources.
13943
+ # Corresponds to the JSON property `items`
13944
+ # @return [Hash<String,Google::Apis::ComputeBeta::NodeTypesScopedList>]
13945
+ attr_accessor :items
13946
+
13947
+ # [Output Only] Type of resource.Always compute#nodeTypeAggregatedList for
13948
+ # aggregated lists of node types.
13949
+ # Corresponds to the JSON property `kind`
13950
+ # @return [String]
13951
+ attr_accessor :kind
13952
+
13953
+ # [Output Only] This token allows you to get the next page of results for list
13954
+ # requests. If the number of results is larger than maxResults, use the
13955
+ # nextPageToken as a value for the query parameter pageToken in the next list
13956
+ # request. Subsequent list requests will have their own nextPageToken to
13957
+ # continue paging through the results.
13958
+ # Corresponds to the JSON property `nextPageToken`
13959
+ # @return [String]
13960
+ attr_accessor :next_page_token
13961
+
13962
+ # [Output Only] Server-defined URL for this resource.
13963
+ # Corresponds to the JSON property `selfLink`
13964
+ # @return [String]
13965
+ attr_accessor :self_link
13966
+
13967
+ # [Output Only] Informational warning message.
13968
+ # Corresponds to the JSON property `warning`
13969
+ # @return [Google::Apis::ComputeBeta::NodeTypeAggregatedList::Warning]
13970
+ attr_accessor :warning
13971
+
13972
+ def initialize(**args)
13973
+ update!(**args)
13974
+ end
13975
+
13976
+ # Update properties of this object
13977
+ def update!(**args)
13978
+ @id = args[:id] if args.key?(:id)
13979
+ @items = args[:items] if args.key?(:items)
13980
+ @kind = args[:kind] if args.key?(:kind)
13981
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
13982
+ @self_link = args[:self_link] if args.key?(:self_link)
13983
+ @warning = args[:warning] if args.key?(:warning)
13984
+ end
13985
+
13986
+ # [Output Only] Informational warning message.
13987
+ class Warning
13988
+ include Google::Apis::Core::Hashable
13989
+
13990
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
13991
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
13992
+ # Corresponds to the JSON property `code`
13993
+ # @return [String]
13994
+ attr_accessor :code
13995
+
13996
+ # [Output Only] Metadata about this warning in key: value format. For example:
13997
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
13998
+ # Corresponds to the JSON property `data`
13999
+ # @return [Array<Google::Apis::ComputeBeta::NodeTypeAggregatedList::Warning::Datum>]
14000
+ attr_accessor :data
14001
+
14002
+ # [Output Only] A human-readable description of the warning code.
14003
+ # Corresponds to the JSON property `message`
14004
+ # @return [String]
14005
+ attr_accessor :message
14006
+
14007
+ def initialize(**args)
14008
+ update!(**args)
14009
+ end
14010
+
14011
+ # Update properties of this object
14012
+ def update!(**args)
14013
+ @code = args[:code] if args.key?(:code)
14014
+ @data = args[:data] if args.key?(:data)
14015
+ @message = args[:message] if args.key?(:message)
14016
+ end
14017
+
14018
+ #
14019
+ class Datum
14020
+ include Google::Apis::Core::Hashable
14021
+
14022
+ # [Output Only] A key that provides more detail on the warning being returned.
14023
+ # For example, for warnings where there are no results in a list request for a
14024
+ # particular zone, this key might be scope and the key value might be the zone
14025
+ # name. Other examples might be a key indicating a deprecated resource and a
14026
+ # suggested replacement, or a warning about invalid network settings (for
14027
+ # example, if an instance attempts to perform IP forwarding but is not enabled
14028
+ # for IP forwarding).
14029
+ # Corresponds to the JSON property `key`
14030
+ # @return [String]
14031
+ attr_accessor :key
14032
+
14033
+ # [Output Only] A warning data value corresponding to the key.
14034
+ # Corresponds to the JSON property `value`
14035
+ # @return [String]
14036
+ attr_accessor :value
14037
+
14038
+ def initialize(**args)
14039
+ update!(**args)
14040
+ end
14041
+
14042
+ # Update properties of this object
14043
+ def update!(**args)
14044
+ @key = args[:key] if args.key?(:key)
14045
+ @value = args[:value] if args.key?(:value)
14046
+ end
14047
+ end
14048
+ end
14049
+ end
14050
+
14051
+ # Contains a list of node types.
14052
+ class NodeTypeList
14053
+ include Google::Apis::Core::Hashable
14054
+
14055
+ # [Output Only] Unique identifier for the resource; defined by the server.
14056
+ # Corresponds to the JSON property `id`
14057
+ # @return [String]
14058
+ attr_accessor :id
14059
+
14060
+ # A list of NodeType resources.
14061
+ # Corresponds to the JSON property `items`
14062
+ # @return [Array<Google::Apis::ComputeBeta::NodeType>]
14063
+ attr_accessor :items
14064
+
14065
+ # [Output Only] Type of resource.Always compute#nodeTypeList for lists of node
14066
+ # types.
14067
+ # Corresponds to the JSON property `kind`
14068
+ # @return [String]
14069
+ attr_accessor :kind
14070
+
14071
+ # [Output Only] This token allows you to get the next page of results for list
14072
+ # requests. If the number of results is larger than maxResults, use the
14073
+ # nextPageToken as a value for the query parameter pageToken in the next list
14074
+ # request. Subsequent list requests will have their own nextPageToken to
14075
+ # continue paging through the results.
14076
+ # Corresponds to the JSON property `nextPageToken`
14077
+ # @return [String]
14078
+ attr_accessor :next_page_token
14079
+
14080
+ # [Output Only] Server-defined URL for this resource.
14081
+ # Corresponds to the JSON property `selfLink`
14082
+ # @return [String]
14083
+ attr_accessor :self_link
14084
+
14085
+ # [Output Only] Informational warning message.
14086
+ # Corresponds to the JSON property `warning`
14087
+ # @return [Google::Apis::ComputeBeta::NodeTypeList::Warning]
14088
+ attr_accessor :warning
14089
+
14090
+ def initialize(**args)
14091
+ update!(**args)
14092
+ end
14093
+
14094
+ # Update properties of this object
14095
+ def update!(**args)
14096
+ @id = args[:id] if args.key?(:id)
14097
+ @items = args[:items] if args.key?(:items)
14098
+ @kind = args[:kind] if args.key?(:kind)
14099
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
14100
+ @self_link = args[:self_link] if args.key?(:self_link)
14101
+ @warning = args[:warning] if args.key?(:warning)
14102
+ end
14103
+
14104
+ # [Output Only] Informational warning message.
14105
+ class Warning
14106
+ include Google::Apis::Core::Hashable
14107
+
14108
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
14109
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
14110
+ # Corresponds to the JSON property `code`
14111
+ # @return [String]
14112
+ attr_accessor :code
14113
+
14114
+ # [Output Only] Metadata about this warning in key: value format. For example:
14115
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
14116
+ # Corresponds to the JSON property `data`
14117
+ # @return [Array<Google::Apis::ComputeBeta::NodeTypeList::Warning::Datum>]
14118
+ attr_accessor :data
14119
+
14120
+ # [Output Only] A human-readable description of the warning code.
14121
+ # Corresponds to the JSON property `message`
14122
+ # @return [String]
14123
+ attr_accessor :message
14124
+
14125
+ def initialize(**args)
14126
+ update!(**args)
14127
+ end
14128
+
14129
+ # Update properties of this object
14130
+ def update!(**args)
14131
+ @code = args[:code] if args.key?(:code)
14132
+ @data = args[:data] if args.key?(:data)
14133
+ @message = args[:message] if args.key?(:message)
14134
+ end
14135
+
14136
+ #
14137
+ class Datum
14138
+ include Google::Apis::Core::Hashable
14139
+
14140
+ # [Output Only] A key that provides more detail on the warning being returned.
14141
+ # For example, for warnings where there are no results in a list request for a
14142
+ # particular zone, this key might be scope and the key value might be the zone
14143
+ # name. Other examples might be a key indicating a deprecated resource and a
14144
+ # suggested replacement, or a warning about invalid network settings (for
14145
+ # example, if an instance attempts to perform IP forwarding but is not enabled
14146
+ # for IP forwarding).
14147
+ # Corresponds to the JSON property `key`
14148
+ # @return [String]
14149
+ attr_accessor :key
14150
+
14151
+ # [Output Only] A warning data value corresponding to the key.
14152
+ # Corresponds to the JSON property `value`
14153
+ # @return [String]
14154
+ attr_accessor :value
14155
+
14156
+ def initialize(**args)
14157
+ update!(**args)
14158
+ end
14159
+
14160
+ # Update properties of this object
14161
+ def update!(**args)
14162
+ @key = args[:key] if args.key?(:key)
14163
+ @value = args[:value] if args.key?(:value)
14164
+ end
14165
+ end
14166
+ end
14167
+ end
14168
+
14169
+ #
14170
+ class NodeTypesScopedList
12812
14171
  include Google::Apis::Core::Hashable
12813
14172
 
12814
- # Whether Google Compute Engine manages the routes automatically.
12815
- # Corresponds to the JSON property `autoCreateRoutes`
12816
- # @return [Boolean]
12817
- attr_accessor :auto_create_routes
12818
- alias_method :auto_create_routes?, :auto_create_routes
12819
-
12820
- # Name of the peering, which should conform to RFC1035.
12821
- # Corresponds to the JSON property `name`
12822
- # @return [String]
12823
- attr_accessor :name
14173
+ # [Output Only] A list of node types contained in this scope.
14174
+ # Corresponds to the JSON property `nodeTypes`
14175
+ # @return [Array<Google::Apis::ComputeBeta::NodeType>]
14176
+ attr_accessor :node_types
12824
14177
 
12825
- # URL of the peer network. It can be either full URL or partial URL. The peer
12826
- # network may belong to a different project. If the partial URL does not contain
12827
- # project, it is assumed that the peer network is in the same project as the
12828
- # current network.
12829
- # Corresponds to the JSON property `peerNetwork`
12830
- # @return [String]
12831
- attr_accessor :peer_network
14178
+ # [Output Only] An informational warning that appears when the node types list
14179
+ # is empty.
14180
+ # Corresponds to the JSON property `warning`
14181
+ # @return [Google::Apis::ComputeBeta::NodeTypesScopedList::Warning]
14182
+ attr_accessor :warning
12832
14183
 
12833
14184
  def initialize(**args)
12834
14185
  update!(**args)
@@ -12836,28 +14187,73 @@ module Google
12836
14187
 
12837
14188
  # Update properties of this object
12838
14189
  def update!(**args)
12839
- @auto_create_routes = args[:auto_create_routes] if args.key?(:auto_create_routes)
12840
- @name = args[:name] if args.key?(:name)
12841
- @peer_network = args[:peer_network] if args.key?(:peer_network)
12842
- end
12843
- end
12844
-
12845
- #
12846
- class NetworksRemovePeeringRequest
12847
- include Google::Apis::Core::Hashable
12848
-
12849
- # Name of the peering, which should conform to RFC1035.
12850
- # Corresponds to the JSON property `name`
12851
- # @return [String]
12852
- attr_accessor :name
12853
-
12854
- def initialize(**args)
12855
- update!(**args)
14190
+ @node_types = args[:node_types] if args.key?(:node_types)
14191
+ @warning = args[:warning] if args.key?(:warning)
12856
14192
  end
12857
-
12858
- # Update properties of this object
12859
- def update!(**args)
12860
- @name = args[:name] if args.key?(:name)
14193
+
14194
+ # [Output Only] An informational warning that appears when the node types list
14195
+ # is empty.
14196
+ class Warning
14197
+ include Google::Apis::Core::Hashable
14198
+
14199
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
14200
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
14201
+ # Corresponds to the JSON property `code`
14202
+ # @return [String]
14203
+ attr_accessor :code
14204
+
14205
+ # [Output Only] Metadata about this warning in key: value format. For example:
14206
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
14207
+ # Corresponds to the JSON property `data`
14208
+ # @return [Array<Google::Apis::ComputeBeta::NodeTypesScopedList::Warning::Datum>]
14209
+ attr_accessor :data
14210
+
14211
+ # [Output Only] A human-readable description of the warning code.
14212
+ # Corresponds to the JSON property `message`
14213
+ # @return [String]
14214
+ attr_accessor :message
14215
+
14216
+ def initialize(**args)
14217
+ update!(**args)
14218
+ end
14219
+
14220
+ # Update properties of this object
14221
+ def update!(**args)
14222
+ @code = args[:code] if args.key?(:code)
14223
+ @data = args[:data] if args.key?(:data)
14224
+ @message = args[:message] if args.key?(:message)
14225
+ end
14226
+
14227
+ #
14228
+ class Datum
14229
+ include Google::Apis::Core::Hashable
14230
+
14231
+ # [Output Only] A key that provides more detail on the warning being returned.
14232
+ # For example, for warnings where there are no results in a list request for a
14233
+ # particular zone, this key might be scope and the key value might be the zone
14234
+ # name. Other examples might be a key indicating a deprecated resource and a
14235
+ # suggested replacement, or a warning about invalid network settings (for
14236
+ # example, if an instance attempts to perform IP forwarding but is not enabled
14237
+ # for IP forwarding).
14238
+ # Corresponds to the JSON property `key`
14239
+ # @return [String]
14240
+ attr_accessor :key
14241
+
14242
+ # [Output Only] A warning data value corresponding to the key.
14243
+ # Corresponds to the JSON property `value`
14244
+ # @return [String]
14245
+ attr_accessor :value
14246
+
14247
+ def initialize(**args)
14248
+ update!(**args)
14249
+ end
14250
+
14251
+ # Update properties of this object
14252
+ def update!(**args)
14253
+ @key = args[:key] if args.key?(:key)
14254
+ @value = args[:value] if args.key?(:value)
14255
+ end
14256
+ end
12861
14257
  end
12862
14258
  end
12863
14259
 
@@ -16316,6 +17712,11 @@ module Google
16316
17712
  attr_accessor :automatic_restart
16317
17713
  alias_method :automatic_restart?, :automatic_restart
16318
17714
 
17715
+ # A set of node affinity and anti-affinity.
17716
+ # Corresponds to the JSON property `nodeAffinities`
17717
+ # @return [Array<Google::Apis::ComputeBeta::SchedulingNodeAffinity>]
17718
+ attr_accessor :node_affinities
17719
+
16319
17720
  # Defines the maintenance behavior for this instance. For standard instances,
16320
17721
  # the default behavior is MIGRATE. For preemptible instances, the default and
16321
17722
  # only possible behavior is TERMINATE. For more information, see Setting
@@ -16339,13 +17740,46 @@ module Google
16339
17740
  # Update properties of this object
16340
17741
  def update!(**args)
16341
17742
  @automatic_restart = args[:automatic_restart] if args.key?(:automatic_restart)
17743
+ @node_affinities = args[:node_affinities] if args.key?(:node_affinities)
16342
17744
  @on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance)
16343
17745
  @preemptible = args[:preemptible] if args.key?(:preemptible)
16344
17746
  end
16345
17747
  end
16346
17748
 
17749
+ # Node Affinity: the configuration of desired nodes onto which this Instance
17750
+ # could be scheduled.
17751
+ class SchedulingNodeAffinity
17752
+ include Google::Apis::Core::Hashable
17753
+
17754
+ # Corresponds to the label key of Node resource.
17755
+ # Corresponds to the JSON property `key`
17756
+ # @return [String]
17757
+ attr_accessor :key
17758
+
17759
+ # Defines the operation of node selection.
17760
+ # Corresponds to the JSON property `operator`
17761
+ # @return [String]
17762
+ attr_accessor :operator
17763
+
17764
+ # Corresponds to the label values of Node resource.
17765
+ # Corresponds to the JSON property `values`
17766
+ # @return [Array<String>]
17767
+ attr_accessor :values
17768
+
17769
+ def initialize(**args)
17770
+ update!(**args)
17771
+ end
17772
+
17773
+ # Update properties of this object
17774
+ def update!(**args)
17775
+ @key = args[:key] if args.key?(:key)
17776
+ @operator = args[:operator] if args.key?(:operator)
17777
+ @values = args[:values] if args.key?(:values)
17778
+ end
17779
+ end
17780
+
16347
17781
  # A security policy is comprised of one or more rules. It can also be associated
16348
- # with one or more 'targets'.
17782
+ # with one or more 'targets'. Next available tag: 11
16349
17783
  class SecurityPolicy
16350
17784
  include Google::Apis::Core::Hashable
16351
17785
 
@@ -16749,6 +18183,61 @@ module Google
16749
18183
  end
16750
18184
  end
16751
18185
 
18186
+ # A set of Shielded VM options.
18187
+ class ShieldedVmConfig
18188
+ include Google::Apis::Core::Hashable
18189
+
18190
+ # Defines whether the instance should have integrity monitoring enabled.
18191
+ # Corresponds to the JSON property `enableIntegrityMonitoring`
18192
+ # @return [Boolean]
18193
+ attr_accessor :enable_integrity_monitoring
18194
+ alias_method :enable_integrity_monitoring?, :enable_integrity_monitoring
18195
+
18196
+ # Defines whether the instance should have secure boot enabled.
18197
+ # Corresponds to the JSON property `enableSecureBoot`
18198
+ # @return [Boolean]
18199
+ attr_accessor :enable_secure_boot
18200
+ alias_method :enable_secure_boot?, :enable_secure_boot
18201
+
18202
+ # Defines whether the instance should have the TPM enabled.
18203
+ # Corresponds to the JSON property `enableVtpm`
18204
+ # @return [Boolean]
18205
+ attr_accessor :enable_vtpm
18206
+ alias_method :enable_vtpm?, :enable_vtpm
18207
+
18208
+ def initialize(**args)
18209
+ update!(**args)
18210
+ end
18211
+
18212
+ # Update properties of this object
18213
+ def update!(**args)
18214
+ @enable_integrity_monitoring = args[:enable_integrity_monitoring] if args.key?(:enable_integrity_monitoring)
18215
+ @enable_secure_boot = args[:enable_secure_boot] if args.key?(:enable_secure_boot)
18216
+ @enable_vtpm = args[:enable_vtpm] if args.key?(:enable_vtpm)
18217
+ end
18218
+ end
18219
+
18220
+ # The policy describes how boot integrity measurements are evaluated.
18221
+ class ShieldedVmIntegrityPolicy
18222
+ include Google::Apis::Core::Hashable
18223
+
18224
+ # Triggers an auto relearn event: the integrity monitoring module copies
18225
+ # existing guest measurements to the baseline.
18226
+ # Corresponds to the JSON property `updateAutoLearnPolicy`
18227
+ # @return [Boolean]
18228
+ attr_accessor :update_auto_learn_policy
18229
+ alias_method :update_auto_learn_policy?, :update_auto_learn_policy
18230
+
18231
+ def initialize(**args)
18232
+ update!(**args)
18233
+ end
18234
+
18235
+ # Update properties of this object
18236
+ def update!(**args)
18237
+ @update_auto_learn_policy = args[:update_auto_learn_policy] if args.key?(:update_auto_learn_policy)
18238
+ end
18239
+ end
18240
+
16752
18241
  # Represents a customer-supplied Signing Key used by Cloud CDN Signed URLs
16753
18242
  class SignedUrlKey
16754
18243
  include Google::Apis::Core::Hashable
@@ -16830,7 +18319,8 @@ module Google
16830
18319
  # @return [Hash<String,String>]
16831
18320
  attr_accessor :labels
16832
18321
 
16833
- # Integer license codes indicating which licenses are attached to this snapshot.
18322
+ # [Output Only] Integer license codes indicating which licenses are attached to
18323
+ # this snapshot.
16834
18324
  # Corresponds to the JSON property `licenseCodes`
16835
18325
  # @return [Array<Fixnum>]
16836
18326
  attr_accessor :license_codes
@@ -21051,6 +22541,11 @@ module Google
21051
22541
  # @return [String]
21052
22542
  attr_accessor :network
21053
22543
 
22544
+ # Secondary IP ranges.
22545
+ # Corresponds to the JSON property `secondaryIpRanges`
22546
+ # @return [Array<Google::Apis::ComputeBeta::UsableSubnetworkSecondaryRange>]
22547
+ attr_accessor :secondary_ip_ranges
22548
+
21054
22549
  # Subnetwork URL.
21055
22550
  # Corresponds to the JSON property `subnetwork`
21056
22551
  # @return [String]
@@ -21064,10 +22559,38 @@ module Google
21064
22559
  def update!(**args)
21065
22560
  @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
21066
22561
  @network = args[:network] if args.key?(:network)
22562
+ @secondary_ip_ranges = args[:secondary_ip_ranges] if args.key?(:secondary_ip_ranges)
21067
22563
  @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
21068
22564
  end
21069
22565
  end
21070
22566
 
22567
+ # Secondary IP range of a usable subnetwork.
22568
+ class UsableSubnetworkSecondaryRange
22569
+ include Google::Apis::Core::Hashable
22570
+
22571
+ # The range of IP addresses belonging to this subnetwork secondary range.
22572
+ # Corresponds to the JSON property `ipCidrRange`
22573
+ # @return [String]
22574
+ attr_accessor :ip_cidr_range
22575
+
22576
+ # The name associated with this subnetwork secondary range, used when adding an
22577
+ # alias IP range to a VM instance. The name must be 1-63 characters long, and
22578
+ # comply with RFC1035. The name must be unique within the subnetwork.
22579
+ # Corresponds to the JSON property `rangeName`
22580
+ # @return [String]
22581
+ attr_accessor :range_name
22582
+
22583
+ def initialize(**args)
22584
+ update!(**args)
22585
+ end
22586
+
22587
+ # Update properties of this object
22588
+ def update!(**args)
22589
+ @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
22590
+ @range_name = args[:range_name] if args.key?(:range_name)
22591
+ end
22592
+ end
22593
+
21071
22594
  #
21072
22595
  class UsableSubnetworksAggregatedList
21073
22596
  include Google::Apis::Core::Hashable
@@ -22062,6 +23585,56 @@ module Google
22062
23585
  @labels = args[:labels] if args.key?(:labels)
22063
23586
  end
22064
23587
  end
23588
+
23589
+ #
23590
+ class ZoneSetPolicyRequest
23591
+ include Google::Apis::Core::Hashable
23592
+
23593
+ # Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use '
23594
+ # policy' to specify bindings.
23595
+ # Corresponds to the JSON property `bindings`
23596
+ # @return [Array<Google::Apis::ComputeBeta::Binding>]
23597
+ attr_accessor :bindings
23598
+
23599
+ # Flatten Policy to create a backward compatible wire-format. Deprecated. Use '
23600
+ # policy' to specify the etag.
23601
+ # Corresponds to the JSON property `etag`
23602
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
23603
+ # @return [String]
23604
+ attr_accessor :etag
23605
+
23606
+ # Defines an Identity and Access Management (IAM) policy. It is used to specify
23607
+ # access control policies for Cloud Platform resources.
23608
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of `
23609
+ # members` to a `role`, where the members can be user accounts, Google groups,
23610
+ # Google domains, and service accounts. A `role` is a named list of permissions
23611
+ # defined by IAM.
23612
+ # **JSON Example**
23613
+ # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com",
23614
+ # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
23615
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/viewer", "members": ["user:
23616
+ # sean@example.com"] ` ] `
23617
+ # **YAML Example**
23618
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
23619
+ # domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com
23620
+ # role: roles/owner - members: - user:sean@example.com role: roles/viewer
23621
+ # For a description of IAM and its features, see the [IAM developer's guide](
23622
+ # https://cloud.google.com/iam/docs).
23623
+ # Corresponds to the JSON property `policy`
23624
+ # @return [Google::Apis::ComputeBeta::Policy]
23625
+ attr_accessor :policy
23626
+
23627
+ def initialize(**args)
23628
+ update!(**args)
23629
+ end
23630
+
23631
+ # Update properties of this object
23632
+ def update!(**args)
23633
+ @bindings = args[:bindings] if args.key?(:bindings)
23634
+ @etag = args[:etag] if args.key?(:etag)
23635
+ @policy = args[:policy] if args.key?(:policy)
23636
+ end
23637
+ end
22065
23638
  end
22066
23639
  end
22067
23640
  end