Versions in this module Expand all Collapse all v1 v1.10.1 Jun 3, 2022 v1.10.0 May 31, 2022 Changes in this version + const EndpointMaxPage + const EndpointTrafficSplitMaxPage + const MetadataSchemaMaxPage + const MetadataStoreMaxPage + const ModelDeploymentMaxPage + const ModelMaxPage + var YAML_endpoint = []byte(...) + var YAML_endpoint_traffic_split = []byte(...) + var YAML_metadata_schema = []byte(...) + var YAML_metadata_store = []byte(...) + var YAML_model = []byte(...) + var YAML_model_deployment = []byte(...) + type Client struct + Config *dcl.Config + func NewClient(c *dcl.Config) *Client + func (c *Client) ApplyEndpoint(ctx context.Context, rawDesired *Endpoint, opts ...dcl.ApplyOption) (*Endpoint, error) + func (c *Client) ApplyEndpointTrafficSplit(ctx context.Context, rawDesired *EndpointTrafficSplit, opts ...dcl.ApplyOption) (*EndpointTrafficSplit, error) + func (c *Client) ApplyMetadataSchema(ctx context.Context, rawDesired *MetadataSchema, opts ...dcl.ApplyOption) (*MetadataSchema, error) + func (c *Client) ApplyMetadataStore(ctx context.Context, rawDesired *MetadataStore, opts ...dcl.ApplyOption) (*MetadataStore, error) + func (c *Client) ApplyModel(ctx context.Context, rawDesired *Model, opts ...dcl.ApplyOption) (*Model, error) + func (c *Client) ApplyModelDeployment(ctx context.Context, rawDesired *ModelDeployment, opts ...dcl.ApplyOption) (*ModelDeployment, error) + func (c *Client) DeleteAllEndpoint(ctx context.Context, project, location string, filter func(*Endpoint) bool) error + func (c *Client) DeleteAllMetadataStore(ctx context.Context, project, location string, ...) error + func (c *Client) DeleteAllModel(ctx context.Context, project, location string, filter func(*Model) bool) error + func (c *Client) DeleteAllModelDeployment(ctx context.Context, project, location, endpoint string, ...) error + func (c *Client) DeleteEndpoint(ctx context.Context, r *Endpoint) error + func (c *Client) DeleteMetadataStore(ctx context.Context, r *MetadataStore) error + func (c *Client) DeleteModel(ctx context.Context, r *Model) error + func (c *Client) DeleteModelDeployment(ctx context.Context, r *ModelDeployment) error + func (c *Client) GetEndpoint(ctx context.Context, r *Endpoint) (*Endpoint, error) + func (c *Client) GetEndpointTrafficSplit(ctx context.Context, r *EndpointTrafficSplit) (*EndpointTrafficSplit, error) + func (c *Client) GetMetadataSchema(ctx context.Context, r *MetadataSchema) (*MetadataSchema, error) + func (c *Client) GetMetadataStore(ctx context.Context, r *MetadataStore) (*MetadataStore, error) + func (c *Client) GetModel(ctx context.Context, r *Model) (*Model, error) + func (c *Client) GetModelDeployment(ctx context.Context, r *ModelDeployment) (*ModelDeployment, error) + func (c *Client) ListEndpoint(ctx context.Context, project, location string) (*EndpointList, error) + func (c *Client) ListEndpointWithMaxResults(ctx context.Context, project, location string, pageSize int32) (*EndpointList, error) + func (c *Client) ListMetadataSchema(ctx context.Context, project, location, metadataStore string) (*MetadataSchemaList, error) + func (c *Client) ListMetadataSchemaWithMaxResults(ctx context.Context, project, location, metadataStore string, pageSize int32) (*MetadataSchemaList, error) + func (c *Client) ListMetadataStore(ctx context.Context, project, location string) (*MetadataStoreList, error) + func (c *Client) ListMetadataStoreWithMaxResults(ctx context.Context, project, location string, pageSize int32) (*MetadataStoreList, error) + func (c *Client) ListModel(ctx context.Context, project, location string) (*ModelList, error) + func (c *Client) ListModelDeployment(ctx context.Context, project, location, endpoint string) (*ModelDeploymentList, error) + func (c *Client) ListModelDeploymentWithMaxResults(ctx context.Context, project, location, endpoint string, pageSize int32) (*ModelDeploymentList, error) + func (c *Client) ListModelWithMaxResults(ctx context.Context, project, location string, pageSize int32) (*ModelList, error) + type Endpoint struct + CreateTime *string + DeployedModels []EndpointDeployedModels + Description *string + DisplayName *string + EncryptionSpec *EndpointEncryptionSpec + Etag *string + Labels map[string]string + Location *string + ModelDeploymentMonitoringJob *string + Name *string + Network *string + Project *string + UpdateTime *string + func (r *Endpoint) Describe() dcl.ServiceTypeVersion + func (r *Endpoint) ID() (string, error) + func (r *Endpoint) String() string + type EndpointDeployedModels struct + AutomaticResources *EndpointDeployedModelsAutomaticResources + CreateTime *string + DedicatedResources *EndpointDeployedModelsDedicatedResources + DisableContainerLogging *bool + DisplayName *string + EnableAccessLogging *bool + EnableContainerLogging *bool + Id *string + Model *string + ModelVersionId *string + PrivateEndpoints *EndpointDeployedModelsPrivateEndpoints + ServiceAccount *string + SharedResources *string + var EmptyEndpointDeployedModels *EndpointDeployedModels = &EndpointDeployedModels{ ... } + func (r *EndpointDeployedModels) Empty() bool + func (r *EndpointDeployedModels) HashCode() string + func (r *EndpointDeployedModels) String() string + func (r *EndpointDeployedModels) UnmarshalJSON(data []byte) error + type EndpointDeployedModelsAutomaticResources struct + MaxReplicaCount *int64 + MinReplicaCount *int64 + var EmptyEndpointDeployedModelsAutomaticResources *EndpointDeployedModelsAutomaticResources = &EndpointDeployedModelsAutomaticResources{ ... } + func (r *EndpointDeployedModelsAutomaticResources) Empty() bool + func (r *EndpointDeployedModelsAutomaticResources) HashCode() string + func (r *EndpointDeployedModelsAutomaticResources) String() string + func (r *EndpointDeployedModelsAutomaticResources) UnmarshalJSON(data []byte) error + type EndpointDeployedModelsDedicatedResources struct + AutoscalingMetricSpecs []EndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecs + MachineSpec *EndpointDeployedModelsDedicatedResourcesMachineSpec + MaxReplicaCount *int64 + MinReplicaCount *int64 + var EmptyEndpointDeployedModelsDedicatedResources *EndpointDeployedModelsDedicatedResources = &EndpointDeployedModelsDedicatedResources{ ... } + func (r *EndpointDeployedModelsDedicatedResources) Empty() bool + func (r *EndpointDeployedModelsDedicatedResources) HashCode() string + func (r *EndpointDeployedModelsDedicatedResources) String() string + func (r *EndpointDeployedModelsDedicatedResources) UnmarshalJSON(data []byte) error + type EndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecs struct + MetricName *string + Target *int64 + var EmptyEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecs *EndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecs = &EndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecs{ ... } + func (r *EndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecs) Empty() bool + func (r *EndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecs) HashCode() string + func (r *EndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecs) String() string + func (r *EndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecs) UnmarshalJSON(data []byte) error + type EndpointDeployedModelsDedicatedResourcesMachineSpec struct + AcceleratorCount *int64 + AcceleratorType *EndpointDeployedModelsDedicatedResourcesMachineSpecAcceleratorTypeEnum + MachineType *string + var EmptyEndpointDeployedModelsDedicatedResourcesMachineSpec *EndpointDeployedModelsDedicatedResourcesMachineSpec = &EndpointDeployedModelsDedicatedResourcesMachineSpec{ ... } + func (r *EndpointDeployedModelsDedicatedResourcesMachineSpec) Empty() bool + func (r *EndpointDeployedModelsDedicatedResourcesMachineSpec) HashCode() string + func (r *EndpointDeployedModelsDedicatedResourcesMachineSpec) String() string + func (r *EndpointDeployedModelsDedicatedResourcesMachineSpec) UnmarshalJSON(data []byte) error + type EndpointDeployedModelsDedicatedResourcesMachineSpecAcceleratorTypeEnum string + func EndpointDeployedModelsDedicatedResourcesMachineSpecAcceleratorTypeEnumRef(s string) *EndpointDeployedModelsDedicatedResourcesMachineSpecAcceleratorTypeEnum + func (v EndpointDeployedModelsDedicatedResourcesMachineSpecAcceleratorTypeEnum) Validate() error + type EndpointDeployedModelsPrivateEndpoints struct + ExplainHttpUri *string + HealthHttpUri *string + PredictHttpUri *string + ServiceAttachment *string + var EmptyEndpointDeployedModelsPrivateEndpoints *EndpointDeployedModelsPrivateEndpoints = &EndpointDeployedModelsPrivateEndpoints{ ... } + func (r *EndpointDeployedModelsPrivateEndpoints) Empty() bool + func (r *EndpointDeployedModelsPrivateEndpoints) HashCode() string + func (r *EndpointDeployedModelsPrivateEndpoints) String() string + func (r *EndpointDeployedModelsPrivateEndpoints) UnmarshalJSON(data []byte) error + type EndpointEncryptionSpec struct + KmsKeyName *string + var EmptyEndpointEncryptionSpec *EndpointEncryptionSpec = &EndpointEncryptionSpec{ ... } + func (r *EndpointEncryptionSpec) Empty() bool + func (r *EndpointEncryptionSpec) HashCode() string + func (r *EndpointEncryptionSpec) String() string + func (r *EndpointEncryptionSpec) UnmarshalJSON(data []byte) error + type EndpointList struct + Items []*Endpoint + func (l *EndpointList) HasNext() bool + func (l *EndpointList) Next(ctx context.Context, c *Client) error + type EndpointTrafficSplit struct + Endpoint *string + Etag *string + Location *string + Project *string + TrafficSplit []EndpointTrafficSplitTrafficSplit + func (r *EndpointTrafficSplit) Describe() dcl.ServiceTypeVersion + func (r *EndpointTrafficSplit) ID() (string, error) + func (r *EndpointTrafficSplit) String() string + type EndpointTrafficSplitList struct + Items []*EndpointTrafficSplit + type EndpointTrafficSplitTrafficSplit struct + DeployedModelId *string + TrafficPercentage *int64 + var EmptyEndpointTrafficSplitTrafficSplit *EndpointTrafficSplitTrafficSplit = &EndpointTrafficSplitTrafficSplit{ ... } + func (r *EndpointTrafficSplitTrafficSplit) Empty() bool + func (r *EndpointTrafficSplitTrafficSplit) HashCode() string + func (r *EndpointTrafficSplitTrafficSplit) String() string + func (r *EndpointTrafficSplitTrafficSplit) UnmarshalJSON(data []byte) error + type MetadataSchema struct + CreateTime *string + Location *string + MetadataStore *string + Name *string + Project *string + Schema *string + SchemaType *MetadataSchemaSchemaTypeEnum + SchemaVersion *string + func (r *MetadataSchema) Describe() dcl.ServiceTypeVersion + func (r *MetadataSchema) ID() (string, error) + func (r *MetadataSchema) String() string + type MetadataSchemaList struct + Items []*MetadataSchema + func (l *MetadataSchemaList) HasNext() bool + func (l *MetadataSchemaList) Next(ctx context.Context, c *Client) error + type MetadataSchemaSchemaTypeEnum string + func MetadataSchemaSchemaTypeEnumRef(s string) *MetadataSchemaSchemaTypeEnum + func (v MetadataSchemaSchemaTypeEnum) Validate() error + type MetadataStore struct + CreateTime *string + Description *string + EncryptionSpec *MetadataStoreEncryptionSpec + Location *string + Name *string + Project *string + State *MetadataStoreState + UpdateTime *string + func (r *MetadataStore) Describe() dcl.ServiceTypeVersion + func (r *MetadataStore) ID() (string, error) + func (r *MetadataStore) String() string + type MetadataStoreEncryptionSpec struct + KmsKeyName *string + var EmptyMetadataStoreEncryptionSpec *MetadataStoreEncryptionSpec = &MetadataStoreEncryptionSpec{ ... } + func (r *MetadataStoreEncryptionSpec) Empty() bool + func (r *MetadataStoreEncryptionSpec) HashCode() string + func (r *MetadataStoreEncryptionSpec) String() string + func (r *MetadataStoreEncryptionSpec) UnmarshalJSON(data []byte) error + type MetadataStoreList struct + Items []*MetadataStore + func (l *MetadataStoreList) HasNext() bool + func (l *MetadataStoreList) Next(ctx context.Context, c *Client) error + type MetadataStoreState struct + DiskUtilizationBytes *int64 + var EmptyMetadataStoreState *MetadataStoreState = &MetadataStoreState{ ... } + func (r *MetadataStoreState) Empty() bool + func (r *MetadataStoreState) HashCode() string + func (r *MetadataStoreState) String() string + func (r *MetadataStoreState) UnmarshalJSON(data []byte) error + type Model struct + ArtifactUri *string + ContainerSpec *ModelContainerSpec + CreateTime *string + DeployedModels []ModelDeployedModels + Description *string + DisplayName *string + EncryptionSpec *ModelEncryptionSpec + Etag *string + Labels map[string]string + Location *string + Name *string + OriginalModelInfo *ModelOriginalModelInfo + Project *string + SupportedDeploymentResourcesTypes []ModelSupportedDeploymentResourcesTypesEnum + SupportedExportFormats []ModelSupportedExportFormats + SupportedInputStorageFormats []string + SupportedOutputStorageFormats []string + TrainingPipeline *string + UpdateTime *string + VersionAliases []string + VersionCreateTime *string + VersionDescription *string + VersionId *string + VersionUpdateTime *string + func (r *Model) Describe() dcl.ServiceTypeVersion + func (r *Model) ID() (string, error) + func (r *Model) String() string + type ModelContainerSpec struct + AcceleratorRequirements []ModelContainerSpecAcceleratorRequirements + Args []string + Command []string + Env []ModelContainerSpecEnv + HealthRoute *string + ImageUri *string + Ports []ModelContainerSpecPorts + PredictRoute *string + var EmptyModelContainerSpec *ModelContainerSpec = &ModelContainerSpec{ ... } + func (r *ModelContainerSpec) Empty() bool + func (r *ModelContainerSpec) HashCode() string + func (r *ModelContainerSpec) String() string + func (r *ModelContainerSpec) UnmarshalJSON(data []byte) error + type ModelContainerSpecAcceleratorRequirements struct + Count *int64 + Type *ModelContainerSpecAcceleratorRequirementsTypeEnum + var EmptyModelContainerSpecAcceleratorRequirements *ModelContainerSpecAcceleratorRequirements = &ModelContainerSpecAcceleratorRequirements{ ... } + func (r *ModelContainerSpecAcceleratorRequirements) Empty() bool + func (r *ModelContainerSpecAcceleratorRequirements) HashCode() string + func (r *ModelContainerSpecAcceleratorRequirements) String() string + func (r *ModelContainerSpecAcceleratorRequirements) UnmarshalJSON(data []byte) error + type ModelContainerSpecAcceleratorRequirementsTypeEnum string + func ModelContainerSpecAcceleratorRequirementsTypeEnumRef(s string) *ModelContainerSpecAcceleratorRequirementsTypeEnum + func (v ModelContainerSpecAcceleratorRequirementsTypeEnum) Validate() error + type ModelContainerSpecEnv struct + Name *string + Value *string + var EmptyModelContainerSpecEnv *ModelContainerSpecEnv = &ModelContainerSpecEnv{ ... } + func (r *ModelContainerSpecEnv) Empty() bool + func (r *ModelContainerSpecEnv) HashCode() string + func (r *ModelContainerSpecEnv) String() string + func (r *ModelContainerSpecEnv) UnmarshalJSON(data []byte) error + type ModelContainerSpecPorts struct + ContainerPort *int64 + var EmptyModelContainerSpecPorts *ModelContainerSpecPorts = &ModelContainerSpecPorts{ ... } + func (r *ModelContainerSpecPorts) Empty() bool + func (r *ModelContainerSpecPorts) HashCode() string + func (r *ModelContainerSpecPorts) String() string + func (r *ModelContainerSpecPorts) UnmarshalJSON(data []byte) error + type ModelDeployedModels struct + DeployedModelId *string + Endpoint *string + var EmptyModelDeployedModels *ModelDeployedModels = &ModelDeployedModels{ ... } + func (r *ModelDeployedModels) Empty() bool + func (r *ModelDeployedModels) HashCode() string + func (r *ModelDeployedModels) String() string + func (r *ModelDeployedModels) UnmarshalJSON(data []byte) error + type ModelDeployment struct + DedicatedResources *ModelDeploymentDedicatedResources + Endpoint *string + Id *string + Location *string + Model *string + Project *string + func (r *ModelDeployment) Describe() dcl.ServiceTypeVersion + func (r *ModelDeployment) ID() (string, error) + func (r *ModelDeployment) String() string + type ModelDeploymentDedicatedResources struct + MachineSpec *ModelDeploymentDedicatedResourcesMachineSpec + MaxReplicaCount *int64 + MinReplicaCount *int64 + var EmptyModelDeploymentDedicatedResources *ModelDeploymentDedicatedResources = &ModelDeploymentDedicatedResources{ ... } + func (r *ModelDeploymentDedicatedResources) Empty() bool + func (r *ModelDeploymentDedicatedResources) HashCode() string + func (r *ModelDeploymentDedicatedResources) String() string + func (r *ModelDeploymentDedicatedResources) UnmarshalJSON(data []byte) error + type ModelDeploymentDedicatedResourcesMachineSpec struct + MachineType *string + var EmptyModelDeploymentDedicatedResourcesMachineSpec *ModelDeploymentDedicatedResourcesMachineSpec = &ModelDeploymentDedicatedResourcesMachineSpec{ ... } + func (r *ModelDeploymentDedicatedResourcesMachineSpec) Empty() bool + func (r *ModelDeploymentDedicatedResourcesMachineSpec) HashCode() string + func (r *ModelDeploymentDedicatedResourcesMachineSpec) String() string + func (r *ModelDeploymentDedicatedResourcesMachineSpec) UnmarshalJSON(data []byte) error + type ModelDeploymentList struct + Items []*ModelDeployment + func (l *ModelDeploymentList) HasNext() bool + func (l *ModelDeploymentList) Next(ctx context.Context, c *Client) error + type ModelEncryptionSpec struct + KmsKeyName *string + var EmptyModelEncryptionSpec *ModelEncryptionSpec = &ModelEncryptionSpec{ ... } + func (r *ModelEncryptionSpec) Empty() bool + func (r *ModelEncryptionSpec) HashCode() string + func (r *ModelEncryptionSpec) String() string + func (r *ModelEncryptionSpec) UnmarshalJSON(data []byte) error + type ModelList struct + Items []*Model + func (l *ModelList) HasNext() bool + func (l *ModelList) Next(ctx context.Context, c *Client) error + type ModelOriginalModelInfo struct + Model *string + var EmptyModelOriginalModelInfo *ModelOriginalModelInfo = &ModelOriginalModelInfo{ ... } + func (r *ModelOriginalModelInfo) Empty() bool + func (r *ModelOriginalModelInfo) HashCode() string + func (r *ModelOriginalModelInfo) String() string + func (r *ModelOriginalModelInfo) UnmarshalJSON(data []byte) error + type ModelSupportedDeploymentResourcesTypesEnum string + func ModelSupportedDeploymentResourcesTypesEnumRef(s string) *ModelSupportedDeploymentResourcesTypesEnum + func (v ModelSupportedDeploymentResourcesTypesEnum) Validate() error + type ModelSupportedExportFormats struct + ExportableContents []ModelSupportedExportFormatsExportableContentsEnum + Id *string + var EmptyModelSupportedExportFormats *ModelSupportedExportFormats = &ModelSupportedExportFormats{ ... } + func (r *ModelSupportedExportFormats) Empty() bool + func (r *ModelSupportedExportFormats) HashCode() string + func (r *ModelSupportedExportFormats) String() string + func (r *ModelSupportedExportFormats) UnmarshalJSON(data []byte) error + type ModelSupportedExportFormatsExportableContentsEnum string + func ModelSupportedExportFormatsExportableContentsEnumRef(s string) *ModelSupportedExportFormatsExportableContentsEnum + func (v ModelSupportedExportFormatsExportableContentsEnum) Validate() error