Documentation
¶
Overview ¶
Copyright 2026 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. Package alpha defines operations in the declarative SDK.
Copyright 2026 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. Package datafusion contains methods and types for handling datafusion GCP resources.
Copyright 2026 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 2026 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 2026 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 2026 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
- Variables
- func DCLInstanceSchema() *dcl.Schema
- type Client
- func (c *Client) ApplyInstance(ctx context.Context, rawDesired *Instance, opts ...dcl.ApplyOption) (*Instance, error)
- func (c *Client) DeleteAllInstance(ctx context.Context, project, location string, filter func(*Instance) bool) error
- func (c *Client) DeleteInstance(ctx context.Context, r *Instance) error
- func (c *Client) GetInstance(ctx context.Context, r *Instance) (*Instance, error)
- func (c *Client) ListInstance(ctx context.Context, project, location string) (*InstanceList, error)
- func (c *Client) ListInstanceWithMaxResults(ctx context.Context, project, location string, pageSize int32) (*InstanceList, error)
- type Instance
- type InstanceAvailableVersion
- type InstanceList
- type InstanceNetworkConfig
- type InstanceStateEnum
- type InstanceTypeEnum
Constants ¶
const InstanceMaxPage = -1
Variables ¶
var YAML_instance []byte
Functions ¶
func DCLInstanceSchema ¶ added in v1.10.3
Types ¶
type Client ¶
The Client is the base struct of all operations. This will receive the Get, Delete, List, and Apply operations on all resources.
func (*Client) ApplyInstance ¶
func (*Client) DeleteAllInstance ¶
func (c *Client) DeleteAllInstance(ctx context.Context, project, location string, filter func(*Instance) bool) error
DeleteAllInstance deletes all resources that the filter functions returns true on.
func (*Client) DeleteInstance ¶
func (*Client) GetInstance ¶
func (*Client) ListInstance ¶
func (*Client) ListInstanceWithMaxResults ¶
type Instance ¶
type Instance struct {
Name *string `json:"name"`
Description *string `json:"description"`
Type *InstanceTypeEnum `json:"type"`
EnableStackdriverLogging *bool `json:"enableStackdriverLogging"`
EnableStackdriverMonitoring *bool `json:"enableStackdriverMonitoring"`
PrivateInstance *bool `json:"privateInstance"`
NetworkConfig *InstanceNetworkConfig `json:"networkConfig"`
Labels map[string]string `json:"labels"`
Options map[string]string `json:"options"`
CreateTime *string `json:"createTime"`
UpdateTime *string `json:"updateTime"`
State *InstanceStateEnum `json:"state"`
StateMessage *string `json:"stateMessage"`
ServiceEndpoint *string `json:"serviceEndpoint"`
Zone *string `json:"zone"`
Version *string `json:"version"`
DisplayName *string `json:"displayName"`
AvailableVersion []InstanceAvailableVersion `json:"availableVersion"`
ApiEndpoint *string `json:"apiEndpoint"`
GcsBucket *string `json:"gcsBucket"`
P4ServiceAccount *string `json:"p4ServiceAccount"`
TenantProjectId *string `json:"tenantProjectId"`
DataprocServiceAccount *string `json:"dataprocServiceAccount"`
Project *string `json:"project"`
Location *string `json:"location"`
}
func (*Instance) Describe ¶
func (r *Instance) Describe() dcl.ServiceTypeVersion
Describe returns a simple description of this resource to ensure that automated tools can identify it.
type InstanceAvailableVersion ¶
type InstanceAvailableVersion struct {
VersionNumber *string `json:"versionNumber"`
DefaultVersion *bool `json:"defaultVersion"`
AvailableFeatures []string `json:"availableFeatures"`
// contains filtered or unexported fields
}
var EmptyInstanceAvailableVersion *InstanceAvailableVersion = &InstanceAvailableVersion{empty: true}
This object is used to assert a desired state where this InstanceAvailableVersion is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*InstanceAvailableVersion) Empty ¶
func (r *InstanceAvailableVersion) Empty() bool
func (*InstanceAvailableVersion) HashCode ¶
func (r *InstanceAvailableVersion) HashCode() string
func (*InstanceAvailableVersion) String ¶
func (r *InstanceAvailableVersion) String() string
func (*InstanceAvailableVersion) UnmarshalJSON ¶
func (r *InstanceAvailableVersion) UnmarshalJSON(data []byte) error
type InstanceList ¶
type InstanceList struct {
Items []*Instance
// contains filtered or unexported fields
}
func (*InstanceList) HasNext ¶
func (l *InstanceList) HasNext() bool
type InstanceNetworkConfig ¶
type InstanceNetworkConfig struct {
Network *string `json:"network"`
IPAllocation *string `json:"ipAllocation"`
// contains filtered or unexported fields
}
var EmptyInstanceNetworkConfig *InstanceNetworkConfig = &InstanceNetworkConfig{empty: true}
This object is used to assert a desired state where this InstanceNetworkConfig is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*InstanceNetworkConfig) Empty ¶
func (r *InstanceNetworkConfig) Empty() bool
func (*InstanceNetworkConfig) HashCode ¶
func (r *InstanceNetworkConfig) HashCode() string
func (*InstanceNetworkConfig) String ¶
func (r *InstanceNetworkConfig) String() string
func (*InstanceNetworkConfig) UnmarshalJSON ¶
func (r *InstanceNetworkConfig) UnmarshalJSON(data []byte) error
type InstanceStateEnum ¶
type InstanceStateEnum string
The enum InstanceStateEnum.
func InstanceStateEnumRef ¶
func InstanceStateEnumRef(s string) *InstanceStateEnum
InstanceStateEnumRef returns a *InstanceStateEnum with the value of string s If the empty string is provided, nil is returned.
func (InstanceStateEnum) Validate ¶
func (v InstanceStateEnum) Validate() error
type InstanceTypeEnum ¶
type InstanceTypeEnum string
The enum InstanceTypeEnum.
func InstanceTypeEnumRef ¶
func InstanceTypeEnumRef(s string) *InstanceTypeEnum
InstanceTypeEnumRef returns a *InstanceTypeEnum with the value of string s If the empty string is provided, nil is returned.
func (InstanceTypeEnum) Validate ¶
func (v InstanceTypeEnum) Validate() error