Skip to content

Commit 3a725fd

Browse files
committed
run update:examples
1 parent e667190 commit 3a725fd

File tree

78 files changed

+25528
-10264
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+25528
-10264
lines changed

packages/openapi-typescript/examples/digital-ocean-api.ts

Lines changed: 601 additions & 33 deletions
Large diffs are not rendered by default.

packages/openapi-typescript/examples/digital-ocean-api/DigitalOcean-public.v2.yaml

Lines changed: 62 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ tags:
2323
description: |-
2424
1-Click applications are pre-built Droplet images or Kubernetes apps with software,
2525
features, and configuration details already set up for you. They can be found in the
26-
[DigitalOcean Marketplace](https://www.digitalocean.com/docs/marketplace).
26+
[DigitalOcean Marketplace](https://marketplace.digitalocean.com/).
2727
2828
- name: Account
2929
description: Provides information about your current account.
@@ -66,7 +66,7 @@ tags:
6666
**Balance:** By sending requests to the `/v2/customers/my/balance` endpoint, you can
6767
retrieve the balance information for the requested customer account.
6868
69-
**Invoices:** [Invoices](https://www.digitalocean.com/docs/accounts/billing/invoices/)
69+
**Invoices:** [Invoices](https://docs.digitalocean.com/platform/billing/invoices/)
7070
are generated on the first of each month for every DigitalOcean
7171
customer. An invoice preview is generated daily, which can be accessed
7272
with the `preview` keyword in place of `$INVOICE_UUID`. To interact with
@@ -81,7 +81,7 @@ tags:
8181
8282
- name: Block Storage
8383
description: |-
84-
[DigitalOcean Block Storage Volumes](https://www.digitalocean.com/docs/volumes/)
84+
[DigitalOcean Block Storage Volumes](https://docs.digitalocean.com/products/volumes/)
8585
provide expanded storage capacity for your Droplets and can be moved
8686
between Droplets within a specific region.
8787
@@ -106,18 +106,20 @@ tags:
106106
- name: CDN Endpoints
107107
description: |-
108108
Content hosted in DigitalOcean's object storage solution,
109-
[Spaces](https://www.digitalocean.com/docs/spaces/overview/),
109+
[Spaces](https://docs.digitalocean.com/products/spaces/),
110110
can optionally be served by our globally distributed Content Delivery
111111
Network (CDN). By sending requests to `/v2/cdn/endpoints`, you can list,
112112
create, or delete CDN Endpoints as well as purge cached content. To use a
113113
custom subdomain to access the CDN Endpoint, provide the ID of a
114114
DigitalOcean managed TLS certificate and the fully qualified domain name
115-
for the custom subdomain.
115+
for the custom subdomain.
116+
117+
CDN endpoints have a rate limit of five requests per 10 seconds.
116118
117119
- name: Certificates
118120
description: |-
119121
In order to perform SSL termination on load balancers, DigitalOcean offers
120-
two types of [SSL certificate management](https://www.digitalocean.com/docs/accounts/security/#certificates):
122+
two types of [SSL certificate management](https://docs.digitalocean.com/platform/teams/manage-certificates):
121123
122124
* **Custom**: User-generated certificates may be uploaded to DigitalOcean
123125
where they will be placed in a fully encrypted and isolated storage system.
@@ -130,7 +132,7 @@ tags:
130132
- name: Container Registry
131133
description: |-
132134
DigitalOcean offers the ability for you to create a
133-
[private container registry](https://www.digitalocean.com/docs/images/container-registry/quickstart/)
135+
[private container registry](https://docs.digitalocean.com/products/container-registry/)
134136
to store your Docker images for use with your Kubernetes clusters. This
135137
container registry runs inside the same datacenters as your cluster,
136138
ensuring reliable and performant rollout of image deployments.
@@ -140,12 +142,12 @@ tags:
140142
141143
- name: Databases
142144
description: |-
143-
DigitalOcean's [managed database service](https://www.digitalocean.com/docs/databases)
145+
DigitalOcean's [managed database service](https://docs.digitalocean.com/products/databases)
144146
simplifies the creation and management of highly available database clusters. Currently, it
145-
offers support for [PostgreSQL](http://www.digitalocean.com/docs/databases/postgresql/),
146-
[Redis](https://www.digitalocean.com/docs/databases/redis/),
147-
[MySQL](https://www.digitalocean.com/docs/databases/mysql/),
148-
[MongoDB](https://www.digitalocean.com/docs/databases/mongodb/), and
147+
offers support for [PostgreSQL](http://docs.digitalocean.com/products/databases/postgresql/),
148+
[Redis](https://docs.digitalocean.com/products/databases/redis/),
149+
[MySQL](https://docs.digitalocean.com/products/databases/mysql/),
150+
[MongoDB](https://docs.digitalocean.com/products/databases/mongodb/), and
149151
[OpenSearch](https://docs.digitalocean.com/products/databases/opensearch/).
150152
151153
By sending requests to the `/v2/databases` endpoint, you can list, create, or delete
@@ -170,7 +172,7 @@ tags:
170172
and manage DNS zone files by adding and modifying individual records for a
171173
domain.
172174
173-
The [DigitalOcean DNS management interface](https://www.digitalocean.com/docs/networking/dns/)
175+
The [DigitalOcean DNS management interface](https://docs.digitalocean.com/products/networking/dns/)
174176
allows you to configure the following DNS records:
175177
176178
Name | Description |
@@ -189,7 +191,7 @@ tags:
189191
description: |-
190192
Domain resources are domain names that you have purchased from a domain
191193
name registrar that you are managing through the
192-
[DigitalOcean DNS interface](https://www.digitalocean.com/docs/networking/dns/).
194+
[DigitalOcean DNS interface](https://docs.digitalocean.com/products/networking/dns/).
193195
194196
This resource establishes top-level control over each domain. Actions that
195197
affect individual domain records should be taken on the
@@ -217,7 +219,7 @@ tags:
217219
218220
- name: Droplets
219221
description: |-
220-
A [Droplet](https://www.digitalocean.com/docs/droplets/) is a DigitalOcean
222+
A [Droplet](https://docs.digitalocean.com/products/droplets/) is a DigitalOcean
221223
virtual machine. By sending requests to the Droplet endpoint, you can
222224
list, create, or delete Droplets.
223225
@@ -228,7 +230,7 @@ tags:
228230
229231
- name: Firewalls
230232
description: |-
231-
[DigitalOcean Cloud Firewalls](https://www.digitalocean.com/docs/networking/firewalls/)
233+
[DigitalOcean Cloud Firewalls](https://docs.digitalocean.com/products/networking/firewalls/)
232234
provide the ability to restrict network access to and from a Droplet
233235
allowing you to define which ports will accept inbound or outbound
234236
connections. By sending requests to the `/v2/firewalls` endpoint, you can
@@ -271,7 +273,7 @@ tags:
271273
will contain the field `reserved_ips` in addition to the `floating_ips` field.
272274
Floating IPs retrieved using the Projects API will retain the original name.
273275
274-
[DigitalOcean Floating IPs](https://www.digitalocean.com/docs/networking/floating-ips/)
276+
[DigitalOcean Floating IPs](https://docs.digitalocean.com/products/networking/reserved-ips/)
275277
are publicly-accessible static IP addresses that can be mapped to one of
276278
your Droplets. They can be used to create highly available setups or other
277279
configurations requiring movable addresses.
@@ -296,34 +298,34 @@ tags:
296298
297299
- name: Images
298300
description: |-
299-
A DigitalOcean [image](https://www.digitalocean.com/docs/images/) can be
301+
A DigitalOcean [image](https://docs.digitalocean.com/products/images/) can be
300302
used to create a Droplet and may come in a number of flavors. Currently,
301303
there are five types of images: snapshots, backups, applications,
302304
distributions, and custom images.
303305
304-
* [Snapshots](https://www.digitalocean.com/docs/images/snapshots/) provide
306+
* [Snapshots](https://docs.digitalocean.com/products/snapshots/) provide
305307
a full copy of an existing Droplet instance taken on demand.
306308
307-
* [Backups](https://www.digitalocean.com/docs/images/backups/) are similar
309+
* [Backups](https://docs.digitalocean.com/products/backups/) are similar
308310
to snapshots but are created automatically at regular intervals when
309311
enabled for a Droplet.
310312
311-
* [Custom images](https://www.digitalocean.com/docs/images/custom-images/)
313+
* [Custom images](https://docs.digitalocean.com/products/custom-images/)
312314
are Linux-based virtual machine images (raw, qcow2, vhdx, vdi, and vmdk
313315
formats are supported) that you may upload for use on DigitalOcean.
314316
315317
* Distributions are the public Linux distributions that are available to
316318
be used as a base to create Droplets.
317319
318-
* Applications, or [1-Click Apps](https://www.digitalocean.com/docs/one-clicks/),
320+
* Applications, or [1-Click Apps](https://docs.digitalocean.com/products/marketplace/),
319321
are distributions pre-configured with additional software.
320322
321323
To interact with images, you will generally send requests to the images
322324
endpoint at /v2/images.
323325
324326
- name: Kubernetes
325327
description: |-
326-
[DigitalOcean Kubernetes](https://www.digitalocean.com/docs/kubernetes/)
328+
[DigitalOcean Kubernetes](https://docs.digitalocean.com/products/kubernetes/)
327329
allows you to quickly deploy scalable and secure Kubernetes clusters. By
328330
sending requests to the `/v2/kubernetes/clusters` endpoint, you can list,
329331
create, or delete clusters as well as scale node pools up and down,
@@ -332,7 +334,7 @@ tags:
332334
333335
- name: Load Balancers
334336
description: |-
335-
[DigitalOcean Load Balancers](https://www.digitalocean.com/docs/networking/load-balancers/)
337+
[DigitalOcean Load Balancers](https://docs.digitalocean.com/products/networking/load-balancers/)
336338
provide a way to distribute traffic across multiple Droplets. By sending
337339
requests to the `/v2/load_balancers` endpoint, you can list, create, or
338340
delete load balancers as well as add or remove Droplets, forwarding rules,
@@ -449,7 +451,7 @@ tags:
449451
450452
- name: Snapshots
451453
description: |-
452-
[Snapshots](https://www.digitalocean.com/docs/images/snapshots/) are saved
454+
[Snapshots](https://docs.digitalocean.com/products/snapshots/) are saved
453455
instances of a Droplet or a block storage volume, which is reflected in
454456
the `resource_type` attribute. In order to avoid problems with compressing
455457
filesystems, each defines a `min_disk_size` attribute which is the minimum
@@ -478,9 +480,16 @@ tags:
478480
479481
To interact with Uptime, you will generally send requests to the Uptime endpoint at `/v2/uptime/`.
480482
483+
- name: VPC Peerings
484+
description: |-
485+
[VPC Peerings](https://docs.digitalocean.com/products/networking/vpc/how-to/create-peering/)
486+
join two VPC networks with a secure, private connection. This allows
487+
resources in those networks to connect to each other's private IP addresses
488+
as if they were in the same network.
489+
481490
- name: VPCs
482491
description: |-
483-
[VPCs (virtual private clouds)](https://www.digitalocean.com/docs/networking/vpc/)
492+
[VPCs (virtual private clouds)](https://docs.digitalocean.com/products/networking/vpc/)
484493
allow you to create virtual networks containing resources that can
485494
communicate with each other in full isolation using private IP addresses.
486495
@@ -1635,6 +1644,33 @@ paths:
16351644
get:
16361645
$ref: 'resources/vpcs/vpcs_list_members.yml'
16371646

1647+
/v2/vpcs/{vpc_id}/peerings:
1648+
get:
1649+
$ref: 'resources/vpcs/vpcs_list_peerings.yml'
1650+
1651+
post:
1652+
$ref: 'resources/vpcs/vpcs_create_peerings.yml'
1653+
1654+
/v2/vpcs/{vpc_id}/peerings/{vpc_peering_id}:
1655+
patch:
1656+
$ref: 'resources/vpcs/vpcs_update_peerings.yml'
1657+
1658+
/v2/vpc_peerings:
1659+
get:
1660+
$ref: 'resources/vpc_peerings/vpc_peerings_list.yml'
1661+
1662+
post:
1663+
$ref: 'resources/vpc_peerings/vpc_peerings_create.yml'
1664+
1665+
/v2/vpc_peerings/{vpc_peering_id}:
1666+
get:
1667+
$ref: 'resources/vpc_peerings/vpc_peerings_get.yml'
1668+
1669+
patch:
1670+
$ref: 'resources/vpc_peerings/vpc_peerings_update.yml'
1671+
1672+
delete:
1673+
$ref: 'resources/vpc_peerings/vpc_peerings_delete.yml'
16381674

16391675
/v2/uptime/checks:
16401676
get:

packages/openapi-typescript/examples/digital-ocean-api/resources/actions/models/action.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ properties:
4949
$ref: '../../regions/models/region.yml'
5050

5151
region_slug:
52-
allOf:
53-
- $ref: '../../regions/models/region.yml#/properties/slug'
54-
- type: string
55-
nullable: true
52+
type: string
53+
nullable: true
54+
description: A human-readable string that is used as a unique identifier
55+
for each region.
56+
example: nyc3

packages/openapi-typescript/examples/digital-ocean-api/resources/apps/models/app_component_base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ properties:
5555
environment_slug:
5656
type: string
5757
description: An environment slug describing the type of this app. For a full list,
58-
please refer to [the product documentation](https://www.digitalocean.com/docs/app-platform/).
58+
please refer to [the product documentation](https://docs.digitalocean.com/products/app-platform/).
5959
example: node-js
6060

6161
log_destinations:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
type: object
2+
description: Specification to configure maintenance settings for the app, such as maintenance mode.
3+
properties:
4+
enabled:
5+
type: boolean
6+
description: Indicates whether maintenance mode should be enabled for the app.
7+
example: true

packages/openapi-typescript/examples/digital-ocean-api/resources/apps/models/app_service_spec.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ allOf:
1313
health_check:
1414
$ref: app_service_spec_health_check.yml
1515

16+
protocol:
17+
type: string
18+
description: |
19+
The protocol which the service uses to serve traffic on the http_port.
20+
21+
- `HTTP`: The app is serving the HTTP protocol. Default.
22+
- `HTTP2`: The app is serving the HTTP/2 protocol. Currently, this needs to be implemented in the service by serving HTTP/2 cleartext (h2c).
23+
enum:
24+
- HTTP
25+
- HTTP2
26+
example: HTTP
27+
1628
http_port:
1729
type: integer
1830
description: |-

packages/openapi-typescript/examples/digital-ocean-api/resources/apps/models/app_spec.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,8 @@ properties:
7777
egress:
7878
$ref: app_egress_spec.yml
7979

80+
maintenance:
81+
$ref: app_maintenance_spec.yml
82+
8083
required:
8184
- name

packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_purge_cache.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ description: |
77
`/v2/cdn/endpoints/$ENDPOINT_ID/cache`. The body of the request should include
88
a `files` attribute containing a list of cached file paths to be purged. A
99
path may be for a single file or may contain a wildcard (`*`) to recursively
10-
purge all files under a directory. When only a wildcard is provided, all
11-
cached files will be purged. There is a rate limit of 50 files per 20 seconds
12-
that can be purged.
10+
purge all files under a directory. When only a wildcard is provided, all cached
11+
files will be purged. There is a rate limit of 50 files per 20 seconds that can
12+
be purged. CDN endpoints have a rate limit of 5 requests per 10 seconds.
13+
Purging files using a wildcard path counts as a single request against the API's
14+
rate limit. Two identical purge requests cannot be sent at the same time.
1315
1416
tags:
1517
- CDN Endpoints

packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/certificates_get.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ x-codeSamples:
3939

4040
security:
4141
- bearer_auth:
42-
- 'cdn:read'
42+
- 'certificate:read'
4343

packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/certificates_list.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ x-codeSamples:
3838

3939
security:
4040
- bearer_auth:
41-
- 'cdn:read'
41+
- 'certificate:read'

packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_add_connectionPool.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ summary: Add a New Connection Pool (PostgreSQL)
55
description: |
66
For PostgreSQL database clusters, connection pools can be used to allow a
77
database to share its idle connections. The popular PostgreSQL connection
8-
pooling utility PgBouncer is used to provide this service. [See here for more information](https://www.digitalocean.com/docs/databases/postgresql/how-to/manage-connection-pools/)
8+
pooling utility PgBouncer is used to provide this service. [See here for more information](https://docs.digitalocean.com/products/databases/postgresql/how-to/manage-connection-pools/)
99
about how and why to use PgBouncer connection pooling including
1010
details about the available transaction modes.
1111

packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_firewall_rules.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: >-
1111
provided, any Droplet or Kubernetes node with that tag applied to it will
1212
have access. The firewall is limited to 100 rules (or trusted sources). When
1313
possible, we recommend
14-
[placing your databases into a VPC network](https://www.digitalocean.com/docs/networking/vpc/)
14+
[placing your databases into a VPC network](https://docs.digitalocean.com/products/networking/vpc/)
1515
to limit access to them instead of using a firewall.
1616
1717
A successful

packages/openapi-typescript/examples/digital-ocean-api/resources/databases/models/advanced_config/opensearch_advanced_config.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ properties:
205205
type: integer
206206
example: 2500000
207207
minimum: 1
208-
maximum: 9223372036854776000
208+
maximum: 9223372036854775807
209209
default: 2500000
210210
ism_history_rollover_check_period_hours:
211211
description: >-
@@ -269,7 +269,7 @@ properties:
269269
default: use-context
270270
cluster_routing_allocation_node_concurrent_recoveries:
271271
description: >-
272-
Maximum concurrent incoming/outgoing shard recoveries (normally replicas) are allowed to happen per node .
272+
Maximum concurrent incoming/outgoing shard recoveries (normally replicas) are allowed to happen per node .
273273
type: integer
274274
example: 2
275275
minimum: 2
@@ -279,6 +279,12 @@ properties:
279279
description: >-
280280
Allowlist of remote IP addresses for reindexing. Changing this value will cause all OpenSearch instances to restart.
281281
type: array
282-
items:
282+
items:
283283
type: string
284-
example: ["255.255.223.233:9200", "222.33.222.222:6300"]
284+
example: ["255.255.223.233:9200", "222.33.222.222:6300"]
285+
plugins_alerting_filter_by_backend_roles_enabled:
286+
description: >-
287+
Enable or disable filtering of alerting by backend roles.
288+
type: boolean
289+
example: false
290+
default: false

packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ description: |
1616
parameter set to the name of the tag in your GET request. For example,
1717
`/v2/droplets?tag_name=$TAG_NAME`.
1818
19+
### GPU Droplets
20+
21+
By default, only non-GPU Droplets are returned. To list only GPU Droplets, set
22+
the `type` query parameter to `gpus`. For example, `/v2/droplets?type=gpus`.
23+
1924
tags:
2025
- Droplets
2126

@@ -24,6 +29,7 @@ parameters:
2429
- $ref: '../../shared/parameters.yml#/page'
2530
- $ref: 'parameters.yml#/droplet_tag_name'
2631
- $ref: 'parameters.yml#/droplet_name'
32+
- $ref: 'parameters.yml#/droplet_type'
2733

2834
responses:
2935
'200':

0 commit comments

Comments
 (0)