google-apis-compute_beta 0.55.0 → 0.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3bc0785d410104a6d025b58c7376eaa619c40baca9d57af15b99718037f1243
4
- data.tar.gz: 994e4f0b6fcf8f80f17c53e3d67adae62fb9b328d4baf5dd009d9cabeea3320f
3
+ metadata.gz: 415859b7d091d4d976f1f052aae7b6c268a6102679fa23cdecd91e415fab9697
4
+ data.tar.gz: 58164b5dc97907bbce1512b7b01401534717e81ef65e5d3e21bfe7628c31d93e
5
5
  SHA512:
6
- metadata.gz: 9c9d8c85d94ef2433b0da664b421d9cd5fffb7fe03fdca9ea433544f1043e3ff5713cfdeda0e86b72f368a12078e5305379a490525ac0c89a4050dec286e26b8
7
- data.tar.gz: 11a3b9d41dc4df359e797ba5fda6bbfb18f59ade29b2f4b2cc83b448ff9ef1447bc16c07583701319212f17d27d7a4820a300ca9ec428fd499ecb37c31874e66
6
+ metadata.gz: 72f53d8ef02836b2a4b05700f3317a31d9f2ba8061fe43d640497279431b5abbb17b95db6eeef055b877ad8d0b1cec2d7dcc019703554b9e68bfd7485fdf3589
7
+ data.tar.gz: 39b57522fe101f2c80bc56f3b6659245f1dab6baf1128bfbc362c29a188c56c9673142a97e38ba303ffa357a1448d8a919df80d4cc999c7597455edb241f0758
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-compute_beta
2
2
 
3
+ ### v0.57.0 (2023-01-15)
4
+
5
+ * Regenerated from discovery document revision 20221224
6
+ * Regenerated using generator version 0.11.1
7
+
8
+ ### v0.56.0 (2023-01-04)
9
+
10
+ * Regenerated from discovery document revision 20221206
11
+
3
12
  ### v0.55.0 (2022-12-11)
4
13
 
5
14
  * Regenerated from discovery document revision 20221205
@@ -1190,6 +1190,44 @@ module Google
1190
1190
  end
1191
1191
  end
1192
1192
 
1193
+ # [Output Only] Contains output only fields.
1194
+ class AllocationResourceStatus
1195
+ include Google::Apis::Core::Hashable
1196
+
1197
+ # Contains Properties set for the reservation.
1198
+ # Corresponds to the JSON property `specificSkuAllocation`
1199
+ # @return [Google::Apis::ComputeBeta::AllocationResourceStatusSpecificSkuAllocation]
1200
+ attr_accessor :specific_sku_allocation
1201
+
1202
+ def initialize(**args)
1203
+ update!(**args)
1204
+ end
1205
+
1206
+ # Update properties of this object
1207
+ def update!(**args)
1208
+ @specific_sku_allocation = args[:specific_sku_allocation] if args.key?(:specific_sku_allocation)
1209
+ end
1210
+ end
1211
+
1212
+ # Contains Properties set for the reservation.
1213
+ class AllocationResourceStatusSpecificSkuAllocation
1214
+ include Google::Apis::Core::Hashable
1215
+
1216
+ # ID of the instance template used to populate reservation properties.
1217
+ # Corresponds to the JSON property `sourceInstanceTemplateId`
1218
+ # @return [String]
1219
+ attr_accessor :source_instance_template_id
1220
+
1221
+ def initialize(**args)
1222
+ update!(**args)
1223
+ end
1224
+
1225
+ # Update properties of this object
1226
+ def update!(**args)
1227
+ @source_instance_template_id = args[:source_instance_template_id] if args.key?(:source_instance_template_id)
1228
+ end
1229
+ end
1230
+
1193
1231
  #
1194
1232
  class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk
1195
1233
  include Google::Apis::Core::Hashable
@@ -1303,6 +1341,16 @@ module Google
1303
1341
  # @return [Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationReservedInstanceProperties]
