google-apis-compute_alpha 0.22.0 → 0.26.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b884fb2cb00cfe27b0a68ab41a4c1a093593278588033e47012d6cbddde16704
4
- data.tar.gz: 553366d2f1e17298a845a07bba5ce617bf0dccd1e78ce70e5bc7a1cd58ff46f5
3
+ metadata.gz: 5738039b1200e40093ff44c3e0b35bfa97f9cb49a4a66851878e2b0e637d4015
4
+ data.tar.gz: 8269ca7bbab9e6d96548a20c84b99e629877acc080899049b35e4e03dfb0102b
5
5
  SHA512:
6
- metadata.gz: 42088dc66b22a99da0afac2c1bf9398246577707605eaef845f38ac56998496ed455537fcc9ca843c9ec8ee7970f09ec03e7562ed6b2c0355425f1f43afa0385
7
- data.tar.gz: 68ead0561a44a0f528057cd6cea3ac3f3f8f0f5c035a11ad74e4f49e9f20f6a37655b61640c9fe3e145bf6cff49d3f5f48eb4685d03ad68db2a3d3bfea35edcb
6
+ metadata.gz: 4aa84894497ee9fb0adedaa089aaca703075e23dbff2bbe9706471f6a61f8a2ba48272a88965c0e25c8f780374f92f7897b460524fdc4e590399f61099eabcb3
7
+ data.tar.gz: c135097a468ebb6728bbc6b9aa9bf36bcd837864e86d038e0f06f9504d1b320967acc016ad625f0e333398810bbff9dc99c216ec8c98872d8b25b9c322bd57ae
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release history for google-apis-compute_alpha
2
2
 
3
+ ### v0.26.0 (2022-02-18)
4
+
5
+ * Regenerated from discovery document revision 20220215
6
+
7
+ ### v0.25.0 (2022-02-13)
8
+
9
+ * Regenerated from discovery document revision 20220206
10
+
11
+ ### v0.24.0 (2022-01-29)
12
+
13
+ * Regenerated from discovery document revision 20220112
14
+ * Regenerated using generator version 0.4.1
15
+
16
+ ### v0.23.0 (2022-01-08)
17
+
18
+ * Regenerated from discovery document revision 20211228
19
+ * Unspecified changes
20
+
3
21
  ### v0.22.0 (2021-12-11)
4
22
 
5
23
  * Regenerated from discovery document revision 20211208
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/compute_alpha"
51
51
  client = Google::Apis::ComputeAlpha::ComputeService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -8544,6 +8544,17 @@ module Google
8544
8544
  # @return [String]
8545
8545
  attr_accessor :short_name
8546
8546
 
8547
+ # The scope of networks allowed to be associated with the firewall policy. This
8548
+ # field can be either GLOBAL_VPC_NETWORK or REGIONAL_VPC_NETWORK. A firewall
8549
+ # policy with the VPC scope set to GLOBAL_VPC_NETWORK is allowed to be attached
8550
+ # only to global networks. When the VPC scope is set to REGIONAL_VPC_NETWORK the
8551
+ # firewall policy is allowed to be attached only to regional networks in the
8552
+ # same scope as the firewall policy. Note: if not specified then
8553
+ # GLOBAL_VPC_NETWORK will be used.
8554
+ # Corresponds to the JSON property `vpcNetworkScope`
8555
+ # @return [String]
8556
+ attr_accessor :vpc_network_scope
8557
+
8547
8558
  def initialize(**args)
8548
8559
  update!(**args)
8549
8560
  end
@@ -8565,6 +8576,7 @@ module Google
8565
8576
  @self_link = args[:self_link] if args.key?(:self_link)
8566
8577
  @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
8567
8578
  @short_name = args[:short_name] if args.key?(:short_name)
8579
+ @vpc_network_scope = args[:vpc_network_scope] if args.key?(:vpc_network_scope)
8568
8580
  end
8569
8581
  end
8570
8582
 
@@ -21478,7 +21490,7 @@ module Google
21478
21490
  class LocationPolicyLocation
21479
21491
  include Google::Apis::Core::Hashable
21480
21492
 
21481
- # Preference for a given location: ALLOW or DENY.
21493
+ # Preference for a given location.
21482
21494
  # Corresponds to the JSON property `preference`
21483
21495
  # @return [String]
21484
21496
  attr_accessor :preference
@@ -22948,6 +22960,13 @@ module Google
22948
22960
  # @return [Array<Google::Apis::ComputeAlpha::NetworkPeering>]
22949
22961
  attr_accessor :peerings
22950
22962
 
22963
+ # [Output Only] URL of the region where the regional network resides. This field
22964
+ # is not applicable to global network. You must specify this field as part of
22965
+ # the HTTP request URL. It is not settable as a field in the request body.
22966
+ # Corresponds to the JSON property `region`
22967
+ # @return [String]
22968
+ attr_accessor :region
22969
+
22951
22970
  # A routing configuration attached to a network resource. The message includes
