diff --git a/DO_OPENAPI_COMMIT_SHA.txt b/DO_OPENAPI_COMMIT_SHA.txt index 5cf27fbea..b4f7c5b33 100644 --- a/DO_OPENAPI_COMMIT_SHA.txt +++ b/DO_OPENAPI_COMMIT_SHA.txt @@ -1 +1 @@ -8a97bd7 +7db7f66 diff --git a/changelist.md b/changelist.md index bd24e89e8..dd2e937d5 100644 --- a/changelist.md +++ b/changelist.md @@ -1,6 +1,6 @@ ## Changelist -Current commit: digitalocean/openapi@375b304 (2026-02-02T10:43:29Z) -Target commit: digitalocean/openapi@8a97bd7 (2026-02-06T13:45:43Z) +Current commit: digitalocean/openapi@8a97bd7 (2026-02-06T13:45:43Z) +Target commit: digitalocean/openapi@7db7f66 (2026-02-17T06:24:44Z) -* digitalocean/openapi#1137: DBAAS-7537: Add do_settings.service_cnames support to Databases API - 2026-02-06T13:45:43Z [] +* digitalocean/openapi#1136: added switch performance tier - 2026-02-17T06:24:44Z [] diff --git a/docs/functions/v2_nfs_item_actions.deserializeIntoActionsPostRequestBody.html b/docs/functions/v2_nfs_item_actions.deserializeIntoActionsPostRequestBody.html index 83ca1b8ab..f74089cfe 100644 --- a/docs/functions/v2_nfs_item_actions.deserializeIntoActionsPostRequestBody.html +++ b/docs/functions/v2_nfs_item_actions.deserializeIntoActionsPostRequestBody.html @@ -1,2 +1,2 @@ -deserializeIntoActionsPostRequestBody | @digitalocean/dots - v1.9.0
@digitalocean/dots - v1.9.0
    Preparing search index...

    Function deserializeIntoActionsPostRequestBody

    • The deserialization information for the current model

      -

      Parameters

      • actionsPostRequestBody:
            | undefined
            | Partial<
                | Nfs_action_attach
                | Nfs_action_detach
                | Nfs_action_resize
                | Nfs_action_snapshot,
            > = {}

      Returns Record<string, (node: ParseNode) => void>

    +deserializeIntoActionsPostRequestBody | @digitalocean/dots - v1.9.0
    @digitalocean/dots - v1.9.0
      Preparing search index...

      Function deserializeIntoActionsPostRequestBody

      • The deserialization information for the current model

        +

        Parameters

        • actionsPostRequestBody:
              | undefined
              | Partial<
                  | Nfs_action_attach
                  | Nfs_action_detach
                  | Nfs_action_resize
                  | Nfs_action_snapshot
                  | Nfs_action_switch_performance_tier,
              > = {}

        Returns Record<string, (node: ParseNode) => void>

      diff --git a/docs/functions/v2_nfs_item_actions.serializeActionsPostRequestBody.html b/docs/functions/v2_nfs_item_actions.serializeActionsPostRequestBody.html index 76f602daa..2626c3ffe 100644 --- a/docs/functions/v2_nfs_item_actions.serializeActionsPostRequestBody.html +++ b/docs/functions/v2_nfs_item_actions.serializeActionsPostRequestBody.html @@ -1,4 +1,4 @@ -serializeActionsPostRequestBody | @digitalocean/dots - v1.9.0
      @digitalocean/dots - v1.9.0
        Preparing search index...

        Function serializeActionsPostRequestBody

        • Serializes information the current object

          +serializeActionsPostRequestBody | @digitalocean/dots - v1.9.0
          @digitalocean/dots - v1.9.0
            Preparing search index...

            Function serializeActionsPostRequestBody

            • Serializes information the current object

              Parameters

              • writer: SerializationWriter

                Serialization writer to use to serialize this model

                -
              • actionsPostRequestBody:
                    | undefined
                    | null
                    | Partial<
                        | Nfs_action_attach
                        | Nfs_action_detach
                        | Nfs_action_resize
                        | Nfs_action_snapshot,
                    > = {}
              • isSerializingDerivedType: boolean = false

                A boolean indicating whether the serialization is for a derived type.

                -

              Returns void

            +
          • actionsPostRequestBody:
                | undefined
                | null
                | Partial<
                    | Nfs_action_attach
                    | Nfs_action_detach
                    | Nfs_action_resize
                    | Nfs_action_snapshot
                    | Nfs_action_switch_performance_tier,
                > = {}
          • isSerializingDerivedType: boolean = false

            A boolean indicating whether the serialization is for a derived type.

            +

          Returns void

          diff --git a/docs/interfaces/v2_databases.DatabasesPostRequestBody.html b/docs/interfaces/v2_databases.DatabasesPostRequestBody.html index 253142ba1..096538520 100644 --- a/docs/interfaces/v2_databases.DatabasesPostRequestBody.html +++ b/docs/interfaces/v2_databases.DatabasesPostRequestBody.html @@ -32,33 +32,33 @@

          Properties

          additionalData?: Record<string, unknown>

          Gets the additional data for this object that did not belong to the properties.

          The additional data for this object.

          autoscale?: null | Database_autoscale_params

          Autoscaling configuration for the database cluster. Currently only supports storage autoscaling. If null, autoscaling is not configured for the cluster.

          -
          backupRestore?: null | Database_backup

          The backup_restore property

          +
          backupRestore?: null | Database_backup

          The backup_restore property

          connection?: null | Database_connection

          The connection property

          -
          createdAt?: null | Date

          A time value given in ISO8601 combined date and time format that represents when the database cluster was created.

          -
          dbNames?: null | string[]

          An array of strings containing the names of databases created in the database cluster.

          -
          doSettings?: null | Do_settings

          The do_settings property

          -
          engine?: null | Database_cluster_engine

          A slug representing the database engine used for the cluster. The possible values are: "pg" for PostgreSQL, "mysql" for MySQL, "redis" for Caching, "mongodb" for MongoDB, "kafka" for Kafka, "opensearch" for OpenSearch, and "valkey" for Valkey.

          -
          id?: null | string

          A unique ID that can be used to identify and reference a database cluster.

          -
          maintenanceWindow?: null | Database_maintenance_window

          The maintenance_window property

          -
          metricsEndpoints?: null | Database_service_endpoint[]

          Public hostname and port of the cluster's metrics endpoint(s). Includes one record for the cluster's primary node and a second entry for the cluster's standby node(s).

          -
          name?: null | string

          A unique, human-readable name referring to a database cluster.

          -
          numNodes?: null | number

          The number of nodes in the database cluster.

          -
          privateConnection?: null | Database_connection

          The private_connection property

          -
          privateNetworkUuid?: null | string

          A string specifying the UUID of the VPC to which the database cluster will be assigned. If excluded, the cluster when creating a new database cluster, it will be assigned to your account's default VPC for the region.

          Requires vpc:read scope.

          -
          projectId?: null | string

          The ID of the project that the database cluster is assigned to. If excluded when creating a new database cluster, it will be assigned to your default project.

          Requires project:update scope.

          -
          region?: null | string

          The slug identifier for the region where the database cluster is located.

          -
          rules?: null | Firewall_rule[]

          The rules property

          -
          schemaRegistryConnection?: null | Schema_registry_connection

          The connection details for Schema Registry.

          -
          semanticVersion?: null | string

          A string representing the semantic version of the database engine in use for the cluster.

          -
          size?: null | string

          The slug identifier representing the size of the nodes in the database cluster.

          -
          standbyConnection?: null | Database_connection

          The standby_connection property

          -
          standbyPrivateConnection?: null | Database_connection

          The standby_private_connection property

          -
          status?: null | Database_cluster_status

          A string representing the current status of the database cluster.

          -
          storageSizeMib?: null | number

          Additional storage added to the cluster, in MiB. If null, no additional storage is added to the cluster, beyond what is provided as a base amount from the 'size' and any previously added additional storage.

          -
          tags?: null | string[]

          An array of tags (as strings) to apply to the database cluster.

          Requires tag:create scope.

          -
          uiConnection?: null | Opensearch_connection

          The connection details for OpenSearch dashboard.

          -
          users?: null | Database_user[]

          The users property

          -
          version?: null | string

          A string representing the version of the database engine in use for the cluster.

          -
          versionEndOfAvailability?: null | string

          A timestamp referring to the date when the particular version will no longer be available for creating new clusters. If null, the version does not have an end of availability timeline.

          -
          versionEndOfLife?: null | string

          A timestamp referring to the date when the particular version will no longer be supported. If null, the version does not have an end of life timeline.

          -
          +
          createdAt?: null | Date

          A time value given in ISO8601 combined date and time format that represents when the database cluster was created.

          +
          dbNames?: null | string[]

          An array of strings containing the names of databases created in the database cluster.

          +
          doSettings?: null | Do_settings

          The do_settings property

          +
          engine?: null | Database_cluster_engine

          A slug representing the database engine used for the cluster. The possible values are: "pg" for PostgreSQL, "mysql" for MySQL, "redis" for Caching, "mongodb" for MongoDB, "kafka" for Kafka, "opensearch" for OpenSearch, and "valkey" for Valkey.

          +
          id?: null | string

          A unique ID that can be used to identify and reference a database cluster.

          +
          maintenanceWindow?: null | Database_maintenance_window

          The maintenance_window property

          +
          metricsEndpoints?: null | Database_service_endpoint[]

          Public hostname and port of the cluster's metrics endpoint(s). Includes one record for the cluster's primary node and a second entry for the cluster's standby node(s).

          +
          name?: null | string

          A unique, human-readable name referring to a database cluster.

          +
          numNodes?: null | number

          The number of nodes in the database cluster.

          +
          privateConnection?: null | Database_connection

          The private_connection property

          +
          privateNetworkUuid?: null | string

          A string specifying the UUID of the VPC to which the database cluster will be assigned. If excluded, the cluster when creating a new database cluster, it will be assigned to your account's default VPC for the region.

          Requires vpc:read scope.

          +
          projectId?: null | string

          The ID of the project that the database cluster is assigned to. If excluded when creating a new database cluster, it will be assigned to your default project.

          Requires project:update scope.

          +
          region?: null | string

          The slug identifier for the region where the database cluster is located.

          +
          rules?: null | Firewall_rule[]

          The rules property

          +
          schemaRegistryConnection?: null | Schema_registry_connection

          The connection details for Schema Registry.

          +
          semanticVersion?: null | string

          A string representing the semantic version of the database engine in use for the cluster.

          +
          size?: null | string

          The slug identifier representing the size of the nodes in the database cluster.

          +
          standbyConnection?: null | Database_connection

          The standby_connection property

          +
          standbyPrivateConnection?: null | Database_connection

          The standby_private_connection property

          +
          status?: null | Database_cluster_status

          A string representing the current status of the database cluster.

          +
          storageSizeMib?: null | number

          Additional storage added to the cluster, in MiB. If null, no additional storage is added to the cluster, beyond what is provided as a base amount from the 'size' and any previously added additional storage.

          +
          tags?: null | string[]

          An array of tags (as strings) to apply to the database cluster.

          Requires tag:create scope.

          +
          uiConnection?: null | Opensearch_connection

          The connection details for OpenSearch dashboard.

          +
          users?: null | Database_user[]

          The users property

          +
          version?: null | string

          A string representing the version of the database engine in use for the cluster.

          +
          versionEndOfAvailability?: null | string

          A timestamp referring to the date when the particular version will no longer be available for creating new clusters. If null, the version does not have an end of availability timeline.

          +
          versionEndOfLife?: null | string

          A timestamp referring to the date when the particular version will no longer be supported. If null, the version does not have an end of life timeline.

          +
          diff --git a/docs/interfaces/v2_databases_item_users.UsersPostRequestBody.html b/docs/interfaces/v2_databases_item_users.UsersPostRequestBody.html index dceda62c5..f0551bd3c 100644 --- a/docs/interfaces/v2_databases_item_users.UsersPostRequestBody.html +++ b/docs/interfaces/v2_databases_item_users.UsersPostRequestBody.html @@ -8,13 +8,13 @@ role? settings?

          Properties

          accessCert?: null | string

          Access certificate for TLS client authentication. (Kafka only)

          -
          accessKey?: null | string

          Access key for TLS client authentication. (Kafka only)

          -
          additionalData?: Record<string, unknown>

          Gets the additional data for this object that did not belong to the properties.

          +
          accessKey?: null | string

          Access key for TLS client authentication. (Kafka only)

          +
          additionalData?: Record<string, unknown>

          Gets the additional data for this object that did not belong to the properties.

          The additional data for this object.

          mysqlSettings?: null | Mysql_settings

          The mysql_settings property

          -
          name?: null | string

          The name of a database user.

          -
          password?: null | string

          A randomly generated password for the database user.
          Requires database:view_credentials scope.

          -
          readonly?: null | boolean

          (To be deprecated: use settings.mongo_user_settings.role instead for access controls to MongoDB databases). For MongoDB clusters, set to true to create a read-only user.This option is not currently supported for other database engines.

          +
          name?: null | string

          The name of a database user.

          +
          password?: null | string

          A randomly generated password for the database user.
          Requires database:view_credentials scope.

          +
          readonly?: null | boolean

          (To be deprecated: use settings.mongo_user_settings.role instead for access controls to MongoDB databases). For MongoDB clusters, set to true to create a read-only user.This option is not currently supported for other database engines.

          role?: null | Database_user_role

          A string representing the database user's role. The value will be either"primary" or "normal".

          -
          settings?: null | User_settings

          The settings property

          -
          +
          settings?: null | User_settings

          The settings property

          +
          diff --git a/docs/interfaces/v2_nfs_item_actions.ActionsRequestBuilder.html b/docs/interfaces/v2_nfs_item_actions.ActionsRequestBuilder.html index 81762219f..4a44a854c 100644 --- a/docs/interfaces/v2_nfs_item_actions.ActionsRequestBuilder.html +++ b/docs/interfaces/v2_nfs_item_actions.ActionsRequestBuilder.html @@ -1,16 +1,16 @@ ActionsRequestBuilder | @digitalocean/dots - v1.9.0
          @digitalocean/dots - v1.9.0
            Preparing search index...

            Interface ActionsRequestBuilder

            Builds and executes requests for operations under /v2/nfs/{nfs_id}/actions

            -
            interface ActionsRequestBuilder {
                post(
                    body:
                        | Nfs_action_attach
                        | Nfs_action_detach
                        | Nfs_action_resize
                        | Nfs_action_snapshot,
                    requestConfiguration?: RequestConfiguration<object>,
                ): Promise<undefined | Nfs_actions_response>;
                toPostRequestInformation(
                    body:
                        | Nfs_action_attach
                        | Nfs_action_detach
                        | Nfs_action_resize
                        | Nfs_action_snapshot,
                    requestConfiguration?: RequestConfiguration<object>,
                ): RequestInformation;
                withUrl(rawUrl: string): ActionsRequestBuilder;
            }

            Hierarchy

            Index

            Methods

            interface ActionsRequestBuilder {
                post(
                    body:
                        | Nfs_action_attach
                        | Nfs_action_detach
                        | Nfs_action_resize
                        | Nfs_action_snapshot
                        | Nfs_action_switch_performance_tier,
                    requestConfiguration?: RequestConfiguration<object>,
                ): Promise<undefined | Nfs_actions_response>;
                toPostRequestInformation(
                    body:
                        | Nfs_action_attach
                        | Nfs_action_detach
                        | Nfs_action_resize
                        | Nfs_action_snapshot
                        | Nfs_action_switch_performance_tier,
                    requestConfiguration?: RequestConfiguration<object>,
                ): RequestInformation;
                withUrl(rawUrl: string): ActionsRequestBuilder;
            }

            Hierarchy

            Index

            Methods

            post

            • post(
                  body:
                      | Nfs_action_attach
                      | Nfs_action_detach
                      | Nfs_action_resize
                      | Nfs_action_snapshot,
                  requestConfiguration?: RequestConfiguration<object>,
              ): Promise<undefined | Nfs_actions_response>

              To execute an action (such as resize) on a specified NFS share, send a POST request to /v2/nfs/{nfs_id}/actions. In the JSON body to the request, set the type attribute to on of the supported action types:| Action | Details || -------------------------------- | ----------- || resize | Resizes an NFS share. Set the size_gib attribute to a desired value in GiB || snapshot | Takes a snapshot of an NFS share || attach | Attaches an NFS share to a VPC. Set the vpc_id attribute to the desired VPC ID || detach | Detaches an NFS share from a VPC. Set the vpc_id attribute to the desired VPC ID |

              -

              Parameters

              • body: Nfs_action_attach | Nfs_action_detach | Nfs_action_resize | Nfs_action_snapshot

                The request body

                +

            Methods

            post

            • post(
                  body:
                      | Nfs_action_attach
                      | Nfs_action_detach
                      | Nfs_action_resize
                      | Nfs_action_snapshot
                      | Nfs_action_switch_performance_tier,
                  requestConfiguration?: RequestConfiguration<object>,
              ): Promise<undefined | Nfs_actions_response>

              To execute an action (such as resize) on a specified NFS share, send a POST request to /v2/nfs/{nfs_id}/actions. In the JSON body to the request, set the type attribute to on of the supported action types:| Action | Details || -------------------------------- | ----------- || resize | Resizes an NFS share. Set the size_gib attribute to a desired value in GiB || snapshot | Takes a snapshot of an NFS share || attach | Attaches an NFS share to a VPC. Set the vpc_id attribute to the desired VPC ID || detach | Detaches an NFS share from a VPC. Set the vpc_id attribute to the desired VPC ID || switch_performance_tier | Switches the performance tier of an NFS share. Set the performance_tier attribute to the desired tier (e.g., standard, high) |

              +

              Parameters

              • body:
                    | Nfs_action_attach
                    | Nfs_action_detach
                    | Nfs_action_resize
                    | Nfs_action_snapshot
                    | Nfs_action_switch_performance_tier

                The request body

              • OptionalrequestConfiguration: RequestConfiguration<object>

                Configuration for the request such as headers, query parameters, and middleware options.

              Returns Promise<undefined | Nfs_actions_response>

              error when the service returns a 401 status code

              error when the service returns a 404 status code

              error when the service returns a 429 status code

              error when the service returns a 500 status code

              error when the service returns a 4XX or 5XX status code

              -
            • To execute an action (such as resize) on a specified NFS share, send a POST request to /v2/nfs/{nfs_id}/actions. In the JSON body to the request, set the type attribute to on of the supported action types:| Action | Details || -------------------------------- | ----------- || resize | Resizes an NFS share. Set the size_gib attribute to a desired value in GiB || snapshot | Takes a snapshot of an NFS share || attach | Attaches an NFS share to a VPC. Set the vpc_id attribute to the desired VPC ID || detach | Detaches an NFS share from a VPC. Set the vpc_id attribute to the desired VPC ID |

              -

              Parameters

              • body: Nfs_action_attach | Nfs_action_detach | Nfs_action_resize | Nfs_action_snapshot

                The request body

                +
            • To execute an action (such as resize) on a specified NFS share, send a POST request to /v2/nfs/{nfs_id}/actions. In the JSON body to the request, set the type attribute to on of the supported action types:| Action | Details || -------------------------------- | ----------- || resize | Resizes an NFS share. Set the size_gib attribute to a desired value in GiB || snapshot | Takes a snapshot of an NFS share || attach | Attaches an NFS share to a VPC. Set the vpc_id attribute to the desired VPC ID || detach | Detaches an NFS share from a VPC. Set the vpc_id attribute to the desired VPC ID || switch_performance_tier | Switches the performance tier of an NFS share. Set the performance_tier attribute to the desired tier (e.g., standard, high) |

              +

              Parameters

              • body:
                    | Nfs_action_attach
                    | Nfs_action_detach
                    | Nfs_action_resize
                    | Nfs_action_snapshot
                    | Nfs_action_switch_performance_tier

                The request body

              • OptionalrequestConfiguration: RequestConfiguration<object>

                Configuration for the request such as headers, query parameters, and middleware options.

              Returns RequestInformation

            • Parameters

              • rawUrl: string

              Returns ActionsRequestBuilder

            diff --git a/docs/interfaces/v2_vpc_peerings_item.WithVpc_peering_PatchRequestBody.html b/docs/interfaces/v2_vpc_peerings_item.WithVpc_peering_PatchRequestBody.html index 2777e14c9..3f98ad426 100644 --- a/docs/interfaces/v2_vpc_peerings_item.WithVpc_peering_PatchRequestBody.html +++ b/docs/interfaces/v2_vpc_peerings_item.WithVpc_peering_PatchRequestBody.html @@ -3,4 +3,4 @@

            Properties

            additionalData?: Record<string, unknown>

            Gets the additional data for this object that did not belong to the properties.

            The additional data for this object.

            name?: null | string

            The name of the VPC peering. Must be unique within the team and may only contain alphanumeric characters and dashes.

            -
            +
            diff --git a/docs/interfaces/v2_vpcs_item_peerings_item.WithVpc_peering_PatchRequestBody.html b/docs/interfaces/v2_vpcs_item_peerings_item.WithVpc_peering_PatchRequestBody.html index 17dc24627..c38f5c41d 100644 --- a/docs/interfaces/v2_vpcs_item_peerings_item.WithVpc_peering_PatchRequestBody.html +++ b/docs/interfaces/v2_vpcs_item_peerings_item.WithVpc_peering_PatchRequestBody.html @@ -3,4 +3,4 @@

            Properties

            additionalData?: Record<string, unknown>

            Gets the additional data for this object that did not belong to the properties.

            The additional data for this object.

            name?: null | string

            The name of the VPC peering. Must be unique within the team and may only contain alphanumeric characters and dashes.

            -
            +
            diff --git a/docs/types/v2_nfs_item_actions.ActionsPostRequestBody.html b/docs/types/v2_nfs_item_actions.ActionsPostRequestBody.html index b318c6b92..ec28faa04 100644 --- a/docs/types/v2_nfs_item_actions.ActionsPostRequestBody.html +++ b/docs/types/v2_nfs_item_actions.ActionsPostRequestBody.html @@ -1 +1 @@ -ActionsPostRequestBody | @digitalocean/dots - v1.9.0
            @digitalocean/dots - v1.9.0
              Preparing search index...

              Type Alias ActionsPostRequestBody

              ActionsPostRequestBody:
                  | Nfs_action_attach
                  | Nfs_action_detach
                  | Nfs_action_resize
                  | Nfs_action_snapshot
              +ActionsPostRequestBody | @digitalocean/dots - v1.9.0
              @digitalocean/dots - v1.9.0
                Preparing search index...

                Type Alias ActionsPostRequestBody

                ActionsPostRequestBody:
                    | Nfs_action_attach
                    | Nfs_action_detach
                    | Nfs_action_resize
                    | Nfs_action_snapshot
                    | Nfs_action_switch_performance_tier
                diff --git a/docs/variables/v2_nfs.NfsRequestBuilderUriTemplate.html b/docs/variables/v2_nfs.NfsRequestBuilderUriTemplate.html index 2954c6939..86853f401 100644 --- a/docs/variables/v2_nfs.NfsRequestBuilderUriTemplate.html +++ b/docs/variables/v2_nfs.NfsRequestBuilderUriTemplate.html @@ -1,2 +1,2 @@ -NfsRequestBuilderUriTemplate | @digitalocean/dots - v1.9.0
                @digitalocean/dots - v1.9.0
                  Preparing search index...

                  Variable NfsRequestBuilderUriTemplateConst

                  NfsRequestBuilderUriTemplate: "{+baseurl}/v2/nfs?region={region}"

                  Uri template for the request builder.

                  +NfsRequestBuilderUriTemplate | @digitalocean/dots - v1.9.0
                  @digitalocean/dots - v1.9.0
                    Preparing search index...

                    Variable NfsRequestBuilderUriTemplateConst

                    NfsRequestBuilderUriTemplate: "{+baseurl}/v2/nfs{?region*}"

                    Uri template for the request builder.

                    diff --git a/docs/variables/v2_nfs_item.WithNfs_ItemRequestBuilderUriTemplate.html b/docs/variables/v2_nfs_item.WithNfs_ItemRequestBuilderUriTemplate.html index ebf7d0e43..f54ffe40f 100644 --- a/docs/variables/v2_nfs_item.WithNfs_ItemRequestBuilderUriTemplate.html +++ b/docs/variables/v2_nfs_item.WithNfs_ItemRequestBuilderUriTemplate.html @@ -1,2 +1,2 @@ -WithNfs_ItemRequestBuilderUriTemplate | @digitalocean/dots - v1.9.0
                    @digitalocean/dots - v1.9.0
                      Preparing search index...

                      Variable WithNfs_ItemRequestBuilderUriTemplateConst

                      WithNfs_ItemRequestBuilderUriTemplate: "{+baseurl}/v2/nfs/{nfs_id}?region={region}"

                      Uri template for the request builder.

                      +WithNfs_ItemRequestBuilderUriTemplate | @digitalocean/dots - v1.9.0
                      @digitalocean/dots - v1.9.0
                        Preparing search index...

                        Variable WithNfs_ItemRequestBuilderUriTemplateConst

                        WithNfs_ItemRequestBuilderUriTemplate: "{+baseurl}/v2/nfs/{nfs_id}{?region*}"

                        Uri template for the request builder.

                        diff --git a/docs/variables/v2_nfs_item_actions.ActionsRequestBuilderRequestsMetadata.html b/docs/variables/v2_nfs_item_actions.ActionsRequestBuilderRequestsMetadata.html index 192574af7..0a9f636d1 100644 --- a/docs/variables/v2_nfs_item_actions.ActionsRequestBuilderRequestsMetadata.html +++ b/docs/variables/v2_nfs_item_actions.ActionsRequestBuilderRequestsMetadata.html @@ -1,2 +1,2 @@ ActionsRequestBuilderRequestsMetadata | @digitalocean/dots - v1.9.0
                        @digitalocean/dots - v1.9.0
                          Preparing search index...

                          Variable ActionsRequestBuilderRequestsMetadataConst

                          ActionsRequestBuilderRequestsMetadata: RequestsMetadata = ...

                          Metadata for all the requests in the request builder.

                          -
                          +
                          diff --git a/docs/variables/v2_nfs_item_actions.ActionsRequestBuilderUriTemplate.html b/docs/variables/v2_nfs_item_actions.ActionsRequestBuilderUriTemplate.html index 638080d58..1f72b33a3 100644 --- a/docs/variables/v2_nfs_item_actions.ActionsRequestBuilderUriTemplate.html +++ b/docs/variables/v2_nfs_item_actions.ActionsRequestBuilderUriTemplate.html @@ -1,2 +1,2 @@ ActionsRequestBuilderUriTemplate | @digitalocean/dots - v1.9.0
                          @digitalocean/dots - v1.9.0
                            Preparing search index...

                            Variable ActionsRequestBuilderUriTemplateConst

                            ActionsRequestBuilderUriTemplate: "{+baseurl}/v2/nfs/{nfs_id}/actions"

                            Uri template for the request builder.

                            -
                            +
                            diff --git a/docs/variables/v2_nfs_snapshots.SnapshotsRequestBuilderUriTemplate.html b/docs/variables/v2_nfs_snapshots.SnapshotsRequestBuilderUriTemplate.html index b0e9c73fe..5fbeda0fc 100644 --- a/docs/variables/v2_nfs_snapshots.SnapshotsRequestBuilderUriTemplate.html +++ b/docs/variables/v2_nfs_snapshots.SnapshotsRequestBuilderUriTemplate.html @@ -1,2 +1,2 @@ -SnapshotsRequestBuilderUriTemplate | @digitalocean/dots - v1.9.0
                            @digitalocean/dots - v1.9.0
                              Preparing search index...

                              Variable SnapshotsRequestBuilderUriTemplateConst

                              SnapshotsRequestBuilderUriTemplate: "{+baseurl}/v2/nfs/snapshots?region={region}{&share_id*}"

                              Uri template for the request builder.

                              +SnapshotsRequestBuilderUriTemplate | @digitalocean/dots - v1.9.0
                              @digitalocean/dots - v1.9.0
                                Preparing search index...

                                Variable SnapshotsRequestBuilderUriTemplateConst

                                SnapshotsRequestBuilderUriTemplate: "{+baseurl}/v2/nfs/snapshots{?region*,share_id*}"

                                Uri template for the request builder.

                                diff --git a/docs/variables/v2_nfs_snapshots_item.WithNfs_snapshot_ItemRequestBuilderUriTemplate.html b/docs/variables/v2_nfs_snapshots_item.WithNfs_snapshot_ItemRequestBuilderUriTemplate.html index a22479785..3e4c34955 100644 --- a/docs/variables/v2_nfs_snapshots_item.WithNfs_snapshot_ItemRequestBuilderUriTemplate.html +++ b/docs/variables/v2_nfs_snapshots_item.WithNfs_snapshot_ItemRequestBuilderUriTemplate.html @@ -1,2 +1,2 @@ -WithNfs_snapshot_ItemRequestBuilderUriTemplate | @digitalocean/dots - v1.9.0
                                @digitalocean/dots - v1.9.0
                                  Preparing search index...

                                  Variable WithNfs_snapshot_ItemRequestBuilderUriTemplateConst

                                  WithNfs_snapshot_ItemRequestBuilderUriTemplate: "{+baseurl}/v2/nfs/snapshots/{nfs_snapshot_id}?region={region}"

                                  Uri template for the request builder.

                                  +WithNfs_snapshot_ItemRequestBuilderUriTemplate | @digitalocean/dots - v1.9.0
                                  @digitalocean/dots - v1.9.0
                                    Preparing search index...

                                    Variable WithNfs_snapshot_ItemRequestBuilderUriTemplateConst

                                    WithNfs_snapshot_ItemRequestBuilderUriTemplate: "{+baseurl}/v2/nfs/snapshots/{nfs_snapshot_id}{?region*}"

                                    Uri template for the request builder.

                                    diff --git a/src/dots/kiota-lock.json b/src/dots/kiota-lock.json index d0d3a0b09..de9193f1d 100644 --- a/src/dots/kiota-lock.json +++ b/src/dots/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "E17BB02886434CB72623001C7BD838DA631F0AA5DF27269901EBB4C65156EFE01D54B79C1620250EF8E7294B36D05B3A4C549B7F2A0B1E6F90176D8676830D21", + "descriptionHash": "4993B5E198C93C6F729D5392C59BCDAD6375246E5E64CD40B3C6122ECB372A054A2256A02EBF19BED57754E5098AEEB47F6437D264E3D528CA8BD6023A4AC8DF", "descriptionLocation": "../../DigitalOcean-public.v2.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.30.0", diff --git a/src/dots/models/index.ts b/src/dots/models/index.ts index 0d08ae34e..a09e6597c 100644 --- a/src/dots/models/index.ts +++ b/src/dots/models/index.ts @@ -12310,6 +12310,24 @@ export function createNfs_action_snapshot_paramsFromDiscriminatorValue(parseNode export function createNfs_action_snapshotFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { return deserializeIntoNfs_action_snapshot; } +/** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @returns {Nfs_action_switch_performance_tier_params} + */ +// @ts-ignore +export function createNfs_action_switch_performance_tier_paramsFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoNfs_action_switch_performance_tier_params; +} +/** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @returns {Nfs_action_switch_performance_tier} + */ +// @ts-ignore +export function createNfs_action_switch_performance_tierFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoNfs_action_switch_performance_tier; +} /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object @@ -21871,6 +21889,29 @@ export function deserializeIntoNfs_action_snapshot_params(nfs_action_snapshot_pa "name": n => { nfs_action_snapshot_params.name = n.getStringValue(); }, } } +/** + * The deserialization information for the current model + * @param Nfs_action_switch_performance_tier The instance to deserialize into. + * @returns {Record void>} + */ +// @ts-ignore +export function deserializeIntoNfs_action_switch_performance_tier(nfs_action_switch_performance_tier: Partial | undefined = {}) : Record void> { + return { + ...deserializeIntoNfs_action(nfs_action_switch_performance_tier), + "params": n => { nfs_action_switch_performance_tier.params = n.getObjectValue(createNfs_action_switch_performance_tier_paramsFromDiscriminatorValue); }, + } +} +/** + * The deserialization information for the current model + * @param Nfs_action_switch_performance_tier_params The instance to deserialize into. + * @returns {Record void>} + */ +// @ts-ignore +export function deserializeIntoNfs_action_switch_performance_tier_params(nfs_action_switch_performance_tier_params: Partial | undefined = {}) : Record void> { + return { + "performance_tier": n => { nfs_action_switch_performance_tier_params.performanceTier = n.getStringValue(); }, + } +} /** * The deserialization information for the current model * @param Nfs_actions_response The instance to deserialize into. @@ -21940,6 +21981,7 @@ export function deserializeIntoNfs_list_response(nfs_list_response: Partial | undefined = {}) : Record void> { return { "name": n => { nfs_request.name = n.getStringValue(); }, + "performance_tier": n => { nfs_request.performanceTier = n.getStringValue(); }, "region": n => { nfs_request.region = n.getStringValue(); }, "size_gib": n => { nfs_request.sizeGib = n.getNumberValue(); }, "vpc_ids": n => { nfs_request.vpcIds = n.getCollectionOfPrimitiveValues(); }, @@ -26512,6 +26554,18 @@ export interface Nfs_action_snapshot_params extends AdditionalDataHolder, Parsab */ name?: string | null; } +export interface Nfs_action_switch_performance_tier extends Nfs_action, Parsable { + /** + * The params property + */ + params?: Nfs_action_switch_performance_tier_params | null; +} +export interface Nfs_action_switch_performance_tier_params extends AdditionalDataHolder, Parsable { + /** + * The performance tier to which the NFS share will be switched (e.g., standard, high). + */ + performanceTier?: string | null; +} export type Nfs_action_type = (typeof Nfs_action_typeObject)[keyof typeof Nfs_action_typeObject]; /** * Action response of an NFS share. @@ -26576,6 +26630,10 @@ export interface Nfs_request extends AdditionalDataHolder, Parsable { * The human-readable name of the share. */ name?: string | null; + /** + * The performance tier of the share. + */ + performanceTier?: string | null; /** * The DigitalOcean region slug (e.g., nyc2, atl1) where the NFS share resides. */ @@ -36457,6 +36515,30 @@ export function serializeNfs_action_snapshot_params(writer: SerializationWriter, writer.writeStringValue("name", nfs_action_snapshot_params.name); writer.writeAdditionalData(nfs_action_snapshot_params.additionalData); } +/** + * Serializes information the current object + * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. + * @param Nfs_action_switch_performance_tier The instance to serialize from. + * @param writer Serialization writer to use to serialize this model + */ +// @ts-ignore +export function serializeNfs_action_switch_performance_tier(writer: SerializationWriter, nfs_action_switch_performance_tier: Partial | undefined | null = {}, isSerializingDerivedType: boolean = false) : void { + if (!nfs_action_switch_performance_tier || isSerializingDerivedType) { return; } + serializeNfs_action(writer, nfs_action_switch_performance_tier, isSerializingDerivedType) + writer.writeObjectValue("params", nfs_action_switch_performance_tier.params, serializeNfs_action_switch_performance_tier_params); +} +/** + * Serializes information the current object + * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. + * @param Nfs_action_switch_performance_tier_params The instance to serialize from. + * @param writer Serialization writer to use to serialize this model + */ +// @ts-ignore +export function serializeNfs_action_switch_performance_tier_params(writer: SerializationWriter, nfs_action_switch_performance_tier_params: Partial | undefined | null = {}, isSerializingDerivedType: boolean = false) : void { + if (!nfs_action_switch_performance_tier_params || isSerializingDerivedType) { return; } + writer.writeStringValue("performance_tier", nfs_action_switch_performance_tier_params.performanceTier); + writer.writeAdditionalData(nfs_action_switch_performance_tier_params.additionalData); +} /** * Serializes information the current object * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. @@ -36532,6 +36614,7 @@ export function serializeNfs_list_response(writer: SerializationWriter, nfs_list export function serializeNfs_request(writer: SerializationWriter, nfs_request: Partial | undefined | null = {}, isSerializingDerivedType: boolean = false) : void { if (!nfs_request || isSerializingDerivedType) { return; } writer.writeStringValue("name", nfs_request.name); + writer.writeStringValue("performance_tier", nfs_request.performanceTier); writer.writeStringValue("region", nfs_request.region); writer.writeNumberValue("size_gib", nfs_request.sizeGib); writer.writeCollectionOfPrimitiveValues("vpc_ids", nfs_request.vpcIds); diff --git a/src/dots/v2/nfs/index.ts b/src/dots/v2/nfs/index.ts index 58d7a3aad..4a8a4da1c 100644 --- a/src/dots/v2/nfs/index.ts +++ b/src/dots/v2/nfs/index.ts @@ -73,7 +73,7 @@ export interface NfsRequestBuilderGetQueryParameters { /** * Uri template for the request builder. */ -export const NfsRequestBuilderUriTemplate = "{+baseurl}/v2/nfs?region={region}"; +export const NfsRequestBuilderUriTemplate = "{+baseurl}/v2/nfs{?region*}"; /** * Metadata for all the navigation properties in the request builder. */ diff --git a/src/dots/v2/nfs/item/actions/index.ts b/src/dots/v2/nfs/item/actions/index.ts index 649b35310..8f8b12131 100644 --- a/src/dots/v2/nfs/item/actions/index.ts +++ b/src/dots/v2/nfs/item/actions/index.ts @@ -2,17 +2,17 @@ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore -import { createErrorEscapedFromDiscriminatorValue, createNfs_action_attachFromDiscriminatorValue, createNfs_action_detachFromDiscriminatorValue, createNfs_action_resizeFromDiscriminatorValue, createNfs_action_snapshotFromDiscriminatorValue, createNfs_actions_responseFromDiscriminatorValue, deserializeIntoNfs_action_attach, deserializeIntoNfs_action_detach, deserializeIntoNfs_action_resize, deserializeIntoNfs_action_snapshot, serializeNfs_action_attach, serializeNfs_action_detach, serializeNfs_action_resize, serializeNfs_action_snapshot, serializeNfs_actions_response, type ErrorEscaped, type Nfs_action_attach, type Nfs_action_detach, type Nfs_action_resize, type Nfs_action_snapshot, type Nfs_actions_response } from '../../../../models/index.js'; +import { createErrorEscapedFromDiscriminatorValue, createNfs_action_attachFromDiscriminatorValue, createNfs_action_detachFromDiscriminatorValue, createNfs_action_resizeFromDiscriminatorValue, createNfs_action_snapshotFromDiscriminatorValue, createNfs_action_switch_performance_tierFromDiscriminatorValue, createNfs_actions_responseFromDiscriminatorValue, deserializeIntoNfs_action_attach, deserializeIntoNfs_action_detach, deserializeIntoNfs_action_resize, deserializeIntoNfs_action_snapshot, deserializeIntoNfs_action_switch_performance_tier, serializeNfs_action_attach, serializeNfs_action_detach, serializeNfs_action_resize, serializeNfs_action_snapshot, serializeNfs_action_switch_performance_tier, serializeNfs_actions_response, type ErrorEscaped, type Nfs_action_attach, type Nfs_action_detach, type Nfs_action_resize, type Nfs_action_snapshot, type Nfs_action_switch_performance_tier, type Nfs_actions_response } from '../../../../models/index.js'; // @ts-ignore import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export type ActionsPostRequestBody = Nfs_action_attach | Nfs_action_detach | Nfs_action_resize | Nfs_action_snapshot; +export type ActionsPostRequestBody = Nfs_action_attach | Nfs_action_detach | Nfs_action_resize | Nfs_action_snapshot | Nfs_action_switch_performance_tier; /** * Builds and executes requests for operations under /v2/nfs/{nfs_id}/actions */ export interface ActionsRequestBuilder extends BaseRequestBuilder { /** - * To execute an action (such as resize) on a specified NFS share, send a POST request to `/v2/nfs/{nfs_id}/actions`. In the JSON body to the request, set the `type` attribute to on of the supported action types:| Action | Details || -------------------------------- | ----------- || `resize` | Resizes an NFS share. Set the size_gib attribute to a desired value in GiB || `snapshot` | Takes a snapshot of an NFS share || `attach` | Attaches an NFS share to a VPC. Set the vpc_id attribute to the desired VPC ID || `detach` | Detaches an NFS share from a VPC. Set the vpc_id attribute to the desired VPC ID | + * To execute an action (such as resize) on a specified NFS share, send a POST request to `/v2/nfs/{nfs_id}/actions`. In the JSON body to the request, set the `type` attribute to on of the supported action types:| Action | Details || -------------------------------- | ----------- || `resize` | Resizes an NFS share. Set the size_gib attribute to a desired value in GiB || `snapshot` | Takes a snapshot of an NFS share || `attach` | Attaches an NFS share to a VPC. Set the vpc_id attribute to the desired VPC ID || `detach` | Detaches an NFS share from a VPC. Set the vpc_id attribute to the desired VPC ID || `switch_performance_tier` | Switches the performance tier of an NFS share. Set the performance_tier attribute to the desired tier (e.g., standard, high) | * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} @@ -22,19 +22,19 @@ export interface ActionsRequestBuilder extends BaseRequestBuilder | undefined) : Promise; + post(body: Nfs_action_attach | Nfs_action_detach | Nfs_action_resize | Nfs_action_snapshot | Nfs_action_switch_performance_tier, requestConfiguration?: RequestConfiguration | undefined) : Promise; /** - * To execute an action (such as resize) on a specified NFS share, send a POST request to `/v2/nfs/{nfs_id}/actions`. In the JSON body to the request, set the `type` attribute to on of the supported action types:| Action | Details || -------------------------------- | ----------- || `resize` | Resizes an NFS share. Set the size_gib attribute to a desired value in GiB || `snapshot` | Takes a snapshot of an NFS share || `attach` | Attaches an NFS share to a VPC. Set the vpc_id attribute to the desired VPC ID || `detach` | Detaches an NFS share from a VPC. Set the vpc_id attribute to the desired VPC ID | + * To execute an action (such as resize) on a specified NFS share, send a POST request to `/v2/nfs/{nfs_id}/actions`. In the JSON body to the request, set the `type` attribute to on of the supported action types:| Action | Details || -------------------------------- | ----------- || `resize` | Resizes an NFS share. Set the size_gib attribute to a desired value in GiB || `snapshot` | Takes a snapshot of an NFS share || `attach` | Attaches an NFS share to a VPC. Set the vpc_id attribute to the desired VPC ID || `detach` | Detaches an NFS share from a VPC. Set the vpc_id attribute to the desired VPC ID || `switch_performance_tier` | Switches the performance tier of an NFS share. Set the performance_tier attribute to the desired tier (e.g., standard, high) | * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ - toPostRequestInformation(body: Nfs_action_attach | Nfs_action_detach | Nfs_action_resize | Nfs_action_snapshot, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; + toPostRequestInformation(body: Nfs_action_attach | Nfs_action_detach | Nfs_action_resize | Nfs_action_snapshot | Nfs_action_switch_performance_tier, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; } /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object - * @returns {Nfs_action_attach | Nfs_action_detach | Nfs_action_resize | Nfs_action_snapshot} + * @returns {Nfs_action_attach | Nfs_action_detach | Nfs_action_resize | Nfs_action_snapshot | Nfs_action_switch_performance_tier} */ // @ts-ignore export function createActionsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { @@ -46,12 +46,13 @@ export function createActionsPostRequestBodyFromDiscriminatorValue(parseNode: Pa * @returns {Record void>} */ // @ts-ignore -export function deserializeIntoActionsPostRequestBody(actionsPostRequestBody: Partial | undefined = {}) : Record void> { +export function deserializeIntoActionsPostRequestBody(actionsPostRequestBody: Partial | undefined = {}) : Record void> { return { ...deserializeIntoNfs_action_attach(actionsPostRequestBody as Nfs_action_attach), ...deserializeIntoNfs_action_detach(actionsPostRequestBody as Nfs_action_detach), ...deserializeIntoNfs_action_resize(actionsPostRequestBody as Nfs_action_resize), ...deserializeIntoNfs_action_snapshot(actionsPostRequestBody as Nfs_action_snapshot), + ...deserializeIntoNfs_action_switch_performance_tier(actionsPostRequestBody as Nfs_action_switch_performance_tier), } } /** @@ -61,11 +62,12 @@ export function deserializeIntoActionsPostRequestBody(actionsPostRequestBody: Pa * @param writer Serialization writer to use to serialize this model */ // @ts-ignore -export function serializeActionsPostRequestBody(writer: SerializationWriter, actionsPostRequestBody: Partial | undefined | null = {}, isSerializingDerivedType: boolean = false) : void { +export function serializeActionsPostRequestBody(writer: SerializationWriter, actionsPostRequestBody: Partial | undefined | null = {}, isSerializingDerivedType: boolean = false) : void { serializeNfs_action_attach(writer, actionsPostRequestBody as Nfs_action_attach); serializeNfs_action_detach(writer, actionsPostRequestBody as Nfs_action_detach); serializeNfs_action_resize(writer, actionsPostRequestBody as Nfs_action_resize); serializeNfs_action_snapshot(writer, actionsPostRequestBody as Nfs_action_snapshot); + serializeNfs_action_switch_performance_tier(writer, actionsPostRequestBody as Nfs_action_switch_performance_tier); } /** * Uri template for the request builder. diff --git a/src/dots/v2/nfs/item/index.ts b/src/dots/v2/nfs/item/index.ts index 38228651e..c1a325668 100644 --- a/src/dots/v2/nfs/item/index.ts +++ b/src/dots/v2/nfs/item/index.ts @@ -71,7 +71,7 @@ export interface WithNfs_ItemRequestBuilderGetQueryParameters { /** * Uri template for the request builder. */ -export const WithNfs_ItemRequestBuilderUriTemplate = "{+baseurl}/v2/nfs/{nfs_id}?region={region}"; +export const WithNfs_ItemRequestBuilderUriTemplate = "{+baseurl}/v2/nfs/{nfs_id}{?region*}"; /** * Metadata for all the navigation properties in the request builder. */ diff --git a/src/dots/v2/nfs/snapshots/index.ts b/src/dots/v2/nfs/snapshots/index.ts index dc3611666..704f740a8 100644 --- a/src/dots/v2/nfs/snapshots/index.ts +++ b/src/dots/v2/nfs/snapshots/index.ts @@ -52,7 +52,7 @@ export interface SnapshotsRequestBuilderGetQueryParameters { /** * Uri template for the request builder. */ -export const SnapshotsRequestBuilderUriTemplate = "{+baseurl}/v2/nfs/snapshots?region={region}{&share_id*}"; +export const SnapshotsRequestBuilderUriTemplate = "{+baseurl}/v2/nfs/snapshots{?region*,share_id*}"; /** * Mapper for query parameters from symbol name to serialization name represented as a constant. */ diff --git a/src/dots/v2/nfs/snapshots/item/index.ts b/src/dots/v2/nfs/snapshots/item/index.ts index 8ab6568a2..48ecf999e 100644 --- a/src/dots/v2/nfs/snapshots/item/index.ts +++ b/src/dots/v2/nfs/snapshots/item/index.ts @@ -65,7 +65,7 @@ export interface WithNfs_snapshot_ItemRequestBuilderGetQueryParameters { /** * Uri template for the request builder. */ -export const WithNfs_snapshot_ItemRequestBuilderUriTemplate = "{+baseurl}/v2/nfs/snapshots/{nfs_snapshot_id}?region={region}"; +export const WithNfs_snapshot_ItemRequestBuilderUriTemplate = "{+baseurl}/v2/nfs/snapshots/{nfs_snapshot_id}{?region*}"; /** * Metadata for all the requests in the request builder. */