aiplatformpb

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatasetServiceAnnotationSpecTestSuiteConfig added in v0.17.0

type DatasetServiceAnnotationSpecTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// CreateResource should create a AnnotationSpec and return it.
	// If the field is not set, some tests will be skipped.
	//
	// This method is generated because service does not expose a Create
	// method (or it does not comply with AIP).
	CreateResource func(ctx context.Context, parent string) (*AnnotationSpec, error)
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type DatasetServiceAnnotationTestSuiteConfig added in v0.17.0

type DatasetServiceAnnotationTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// CreateResource should create a Annotation and return it.
	// If the field is not set, some tests will be skipped.
	//
	// This method is generated because service does not expose a Create
	// method (or it does not comply with AIP).
	CreateResource func(ctx context.Context, parent string) (*Annotation, error)
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type DatasetServiceDataItemTestSuiteConfig added in v0.17.0

type DatasetServiceDataItemTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// CreateResource should create a DataItem and return it.
	// If the field is not set, some tests will be skipped.
	//
	// This method is generated because service does not expose a Create
	// method (or it does not comply with AIP).
	CreateResource func(ctx context.Context, parent string) (*DataItem, error)
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type DatasetServiceDatasetTestSuiteConfig added in v0.17.0

type DatasetServiceDatasetTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *Dataset
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *Dataset
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type DatasetServiceDatasetVersionTestSuiteConfig added in v0.17.0

type DatasetServiceDatasetVersionTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *DatasetVersion
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type DatasetServiceSavedQueryTestSuiteConfig added in v0.17.0

type DatasetServiceSavedQueryTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// CreateResource should create a SavedQuery and return it.
	// If the field is not set, some tests will be skipped.
	//
	// This method is generated because service does not expose a Create
	// method (or it does not comply with AIP).
	CreateResource func(ctx context.Context, parent string) (*SavedQuery, error)
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type DatasetServiceTestSuite

type DatasetServiceTestSuite struct {
	T *testing.T
	// Server to test.
	Server DatasetServiceServer
}

func (DatasetServiceTestSuite) TestAnnotation

func (DatasetServiceTestSuite) TestAnnotationSpec

func (DatasetServiceTestSuite) TestDataItem

func (DatasetServiceTestSuite) TestDataset

func (DatasetServiceTestSuite) TestDatasetVersion added in v0.17.0

func (DatasetServiceTestSuite) TestSavedQuery

type DeploymentResourcePoolServiceDeploymentResourcePoolTestSuiteConfig added in v0.17.0

type DeploymentResourcePoolServiceDeploymentResourcePoolTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *DeploymentResourcePool
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type DeploymentResourcePoolServiceTestSuite added in v0.17.0

type DeploymentResourcePoolServiceTestSuite struct {
	T *testing.T
	// Server to test.
	Server DeploymentResourcePoolServiceServer
}

func (DeploymentResourcePoolServiceTestSuite) TestDeploymentResourcePool added in v0.17.0

type EndpointServiceEndpointTestSuiteConfig added in v0.17.0

type EndpointServiceEndpointTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *Endpoint
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *Endpoint
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type EndpointServiceTestSuite

type EndpointServiceTestSuite struct {
	T *testing.T
	// Server to test.
	Server EndpointServiceServer
}

func (EndpointServiceTestSuite) TestEndpoint

type FeatureOnlineStoreAdminServiceFeatureOnlineStoreTestSuiteConfig added in v0.17.0

type FeatureOnlineStoreAdminServiceFeatureOnlineStoreTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *FeatureOnlineStore
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *FeatureOnlineStore
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type FeatureOnlineStoreAdminServiceFeatureViewSyncTestSuiteConfig added in v0.17.0

type FeatureOnlineStoreAdminServiceFeatureViewSyncTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// CreateResource should create a FeatureViewSync and return it.
	// If the field is not set, some tests will be skipped.
	//
	// This method is generated because service does not expose a Create
	// method (or it does not comply with AIP).
	CreateResource func(ctx context.Context, parent string) (*FeatureViewSync, error)
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type FeatureOnlineStoreAdminServiceFeatureViewTestSuiteConfig added in v0.17.0

type FeatureOnlineStoreAdminServiceFeatureViewTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *FeatureView
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *FeatureView
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type FeatureOnlineStoreAdminServiceTestSuite added in v0.17.0