22952
22971
  # the list of routers associated with the network, and a flag indicating the
22953
22972
  # type of routing behavior to enforce network-wide.
@@ -22991,6 +23010,7 @@ module Google
22991
23010
  @name = args[:name] if args.key?(:name)
22992
23011
  @network_firewall_policy_enforcement_order = args[:network_firewall_policy_enforcement_order] if args.key?(:network_firewall_policy_enforcement_order)
22993
23012
  @peerings = args[:peerings] if args.key?(:peerings)
23013
+ @region = args[:region] if args.key?(:region)
22994
23014
  @routing_config = args[:routing_config] if args.key?(:routing_config)
22995
23015
  @self_link = args[:self_link] if args.key?(:self_link)
22996
23016
  @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
@@ -33971,6 +33991,11 @@ module Google
33971
33991
  # @return [Fixnum]
33972
33992
  attr_accessor :priority
33973
33993
 
33994
+ # [Output only] The status of the route.
33995
+ # Corresponds to the JSON property `routeStatus`
33996
+ # @return [String]
33997
+ attr_accessor :route_status
33998
+
33974
33999
  # [Output Only] The type of this route, which can be one of the following values:
33975
34000
  # - 'TRANSIT' for a transit route that this router learned from another Cloud
33976
34001
  # Router and will readvertise to one of its BGP peers - 'SUBNET' for a route
@@ -34026,6 +34051,7 @@ module Google
34026
34051
  @next_hop_peering = args[:next_hop_peering] if args.key?(:next_hop_peering)
34027
34052
  @next_hop_vpn_tunnel = args[:next_hop_vpn_tunnel] if args.key?(:next_hop_vpn_tunnel)
34028
34053
  @priority = args[:priority] if args.key?(:priority)
34054
+ @route_status = args[:route_status] if args.key?(:route_status)
34029
34055
  @route_type = args[:route_type] if args.key?(:route_type)
34030
34056
  @self_link = args[:self_link] if args.key?(:self_link)
34031
34057
  @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
@@ -34299,6 +34325,11 @@ module Google
34299
34325
  # @return [String]
34300
34326
  attr_accessor :kind
34301
34327
 
34328
+ # Keys used for MD5 authentication.
34329
+ # Corresponds to the JSON property `md5AuthenticationKeys`
34330
+ # @return [Array<Google::Apis::ComputeAlpha::RouterMd5AuthenticationKey>]
34331
+ attr_accessor :md5_authentication_keys
34332
+
34302
34333
  # Name of the resource. Provided by the client when the resource is created. The
34303
34334
  # name must be 1-63 characters long, and comply with RFC1035. Specifically, the
34304
34335
  # name must be 1-63 characters long and match the regular expression `[a-z]([-a-
@@ -34350,6 +34381,7 @@ module Google
34350
34381
  @id = args[:id] if args.key?(:id)
34351
34382
  @interfaces = args[:interfaces] if args.key?(:interfaces)
34352
34383
  @kind = args[:kind] if args.key?(:kind)
34384
+ @md5_authentication_keys = args[:md5_authentication_keys] if args.key?(:md5_authentication_keys)
34353
34385
  @name = args[:name] if args.key?(:name)
34354
34386
  @nats = args[:nats] if args.key?(:nats)
34355
34387
  @network = args[:network] if args.key?(:network)
@@ -34646,6 +34678,13 @@ module Google
34646
34678
  # @return [String]
34647
34679
  attr_accessor :management_type
34648
34680
 
34681
+ # Present if MD5 authentication is enabled for the peering. Must be the name of
34682
+ # one of the entries in the Router.md5_authentication_keys. The field must
34683
+ # comply with RFC1035.
34684
+ # Corresponds to the JSON property `md5AuthenticationKeyName`
34685
+ # @return [String]
34686
+ attr_accessor :md5_authentication_key_name
34687
+
34649
34688
  # Name of this BGP peer. The name must be 1-63 characters long, and comply with
34650
34689
  # RFC1035. Specifically, the name must be 1-63 characters long and match the
34651
34690
  # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
@@ -34698,6 +34737,7 @@ module Google
34698
34737
  @ip_address = args[:ip_address] if args.key?(:ip_address)
34699
34738
  @ipv6_nexthop_address = args[:ipv6_nexthop_address] if args.key?(:ipv6_nexthop_address)
34700
34739
  @management_type = args[:management_type] if args.key?(:management_type)
34740
+ @md5_authentication_key_name = args[:md5_authentication_key_name] if args.key?(:md5_authentication_key_name)
34701
34741
  @name = args[:name] if args.key?(:name)
34702
34742
  @peer_asn = args[:peer_asn] if args.key?(:peer_asn)
34703
34743
  @peer_ip_address = args[:peer_ip_address] if args.key?(:peer_ip_address)
@@ -35000,6 +35040,35 @@ module Google
35000
35040
  end
35001
35041
  end
35002
35042
 
35043
+ #
35044
+ class RouterMd5AuthenticationKey
35045
+ include Google::Apis::Core::Hashable
35046
+
35047
+ # [Input only] Value of the key. For patch and update calls, it can be skipped
35048
+ # to copy the value from the previous configuration. This is allowed if the key
35049
+ # with the same name existed before the operation. Maximum length is 80
35050
+ # characters. Can only contain printable ASCII characters.
35051
+ # Corresponds to the JSON property `key`
35052
+ # @return [String]
35053
+ attr_accessor :key
35054
+
35055
+ # Name used to identify the key. Must be unique within a router. Must be
35056
+ # referenced by at least one bgpPeer. Must comply with RFC1035.
35057
+ # Corresponds to the JSON property `name`
35058
+ # @return [String]
35059
+ attr_accessor :name
35060
+
35061
+ def initialize(**args)
35062
+ update!(**args)
35063
+ end
35064
+
35065
+ # Update properties of this object
35066
+ def update!(**args)
35067
+ @key = args[:key] if args.key?(:key)
35068
+ @name = args[:name] if args.key?(:name)
35069
+ end
35070
+ end
35071
+
35003
35072
  # Represents a Nat resource. It enables the VMs within the specified subnetworks
35004
35073
  # to access Internet without external IP addresses. It specifies a list of
35005
35074
  # subnetworks (and the ranges within) that want to use NAT. Customers can also
@@ -35399,6 +35468,12 @@ module Google
35399
35468
  # @return [String]
35400
35469
  attr_accessor :linked_vpn_tunnel
35401
35470
 
35471
+ # Informs whether MD5 authentication is enabled on this BGP peer.
35472
+ # Corresponds to the JSON property `md5AuthEnabled`
35473
+ # @return [Boolean]
35474
+ attr_accessor :md5_auth_enabled
35475
+ alias_method :md5_auth_enabled?, :md5_auth_enabled
35476
+
35402
35477
  # Name of this BGP peer. Unique within the Routers resource.
35403
35478
  # Corresponds to the JSON property `name`
35404
35479
  # @return [String]
@@ -35436,6 +35511,11 @@ module Google
35436
35511
  # @return [String]
35437
35512
  attr_accessor :status
35438
35513
 
35514
+ # Indicates why particular status was returned.
35515
+ # Corresponds to the JSON property `statusReason`
35516
+ # @return [String]
35517
+ attr_accessor :status_reason
35518
+
35439
35519
  # Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours,
35440
35520
  # 59 minutes, 59 seconds
35441
35521
  # Corresponds to the JSON property `uptime`
@@ -35459,6 +35539,7 @@ module Google
35459
35539
  @ip_address = args[:ip_address] if args.key?(:ip_address)
35460
35540
  @ipv6_nexthop_address = args[:ipv6_nexthop_address] if args.key?(:ipv6_nexthop_address)
35461
35541
  @linked_vpn_tunnel = args[:linked_vpn_tunnel] if args.key?(:linked_vpn_tunnel)
35542
+ @md5_auth_enabled = args[:md5_auth_enabled] if args.key?(:md5_auth_enabled)
35462
35543
  @name = args[:name] if args.key?(:name)
35463
35544
  @num_learned_routes = args[:num_learned_routes] if args.key?(:num_learned_routes)
35464
35545
  @peer_ip_address = args[:peer_ip_address] if args.key?(:peer_ip_address)
@@ -35466,6 +35547,7 @@ module Google
35466
35547
  @router_appliance_instance = args[:router_appliance_instance] if args.key?(:router_appliance_instance)
35467
35548
  @state = args[:state] if args.key?(:state)
35468
35549
  @status = args[:status] if args.key?(:status)
35550
+ @status_reason = args[:status_reason] if args.key?(:status_reason)
35469
35551
  @uptime = args[:uptime] if args.key?(:uptime)
35470
35552
  @uptime_seconds = args[:uptime_seconds] if args.key?(:uptime_seconds)
35471
35553
  end
@@ -36138,8 +36220,8 @@ module Google
36138
36220
 
36139
36221
  # Defines the maintenance behavior for this instance. For standard instances,
36140
36222
  # the default behavior is MIGRATE. For preemptible instances, the default and
36141
- # only possible behavior is TERMINATE. For more information, see Setting
36142
- # Instance Scheduling Options.
36223
+ # only possible behavior is TERMINATE. For more information, see Set VM
36224
+ # availability policies.
36143
36225
  # Corresponds to the JSON property `onHostMaintenance`
36144
36226
  # @return [String]
36145
36227
  attr_accessor :on_host_maintenance
@@ -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.22.0"
19
+ GEM_VERSION = "0.26.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211208"
25
+ REVISION = "20220215"
26
26
  end
27
27
  end
28
28
  end
@@ -4570,6 +4570,12 @@ module Google
4570
4570
  include Google::Apis::Core::JsonObjectSupport
4571
4571
  end
4572
4572
 
4573
+ class RouterMd5AuthenticationKey
4574
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4575
+
4576
+ include Google::Apis::Core::JsonObjectSupport
4577
+ end
4578
+
4573
4579
  class RouterNat