1304
1342
  attr_accessor :instance_properties
1305
1343
 
1344
+ # Specifies the instance template to create the reservation. If you use this
1345
+ # field, you must exclude the instanceProperties field. This field is optional,
1346
+ # and it can be a full or partial URL. For example, the following are all valid
1347
+ # URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/
1348
+ # project /global/instanceTemplates/instanceTemplate - projects/project/global/
1349
+ # instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate
1350
+ # Corresponds to the JSON property `sourceInstanceTemplate`
1351
+ # @return [String]
1352
+ attr_accessor :source_instance_template
1353
+
1306
1354
  def initialize(**args)
1307
1355
  update!(**args)
1308
1356
  end
@@ -1313,6 +1361,7 @@ module Google
1313
1361
  @count = args[:count] if args.key?(:count)
1314
1362
  @in_use_count = args[:in_use_count] if args.key?(:in_use_count)
1315
1363
  @instance_properties = args[:instance_properties] if args.key?(:instance_properties)
1364
+ @source_instance_template = args[:source_instance_template] if args.key?(:source_instance_template)
1316
1365
  end
1317
1366
  end
1318
1367
 
@@ -8626,9 +8675,8 @@ module Google
8626
8675
  class FirewallPolicyRule
8627
8676
  include Google::Apis::Core::Hashable
8628
8677
 
8629
- # The Action to perform when the client connection triggers the rule. Can
8630
- # currently be either "allow" or "deny()" where valid values for status are 403,
8631
- # 404, and 502.
8678
+ # The Action to perform when the client connection triggers the rule. Valid
8679
+ # actions are "allow", "deny" and "goto_next".
8632
8680
  # Corresponds to the JSON property `action`
8633
8681
  # @return [String]
8634
8682
  attr_accessor :action
@@ -9000,6 +9048,13 @@ module Google
9000
9048
  attr_accessor :allow_global_access
9001
9049
  alias_method :allow_global_access?, :allow_global_access
9002
9050
 
9051
+ # This is used in PSC consumer ForwardingRule to control whether the PSC
9052
+ # endpoint can be accessed from another region.
9053
+ # Corresponds to the JSON property `allowPscGlobalAccess`
9054
+ # @return [Boolean]
9055
+ attr_accessor :allow_psc_global_access
9056
+ alias_method :allow_psc_global_access?, :allow_psc_global_access
9057
+
9003
9058
  # Identifies the backend service to which the forwarding rule sends traffic.
9004
9059
  # Required for Internal TCP/UDP Load Balancing and Network Load Balancing; must
9005
9060
  # be omitted for all other load balancer types.
@@ -9253,12 +9308,13 @@ module Google
9253
9308
  # forwarding rules, this target must be in the same region as the forwarding
9254
9309
  # rule. For global forwarding rules, this target must be a global load balancing
9255
9310
  # resource. The forwarded traffic must be of a type appropriate to the target
9256
- # object. For more information, see the "Target" column in [Port specifications](
9311
+ # object. - For load balancers, see the "Target" column in [Port specifications](
9257
9312
  # https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#
9258
- # ip_address_specifications). For Private Service Connect forwarding rules that
9259
- # forward traffic to Google APIs, provide the name of a supported Google API
9260
- # bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All
9261
- # supported Google APIs.
9313
+ # ip_address_specifications). - For Private Service Connect forwarding rules
9314
+ # that forward traffic to Google APIs, provide the name of a supported Google
9315
+ # API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis -
9316
+ # All supported Google APIs. - For Private Service Connect forwarding rules that
9317
+ # forward traffic to managed services, the target must be a service attachment.
9262
9318
  # Corresponds to the JSON property `target`
9263
9319
  # @return [String]
9264
9320
  attr_accessor :target
@@ -9273,6 +9329,7 @@ module Google
9273
9329
  @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
9274
9330
  @all_ports = args[:all_ports] if args.key?(:all_ports)
