google-apis-compute_alpha 0.47.0 → 0.48.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: 04c58785fd46683d0d769f818636f80fb8b7c7c8a4ec18298642186e0db81181
4
- data.tar.gz: 3f16ff0218040b42839102efbcaf23561a77f1b1ffbc01751bc77ec79fd091af
3
+ metadata.gz: 5207c410037a9b55fe8589429c03c8b03215ad27ad6bc3d1fb080be66f304218
4
+ data.tar.gz: b2834723286d3cf720a16011ad791ff8f70810105c99f6373b530437c91fb874
5
5
  SHA512:
6
- metadata.gz: 00255cc6d80fc7f9fbbd2d1582861f30c302883b01643d54982fe039a346d98ecb347736eeed176e665828f34079511d6f60b835332fc9d6e87b57e6239a8fb7
7
- data.tar.gz: 5369f2b485854c39a65b204e32e5080457e923770219415820fdd3127b8fc86b2534835e63dc2edad65f8747bba39d8de3efe2f780137212ea13c024a4bee28f
6
+ metadata.gz: cf06a82a10d7a0a2cffa16c8357392e93239c804772f4aada3d67d7202fa4b96b05b4d13934d220cc09bf964a76e9f81747533b3af5c9efab75c0b44eb25cc32
7
+ data.tar.gz: 3b6364df9e18604a3b9c8a546563cba68144daf76aa07131da7f7794626338e305d31eba68a4f5b8c82d33900e2728f32247bad290cbea607d0ae334ff8f18b6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-compute_alpha
2
2
 
3
+ ### v0.48.0 (2022-08-31)
4
+
5
+ * Regenerated from discovery document revision 20220823
6
+
3
7
  ### v0.47.0 (2022-08-25)
4
8
 
5
9
  * Regenerated from discovery document revision 20220816
@@ -1435,10 +1435,9 @@ module Google
1435
1435
  attr_accessor :initialize_params
1436
1436
 
1437
1437
  # Specifies the disk interface to use for attaching this disk, which is either
1438
- # SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and
1439
- # the request will fail if you attempt to attach a persistent disk in any other
1440
- # format than SCSI. Local SSDs can use either NVME or SCSI. For performance
1441
- # characteristics of SCSI over NVMe, see Local SSD performance.
1438
+ # SCSI or NVME. For most machine types, the default is SCSI. Local SSDs can use
1439
+ # either NVME or SCSI. In certain configurations, persistent disks can use NVMe.
1440
+ # For more information, see About persistent disks.
1442
1441
  # Corresponds to the JSON property `interface`
1443
1442
  # @return [String]
1444
1443
  attr_accessor :interface
@@ -8615,9 +8614,8 @@ module Google
8615
8614
  attr_accessor :destination_ranges
8616
8615
 
8617
8616
  # Direction of traffic to which this firewall applies, either `INGRESS` or `
8618
- # EGRESS`. The default is `INGRESS`. For `INGRESS` traffic, you cannot specify
8619
- # the destinationRanges field, and for `EGRESS` traffic, you cannot specify the
8620
- # sourceRanges or sourceTags fields.
8617
+ # EGRESS`. The default is `INGRESS`. For `EGRESS` traffic, you cannot specify
8618
+ # the sourceTags fields.
8621
8619
  # Corresponds to the JSON property `direction`
8622
8620
  # @return [String]
8623
8621
  attr_accessor :direction
@@ -15898,6 +15896,12 @@ module Google
15898
15896
  # @return [Fixnum]
15899
15897
  attr_accessor :none
15900
15898
 
15899
+ # [Output Only] The number of instances that the managed instance group is
15900
+ # currently queuing.
15901
+ # Corresponds to the JSON property `queuing`
15902
+ # @return [Fixnum]
15903
+ attr_accessor :queuing
15904
+
15901
15905
  # [Output Only] The number of instances in the managed instance group that are
15902
15906
  # scheduled to be recreated or are currently being being recreated. Recreating
15903
15907
  # an instance deletes the existing root persistent disk and creates a new disk
@@ -15962,6 +15966,7 @@ module Google
15962
15966
  @creating_without_retries = args[:creating_without_retries] if args.key?(:creating_without_retries)
