vertexai

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Copyright 2022 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2022 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2022 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2022 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2022 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2022 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyEndpoint

func ApplyEndpoint(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func ApplyEndpointTrafficSplit

func ApplyEndpointTrafficSplit(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func ApplyMetadataSchema

func ApplyMetadataSchema(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func ApplyMetadataStore

func ApplyMetadataStore(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func ApplyModel

func ApplyModel(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func ApplyModelDeployment

func ApplyModelDeployment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func DeleteEndpoint

func DeleteEndpoint(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteEndpointTrafficSplit

func DeleteEndpointTrafficSplit(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteMetadataSchema

func DeleteMetadataSchema(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteMetadataStore

func DeleteMetadataStore(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteModel

func DeleteModel(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteModelDeployment

func DeleteModelDeployment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func EndpointHasDiff

func EndpointHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func EndpointID

func EndpointID(u *unstructured.Resource) (string, error)

func EndpointToUnstructured

func EndpointToUnstructured(r *dclService.Endpoint) *unstructured.Resource

func EndpointTrafficSplitHasDiff

func EndpointTrafficSplitHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func EndpointTrafficSplitID

func EndpointTrafficSplitID(u *unstructured.Resource) (string, error)

func GetEndpoint

func GetEndpoint(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func GetEndpointTrafficSplit

func GetEndpointTrafficSplit(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func GetMetadataSchema

func GetMetadataSchema(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func GetMetadataStore

func GetMetadataStore(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func GetModel

func GetModel(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func GetModelDeployment

func GetModelDeployment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func ListEndpoint

func ListEndpoint(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)

func ListMetadataSchema

func ListMetadataSchema(ctx context.Context, config *dcl.Config, project string, location string, metadatastore string) ([]*unstructured.Resource, error)

func ListMetadataStore

func ListMetadataStore(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)

func ListModel

func ListModel(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)

func ListModelDeployment

func ListModelDeployment(ctx context.Context, config *dcl.Config, project string, location string, endpoint string) ([]*unstructured.Resource, error)

func MetadataSchemaHasDiff

func MetadataSchemaHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func MetadataSchemaID

func MetadataSchemaID(u *unstructured.Resource) (string, error)

func MetadataSchemaToUnstructured

func MetadataSchemaToUnstructured(r *dclService.MetadataSchema) *unstructured.Resource

func MetadataStoreHasDiff

func MetadataStoreHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func MetadataStoreID

func MetadataStoreID(u *unstructured.Resource) (string, error)

func MetadataStoreToUnstructured

func MetadataStoreToUnstructured(r *dclService.MetadataStore) *unstructured.Resource

func ModelDeploymentHasDiff

func ModelDeploymentHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func ModelDeploymentID

func ModelDeploymentID(u *unstructured.Resource) (string, error)

func ModelDeploymentToUnstructured

func ModelDeploymentToUnstructured(r *dclService.ModelDeployment) *unstructured.Resource

func ModelHasDiff

func ModelHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func ModelID

func ModelID(u *unstructured.Resource) (string, error)

func ModelToUnstructured

func ModelToUnstructured(r *dclService.Model) *unstructured.Resource

func UnstructuredToEndpoint

func UnstructuredToEndpoint(u *unstructured.Resource) (*dclService.Endpoint, error)

func UnstructuredToEndpointTrafficSplit

func UnstructuredToEndpointTrafficSplit(u *unstructured.Resource) (*dclService.EndpointTrafficSplit, error)

func UnstructuredToMetadataSchema

func UnstructuredToMetadataSchema(u *unstructured.Resource) (*dclService.MetadataSchema, error)

func UnstructuredToMetadataStore

func UnstructuredToMetadataStore(u *unstructured.Resource) (*dclService.MetadataStore, error)

func UnstructuredToModel

func UnstructuredToModel(u *unstructured.Resource) (*dclService.Model, error)

func UnstructuredToModelDeployment

func UnstructuredToModelDeployment(u *unstructured.Resource) (*dclService.ModelDeployment, error)

Types

type Endpoint

type Endpoint struct{}

func (*Endpoint) Apply

func (r *Endpoint) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func (*Endpoint) Delete

func (r *Endpoint) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*Endpoint) DeletePolicyMember

func (r *Endpoint) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*Endpoint) Get

func (r *Endpoint) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*Endpoint) GetPolicy

func (r *Endpoint) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*Endpoint) GetPolicyMember

func (r *Endpoint) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*Endpoint) HasDiff

func (r *Endpoint) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*Endpoint) ID

func (r *Endpoint) ID(resource *unstructured.Resource) (string, error)

func (*Endpoint) STV

func (*Endpoint) SetPolicy

func (r *Endpoint) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

func (*Endpoint) SetPolicyMember

func (r *Endpoint) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

func (*Endpoint) SetPolicyWithEtag

func (r *Endpoint) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

type EndpointTrafficSplit

type EndpointTrafficSplit struct{}

func (*EndpointTrafficSplit) Apply

func (*EndpointTrafficSplit) Delete

func (r *EndpointTrafficSplit) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*EndpointTrafficSplit) DeletePolicyMember

func (r *EndpointTrafficSplit) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*EndpointTrafficSplit) Get

func (*EndpointTrafficSplit) GetPolicy

func (r *EndpointTrafficSplit) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*EndpointTrafficSplit) GetPolicyMember

func (r *EndpointTrafficSplit) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*EndpointTrafficSplit) HasDiff

func (r *EndpointTrafficSplit) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*EndpointTrafficSplit) ID

func (*EndpointTrafficSplit) STV

func (*EndpointTrafficSplit) SetPolicy

func (*EndpointTrafficSplit) SetPolicyMember

func (r *EndpointTrafficSplit) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

func (*EndpointTrafficSplit) SetPolicyWithEtag

func (r *EndpointTrafficSplit) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

type MetadataSchema

type MetadataSchema struct{}

func (*MetadataSchema) Apply

func (r *MetadataSchema) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func (*MetadataSchema) Delete

func (r *MetadataSchema) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*MetadataSchema) DeletePolicyMember

func (r *MetadataSchema) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*MetadataSchema) Get

func (*MetadataSchema) GetPolicy

func (r *MetadataSchema) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*MetadataSchema) GetPolicyMember

func (r *MetadataSchema) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*MetadataSchema) HasDiff