9275
9331
  @allow_global_access = args[:allow_global_access] if args.key?(:allow_global_access)
9332
+ @allow_psc_global_access = args[:allow_psc_global_access] if args.key?(:allow_psc_global_access)
9276
9333
  @backend_service = args[:backend_service] if args.key?(:backend_service)
9277
9334
  @base_forwarding_rule = args[:base_forwarding_rule] if args.key?(:base_forwarding_rule)
9278
9335
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@@ -22639,6 +22696,13 @@ module Google
22639
22696
  # @return [String]
22640
22697
  attr_accessor :network
22641
22698
 
22699
+ # The URL of the network attachment that this interface should connect to in the
22700
+ # following format: projects/`project_number`/regions/`region_name`/
22701
+ # networkAttachments/`network_attachment_name`.
22702
+ # Corresponds to the JSON property `networkAttachment`
22703
+ # @return [String]
22704
+ attr_accessor :network_attachment
22705
+
22642
22706
  # An IPv4 internal IP address to assign to the instance for this network
22643
22707
  # interface. If not specified by the user, an unused internal IP is assigned by
22644
22708
  # the system.
@@ -22693,6 +22757,7 @@ module Google
22693
22757
  @kind = args[:kind] if args.key?(:kind)
22694
22758
  @name = args[:name] if args.key?(:name)
22695
22759
  @network = args[:network] if args.key?(:network)
22760
+ @network_attachment = args[:network_attachment] if args.key?(:network_attachment)
22696
22761
  @network_ip = args[:network_ip] if args.key?(:network_ip)
22697
22762
  @nic_type = args[:nic_type] if args.key?(:nic_type)
22698
22763
  @queue_count = args[:queue_count] if args.key?(:queue_count)
@@ -23961,6 +24026,25 @@ module Google
23961
24026
  end
23962
24027
  end
23963
24028
 
24029
+ #
24030
+ class NodeGroupsSimulateMaintenanceEventRequest
24031
+ include Google::Apis::Core::Hashable
24032
+
24033
+ # Names of the nodes to go under maintenance simulation.
24034
+ # Corresponds to the JSON property `nodes`
24035
+ # @return [Array<String>]
24036
+ attr_accessor :nodes
24037
+
24038
+ def initialize(**args)
24039
+ update!(**args)
24040
+ end
24041
+
24042
+ # Update properties of this object
24043
+ def update!(**args)
24044
+ @nodes = args[:nodes] if args.key?(:nodes)
24045
+ end
24046
+ end
24047
+
23964
24048
  # Represent a sole-tenant Node Template resource. You can use a template to
23965
24049
  # define properties for nodes in a node group. For more information, read
23966
24050
  # Creating node groups and instances.
@@ -29889,6 +29973,11 @@ module Google
29889
29973
  # @return [Hash<String,String>]
29890
29974
  attr_accessor :resource_policies
29891
29975
 
29976
+ # [Output Only] Contains output only fields.
29977
+ # Corresponds to the JSON property `resourceStatus`
29978
+ # @return [Google::Apis::ComputeBeta::AllocationResourceStatus]
29979
+ attr_accessor :resource_status
29980
+
29892
29981
  # [Output Only] Reserved for future use.
29893
29982
  # Corresponds to the JSON property `satisfiesPzs`
29894
29983
  # @return [Boolean]
@@ -29943,6 +30032,7 @@ module Google
29943
30032
  @kind = args[:kind] if args.key?(:kind)
29944
30033
  @name = args[:name] if args.key?(:name)
29945
30034
  @resource_policies = args[:resource_policies] if args.key?(:resource_policies)
30035
+ @resource_status = args[:resource_status] if args.key?(:resource_status)
29946
30036
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
29947
30037
  @self_link = args[:self_link] if args.key?(:self_link)
29948
30038
  @share_settings = args[:share_settings] if args.key?(:share_settings)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComputeBeta
18
18
  # Version of the google-apis-compute_beta gem
