Class: Telnyx::Resources::Wireless

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/wireless.rb,
lib/telnyx/resources/wireless/detail_records_reports.rb

Defined Under Namespace

Classes: DetailRecordsReports

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Wireless

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Wireless.

Parameters:



37
38
39
40
# File 'lib/telnyx/resources/wireless.rb', line 37

def initialize(client:)
  @client = client
  @detail_records_reports = Telnyx::Resources::Wireless::DetailRecordsReports.new(client: client)
end

Instance Attribute Details

#detail_records_reportsTelnyx::Resources::Wireless::DetailRecordsReports (readonly)



7
8
9
# File 'lib/telnyx/resources/wireless.rb', line 7

def detail_records_reports
  @detail_records_reports
end

Instance Method Details

#retrieve_regions(product:, request_options: {}) ⇒ Telnyx::Models::WirelessRetrieveRegionsResponse

Some parameter documentations has been truncated, see Models::WirelessRetrieveRegionsParams for more details.

Retrieve all wireless regions for the given product.

Parameters:

  • product (String)

    The product for which to list regions (e.g., ‘public_ips’, ‘private_wireless_gat

  • request_options (Telnyx::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



23
24
25
26
27
28
29
30
31
32
# File 'lib/telnyx/resources/wireless.rb', line 23

def retrieve_regions(params)
  parsed, options = Telnyx::WirelessRetrieveRegionsParams.dump_request(params)
  @client.request(
    method: :get,
    path: "wireless/regions",
    query: parsed,
    model: Telnyx::Models::WirelessRetrieveRegionsResponse,
    options: options
  )
end