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 beta 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.
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 DCLConnectorSchema() *dcl.Schema
- type Client
- func (c *Client) ApplyConnector(ctx context.Context, rawDesired *Connector, opts ...dcl.ApplyOption) (*Connector, error)
- func (c *Client) DeleteAllConnector(ctx context.Context, project, location string, filter func(*Connector) bool) error
- func (c *Client) DeleteConnector(ctx context.Context, r *Connector) error
- func (c *Client) GetConnector(ctx context.Context, r *Connector) (*Connector, error)
- func (c *Client) ListConnector(ctx context.Context, project, location string) (*ConnectorList, error)
- func (c *Client) ListConnectorWithMaxResults(ctx context.Context, project, location string, pageSize int32) (*ConnectorList, error)
- type Connector
- type ConnectorList
- type ConnectorStateEnum
- type ConnectorSubnet
Constants ¶
const ConnectorMaxPage = -1
Variables ¶
var YAML_connector []byte
Functions ¶
func DCLConnectorSchema ¶ 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) ApplyConnector ¶
func (*Client) DeleteAllConnector ¶
func (c *Client) DeleteAllConnector(ctx context.Context, project, location string, filter func(*Connector) bool) error
DeleteAllConnector deletes all resources that the filter functions returns true on.
func (*Client) DeleteConnector ¶
func (*Client) GetConnector ¶
func (*Client) ListConnector ¶
func (*Client) ListConnectorWithMaxResults ¶
type Connector ¶
type Connector struct {
Name *string `json:"name"`
Network *string `json:"network"`
IPCidrRange *string `json:"ipCidrRange"`
State *ConnectorStateEnum `json:"state"`
MinThroughput *int64 `json:"minThroughput"`
MaxThroughput *int64 `json:"maxThroughput"`
ConnectedProjects []string `json:"connectedProjects"`
Subnet *ConnectorSubnet `json:"subnet"`
MachineType *string `json:"machineType"`
MinInstances *int64 `json:"minInstances"`
MaxInstances *int64 `json:"maxInstances"`
Project *string `json:"project"`
Location *string `json:"location"`
}
func (*Connector) Describe ¶
func (r *Connector) Describe() dcl.ServiceTypeVersion
Describe returns a simple description of this resource to ensure that automated tools can identify it.
type ConnectorList ¶
type ConnectorList struct {
Items []*Connector
// contains filtered or unexported fields
}
func (*ConnectorList) HasNext ¶
func (l *ConnectorList) HasNext() bool
type ConnectorStateEnum ¶
type ConnectorStateEnum string
The enum ConnectorStateEnum.
func ConnectorStateEnumRef ¶
func ConnectorStateEnumRef(s string) *ConnectorStateEnum
ConnectorStateEnumRef returns a *ConnectorStateEnum with the value of string s If the empty string is provided, nil is returned.
func (ConnectorStateEnum) Validate ¶
func (v ConnectorStateEnum) Validate() error
type ConnectorSubnet ¶
type ConnectorSubnet struct {
Name *string `json:"name"`
ProjectId *string `json:"projectId"`
// contains filtered or unexported fields
}
var EmptyConnectorSubnet *ConnectorSubnet = &ConnectorSubnet{empty: true}
This object is used to assert a desired state where this ConnectorSubnet is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*ConnectorSubnet) Empty ¶
func (r *ConnectorSubnet) Empty() bool
func (*ConnectorSubnet) HashCode ¶
func (r *ConnectorSubnet) HashCode() string
func (*ConnectorSubnet) String ¶
func (r *ConnectorSubnet) String() string
func (*ConnectorSubnet) UnmarshalJSON ¶
func (r *ConnectorSubnet) UnmarshalJSON(data []byte) error