19
- GEM_VERSION = "0.55.0"
19
+ GEM_VERSION = "0.57.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221205"
25
+ REVISION = "20221224"
26
26
  end
27
27
  end
28
28
  end
@@ -172,6 +172,18 @@ module Google
172
172
  include Google::Apis::Core::JsonObjectSupport
173
173
  end
174
174
 
175
+ class AllocationResourceStatus
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class AllocationResourceStatusSpecificSkuAllocation
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
175
187
  class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk
176
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
189
 
@@ -2986,6 +2998,12 @@ module Google
2986
2998
  include Google::Apis::Core::JsonObjectSupport
2987
2999
  end
2988
3000
 
3001
+ class NodeGroupsSimulateMaintenanceEventRequest
3002
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3003
+
3004
+ include Google::Apis::Core::JsonObjectSupport
3005
+ end
3006
+
2989
3007
  class NodeTemplate
2990
3008
  class Representation < Google::Apis::Core::JsonRepresentation; end
2991
3009
 
@@ -6235,6 +6253,21 @@ module Google
6235
6253
  end
6236
6254
  end
6237
6255
 
6256
+ class AllocationResourceStatus
6257
+ # @private
6258
+ class Representation < Google::Apis::Core::JsonRepresentation
6259
+ property :specific_sku_allocation, as: 'specificSkuAllocation', class: Google::Apis::ComputeBeta::AllocationResourceStatusSpecificSkuAllocation, decorator: Google::Apis::ComputeBeta::AllocationResourceStatusSpecificSkuAllocation::Representation
6260
+
6261
+ end
6262
+ end
6263
+
6264
+ class AllocationResourceStatusSpecificSkuAllocation
6265
+ # @private
6266
+ class Representation < Google::Apis::Core::JsonRepresentation
6267
+ property :source_instance_template_id, as: 'sourceInstanceTemplateId'
6268
+ end
6269
+ end
6270
+
6238
6271
  class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk
6239
6272
  # @private
6240
6273
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6266,6 +6299,7 @@ module Google
6266
6299
  property :in_use_count, :numeric_string => true, as: 'inUseCount'
6267
6300
  property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationReservedInstanceProperties, decorator: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationReservedInstanceProperties::Representation
6268
6301
 
6302
+ property :source_instance_template, as: 'sourceInstanceTemplate'
6269
6303
  end
6270
6304
  end
6271
6305
 
@@ -7970,6 +8004,7 @@ module Google
7970
8004
  property :ip_protocol, as: 'IPProtocol'
7971
8005
  property :all_ports, as: 'allPorts'
7972
8006
  property :allow_global_access, as: 'allowGlobalAccess'
8007
+ property :allow_psc_global_access, as: 'allowPscGlobalAccess'
7973
8008
  property :backend_service, as: 'backendService'
7974
8009
  property :base_forwarding_rule, as: 'baseForwardingRule'
7975
8010
  property :creation_timestamp, as: 'creationTimestamp'
@@ -11315,6 +11350,7 @@ module Google
11315
11350
  property :kind, as: 'kind'
11316
11351
  property :name, as: 'name'
11317
11352
  property :network, as: 'network'
11353
+ property :network_attachment, as: 'networkAttachment'
11318
11354
  property :network_ip, as: 'networkIP'
11319
11355
  property :nic_type, as: 'nicType'
11320
11356
  property :queue_count, as: 'queueCount'
@@ -11660,6 +11696,13 @@ module Google
11660
11696
  end
11661
11697
  end
11662
11698
 
11699
+ class NodeGroupsSimulateMaintenanceEventRequest
11700
+ # @private
11701
+ class Representation < Google::Apis::Core::JsonRepresentation
11702
+ collection :nodes, as: 'nodes'
11703
+ end
11704
+ end
11705
+
11663
11706
  class NodeTemplate
11664
11707
  # @private
11665
11708
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -13197,6 +13240,8 @@ module Google
13197
13240
  property :kind, as: 'kind'
