Skip to content

Latest commit

 

History

History
93 lines (57 loc) · 2.92 KB

File metadata and controls

93 lines (57 loc) · 2.92 KB

openapi_azureipranges

OpenApiAzureIpRangesClient - the Ruby gem for the Azure IP Ranges and Service Tags - Public Cloud

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This SDK is automatically generated by the OpenAPI Generator project:

Installation

Build a gem

To build the Ruby code into a gem:

gem build openapi_azureipranges.gemspec

Then either install the gem locally:

gem install ./openapi_azureipranges-0.9.0-pre.0.gem

(for development, run gem install --dev ./openapi_azureipranges-0.9.0-pre.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'openapi_azureipranges', '~> 0.9.0-pre.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/oapicf/openapi-azureipranges, then add the following in the Gemfile:

gem 'openapi_azureipranges', :git => 'https://github.com/oapicf/openapi-azureipranges.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'openapi_azureipranges'

api_instance = OpenApiAzureIpRangesClient::DefaultApi.new
version = 'version_example' # String | The version of the JSON file to be retrieved in the format YYYYMMDD, e.g. 20240506

begin
  #Get Azure IP Ranges and Service Tags - Public Cloud
  result = api_instance.get_azure_ip_ranges_service_tags_public_cloud(version)
  p result
rescue OpenApiAzureIpRangesClient::ApiError => e
  puts "Exception when calling DefaultApi->get_azure_ip_ranges_service_tags_public_cloud: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://download.microsoft.com/download/7/1/D/71D86715-5596-4529-9B13-DA13A5DE5B63

Class Method HTTP request Description
OpenApiAzureIpRangesClient::DefaultApi get_azure_ip_ranges_service_tags_public_cloud GET /ServiceTags_Public_{version}.json Get Azure IP Ranges and Service Tags - Public Cloud

Documentation for Models

Documentation for Authorization

Endpoints do not require authorization.