/// <summary>
 /// Lists repositories.
 /// </summary>
 /// <param name="parent">
 /// Required. The name of the parent resource whose repositories will be listed.
 /// </param>
 /// <param name="pageToken">
 /// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
 /// page.
 /// </param>
 /// <param name="pageSize">
 /// The size of page to request. The response will not be larger than this, but may be smaller. A value of
 /// <c>null</c> or <c>0</c> uses a server-defined page size.
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A pageable asynchronous sequence of <see cref="Repository"/> resources.</returns>
 public virtual gax::PagedAsyncEnumerable <ListRepositoriesResponse, Repository> ListRepositoriesAsync(gagr::LocationName parent, string pageToken = null, int?pageSize = null, gaxgrpc::CallSettings callSettings = null) =>
 ListRepositoriesAsync(new ListRepositoriesRequest
 {
     ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)),
     PageToken            = pageToken ?? "",
     PageSize             = pageSize ?? 0,
 }, callSettings);
Ejemplo n.º 2
0
 /// <summary>
 /// Returns the list of all answer records in the specified project in reverse
 /// chronological order.
 /// </summary>
 /// <param name="parent">
 /// Required. The project to list all answer records for in reverse
 /// chronological order. Format: `projects/{Project ID}/locations/{Location
 /// ID&amp;gt;`.
 /// </param>
 /// <param name="pageToken">
 /// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
 /// page.
 /// </param>
 /// <param name="pageSize">
 /// The size of page to request. The response will not be larger than this, but may be smaller. A value of
 /// <c>null</c> or <c>0</c> uses a server-defined page size.
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A pageable sequence of <see cref="AnswerRecord"/> resources.</returns>
 public virtual gax::PagedEnumerable <ListAnswerRecordsResponse, AnswerRecord> ListAnswerRecords(gagr::LocationName parent, string pageToken = null, int?pageSize = null, gaxgrpc::CallSettings callSettings = null) =>
 ListAnswerRecords(new ListAnswerRecordsRequest
 {
     ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)),
     PageToken            = pageToken ?? "",
     PageSize             = pageSize ?? 0,
 }, callSettings);
 /// <summary>
 /// Batch migrates resources from ml.googleapis.com, automl.googleapis.com,
 /// and datalabeling.googleapis.com to Vertex AI.
 /// </summary>
 /// <param name="parent">
 /// Required. The location of the migrated resource will live in.
 /// Format: `projects/{project}/locations/{location}`
 /// </param>
 /// <param name="migrateResourceRequests">
 /// Required. The request messages specifying the resources to migrate.
 /// They must be in the same location as the destination.
 /// Up to 50 resources can be migrated in one batch.
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual stt::Task <lro::Operation <BatchMigrateResourcesResponse, BatchMigrateResourcesOperationMetadata> > BatchMigrateResourcesAsync(gagr::LocationName parent, scg::IEnumerable <MigrateResourceRequest> migrateResourceRequests, gaxgrpc::CallSettings callSettings = null) =>
 BatchMigrateResourcesAsync(new BatchMigrateResourcesRequest
 {
     ParentAsLocationName    = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)),
     MigrateResourceRequests =
     {
         gax::GaxPreconditions.CheckNotNull(migrateResourceRequests, nameof(migrateResourceRequests)),
     },
 }, callSettings);
 /// <summary>
 /// Batch migrates resources from ml.googleapis.com, automl.googleapis.com,
 /// and datalabeling.googleapis.com to Vertex AI.
 /// </summary>
 /// <param name="parent">
 /// Required. The location of the migrated resource will live in.
 /// Format: `projects/{project}/locations/{location}`
 /// </param>
 /// <param name="migrateResourceRequests">
 /// Required. The request messages specifying the resources to migrate.
 /// They must be in the same location as the destination.
 /// Up to 50 resources can be migrated in one batch.
 /// </param>
 /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual stt::Task <lro::Operation <BatchMigrateResourcesResponse, BatchMigrateResourcesOperationMetadata> > BatchMigrateResourcesAsync(gagr::LocationName parent, scg::IEnumerable <MigrateResourceRequest> migrateResourceRequests, st::CancellationToken cancellationToken) =>
 BatchMigrateResourcesAsync(parent, migrateResourceRequests, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
 /// <summary>
 /// Searches all of the resources in automl.googleapis.com,
 /// datalabeling.googleapis.com and ml.googleapis.com that can be migrated to
 /// Vertex AI's given location.
 /// </summary>
 /// <param name="parent">
 /// Required. The location that the migratable resources should be searched from.
 /// It's the Vertex AI location that the resources can be migrated to, not
 /// the resources' original location.
 /// Format:
 /// `projects/{project}/locations/{location}`
 /// </param>
 /// <param name="pageToken">
 /// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
 /// page.
 /// </param>
 /// <param name="pageSize">
 /// The size of page to request. The response will not be larger than this, but may be smaller. A value of
 /// <c>null</c> or <c>0</c> uses a server-defined page size.
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A pageable asynchronous sequence of <see cref="MigratableResource"/> resources.</returns>
 public virtual gax::PagedAsyncEnumerable <SearchMigratableResourcesResponse, MigratableResource> SearchMigratableResourcesAsync(gagr::LocationName parent, string pageToken = null, int?pageSize = null, gaxgrpc::CallSettings callSettings = null) =>
 SearchMigratableResourcesAsync(new SearchMigratableResourcesRequest
 {
     ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)),
     PageToken            = pageToken ?? "",
     PageSize             = pageSize ?? 0,
 }, callSettings);