{-# LANGUAGE DataKinds #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE ImportQualifiedPost #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-duplicate-exports #-} {-# OPTIONS_GHC -fno-warn-name-shadowing #-} {-# OPTIONS_GHC -fno-warn-unused-binds #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- | -- Module : Gogol.MachineLearning.Ml.Projects.Models.Versions.List -- Copyright : (c) 2015-2025 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Toni Cebrián -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Gets basic information about all the versions of a model. If you expect that a model has many versions, or if you need to handle only a limited number of results at a time, you can request that the list be retrieved in batches (called pages). If there are no versions that match the request parameters, the list request returns an empty response body: {}. -- -- /See:/ for @ml.projects.models.versions.list@. module Gogol.MachineLearning.Ml.Projects.Models.Versions.List ( -- * Resource MlProjectsModelsVersionsListResource, -- ** Constructing a Request MlProjectsModelsVersionsList (..), newMlProjectsModelsVersionsList, ) where import Gogol.MachineLearning.Types import Gogol.Prelude qualified as Core -- | A resource alias for @ml.projects.models.versions.list@ method which the -- 'MlProjectsModelsVersionsList' request conforms to. type MlProjectsModelsVersionsListResource = "v1" Core.:> Core.Capture "parent" Core.Text Core.:> "versions" Core.:> Core.QueryParam "$.xgafv" Xgafv Core.:> Core.QueryParam "access_token" Core.Text Core.:> Core.QueryParam "callback" Core.Text Core.:> Core.QueryParam "filter" Core.Text Core.:> Core.QueryParam "pageSize" Core.Int32 Core.:> Core.QueryParam "pageToken" Core.Text Core.:> Core.QueryParam "uploadType" Core.Text Core.:> Core.QueryParam "upload_protocol" Core.Text Core.:> Core.QueryParam "alt" Core.AltJSON Core.:> Core.Get '[Core.JSON] GoogleCloudMlV1__ListVersionsResponse -- | Gets basic information about all the versions of a model. If you expect that a model has many versions, or if you need to handle only a limited number of results at a time, you can request that the list be retrieved in batches (called pages). If there are no versions that match the request parameters, the list request returns an empty response body: {}. -- -- /See:/ 'newMlProjectsModelsVersionsList' smart constructor. data MlProjectsModelsVersionsList = MlProjectsModelsVersionsList { -- | V1 error format. xgafv :: (Core.Maybe Xgafv), -- | OAuth access token. accessToken :: (Core.Maybe Core.Text), -- | JSONP callback :: (Core.Maybe Core.Text), -- | Optional. Specifies the subset of versions to retrieve. filter :: (Core.Maybe Core.Text), -- | Optional. The number of versions to retrieve per \"page\" of results. If there are more remaining results than this number, the response message will contain a valid value in the @next_page_token@ field. The default value is 20, and the maximum page size is 100. pageSize :: (Core.Maybe Core.Int32), -- | Optional. A page token to request the next page of results. You get the token from the @next_page_token@ field of the response from the previous call. pageToken :: (Core.Maybe Core.Text), -- | Required. The name of the model for which to list the version. parent :: Core.Text, -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\"). uploadType :: (Core.Maybe Core.Text), -- | Upload protocol for media (e.g. \"raw\", \"multipart\"). uploadProtocol :: (Core.Maybe Core.Text) } deriving (Core.Eq, Core.Show, Core.Generic) -- | Creates a value of 'MlProjectsModelsVersionsList' with the minimum fields required to make a request. newMlProjectsModelsVersionsList :: -- | Required. The name of the model for which to list the version. See 'parent'. Core.Text -> MlProjectsModelsVersionsList newMlProjectsModelsVersionsList parent = MlProjectsModelsVersionsList { xgafv = Core.Nothing, accessToken = Core.Nothing, callback = Core.Nothing, filter = Core.Nothing, pageSize = Core.Nothing, pageToken = Core.Nothing, parent = parent, uploadType = Core.Nothing, uploadProtocol = Core.Nothing } instance Core.GoogleRequest MlProjectsModelsVersionsList where type Rs MlProjectsModelsVersionsList = GoogleCloudMlV1__ListVersionsResponse type Scopes MlProjectsModelsVersionsList = '[CloudPlatform'FullControl, CloudPlatform'ReadOnly] requestClient MlProjectsModelsVersionsList {..} = go parent xgafv accessToken callback filter pageSize pageToken uploadType uploadProtocol (Core.Just Core.AltJSON) machineLearningService where go = Core.buildClient (Core.Proxy :: Core.Proxy MlProjectsModelsVersionsListResource) Core.mempty