@@ -2118,6 +2118,83 @@ def get_usage_network_hosts_with_http_info(start_hr, opts = {})
21182118 return data , status_code , headers
21192119 end
21202120
2121+ # Get hourly usage for Online Archive
2122+ # Get hourly usage for Online Archive.
2123+ # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
2124+ # @param opts [Hash] the optional parameters
2125+ # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
2126+ # @return [UsageOnlineArchiveResponse]
2127+ def get_usage_online_archive ( start_hr , opts = { } )
2128+ data , _status_code , _headers = get_usage_online_archive_with_http_info ( start_hr , opts )
2129+ data
2130+ end
2131+
2132+ # Get hourly usage for Online Archive
2133+ # Get hourly usage for Online Archive.
2134+ # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
2135+ # @param opts [Hash] the optional parameters
2136+ # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
2137+ # @return [Array<(UsageOnlineArchiveResponse, Integer, Hash)>] UsageOnlineArchiveResponse data, response status code and response headers
2138+ def get_usage_online_archive_with_http_info ( start_hr , opts = { } )
2139+
2140+ if @api_client . config . unstable_operations . has_key? ( :get_usage_online_archive )
2141+ unstable_enabled = @api_client . config . unstable_operations [ :get_usage_online_archive ]
2142+ if unstable_enabled
2143+ @api_client . config . logger . warn format ( "Using unstable operation '%s'" , "get_usage_online_archive" )
2144+ else
2145+ raise APIError . new ( message : format ( "Unstable operation '%s' is disabled" , "get_usage_online_archive" ) )
2146+ end
2147+ end
2148+
2149+ if @api_client . config . debugging
2150+ @api_client . config . logger . debug 'Calling API: UsageMeteringAPI.get_usage_online_archive ...'
2151+ end
2152+ # verify the required parameter 'start_hr' is set
2153+ if @api_client . config . client_side_validation && start_hr . nil?
2154+ fail ArgumentError , "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_online_archive"
2155+ end
2156+ # resource path
2157+ local_var_path = '/api/v1/usage/online-archive'
2158+
2159+ # query parameters
2160+ query_params = opts [ :query_params ] || { }
2161+ query_params [ :'start_hr' ] = start_hr
2162+ query_params [ :'end_hr' ] = opts [ :'end_hr' ] if !opts [ :'end_hr' ] . nil?
2163+
2164+ # header parameters
2165+ header_params = opts [ :header_params ] || { }
2166+ # HTTP header 'Accept' (if needed)
2167+ header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json;datetime-format=rfc3339' ] )
2168+
2169+ # form parameters
2170+ form_params = opts [ :form_params ] || { }
2171+
2172+ # http body (model)
2173+ post_body = opts [ :debug_body ]
2174+
2175+ # return_type
2176+ return_type = opts [ :debug_return_type ] || 'UsageOnlineArchiveResponse'
2177+
2178+ # auth_names
2179+ auth_names = opts [ :debug_auth_names ] || [ :apiKeyAuth , :appKeyAuth , :AuthZ ]
2180+
2181+ new_options = opts . merge (
2182+ :operation => :get_usage_online_archive ,
2183+ :header_params => header_params ,
2184+ :query_params => query_params ,
2185+ :form_params => form_params ,
2186+ :body => post_body ,
2187+ :auth_names => auth_names ,
2188+ :return_type => return_type
2189+ )
2190+
2191+ data , status_code , headers = @api_client . call_api ( :GET , local_var_path , new_options )
2192+ if @api_client . config . debugging
2193+ @api_client . config . logger . debug "API called: UsageMeteringAPI#get_usage_online_archive\n Data: #{ data . inspect } \n Status code: #{ status_code } \n Headers: #{ headers } "
2194+ end
2195+ return data , status_code , headers
2196+ end
2197+
21212198 # Get hourly usage for profiled hosts
21222199 # Get hourly usage for profiled hosts.
21232200 # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
0 commit comments