Class: Legion::Extensions::Nautobot::Client
- Inherits:
-
Object
- Object
- Legion::Extensions::Nautobot::Client
- Includes:
- Helpers::Client, Runners::Circuits, Runners::Cloud, Runners::Dcim, Runners::Extras, Runners::Ipam, Runners::Tenancy, Runners::Users, Runners::Virtualization, Runners::Vpn, Runners::Wireless
- Defined in:
- lib/legion/extensions/nautobot/client.rb
Instance Attribute Summary collapse
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Instance Method Summary collapse
- #connection(**override) ⇒ Object
-
#initialize(url:, token: nil, read_only: false, **extra) ⇒ Client
constructor
A new instance of Client.
Methods included from Runners::Wireless
#create_radio_profile, #create_wireless_network, #get_radio_profile, #get_wireless_network, #list_radio_profiles, #list_supported_data_rates, #list_wireless_networks
Methods included from Runners::Vpn
#create_vpn, #create_vpn_profile, #create_vpn_tunnel, #delete_vpn, #delete_vpn_tunnel, #get_vpn, #get_vpn_profile, #get_vpn_termination, #get_vpn_tunnel, #get_vpn_tunnel_endpoint, #list_vpn_profiles, #list_vpn_terminations, #list_vpn_tunnel_endpoints, #list_vpn_tunnels, #list_vpns, #update_vpn, #update_vpn_tunnel
Methods included from Runners::Cloud
#create_cloud_account, #create_cloud_network, #create_cloud_service, #delete_cloud_account, #delete_cloud_network, #get_cloud_account, #get_cloud_network, #get_cloud_resource_type, #get_cloud_service, #list_cloud_accounts, #list_cloud_networks, #list_cloud_resource_types, #list_cloud_services, #update_cloud_account, #update_cloud_network
Methods included from Runners::Users
#create_user, #get_group, #get_permission, #get_user, #list_groups, #list_permissions, #list_tokens, #list_users
Methods included from Runners::Extras
#create_config_context, #create_contact, #create_custom_field, #create_role, #create_status, #create_tag, #create_webhook, #delete_config_context, #get_config_context, #get_contact, #get_custom_field, #get_dynamic_group, #get_external_integration, #get_git_repository, #get_job, #get_job_result, #get_object_change, #get_relationship, #get_role, #get_secret, #get_status, #get_tag, #get_team, #get_webhook, #graphql_query, #list_computed_fields, #list_config_context_schemas, #list_config_contexts, #list_contacts, #list_custom_fields, #list_custom_links, #list_dynamic_groups, #list_external_integrations, #list_git_repositories, #list_job_results, #list_jobs, #list_notes, #list_object_changes, #list_relationships, #list_roles, #list_scheduled_jobs, #list_secrets, #list_secrets_groups, #list_statuses, #list_tags, #list_teams, #list_webhooks, #run_job, #sync_git_repository, #update_config_context
Methods included from Runners::Virtualization
#create_cluster, #create_cluster_group, #create_cluster_type, #create_virtual_machine, #create_vm_interface, #delete_cluster, #delete_virtual_machine, #delete_vm_interface, #get_cluster, #get_cluster_group, #get_cluster_type, #get_virtual_machine, #get_vm_interface, #list_cluster_groups, #list_cluster_types, #list_clusters, #list_virtual_machines, #list_vm_interfaces, #update_cluster, #update_virtual_machine, #update_vm_interface
Methods included from Runners::Tenancy
#create_tenant, #create_tenant_group, #delete_tenant, #delete_tenant_group, #get_tenant, #get_tenant_group, #list_tenant_groups, #list_tenants, #update_tenant, #update_tenant_group
Methods included from Runners::Circuits
#create_circuit, #create_circuit_termination, #create_circuit_type, #create_provider, #delete_circuit, #delete_provider, #get_circuit, #get_circuit_termination, #get_circuit_type, #get_provider, #get_provider_network, #list_circuit_terminations, #list_circuit_types, #list_circuits, #list_provider_networks, #list_providers, #update_circuit, #update_provider
Methods included from Runners::Ipam
#available_ips, #available_prefixes, #create_ip_address, #create_namespace, #create_prefix, #create_service, #create_vlan, #create_vrf, #delete_ip_address, #delete_prefix, #delete_vlan, #delete_vrf, #get_ip_address, #get_namespace, #get_prefix, #get_service, #get_vlan, #get_vlan_group, #get_vrf, #list_ip_addresses, #list_namespaces, #list_prefixes, #list_rirs, #list_route_targets, #list_services, #list_vlan_groups, #list_vlans, #list_vrfs, #update_ip_address, #update_prefix, #update_vlan, #update_vrf
Methods included from Runners::Dcim
#create_cable, #create_device, #create_device_type, #create_interface, #create_location, #create_location_type, #create_manufacturer, #create_platform, #create_rack, #delete_cable, #delete_device, #delete_interface, #delete_location, #delete_rack, #get_cable, #get_device, #get_device_type, #get_interface, #get_location, #get_location_type, #get_manufacturer, #get_platform, #get_rack, #get_virtual_chassis, #list_cables, #list_console_ports, #list_console_server_ports, #list_controller_managed_device_groups, #list_controllers, #list_device_bays, #list_device_families, #list_device_redundancy_groups, #list_device_types, #list_devices, #list_front_ports, #list_interface_redundancy_groups, #list_interfaces, #list_inventory_items, #list_location_types, #list_locations, #list_manufacturers, #list_module_types, #list_platforms, #list_power_feeds, #list_power_outlets, #list_power_panels, #list_power_ports, #list_rack_groups, #list_rack_reservations, #list_racks, #list_rear_ports, #list_software_image_files, #list_software_versions, #list_virtual_chassis, #update_device, #update_interface, #update_location, #update_rack
Constructor Details
#initialize(url:, token: nil, read_only: false, **extra) ⇒ Client
Returns a new instance of Client.
33 34 35 |
# File 'lib/legion/extensions/nautobot/client.rb', line 33 def initialize(url:, token: nil, read_only: false, **extra) @opts = { url: url, token: token, read_only: read_only, **extra } end |
Instance Attribute Details
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
31 32 33 |
# File 'lib/legion/extensions/nautobot/client.rb', line 31 def opts @opts end |
Instance Method Details
#connection(**override) ⇒ Object
37 38 39 |
# File 'lib/legion/extensions/nautobot/client.rb', line 37 def connection(**override) super(**@opts.merge(override.compact)) end |