13198
13241
  property :name, as: 'name'
13199
13242
  hash :resource_policies, as: 'resourcePolicies'
13243
+ property :resource_status, as: 'resourceStatus', class: Google::Apis::ComputeBeta::AllocationResourceStatus, decorator: Google::Apis::ComputeBeta::AllocationResourceStatus::Representation
13244
+
13200
13245
  property :satisfies_pzs, as: 'satisfiesPzs'
13201
13246
  property :self_link, as: 'selfLink'
13202
13247
  property :share_settings, as: 'shareSettings', class: Google::Apis::ComputeBeta::ShareSettings, decorator: Google::Apis::ComputeBeta::ShareSettings::Representation
@@ -19901,6 +19901,60 @@ module Google
19901
19901
  execute_or_queue_command(command, &block)
19902
19902
  end
19903
19903
 
19904
+ # Simulates maintenance event on specified nodes from the node group.
19905
+ # @param [String] project
19906
+ # Project ID for this request.
19907
+ # @param [String] zone
19908
+ # The name of the zone for this request.
19909
+ # @param [String] node_group
19910
+ # Name of the NodeGroup resource whose nodes will go under maintenance
19911
+ # simulation.
19912
+ # @param [Google::Apis::ComputeBeta::NodeGroupsSimulateMaintenanceEventRequest] node_groups_simulate_maintenance_event_request_object
19913
+ # @param [String] request_id
19914
+ # An optional request ID to identify requests. Specify a unique request ID so
19915
+ # that if you must retry your request, the server will know to ignore the
19916
+ # request if it has already been completed. For example, consider a situation
19917
+ # where you make an initial request and the request times out. If you make the
19918
+ # request again with the same request ID, the server can check if original
19919
+ # operation with the same request ID was received, and if so, will ignore the
19920
+ # second request. This prevents clients from accidentally creating duplicate
19921
+ # commitments. The request ID must be a valid UUID with the exception that zero
19922
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
19923
+ # @param [String] fields
19924
+ # Selector specifying which fields to include in a partial response.
19925
+ # @param [String] quota_user
19926
+ # Available to use for quota purposes for server-side applications. Can be any
19927
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
19928
+ # @param [String] user_ip
19929
+ # Legacy name for parameter that has been superseded by `quotaUser`.
19930
+ # @param [Google::Apis::RequestOptions] options
19931
+ # Request-specific options
19932
+ #
19933
+ # @yield [result, err] Result & error if block supplied
19934
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
19935
+ # @yieldparam err [StandardError] error object if request failed
19936
+ #
19937
+ # @return [Google::Apis::ComputeBeta::Operation]
19938
+ #
19939
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19940
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19941
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
19942
+ def simulate_node_group_maintenance_event(project, zone, node_group, node_groups_simulate_maintenance_event_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19943
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent', options)
19944
+ command.request_representation = Google::Apis::ComputeBeta::NodeGroupsSimulateMaintenanceEventRequest::Representation
19945
+ command.request_object = node_groups_simulate_maintenance_event_request_object
19946
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
19947
+ command.response_class = Google::Apis::ComputeBeta::Operation
19948
+ command.params['project'] = project unless project.nil?
19949
+ command.params['zone'] = zone unless zone.nil?
19950
+ command.params['nodeGroup'] = node_group unless node_group.nil?
19951
+ command.query['requestId'] = request_id unless request_id.nil?
19952
+ command.query['fields'] = fields unless fields.nil?
19953
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
19954
+ command.query['userIp'] = user_ip unless user_ip.nil?
19955
+ execute_or_queue_command(command, &block)
19956
+ end
19957
+
19904
19958
  # Returns permissions that a caller has on the specified resource.
19905
19959
  # @param [String] project
19906
19960
  # Project ID for this request.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.55.0
4
+ version: 0.57.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-12 00:00:00.000000000 Z
11
+ date: 2023-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.55.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.57.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_beta
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Compute Engine API Beta