@@ -42,17 +42,14 @@ export class Settings extends APIResource {
4242 /**
4343 * List all mTLS hostname settings for this account or zone.
4444 */
45- list (
46- params ?: SettingListParams ,
45+ get ( params ?: SettingGetParams , options ?: Core . RequestOptions ) : Core . APIPromise < SettingGetResponse | null > ;
46+ get ( options ?: Core . RequestOptions ) : Core . APIPromise < SettingGetResponse | null > ;
47+ get (
48+ params : SettingGetParams | Core . RequestOptions = { } ,
4749 options ?: Core . RequestOptions ,
48- ) : Core . APIPromise < SettingListResponse | null > ;
49- list ( options ?: Core . RequestOptions ) : Core . APIPromise < SettingListResponse | null > ;
50- list (
51- params : SettingListParams | Core . RequestOptions = { } ,
52- options ?: Core . RequestOptions ,
53- ) : Core . APIPromise < SettingListResponse | null > {
50+ ) : Core . APIPromise < SettingGetResponse | null > {
5451 if ( isRequestOptions ( params ) ) {
55- return this . list ( { } , params ) ;
52+ return this . get ( { } , params ) ;
5653 }
5754 const { account_id, zone_id } = params ;
5855 if ( ! account_id && ! zone_id ) {
@@ -75,7 +72,7 @@ export class Settings extends APIResource {
7572 this . _client . get (
7673 `/${ accountOrZone } /${ accountOrZoneId } /access/certificates/settings` ,
7774 options ,
78- ) as Core . APIPromise < { result : SettingListResponse | null } >
75+ ) as Core . APIPromise < { result : SettingGetResponse | null } >
7976 ) . _thenUnwrap ( ( obj ) => obj . result ) ;
8077 }
8178}
@@ -102,7 +99,7 @@ export interface AccessSettings {
10299
103100export type SettingUpdateResponse = Array < AccessSettings > ;
104101
105- export type SettingListResponse = Array < AccessSettings > ;
102+ export type SettingGetResponse = Array < AccessSettings > ;
106103
107104export interface SettingUpdateParams {
108105 /**
@@ -123,7 +120,7 @@ export interface SettingUpdateParams {
123120 zone_id ?: string ;
124121}
125122
126- export interface SettingListParams {
123+ export interface SettingGetParams {
127124 /**
128125 * The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
129126 */
@@ -138,7 +135,7 @@ export interface SettingListParams {
138135export namespace Settings {
139136 export import AccessSettings = SettingsAPI . AccessSettings ;
140137 export import SettingUpdateResponse = SettingsAPI . SettingUpdateResponse ;
141- export import SettingListResponse = SettingsAPI . SettingListResponse ;
138+ export import SettingGetResponse = SettingsAPI . SettingGetResponse ;
142139 export import SettingUpdateParams = SettingsAPI . SettingUpdateParams ;
143- export import SettingListParams = SettingsAPI . SettingListParams ;
140+ export import SettingGetParams = SettingsAPI . SettingGetParams ;
144141}
0 commit comments