15963
15967
  @deleting = args[:deleting] if args.key?(:deleting)
15964
15968
  @none = args[:none] if args.key?(:none)
15969
+ @queuing = args[:queuing] if args.key?(:queuing)
15965
15970
  @recreating = args[:recreating] if args.key?(:recreating)
15966
15971
  @refreshing = args[:refreshing] if args.key?(:refreshing)
15967
15972
  @restarting = args[:restarting] if args.key?(:restarting)
@@ -23993,6 +23998,12 @@ module Google
23993
23998
  # @return [Google::Apis::ComputeAlpha::ManagedInstanceLastAttempt]
23994
23999
  attr_accessor :last_attempt
23995
24000
 
24001
+ # [Output Only] The name of the instance. The name will always exist even if the
24002
+ # instance has not yet been created.
24003
+ # Corresponds to the JSON property `name`
24004
+ # @return [String]
24005
+ attr_accessor :name
24006
+
23996
24007
  # Preserved state for a given instance.
23997
24008
  # Corresponds to the JSON property `preservedStateFromConfig`
23998
24009
  # @return [Google::Apis::ComputeAlpha::PreservedState]
@@ -24034,6 +24045,7 @@ module Google
24034
24045
  @instance_status = args[:instance_status] if args.key?(:instance_status)
24035
24046
  @instance_template = args[:instance_template] if args.key?(:instance_template)
24036
24047
  @last_attempt = args[:last_attempt] if args.key?(:last_attempt)
24048
+ @name = args[:name] if args.key?(:name)
24037
24049
  @preserved_state_from_config = args[:preserved_state_from_config] if args.key?(:preserved_state_from_config)
24038
24050
  @preserved_state_from_policy = args[:preserved_state_from_policy] if args.key?(:preserved_state_from_policy)
24039
24051
  @tag = args[:tag] if args.key?(:tag)
@@ -24541,8 +24553,10 @@ module Google
24541
24553
  # @return [String]
24542
24554
  attr_accessor :kind
24543
24555
 
24544
- # Maximum Transmission Unit in bytes. The minimum value for this field is 1460
24545
- # and the maximum value is 1500 bytes. If unspecified, defaults to 1460.
24556
+ # Maximum Transmission Unit in bytes. The minimum value for this field is 1300
24557
+ # and the maximum value is 8896. The suggested value is 1500, which is the
24558
+ # default MTU used on the Internet, or 8896 if you want to use Jumbo frames. If
24559
+ # unspecified, the value defaults to 1460.
24546
24560
  # Corresponds to the JSON property `mtu`
24547
24561
  # @return [Fixnum]
24548
24562
  attr_accessor :mtu
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComputeAlpha
18
18
  # Version of the google-apis-compute_alpha gem
19
- GEM_VERSION = "0.47.0"
19
+ GEM_VERSION = "0.48.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220816"
25
+ REVISION = "20220823"
26
26
  end
27
27
  end
28
28
  end
@@ -10326,6 +10326,7 @@ module Google
10326
10326
  property :creating_without_retries, as: 'creatingWithoutRetries'
10327
10327
  property :deleting, as: 'deleting'
10328
10328
  property :none, as: 'none'
10329
+ property :queuing, as: 'queuing'
10329
10330
  property :recreating, as: 'recreating'
10330
10331
  property :refreshing, as: 'refreshing'
10331
10332
  property :restarting, as: 'restarting'
@@ -12421,6 +12422,7 @@ module Google
12421
12422
  property :instance_template, as: 'instanceTemplate'
12422
12423
  property :last_attempt, as: 'lastAttempt', class: Google::Apis::ComputeAlpha::ManagedInstanceLastAttempt, decorator: Google::Apis::ComputeAlpha::ManagedInstanceLastAttempt::Representation
12423
12424
 
12425
+ property :name, as: 'name'
12424
12426
  property :preserved_state_from_config, as: 'preservedStateFromConfig', class: Google::Apis::ComputeAlpha::PreservedState, decorator: Google::Apis::ComputeAlpha::PreservedState::Representation
12425
12427
 