4574
4580
  class Representation < Google::Apis::Core::JsonRepresentation; end
4575
4581
 
@@ -8241,6 +8247,7 @@ module Google
8241
8247
  property :self_link, as: 'selfLink'
8242
8248
  property :self_link_with_id, as: 'selfLinkWithId'
8243
8249
  property :short_name, as: 'shortName'
8250
+ property :vpc_network_scope, as: 'vpcNetworkScope'
8244
8251
  end
8245
8252
  end
8246
8253
 
@@ -11795,6 +11802,7 @@ module Google
11795
11802
  property :network_firewall_policy_enforcement_order, as: 'networkFirewallPolicyEnforcementOrder'
11796
11803
  collection :peerings, as: 'peerings', class: Google::Apis::ComputeAlpha::NetworkPeering, decorator: Google::Apis::ComputeAlpha::NetworkPeering::Representation
11797
11804
 
11805
+ property :region, as: 'region'
11798
11806
  property :routing_config, as: 'routingConfig', class: Google::Apis::ComputeAlpha::NetworkRoutingConfig, decorator: Google::Apis::ComputeAlpha::NetworkRoutingConfig::Representation
11799
11807
 
11800
11808
  property :self_link, as: 'selfLink'
@@ -14673,6 +14681,7 @@ module Google
14673
14681
  property :next_hop_peering, as: 'nextHopPeering'
14674
14682
  property :next_hop_vpn_tunnel, as: 'nextHopVpnTunnel'
14675
14683
  property :priority, as: 'priority'
14684
+ property :route_status, as: 'routeStatus'
14676
14685
  property :route_type, as: 'routeType'
14677
14686
  property :self_link, as: 'selfLink'
14678
14687
  property :self_link_with_id, as: 'selfLinkWithId'
@@ -14754,6 +14763,8 @@ module Google
14754
14763
  collection :interfaces, as: 'interfaces', class: Google::Apis::ComputeAlpha::RouterInterface, decorator: Google::Apis::ComputeAlpha::RouterInterface::Representation
14755
14764
 
14756
14765
  property :kind, as: 'kind'
14766
+ collection :md5_authentication_keys, as: 'md5AuthenticationKeys', class: Google::Apis::ComputeAlpha::RouterMd5AuthenticationKey, decorator: Google::Apis::ComputeAlpha::RouterMd5AuthenticationKey::Representation
14767
+
14757
14768
  property :name, as: 'name'
14758
14769
  collection :nats, as: 'nats', class: Google::Apis::ComputeAlpha::RouterNat, decorator: Google::Apis::ComputeAlpha::RouterNat::Representation
14759
14770
 
@@ -14833,6 +14844,7 @@ module Google
14833
14844
  property :ip_address, as: 'ipAddress'
14834
14845
  property :ipv6_nexthop_address, as: 'ipv6NexthopAddress'
14835
14846
  property :management_type, as: 'managementType'
14847
+ property :md5_authentication_key_name, as: 'md5AuthenticationKeyName'
14836
14848
  property :name, as: 'name'
14837
14849
  property :peer_asn, as: 'peerAsn'
14838
14850
  property :peer_ip_address, as: 'peerIpAddress'
@@ -14900,6 +14912,14 @@ module Google
14900
14912
  end
14901
14913
  end
14902
14914
 
14915
+ class RouterMd5AuthenticationKey
14916
+ # @private
14917
+ class Representation < Google::Apis::Core::JsonRepresentation
14918
+ property :key, as: 'key'
14919
+ property :name, as: 'name'
14920
+ end
14921
+ end
14922
+
14903
14923
  class RouterNat
14904
14924
  # @private
14905
14925
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -14991,6 +15011,7 @@ module Google
14991
15011
  property :ip_address, as: 'ipAddress'
14992
15012
  property :ipv6_nexthop_address, as: 'ipv6NexthopAddress'
14993
15013
  property :linked_vpn_tunnel, as: 'linkedVpnTunnel'
15014
+ property :md5_auth_enabled, as: 'md5AuthEnabled'
14994
15015
  property :name, as: 'name'
14995
15016
  property :num_learned_routes, as: 'numLearnedRoutes'
14996
15017
  property :peer_ip_address, as: 'peerIpAddress'
@@ -14998,6 +15019,7 @@ module Google
14998
15019
  property :router_appliance_instance, as: 'routerApplianceInstance'
14999
15020
  property :state, as: 'state'
15000
15021
  property :status, as: 'status'
15022
+ property :status_reason, as: 'statusReason'
15001
15023
  property :uptime, as: 'uptime'
15002
15024
  property :uptime_seconds, as: 'uptimeSeconds'
15003
15025
  end
@@ -13771,7 +13771,9 @@ module Google
13771
13771
 
13772
13772
  # Sets an instance's scheduling options. You can only call this method on a
13773
13773
  # stopped instance, that is, a VM instance that is in a `TERMINATED` state. See
