Skip to content

Commit 31f3072

Browse files
committed
chore(custom-hostnames): update codegen output
1 parent 5abcfcb commit 31f3072

2 files changed

Lines changed: 22 additions & 3 deletions

File tree

src/resources/custom-hostnames/custom-hostnames.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2183,7 +2183,8 @@ export interface CustomHostnameListParams extends V4PagePaginationArrayParams {
21832183
/**
21842184
* Query param: Hostname ID to match against. This ID was generated and returned
21852185
* during the initial custom_hostname creation. This parameter cannot be used with
2186-
* the 'hostname' parameter.
2186+
* the 'hostname', 'hostname.exact', 'hostname.contain', or 'hostname.startsWith'
2187+
* parameters.
21872188
*/
21882189
id?: string;
21892190

@@ -2275,9 +2276,23 @@ export namespace CustomHostnameListParams {
22752276
export interface Hostname {
22762277
/**
22772278
* Filters hostnames by a substring match on the hostname value. This parameter
2278-
* cannot be used with the 'id' parameter.
2279+
* cannot be used with the 'id', 'hostname', 'hostname.exact', or
2280+
* 'hostname.startsWith' parameters.
22792281
*/
22802282
contain?: string;
2283+
2284+
/**
2285+
* Fully qualified domain name to match against. This parameter cannot be used with
2286+
* the 'id', 'hostname', 'hostname.contain', or 'hostname.startsWith' parameters.
2287+
*/
2288+
exact?: string;
2289+
2290+
/**
2291+
* Filters hostnames by a prefix match on the hostname value. This parameter cannot
2292+
* be used with the 'id', 'hostname', 'hostname.exact', or 'hostname.contain'
2293+
* parameters.
2294+
*/
2295+
startsWith?: string;
22812296
}
22822297
}
22832298

tests/api-resources/custom-hostnames/custom-hostnames.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ describe('resource customHostnames', () => {
7878
certificate_authority: 'google',
7979
custom_origin_server: 'origin2.example.com',
8080
direction: 'desc',
81-
hostname: { contain: 'example.com' },
81+
hostname: {
82+
contain: 'example.com',
83+
exact: 'app.example.com',
84+
startsWith: 'app',
85+
},
8286
hostname_status: 'provisioned',
8387
order: 'ssl',
8488
page: 1,

0 commit comments

Comments
 (0)