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:
- API version: 0.9.0-pre.0
- Package version: 0.9.0-pre.0
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit https://github.com/oapicf/openapi-azureipranges
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'
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 using -I
as follows:
ruby -Ilib script.rb
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
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 |
- OpenApiAzureIpRangesClient::Change
- OpenApiAzureIpRangesClient::Value
- OpenApiAzureIpRangesClient::ValueProperties
Endpoints do not require authorization.