12426
12428
  property :preserved_state_from_policy, as: 'preservedStateFromPolicy', class: Google::Apis::ComputeAlpha::PreservedState, decorator: Google::Apis::ComputeAlpha::PreservedState::Representation
@@ -33162,6 +33162,51 @@ module Google
33162
33162
  execute_or_queue_command(command, &block)
33163
33163
  end
33164
33164
 
33165
+ # Inserts a rule into a security policy.
33166
+ # @param [String] project
33167
+ # Project ID for this request.
33168
+ # @param [String] region
33169
+ # Name of the region scoping this request.
33170
+ # @param [String] security_policy
33171
+ # Name of the security policy to update.
33172
+ # @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
33173
+ # @param [Boolean] validate_only
33174
+ # If true, the request will not be committed.
33175
+ # @param [String] fields
33176
+ # Selector specifying which fields to include in a partial response.
33177
+ # @param [String] quota_user
33178
+ # Available to use for quota purposes for server-side applications. Can be any
33179
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33180
+ # @param [String] user_ip
33181
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33182
+ # @param [Google::Apis::RequestOptions] options
33183
+ # Request-specific options
33184
+ #
33185
+ # @yield [result, err] Result & error if block supplied
33186
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
33187
+ # @yieldparam err [StandardError] error object if request failed
33188
+ #
33189
+ # @return [Google::Apis::ComputeAlpha::Operation]
33190
+ #
33191
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33192
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33193
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33194
+ def add_region_security_policy_rule(project, region, security_policy, security_policy_rule_object = nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33195
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/addRule', options)
33196
+ command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
33197
+ command.request_object = security_policy_rule_object
33198
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
33199
+ command.response_class = Google::Apis::ComputeAlpha::Operation
33200
+ command.params['project'] = project unless project.nil?
33201
+ command.params['region'] = region unless region.nil?
33202
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
33203
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
33204
+ command.query['fields'] = fields unless fields.nil?
33205
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33206
+ command.query['userIp'] = user_ip unless user_ip.nil?
33207
+ execute_or_queue_command(command, &block)
33208
+ end
33209
+
33165
33210
  # Deletes the specified policy.
33166
33211
  # @param [String] project
33167
33212
  # Project ID for this request.
@@ -33251,6 +33296,48 @@ module Google
33251
33296
  execute_or_queue_command(command, &block)
33252
33297
  end
33253
33298
 
33299
+ # Gets a rule at the specified priority.
33300
+ # @param [String] project
33301
+ # Project ID for this request.
33302
+ # @param [String] region
33303
+ # Name of the region scoping this request.
33304
+ # @param [String] security_policy
33305
+ # Name of the security policy to which the queried rule belongs.
33306
+ # @param [Fixnum] priority
33307
+ # The priority of the rule to get from the security policy.
33308
+ # @param [String] fields
33309
+ # Selector specifying which fields to include in a partial response.
33310
+ # @param [String] quota_user
33311
+ # Available to use for quota purposes for server-side applications. Can be any
33312
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33313
+ # @param [String] user_ip
33314
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33315
+ # @param [Google::Apis::RequestOptions] options
33316
+ # Request-specific options
33317
+ #
33318
+ # @yield [result, err] Result & error if block supplied
33319
+ # @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicyRule] parsed result object
33320
+ # @yieldparam err [StandardError] error object if request failed
33321
+ #
33322
+ # @return [Google::Apis::ComputeAlpha::SecurityPolicyRule]
33323
+ #
33324
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33325
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33326
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33327
+ def get_region_security_policy_rule(project, region, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33328
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/getRule', options)
33329
+ command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
33330
+ command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyRule
33331
+ command.params['project'] = project unless project.nil?
33332
+ command.params['region'] = region unless region.nil?
33333
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
33334
+ command.query['priority'] = priority unless priority.nil?
33335
+ command.query['fields'] = fields unless fields.nil?
33336
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33337
+ command.query['userIp'] = user_ip unless user_ip.nil?
33338
+ execute_or_queue_command(command, &block)
33339
+ end
33340
+
33254
33341
  # Creates a new policy in the specified project using the data included in the
33255
33342
  # request.
33256
33343
  # @param [String] project
@@ -33455,6 +33542,96 @@ module Google
33455
33542
  execute_or_queue_command(command, &block)
33456
33543
  end
33457
33544
 
33545
+ # Patches a rule at the specified priority.
33546
+ # @param [String] project
33547
+ # Project ID for this request.
33548
+ # @param [String] region
33549
+ # Name of the region scoping this request.
33550
+ # @param [String] security_policy
33551
+ # Name of the security policy to update.
33552
+ # @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
33553
+ # @param [Fixnum] priority
33554
+ # The priority of the rule to patch.
33555
+ # @param [Boolean] validate_only
33556
+ # If true, the request will not be committed.
33557
+ # @param [String] fields
33558
+ # Selector specifying which fields to include in a partial response.
33559
+ # @param [String] quota_user
33560
+ # Available to use for quota purposes for server-side applications. Can be any
33561
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33562
+ # @param [String] user_ip
33563
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33564
+ # @param [Google::Apis::RequestOptions] options
33565
+ # Request-specific options
33566
+ #
33567
+ # @yield [result, err] Result & error if block supplied
33568
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
33569
+ # @yieldparam err [StandardError] error object if request failed
33570
+ #
33571
+ # @return [Google::Apis::ComputeAlpha::Operation]
33572
+ #
33573
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33574
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33575
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33576
+ def patch_region_security_policy_rule(project, region, security_policy, security_policy_rule_object = nil, priority: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33577
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/patchRule', options)
33578
+ command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
33579
+ command.request_object = security_policy_rule_object
33580
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
33581
+ command.response_class = Google::Apis::ComputeAlpha::Operation
33582
+ command.params['project'] = project unless project.nil?
33583
+ command.params['region'] = region unless region.nil?
33584
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
33585
+ command.query['priority'] = priority unless priority.nil?
33586
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
33587
+ command.query['fields'] = fields unless fields.nil?
33588
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33589
+ command.query['userIp'] = user_ip unless user_ip.nil?
33590
+ execute_or_queue_command(command, &block)
33591
+ end
33592
+
33593
+ # Deletes a rule at the specified priority.
33594
+ # @param [String] project
33595
+ # Project ID for this request.
33596
+ # @param [String] region
33597
+ # Name of the region scoping this request.
33598
+ # @param [String] security_policy
33599
+ # Name of the security policy to update.
33600
+ # @param [Fixnum] priority
33601
+ # The priority of the rule to remove from the security policy.
33602
+ # @param [String] fields
33603
+ # Selector specifying which fields to include in a partial response.
33604
+ # @param [String] quota_user
33605
+ # Available to use for quota purposes for server-side applications. Can be any
33606
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33607
+ # @param [String] user_ip
33608
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33609
+ # @param [Google::Apis::RequestOptions] options
33610
+ # Request-specific options
33611
+ #
33612
+ # @yield [result, err] Result & error if block supplied
33613
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
33614
+ # @yieldparam err [StandardError] error object if request failed
33615
+ #
33616
+ # @return [Google::Apis::ComputeAlpha::Operation]
33617
+ #
33618
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33619
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33620
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33621
+ def remove_region_security_policy_rule(project, region, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33622
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/removeRule', options)
33623
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
33624
+ command.response_class = Google::Apis::ComputeAlpha::Operation
33625
+ command.params['project'] = project unless project.nil?
33626
+ command.params['region'] = region unless region.nil?
33627
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
33628
+ command.query['priority'] = priority unless priority.nil?
33629
+ command.query['fields'] = fields unless fields.nil?
33630
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33631
+ command.query['userIp'] = user_ip unless user_ip.nil?
33632
+ execute_or_queue_command(command, &block)
33633
+ end
33634
+
33458
33635
  # Deletes the specified SslCertificate resource in the region.
33459
33636
  # @param [String] project
33460
33637
  # Project ID for this request.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.47.0
4
+ version: 0.48.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-08-29 00:00:00.000000000 Z
11
+ date: 2022-09-05 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_alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.47.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.48.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha
63
63
  post_install_message:
64
64
  rdoc_options: []