Sha256: 485b791c02761f71977fb6a967a104af9e8e6498830f3ba2c6ecf738cf2e79c2
Contents?: true
Size: 1.5 KB
Versions: 1
Compression:
Stored size: 1.5 KB
Contents
# Azure namespace module Azure # Armrest namespace module Armrest # Base class for managing subnets class SubnetService < VirtualNetworkService # Create and return a new SubnetService instance. Most methods for a # SubnetService instance will return one or Subnet instances. # def initialize(_armrest_configuration, _options = {}) super @base_url += "/subnets" end # Creates a new subnet using the given +options+. # # The possible options are: # # :name # :id # :location # :tags # :etag # :properties # :provisioning_state # :address_prefixes # :dhcp_options # :dns_servers # :ip_configurations #-- def create(subnet_name, options = {}) @uri += "/#{subnet_name}?api-version=#{api_version}" end # Deletes the given subnet. def delete(subnet_name) @uri += "/#{subnet_name}?api-version=#{api_version}" end # Retrieves information for the given subnet. def get(subnet_name) @uri += "/#{subnet_name}?api-version=#{api_version}" end # List available subnets. def list @uri += "?api-version=#{api_version}" end # Patch an existing subnet. This is similar to a create/update # but the available options are more limited. def patch(subnet_name, options = {}) @uri += "?api-version=#{api_version}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
azure-armrest-0.0.2 | lib/azure/armrest/subnet_service.rb |