type FeatureOnlineStoreAdminServiceTestSuite struct {
	T *testing.T
	// Server to test.
	Server FeatureOnlineStoreAdminServiceServer
}

func (FeatureOnlineStoreAdminServiceTestSuite) TestFeatureOnlineStore added in v0.17.0

func (FeatureOnlineStoreAdminServiceTestSuite) TestFeatureView added in v0.17.0

func (FeatureOnlineStoreAdminServiceTestSuite) TestFeatureViewSync added in v0.17.0

type FeatureRegistryServiceFeatureGroupTestSuiteConfig added in v0.17.0

type FeatureRegistryServiceFeatureGroupTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *FeatureGroup
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *FeatureGroup
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type FeatureRegistryServiceFeatureTestSuiteConfig added in v0.17.0

type FeatureRegistryServiceFeatureTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *Feature
	// IDGenerator should return a valid and unique ID to use in the Create call.
	// If non-nil, this function will be called to set the ID on all Create calls.
	// If the ID field is required, tests will fail if this is nil.
	IDGenerator func() string
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *Feature
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type FeatureRegistryServiceTestSuite added in v0.17.0

type FeatureRegistryServiceTestSuite struct {
	T *testing.T
	// Server to test.
	Server FeatureRegistryServiceServer
}

func (FeatureRegistryServiceTestSuite) TestFeature added in v0.17.0

func (FeatureRegistryServiceTestSuite) TestFeatureGroup added in v0.17.0

type FeaturestoreServiceEntityTypeTestSuiteConfig added in v0.17.0

type FeaturestoreServiceEntityTypeTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *EntityType
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *EntityType
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type FeaturestoreServiceFeatureTestSuiteConfig added in v0.17.0

type FeaturestoreServiceFeatureTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *Feature
	// IDGenerator should return a valid and unique ID to use in the Create call.
	// If non-nil, this function will be called to set the ID on all Create calls.
	// If the ID field is required, tests will fail if this is nil.
	IDGenerator func() string
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *Feature
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type FeaturestoreServiceFeaturestoreTestSuiteConfig added in v0.17.0

type FeaturestoreServiceFeaturestoreTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *Featurestore
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *Featurestore
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type FeaturestoreServiceTestSuite

type FeaturestoreServiceTestSuite struct {
	T *testing.T
	// Server to test.
	Server FeaturestoreServiceServer
}

func (FeaturestoreServiceTestSuite) TestEntityType

func (FeaturestoreServiceTestSuite) TestFeature

func (FeaturestoreServiceTestSuite) TestFeaturestore

type IndexEndpointServiceIndexEndpointTestSuiteConfig added in v0.17.0

type IndexEndpointServiceIndexEndpointTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *IndexEndpoint
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *IndexEndpoint
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type IndexEndpointServiceTestSuite

type IndexEndpointServiceTestSuite struct {
	T *testing.T
	// Server to test.
	Server IndexEndpointServiceServer
}

func (IndexEndpointServiceTestSuite) TestIndexEndpoint

type IndexServiceIndexTestSuiteConfig added in v0.17.0

type IndexServiceIndexTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *Index
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *Index
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type IndexServiceTestSuite

type IndexServiceTestSuite struct {
	T *testing.T
	// Server to test.
	Server IndexServiceServer
}

func (IndexServiceTestSuite) TestIndex

type JobServiceBatchPredictionJobTestSuiteConfig added in v0.17.0

type JobServiceBatchPredictionJobTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *BatchPredictionJob
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type JobServiceCustomJobTestSuiteConfig added in v0.17.0

type JobServiceCustomJobTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *CustomJob
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type JobServiceDataLabelingJobTestSuiteConfig added in v0.17.0

type JobServiceDataLabelingJobTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *DataLabelingJob
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type JobServiceHyperparameterTuningJobTestSuiteConfig added in v0.17.0

type JobServiceHyperparameterTuningJobTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *HyperparameterTuningJob
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type JobServiceModelDeploymentMonitoringJobTestSuiteConfig added in v0.17.0

type JobServiceModelDeploymentMonitoringJobTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *ModelDeploymentMonitoringJob
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *ModelDeploymentMonitoringJob
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type JobServiceNasJobTestSuiteConfig added in v0.17.0

type JobServiceNasJobTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *NasJob
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type JobServiceNasTrialDetailTestSuiteConfig added in v0.17.0

type JobServiceNasTrialDetailTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// CreateResource should create a NasTrialDetail and return it.
	// If the field is not set, some tests will be skipped.
	//
	// This method is generated because service does not expose a Create
	// method (or it does not comply with AIP).
	CreateResource func(ctx context.Context, parent string) (*NasTrialDetail, error)
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type JobServiceTestSuite

type JobServiceTestSuite struct {
	T *testing.T
	// Server to test.
	Server JobServiceServer
}

func (JobServiceTestSuite) TestBatchPredictionJob

func (fx JobServiceTestSuite) TestBatchPredictionJob(ctx context.Context, options JobServiceBatchPredictionJobTestSuiteConfig)

func (JobServiceTestSuite) TestCustomJob

func (JobServiceTestSuite) TestDataLabelingJob

func (fx JobServiceTestSuite) TestDataLabelingJob(ctx context.Context, options JobServiceDataLabelingJobTestSuiteConfig)

func (JobServiceTestSuite) TestHyperparameterTuningJob

func (fx JobServiceTestSuite) TestHyperparameterTuningJob(ctx context.Context, options JobServiceHyperparameterTuningJobTestSuiteConfig)

func (JobServiceTestSuite) TestModelDeploymentMonitoringJob

func (fx JobServiceTestSuite) TestModelDeploymentMonitoringJob(ctx context.Context, options JobServiceModelDeploymentMonitoringJobTestSuiteConfig)

func (JobServiceTestSuite) TestNasJob

func (JobServiceTestSuite) TestNasTrialDetail

func (fx JobServiceTestSuite) TestNasTrialDetail(ctx context.Context, options JobServiceNasTrialDetailTestSuiteConfig)

type MetadataServiceArtifactTestSuiteConfig added in v0.17.0

type MetadataServiceArtifactTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *Artifact
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *Artifact
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type MetadataServiceContextTestSuiteConfig added in v0.17.0

type MetadataServiceContextTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *Context
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *Context
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type MetadataServiceExecutionTestSuiteConfig added in v0.17.0

type MetadataServiceExecutionTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *Execution
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *Execution
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type MetadataServiceMetadataSchemaTestSuiteConfig added in v0.17.0

type MetadataServiceMetadataSchemaTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *MetadataSchema
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type MetadataServiceMetadataStoreTestSuiteConfig added in v0.17.0

type MetadataServiceMetadataStoreTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *MetadataStore
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type MetadataServiceTestSuite

type MetadataServiceTestSuite struct {
	T *testing.T
	// Server to test.
	Server MetadataServiceServer
}

func (MetadataServiceTestSuite) TestArtifact

func (MetadataServiceTestSuite) TestContext

func (MetadataServiceTestSuite) TestExecution

func (MetadataServiceTestSuite) TestMetadataSchema

func (MetadataServiceTestSuite) TestMetadataStore

type ModelGardenServicePublisherModelTestSuiteConfig added in v0.17.0

type ModelGardenServicePublisherModelTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// CreateResource should create a PublisherModel and return it.
	// If the field is not set, some tests will be skipped.
	//
	// This method is generated because service does not expose a Create
	// method (or it does not comply with AIP).
	CreateResource func(ctx context.Context, parent string) (*PublisherModel, error)
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type ModelGardenServiceTestSuite

type ModelGardenServiceTestSuite struct {
	T *testing.T
	// Server to test.
	Server ModelGardenServiceServer
}

func (ModelGardenServiceTestSuite) TestPublisherModel

type ModelServiceModelEvaluationSliceTestSuiteConfig added in v0.17.0

type ModelServiceModelEvaluationSliceTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// CreateResource should create a ModelEvaluationSlice and return it.
	// If the field is not set, some tests will be skipped.
	//
	// This method is generated because service does not expose a Create
	// method (or it does not comply with AIP).
	CreateResource func(ctx context.Context, parent string) (*ModelEvaluationSlice, error)
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type ModelServiceModelEvaluationTestSuiteConfig added in v0.17.0

type ModelServiceModelEvaluationTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// CreateResource should create a ModelEvaluation and return it.
	// If the field is not set, some tests will be skipped.
	//
	// This method is generated because service does not expose a Create
	// method (or it does not comply with AIP).
	CreateResource func(ctx context.Context, parent string) (*ModelEvaluation, error)
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type ModelServiceModelTestSuiteConfig added in v0.17.0

type ModelServiceModelTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// CreateResource should create a Model and return it.
	// If the field is not set, some tests will be skipped.
	//
	// This method is generated because service does not expose a Create
	// method (or it does not comply with AIP).
	CreateResource func(ctx context.Context, parent string) (*Model, error)
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *Model
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type ModelServiceTestSuite

type ModelServiceTestSuite struct {
	T *testing.T
	// Server to test.
	Server ModelServiceServer
}

func (ModelServiceTestSuite) TestModel

func (ModelServiceTestSuite) TestModelEvaluation

func (ModelServiceTestSuite) TestModelEvaluationSlice

type PipelineServicePipelineJobTestSuiteConfig added in v0.17.0

type PipelineServicePipelineJobTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *PipelineJob
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type PipelineServiceTestSuite

type PipelineServiceTestSuite struct {
	T *testing.T
	// Server to test.
	Server PipelineServiceServer
}

func (PipelineServiceTestSuite) TestPipelineJob

func (PipelineServiceTestSuite) TestTrainingPipeline

type PipelineServiceTrainingPipelineTestSuiteConfig added in v0.17.0

type PipelineServiceTrainingPipelineTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *TrainingPipeline
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type ScheduleServiceScheduleTestSuiteConfig added in v0.17.0

type ScheduleServiceScheduleTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *Schedule
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *Schedule
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type ScheduleServiceTestSuite

type ScheduleServiceTestSuite struct {
	T *testing.T
	// Server to test.
	Server ScheduleServiceServer
}

func (ScheduleServiceTestSuite) TestSchedule

type SpecialistPoolServiceSpecialistPoolTestSuiteConfig added in v0.17.0

type SpecialistPoolServiceSpecialistPoolTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *SpecialistPool
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *SpecialistPool
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type SpecialistPoolServiceTestSuite

type SpecialistPoolServiceTestSuite struct {
	T *testing.T
	// Server to test.
	Server SpecialistPoolServiceServer
}

func (SpecialistPoolServiceTestSuite) TestSpecialistPool

type TensorboardServiceTensorboardExperimentTestSuiteConfig added in v0.17.0

type TensorboardServiceTensorboardExperimentTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *TensorboardExperiment
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *TensorboardExperiment
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type TensorboardServiceTensorboardRunTestSuiteConfig added in v0.17.0

type TensorboardServiceTensorboardRunTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *TensorboardRun
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *TensorboardRun
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type TensorboardServiceTensorboardTestSuiteConfig added in v0.17.0

type TensorboardServiceTensorboardTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *Tensorboard
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *Tensorboard
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type TensorboardServiceTensorboardTimeSeriesTestSuiteConfig added in v0.17.0

type TensorboardServiceTensorboardTimeSeriesTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *TensorboardTimeSeries
	// Update should return a resource which is valid to update, i.e.
	// all required fields set.
	Update func(parent string) *TensorboardTimeSeries
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type TensorboardServiceTestSuite

type TensorboardServiceTestSuite struct {
	T *testing.T
	// Server to test.
	Server TensorboardServiceServer
}

func (TensorboardServiceTestSuite) TestTensorboard

func (TensorboardServiceTestSuite) TestTensorboardExperiment

func (TensorboardServiceTestSuite) TestTensorboardRun

func (TensorboardServiceTestSuite) TestTensorboardTimeSeries

type VizierServiceStudyTestSuiteConfig added in v0.17.0

type VizierServiceStudyTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *Study
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

type VizierServiceTestSuite

type VizierServiceTestSuite struct {
	T *testing.T
	// Server to test.
	Server VizierServiceServer
}

func (VizierServiceTestSuite) TestStudy

func (VizierServiceTestSuite) TestTrial

type VizierServiceTrialTestSuiteConfig added in v0.17.0

type VizierServiceTrialTestSuiteConfig struct {

	// The parents to use when creating resources.
	// At least one parent needs to be set. Depending on methods available on the resource,
	// more may be required. If insufficient number of parents are
	// provided the test will fail.
	Parents []string
	// Create should return a resource which is valid to create, i.e.
	// all required fields set.
	Create func(parent string) *Trial
	// Patterns of tests to skip.
	// For example if a service has a Get method:
	// Skip: ["Get"] will skip all tests for Get.
	// Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get.
	Skip []string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL