@@ -1520,6 +1520,66 @@ def list_cost_gcp_usage_cost_configs_with_http_info(opts = {})
15201520 return data , status_code , headers
15211521 end
15221522
1523+ # List Cloud Cost Management OCI configs.
1524+ #
1525+ # @see #list_cost_oci_configs_with_http_info
1526+ def list_cost_oci_configs ( opts = { } )
1527+ data , _status_code , _headers = list_cost_oci_configs_with_http_info ( opts )
1528+ data
1529+ end
1530+
1531+ # List Cloud Cost Management OCI configs.
1532+ #
1533+ # List the OCI configs.
1534+ #
1535+ # @param opts [Hash] the optional parameters
1536+ # @return [Array<(OCIConfigsResponse, Integer, Hash)>] OCIConfigsResponse data, response status code and response headers
1537+ def list_cost_oci_configs_with_http_info ( opts = { } )
1538+
1539+ if @api_client . config . debugging
1540+ @api_client . config . logger . debug 'Calling API: CloudCostManagementAPI.list_cost_oci_configs ...'
1541+ end
1542+ # resource path
1543+ local_var_path = '/api/v2/cost/oci_config'
1544+
1545+ # query parameters
1546+ query_params = opts [ :query_params ] || { }
1547+
1548+ # header parameters
1549+ header_params = opts [ :header_params ] || { }
1550+ # HTTP header 'Accept' (if needed)
1551+ header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] )
1552+
1553+ # form parameters
1554+ form_params = opts [ :form_params ] || { }
1555+
1556+ # http body (model)
1557+ post_body = opts [ :debug_body ]
1558+
1559+ # return_type
1560+ return_type = opts [ :debug_return_type ] || 'OCIConfigsResponse'
1561+
1562+ # auth_names
1563+ auth_names = opts [ :debug_auth_names ] || [ :apiKeyAuth , :appKeyAuth , :AuthZ ]
1564+
1565+ new_options = opts . merge (
1566+ :operation => :list_cost_oci_configs ,
1567+ :header_params => header_params ,
1568+ :query_params => query_params ,
1569+ :form_params => form_params ,
1570+ :body => post_body ,
1571+ :auth_names => auth_names ,
1572+ :return_type => return_type ,
1573+ :api_version => "V2"
1574+ )
1575+
1576+ data , status_code , headers = @api_client . call_api ( Net ::HTTP ::Get , local_var_path , new_options )
1577+ if @api_client . config . debugging
1578+ @api_client . config . logger . debug "API called: CloudCostManagementAPI#list_cost_oci_configs\n Data: #{ data . inspect } \n Status code: #{ status_code } \n Headers: #{ headers } "
1579+ end
1580+ return data , status_code , headers
1581+ end
1582+
15231583 # List custom allocation rules.
15241584 #
15251585 # @see #list_custom_allocation_rules_with_http_info
0 commit comments