Sha256: d50875cf168846ba0c8e63d1c799dcf085a814ceb2a15843c9e39d3fa7b71357
Contents?: true
Size: 1.19 KB
Versions: 20
Compression:
Stored size: 1.19 KB
Contents
module Fog module Compute class Google class Mock def expand_subnetwork_ip_cidr_range(_subnetwork, _region, _ip_cidr_range) Fog::Mock.not_implemented end end class Real ## # Expands the IP CIDR range of the subnetwork to a specified value. # # @param subnetwork [String] the name of the subnetwork # @param region [String] the name of the subnetwork's region # @param ip_cidr_range [String] The IP of internal addresses that are legal on # this subnetwork # # @return [Google::Apis::ComputeV1::SubnetworkList] list result # # @see https://cloud.google.com/compute/docs/reference/latest/subnetworks/expandIpCidrRange def expand_subnetwork_ip_cidr_range(subnetwork, region, ip_cidr_range) if region.start_with? "http" region = region.split("/")[-1] end @compute.expand_subnetwork_ip_cidr_range( @project, region, subnetwork, ::Google::Apis::ComputeV1::SubnetworksExpandIpCidrRangeRequest.new( :ip_cidr_range => ip_cidr_range ) ) end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems