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 filestore 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 filestore contains the DCL implementation of GCP Filestore.
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 InstanceFileShares
- type InstanceFileSharesNfsExportOptions
- type InstanceFileSharesNfsExportOptionsAccessModeEnum
- type InstanceFileSharesNfsExportOptionsSquashModeEnum
- type InstanceList
- type InstanceNetworks
- type InstanceNetworksModesEnum
- type InstanceStateEnum
- type InstanceTierEnum
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"`
State *InstanceStateEnum `json:"state"`
StatusMessage *string `json:"statusMessage"`
CreateTime *string `json:"createTime"`
Tier *InstanceTierEnum `json:"tier"`
Labels map[string]string `json:"labels"`
Networks []InstanceNetworks `json:"networks"`
Etag *string `json:"etag"`
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 InstanceFileShares ¶
type InstanceFileShares struct {
// contains filtered or unexported fields
}
This object is used to assert a desired state where this InstanceFileShares is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*InstanceFileShares) Empty ¶
func (r *InstanceFileShares) Empty() bool
func (*InstanceFileShares) HashCode ¶
func (r *InstanceFileShares) HashCode() string
func (*InstanceFileShares) String ¶
func (r *InstanceFileShares) String() string
func (*InstanceFileShares) UnmarshalJSON ¶
func (r *InstanceFileShares) UnmarshalJSON(data []byte) error
type InstanceFileSharesNfsExportOptions ¶
type InstanceFileSharesNfsExportOptions struct {
// contains filtered or unexported fields
}
This object is used to assert a desired state where this InstanceFileSharesNfsExportOptions is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*InstanceFileSharesNfsExportOptions) Empty ¶
func (r *InstanceFileSharesNfsExportOptions) Empty() bool
func (*InstanceFileSharesNfsExportOptions) HashCode ¶
func (r *InstanceFileSharesNfsExportOptions) HashCode() string
func (*InstanceFileSharesNfsExportOptions) String ¶
func (r *InstanceFileSharesNfsExportOptions) String() string
func (*InstanceFileSharesNfsExportOptions) UnmarshalJSON ¶
func (r *InstanceFileSharesNfsExportOptions) UnmarshalJSON(data []byte) error
type InstanceFileSharesNfsExportOptionsAccessModeEnum ¶
type InstanceFileSharesNfsExportOptionsAccessModeEnum string
The enum InstanceFileSharesNfsExportOptionsAccessModeEnum.
func InstanceFileSharesNfsExportOptionsAccessModeEnumRef ¶
func InstanceFileSharesNfsExportOptionsAccessModeEnumRef(s string) *InstanceFileSharesNfsExportOptionsAccessModeEnum
InstanceFileSharesNfsExportOptionsAccessModeEnumRef returns a *InstanceFileSharesNfsExportOptionsAccessModeEnum with the value of string s If the empty string is provided, nil is returned.
func (InstanceFileSharesNfsExportOptionsAccessModeEnum) Validate ¶
func (v InstanceFileSharesNfsExportOptionsAccessModeEnum) Validate() error
type InstanceFileSharesNfsExportOptionsSquashModeEnum ¶
type InstanceFileSharesNfsExportOptionsSquashModeEnum string
The enum InstanceFileSharesNfsExportOptionsSquashModeEnum.
func InstanceFileSharesNfsExportOptionsSquashModeEnumRef ¶
func InstanceFileSharesNfsExportOptionsSquashModeEnumRef(s string) *InstanceFileSharesNfsExportOptionsSquashModeEnum
InstanceFileSharesNfsExportOptionsSquashModeEnumRef returns a *InstanceFileSharesNfsExportOptionsSquashModeEnum with the value of string s If the empty string is provided, nil is returned.
func (InstanceFileSharesNfsExportOptionsSquashModeEnum) Validate ¶
func (v InstanceFileSharesNfsExportOptionsSquashModeEnum) Validate() error
type InstanceList ¶
type InstanceList struct {
Items []*Instance
// contains filtered or unexported fields
}
func (*InstanceList) HasNext ¶
func (l *InstanceList) HasNext() bool
type InstanceNetworks ¶
type InstanceNetworks struct {
Network *string `json:"network"`
Modes []InstanceNetworksModesEnum `json:"modes"`
ReservedIPRange *string `json:"reservedIPRange"`
IPAddresses []string `json:"ipAddresses"`
// contains filtered or unexported fields
}
var EmptyInstanceNetworks *InstanceNetworks = &InstanceNetworks{empty: true}
This object is used to assert a desired state where this InstanceNetworks is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*InstanceNetworks) Empty ¶
func (r *InstanceNetworks) Empty() bool
func (*InstanceNetworks) HashCode ¶
func (r *InstanceNetworks) HashCode() string
func (*InstanceNetworks) String ¶
func (r *InstanceNetworks) String() string
func (*InstanceNetworks) UnmarshalJSON ¶
func (r *InstanceNetworks) UnmarshalJSON(data []byte) error
type InstanceNetworksModesEnum ¶
type InstanceNetworksModesEnum string
The enum InstanceNetworksModesEnum.
func InstanceNetworksModesEnumRef ¶
func InstanceNetworksModesEnumRef(s string) *InstanceNetworksModesEnum
InstanceNetworksModesEnumRef returns a *InstanceNetworksModesEnum with the value of string s If the empty string is provided, nil is returned.
func (InstanceNetworksModesEnum) Validate ¶
func (v InstanceNetworksModesEnum) Validate() 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 InstanceTierEnum ¶
type InstanceTierEnum string
The enum InstanceTierEnum.
func InstanceTierEnumRef ¶
func InstanceTierEnumRef(s string) *InstanceTierEnum
InstanceTierEnumRef returns a *InstanceTierEnum with the value of string s If the empty string is provided, nil is returned.
func (InstanceTierEnum) Validate ¶
func (v InstanceTierEnum) Validate() error