13774
- # Instance Life Cycle for more information on the possible instance states.
13774
+ # Instance Life Cycle for more information on the possible instance states. For
13775
+ # more information about setting scheduling options for a VM, see Set VM
13776
+ # availability policies.
13775
13777
  # @param [String] project
13776
13778
  # Project ID for this request.
13777
13779
  # @param [String] zone
@@ -14042,7 +14044,8 @@ module Google
14042
14044
  execute_or_queue_command(command, &block)
14043
14045
  end
14044
14046
 
14045
- # Simulates a maintenance event on the instance.
14047
+ # Simulates a host maintenance event on a VM. For more information, see Simulate
14048
+ # a host maintenance event.
14046
14049
  # @param [String] project
14047
14050
  # Project ID for this request.
14048
14051
  # @param [String] zone
@@ -14246,10 +14249,11 @@ module Google
14246
14249
 
14247
14250
  # This method suspends a running instance, saving its state to persistent
14248
14251
  # storage, and allows you to resume the instance at a later time. Suspended
14249
- # instances incur reduced per-minute, virtual machine usage charges while they
14250
- # are suspended. Any resources the virtual machine is using, such as persistent
14251
- # disks and static IP addresses, will continue to be charged until they are
14252
- # deleted. For more information, see Suspending and resuming an instance.
14252
+ # instances have no compute costs (cores or RAM), and incur only storage charges
14253
+ # for the saved VM memory and localSSD data. Any charged resources the virtual
14254
+ # machine was using, such as persistent disks and static IP addresses, will
14255
+ # continue to be charged while the instance is suspended. For more information,
14256
+ # see Suspending and resuming an instance.
14253
14257
  # @param [String] project
14254
14258
  # Project ID for this request.
14255
14259
  # @param [String] zone
@@ -30112,6 +30116,355 @@ module Google
30112
30116
  execute_or_queue_command(command, &block)
30113
30117
  end
30114
30118
 