func (r *MetadataSchema) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*MetadataSchema) ID

func (r *MetadataSchema) ID(resource *unstructured.Resource) (string, error)

func (*MetadataSchema) STV

func (*MetadataSchema) SetPolicy

func (r *MetadataSchema) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

func (*MetadataSchema) SetPolicyMember

func (r *MetadataSchema) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

func (*MetadataSchema) SetPolicyWithEtag

func (r *MetadataSchema) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

type MetadataStore

type MetadataStore struct{}

func (*MetadataStore) Apply

func (r *MetadataStore) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func (*MetadataStore) Delete

func (r *MetadataStore) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*MetadataStore) DeletePolicyMember

func (r *MetadataStore) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*MetadataStore) Get

func (r *MetadataStore) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*MetadataStore) GetPolicy

func (r *MetadataStore) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*MetadataStore) GetPolicyMember

func (r *MetadataStore) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*MetadataStore) HasDiff

func (r *MetadataStore) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*MetadataStore) ID

func (r *MetadataStore) ID(resource *unstructured.Resource) (string, error)

func (*MetadataStore) STV

func (*MetadataStore) SetPolicy

func (r *MetadataStore) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

func (*MetadataStore) SetPolicyMember

func (r *MetadataStore) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

func (*MetadataStore) SetPolicyWithEtag

func (r *MetadataStore) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

type Model

type Model struct{}

func (*Model) Apply

func (r *Model) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func (*Model) Delete

func (r *Model) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*Model) DeletePolicyMember

func (r *Model) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*Model) Get

func (r *Model) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*Model) GetPolicy

func (r *Model) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*Model) GetPolicyMember

func (r *Model) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*Model) HasDiff

func (r *Model) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*Model) ID

func (r *Model) ID(resource *unstructured.Resource) (string, error)

func (*Model) STV

func (*Model) SetPolicy

func (r *Model) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

func (*Model) SetPolicyMember

func (r *Model) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

func (*Model) SetPolicyWithEtag

func (r *Model) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

type ModelDeployment

type ModelDeployment struct{}

func (*ModelDeployment) Apply

func (r *ModelDeployment) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func (*ModelDeployment) Delete

func (r *ModelDeployment) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*ModelDeployment) DeletePolicyMember

func (r *ModelDeployment) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*ModelDeployment) Get

func (*ModelDeployment) GetPolicy

func (r *ModelDeployment) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*ModelDeployment) GetPolicyMember

func (r *ModelDeployment) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*ModelDeployment) HasDiff

func (r *ModelDeployment) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*ModelDeployment) ID

func (r *ModelDeployment) ID(resource *unstructured.Resource) (string, error)

func (*ModelDeployment) STV

func (*ModelDeployment) SetPolicy

func (r *ModelDeployment) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

func (*ModelDeployment) SetPolicyMember

func (r *ModelDeployment) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

func (*ModelDeployment) SetPolicyWithEtag

func (r *ModelDeployment) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

Jump to

Keyboard shortcuts

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