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. Package alpha defines operations in the declarative SDK.
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
- Variables
- func DCLManagedServiceSchema() *dcl.Schema
- type Client
- func (c *Client) ApplyManagedService(ctx context.Context, rawDesired *ManagedService, opts ...dcl.ApplyOption) (*ManagedService, error)
- func (c *Client) DeleteAllManagedService(ctx context.Context, project string, filter func(*ManagedService) bool) error
- func (c *Client) DeleteManagedService(ctx context.Context, r *ManagedService) error
- func (c *Client) GetManagedService(ctx context.Context, r *ManagedService) (*ManagedService, error)
- func (c *Client) ListManagedService(ctx context.Context, project string) (*ManagedServiceList, error)
- func (c *Client) ListManagedServiceWithMaxResults(ctx context.Context, project string, pageSize int32) (*ManagedServiceList, error)
- type ManagedService
- type ManagedServiceList
Constants ¶
const ManagedServiceMaxPage = -1
Variables ¶
var YAML_managed_service = []byte("info:\n title: Servicemanagement/ManagedService\n description: The Servicemanagement ManagedService resource\n x-dcl-struct-name: ManagedService\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a ManagedService\n parameters:\n - name: ManagedService\n required: true\n description: A full instance of a ManagedService\n apply:\n description: The function used to apply information about a ManagedService\n parameters:\n - name: ManagedService\n required: true\n description: A full instance of a ManagedService\n delete:\n description: The function used to delete a ManagedService\n parameters:\n - name: ManagedService\n required: true\n description: A full instance of a ManagedService\n deleteAll:\n description: The function used to delete all ManagedService\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many ManagedService\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n ManagedService:\n title: ManagedService\n x-dcl-id: services/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n type: object\n required:\n - name\n - project\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the service. See the overview for naming requirements.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: ID of the project that produces and owns this service.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n")
blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/servicemanagement/alpha/managed_service.yaml
Functions ¶
func DCLManagedServiceSchema ¶ 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) ApplyManagedService ¶
func (c *Client) ApplyManagedService(ctx context.Context, rawDesired *ManagedService, opts ...dcl.ApplyOption) (*ManagedService, error)
func (*Client) DeleteAllManagedService ¶
func (c *Client) DeleteAllManagedService(ctx context.Context, project string, filter func(*ManagedService) bool) error
DeleteAllManagedService deletes all resources that the filter functions returns true on.
func (*Client) DeleteManagedService ¶
func (c *Client) DeleteManagedService(ctx context.Context, r *ManagedService) error
func (*Client) GetManagedService ¶
func (c *Client) GetManagedService(ctx context.Context, r *ManagedService) (*ManagedService, error)
func (*Client) ListManagedService ¶
func (*Client) ListManagedServiceWithMaxResults ¶
type ManagedService ¶
func (*ManagedService) Describe ¶
func (r *ManagedService) Describe() dcl.ServiceTypeVersion
Describe returns a simple description of this resource to ensure that automated tools can identify it.
func (*ManagedService) ID ¶
func (r *ManagedService) ID() (string, error)
func (*ManagedService) String ¶
func (r *ManagedService) String() string
type ManagedServiceList ¶
type ManagedServiceList struct { Items []*ManagedService // contains filtered or unexported fields }
func (*ManagedServiceList) HasNext ¶
func (l *ManagedServiceList) HasNext() bool