30119
+ # Deletes the specified network.
30120
+ # @param [String] project
30121
+ # Project ID for this request.
30122
+ # @param [String] region
30123
+ # Name of the region scoping this request.
30124
+ # @param [String] network
30125
+ # Name of the network to delete.
30126
+ # @param [String] request_id
30127
+ # An optional request ID to identify requests. Specify a unique request ID so
30128
+ # that if you must retry your request, the server will know to ignore the
30129
+ # request if it has already been completed. For example, consider a situation
30130
+ # where you make an initial request and the request times out. If you make the
30131
+ # request again with the same request ID, the server can check if original
30132
+ # operation with the same request ID was received, and if so, will ignore the
30133
+ # second request. This prevents clients from accidentally creating duplicate
30134
+ # commitments. The request ID must be a valid UUID with the exception that zero
30135
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
30136
+ # @param [String] fields
30137
+ # Selector specifying which fields to include in a partial response.
30138
+ # @param [String] quota_user
30139
+ # Available to use for quota purposes for server-side applications. Can be any
30140
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30141
+ # @param [String] user_ip
30142
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30143
+ # @param [Google::Apis::RequestOptions] options
30144
+ # Request-specific options
30145
+ #
30146
+ # @yield [result, err] Result & error if block supplied
30147
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
30148
+ # @yieldparam err [StandardError] error object if request failed
30149
+ #
30150
+ # @return [Google::Apis::ComputeAlpha::Operation]
30151
+ #
30152
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30153
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30154
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30155
+ def delete_region_network(project, region, network, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30156
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networks/{network}', options)
30157
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30158
+ command.response_class = Google::Apis::ComputeAlpha::Operation
30159
+ command.params['project'] = project unless project.nil?
30160
+ command.params['region'] = region unless region.nil?
30161
+ command.params['network'] = network unless network.nil?
30162
+ command.query['requestId'] = request_id unless request_id.nil?
30163
+ command.query['fields'] = fields unless fields.nil?
30164
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30165
+ command.query['userIp'] = user_ip unless user_ip.nil?
30166
+ execute_or_queue_command(command, &block)
30167
+ end
30168
+
30169
+ # Returns the specified network.
30170
+ # @param [String] project
30171
+ # Project ID for this request.
30172
+ # @param [String] region
30173
+ # Name of the region scoping this request.
30174
+ # @param [String] network
30175
+ # Name of the network to return.
30176
+ # @param [String] fields
30177
+ # Selector specifying which fields to include in a partial response.
30178
+ # @param [String] quota_user
30179
+ # Available to use for quota purposes for server-side applications. Can be any
30180
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30181
+ # @param [String] user_ip
30182
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30183
+ # @param [Google::Apis::RequestOptions] options
30184
+ # Request-specific options
30185
+ #
30186
+ # @yield [result, err] Result & error if block supplied
30187
+ # @yieldparam result [Google::Apis::ComputeAlpha::Network] parsed result object
30188
+ # @yieldparam err [StandardError] error object if request failed
30189
+ #
30190
+ # @return [Google::Apis::ComputeAlpha::Network]
30191
+ #
30192
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30193
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30194
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30195
+ def get_region_network(project, region, network, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30196
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networks/{network}', options)
30197
+ command.response_representation = Google::Apis::ComputeAlpha::Network::Representation
30198
+ command.response_class = Google::Apis::ComputeAlpha::Network
30199
+ command.params['project'] = project unless project.nil?
30200
+ command.params['region'] = region unless region.nil?
30201
+ command.params['network'] = network unless network.nil?
30202
+ command.query['fields'] = fields unless fields.nil?
30203
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30204
+ command.query['userIp'] = user_ip unless user_ip.nil?
30205
+ execute_or_queue_command(command, &block)
30206
+ end
30207
+
30208
+ # Gets the access control policy for a resource. May be empty if no such policy
30209
+ # or resource exists.
30210
+ # @param [String] project
30211
+ # Project ID for this request.
30212
+ # @param [String] region
30213
+ # The name of the region for this request.
30214
+ # @param [String] resource
30215
+ # Name or id of the resource for this request.
30216
+ # @param [Fixnum] options_requested_policy_version
30217
+ # Requested IAM Policy version.
30218
+ # @param [String] fields
30219
+ # Selector specifying which fields to include in a partial response.
30220
+ # @param [String] quota_user
30221
+ # Available to use for quota purposes for server-side applications. Can be any
30222
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30223
+ # @param [String] user_ip
30224
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30225
+ # @param [Google::Apis::RequestOptions] options
30226
+ # Request-specific options
30227
+ #
30228
+ # @yield [result, err] Result & error if block supplied
30229
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
30230
+ # @yieldparam err [StandardError] error object if request failed
30231
+ #
30232
+ # @return [Google::Apis::ComputeAlpha::Policy]
30233
+ #
30234
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30235
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30236
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30237
+ def get_region_network_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30238
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networks/{resource}/getIamPolicy', options)
30239
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
30240
+ command.response_class = Google::Apis::ComputeAlpha::Policy
30241
+ command.params['project'] = project unless project.nil?
30242
+ command.params['region'] = region unless region.nil?
30243
+ command.params['resource'] = resource unless resource.nil?
30244
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
30245
+ command.query['fields'] = fields unless fields.nil?
30246
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30247
+ command.query['userIp'] = user_ip unless user_ip.nil?
30248
+ execute_or_queue_command(command, &block)
30249
+ end
30250
+
30251
+ # Creates a network in the specified project and region using the data included
30252
+ # in the request.
30253
+ # @param [String] project
30254
+ # Project ID for this request.
30255
+ # @param [String] region
30256
+ # Name of the region scoping this request.
30257
+ # @param [Google::Apis::ComputeAlpha::Network] network_object
30258
+ # @param [String] request_id
30259
+ # An optional request ID to identify requests. Specify a unique request ID so
30260
+ # that if you must retry your request, the server will know to ignore the
30261
+ # request if it has already been completed. For example, consider a situation
30262
+ # where you make an initial request and the request times out. If you make the
30263
+ # request again with the same request ID, the server can check if original
30264
+ # operation with the same request ID was received, and if so, will ignore the
30265
+ # second request. This prevents clients from accidentally creating duplicate
30266
+ # commitments. The request ID must be a valid UUID with the exception that zero
30267
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
30268
+ # @param [String] fields
30269
+ # Selector specifying which fields to include in a partial response.
30270
+ # @param [String] quota_user
30271
+ # Available to use for quota purposes for server-side applications. Can be any
30272
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30273
+ # @param [String] user_ip
30274
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30275
+ # @param [Google::Apis::RequestOptions] options
30276
+ # Request-specific options
30277
+ #
30278
+ # @yield [result, err] Result & error if block supplied
30279
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
30280
+ # @yieldparam err [StandardError] error object if request failed
30281
+ #
30282
+ # @return [Google::Apis::ComputeAlpha::Operation]
30283
+ #
30284
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30285
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30286
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30287
+ def insert_region_network(project, region, network_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30288
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networks', options)
30289
+ command.request_representation = Google::Apis::ComputeAlpha::Network::Representation
30290
+ command.request_object = network_object
30291
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30292
+ command.response_class = Google::Apis::ComputeAlpha::Operation
30293
+ command.params['project'] = project unless project.nil?
30294
+ command.params['region'] = region unless region.nil?
30295
+ command.query['requestId'] = request_id unless request_id.nil?
30296
+ command.query['fields'] = fields unless fields.nil?
30297
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30298
+ command.query['userIp'] = user_ip unless user_ip.nil?
30299
+ execute_or_queue_command(command, &block)
30300
+ end
30301
+
30302
+ # Retrieves the list of networks available to the specified project in the given
30303
+ # region.
30304
+ # @param [String] project
30305
+ # Project ID for this request.
30306
+ # @param [String] region
30307
+ # Name of the region scoping this request.
30308
+ # @param [String] filter
30309
+ # A filter expression that filters resources listed in the response. The
30310
+ # expression must specify the field name, an operator, and the value that you
30311
+ # want to use for filtering. The value must be a string, a number, or a boolean.
30312
+ # The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For
30313
+ # example, if you are filtering Compute Engine instances, you can exclude
30314
+ # instances named `example-instance` by specifying `name != example-instance`.
30315
+ # The `:` operator can be used with string fields to match substrings. For non-
30316
+ # string fields it is equivalent to the `=` operator. The `:*` comparison can be
30317
+ # used to test whether a key has been defined. For example, to find all objects
30318
+ # with `owner` label use: ``` labels.owner:* ``` You can also filter nested
30319
+ # fields. For example, you could specify `scheduling.automaticRestart = false`
30320
+ # to include instances only if they are not scheduled for automatic restarts.
30321
+ # You can use filtering on nested fields to filter based on resource labels. To
30322
+ # filter on multiple expressions, provide each separate expression within
30323
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
30324
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
30325
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
30326
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
30327
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
30328
+ # @param [Fixnum] max_results
30329
+ # The maximum number of results per page that should be returned. If the number
30330
+ # of available results is larger than `maxResults`, Compute Engine returns a `
30331
+ # nextPageToken` that can be used to get the next page of results in subsequent
30332
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
30333
+ # @param [String] order_by
30334
+ # Sorts list results by a certain order. By default, results are returned in
30335
+ # alphanumerical order based on the resource name. You can also sort results in
30336
+ # descending order based on the creation timestamp using `orderBy="
30337
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
30338
+ # field in reverse chronological order (newest result first). Use this to sort
30339
+ # resources like operations so that the newest operation is returned first.
30340
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
30341
+ # @param [String] page_token
30342
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
30343
+ # by a previous list request to get the next page of results.
30344
+ # @param [Boolean] return_partial_success
30345
+ # Opt-in for partial success behavior which provides partial results in case of
30346
+ # failure. The default value is false.
30347
+ # @param [String] fields
30348
+ # Selector specifying which fields to include in a partial response.
30349
+ # @param [String] quota_user
30350
+ # Available to use for quota purposes for server-side applications. Can be any
30351
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30352
+ # @param [String] user_ip
30353
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30354
+ # @param [Google::Apis::RequestOptions] options
30355
+ # Request-specific options
30356
+ #
30357
+ # @yield [result, err] Result & error if block supplied
30358
+ # @yieldparam result [Google::Apis::ComputeAlpha::NetworkList] parsed result object
30359
+ # @yieldparam err [StandardError] error object if request failed
30360
+ #
30361
+ # @return [Google::Apis::ComputeAlpha::NetworkList]
30362
+ #
30363
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30364
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30365
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30366
+ def list_region_networks(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30367
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networks', options)
30368
+ command.response_representation = Google::Apis::ComputeAlpha::NetworkList::Representation
30369
+ command.response_class = Google::Apis::ComputeAlpha::NetworkList
30370
+ command.params['project'] = project unless project.nil?
30371
+ command.params['region'] = region unless region.nil?
30372
+ command.query['filter'] = filter unless filter.nil?
30373
+ command.query['maxResults'] = max_results unless max_results.nil?
30374
+ command.query['orderBy'] = order_by unless order_by.nil?
30375
+ command.query['pageToken'] = page_token unless page_token.nil?
30376
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
30377
+ command.query['fields'] = fields unless fields.nil?
30378
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30379
+ command.query['userIp'] = user_ip unless user_ip.nil?
30380
+ execute_or_queue_command(command, &block)
30381
+ end
30382
+
30383
+ # Sets the access control policy on the specified resource. Replaces any
30384
+ # existing policy.
30385
+ # @param [String] project
30386
+ # Project ID for this request.
30387
+ # @param [String] region
30388
+ # The name of the region for this request.
30389
+ # @param [String] resource
30390
+ # Name or id of the resource for this request.
30391
+ # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
30392
+ # @param [String] fields
30393
+ # Selector specifying which fields to include in a partial response.
30394
+ # @param [String] quota_user
30395
+ # Available to use for quota purposes for server-side applications. Can be any
30396
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30397
+ # @param [String] user_ip
30398
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30399
+ # @param [Google::Apis::RequestOptions] options
30400
+ # Request-specific options
30401
+ #
30402
+ # @yield [result, err] Result & error if block supplied
30403
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
30404
+ # @yieldparam err [StandardError] error object if request failed
30405
+ #
30406
+ # @return [Google::Apis::ComputeAlpha::Policy]
30407
+ #
30408
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30409
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30410
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30411
+ def set_region_network_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30412
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networks/{resource}/setIamPolicy', options)
30413
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
30414
+ command.request_object = region_set_policy_request_object
30415
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
30416
+ command.response_class = Google::Apis::ComputeAlpha::Policy
30417
+ command.params['project'] = project unless project.nil?
30418
+ command.params['region'] = region unless region.nil?
30419
+ command.params['resource'] = resource unless resource.nil?
30420
+ command.query['fields'] = fields unless fields.nil?
30421
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30422
+ command.query['userIp'] = user_ip unless user_ip.nil?
30423
+ execute_or_queue_command(command, &block)
30424
+ end
30425
+
30426
+ # Returns permissions that a caller has on the specified resource.
30427
+ # @param [String] project
30428
+ # Project ID for this request.
30429
+ # @param [String] region
30430
+ # The name of the region for this request.
30431
+ # @param [String] resource
30432
+ # Name or id of the resource for this request.
30433
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
30434
+ # @param [String] fields
30435
+ # Selector specifying which fields to include in a partial response.
30436
+ # @param [String] quota_user
30437
+ # Available to use for quota purposes for server-side applications. Can be any
30438
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30439
+ # @param [String] user_ip
30440
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30441
+ # @param [Google::Apis::RequestOptions] options
30442
+ # Request-specific options
30443
+ #
30444
+ # @yield [result, err] Result & error if block supplied
30445
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
30446
+ # @yieldparam err [StandardError] error object if request failed
30447
+ #
30448
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
30449
+ #
30450
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30451
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30452
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30453
+ def test_region_network_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30454
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networks/{resource}/testIamPermissions', options)
30455
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
30456
+ command.request_object = test_permissions_request_object
30457
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
30458
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
30459
+ command.params['project'] = project unless project.nil?
30460
+ command.params['region'] = region unless region.nil?
30461
+ command.params['resource'] = resource unless resource.nil?
30462
+ command.query['fields'] = fields unless fields.nil?
30463
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30464
+ command.query['userIp'] = user_ip unless user_ip.nil?
30465
+ execute_or_queue_command(command, &block)
30466
+ end
30467
+
30115
30468
  # Retrieves the list of all NotificationEndpoint resources, regional and global,
30116
30469
  # available to the specified project.
30117
30470
  # @param [String] project
@@ -32188,6 +32541,61 @@ module Google
32188
32541
  execute_or_queue_command(command, &block)
32189
32542
  end
32190
32543
 
32544
+ # Patches the specified regional TargetHttpsProxy resource with the data
32545
+ # included in the request. This method supports PATCH semantics and uses JSON
32546
+ # merge patch format and processing rules.
32547
+ # @param [String] project
32548
+ # Project ID for this request.
32549
+ # @param [String] region
32550
+ # Name of the region for this request.
32551
+ # @param [String] target_https_proxy
32552
+ # Name of the TargetHttpsProxy resource to patch.
32553
+ # @param [Google::Apis::ComputeAlpha::TargetHttpsProxy] target_https_proxy_object
32554
+ # @param [String] request_id
32555
+ # An optional request ID to identify requests. Specify a unique request ID so
32556
+ # that if you must retry your request, the server will know to ignore the
32557
+ # request if it has already been completed. For example, consider a situation
32558
+ # where you make an initial request and the request times out. If you make the
32559
+ # request again with the same request ID, the server can check if original
32560
+ # operation with the same request ID was received, and if so, will ignore the
32561
+ # second request. This prevents clients from accidentally creating duplicate
32562
+ # commitments. The request ID must be a valid UUID with the exception that zero
32563
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
32564
+ # @param [String] fields
32565
+ # Selector specifying which fields to include in a partial response.
32566
+ # @param [String] quota_user
32567
+ # Available to use for quota purposes for server-side applications. Can be any
32568
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
32569
+ # @param [String] user_ip
32570
+ # Legacy name for parameter that has been superseded by `quotaUser`.
32571
+ # @param [Google::Apis::RequestOptions] options
32572
+ # Request-specific options
32573
+ #
32574
+ # @yield [result, err] Result & error if block supplied
32575
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
32576
+ # @yieldparam err [StandardError] error object if request failed
32577
+ #
32578
+ # @return [Google::Apis::ComputeAlpha::Operation]
32579
+ #
32580
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32581
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32582
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
32583
+ def patch_region_target_https_proxy(project, region, target_https_proxy, target_https_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32584
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options)
32585
+ command.request_representation = Google::Apis::ComputeAlpha::TargetHttpsProxy::Representation
32586
+ command.request_object = target_https_proxy_object
32587
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
32588
+ command.response_class = Google::Apis::ComputeAlpha::Operation
32589
+ command.params['project'] = project unless project.nil?
32590
+ command.params['region'] = region unless region.nil?
32591
+ command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
32592
+ command.query['requestId'] = request_id unless request_id.nil?
32593
+ command.query['fields'] = fields unless fields.nil?
32594
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
32595
+ command.query['userIp'] = user_ip unless user_ip.nil?
32596
+ execute_or_queue_command(command, &block)
32597
+ end
32598
+
32191
32599
  # Replaces SslCertificates for TargetHttpsProxy.
32192
32600
  # @param [String] project
32193
32601
  # 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.22.0
4
+ version: 0.26.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: 2021-12-13 00:00:00.000000000 Z
11
+ date: 2022-02-21 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.22.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.26.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: []
@@ -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.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Compute Engine API Alpha