cloudresourcemanager

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2023 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 2023 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 2023 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 2023 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 ApplyFolder

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

func ApplyProject

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

func ApplyTagKey

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

func ApplyTagValue added in v1.24.0

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

func DeleteFolder

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

func DeletePolicyMemberFolder added in v1.1.0

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

func DeletePolicyMemberProject added in v1.1.0

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

func DeletePolicyMemberTagKey added in v1.1.0

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

func DeletePolicyMemberTagValue added in v1.24.0

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

func DeleteProject

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

func DeleteTagKey

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

func DeleteTagValue added in v1.24.0

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

func FolderHasDiff

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

func FolderID

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

func FolderToUnstructured

func FolderToUnstructured(r *dclService.Folder) *unstructured.Resource

func GetFolder

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

func GetPolicyFolder

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

func GetPolicyMemberFolder

func GetPolicyMemberFolder(ctx context.Context, config *dcl.Config, u *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func GetPolicyMemberProject

func GetPolicyMemberProject(ctx context.Context, config *dcl.Config, u *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func GetPolicyMemberTagKey

func GetPolicyMemberTagKey(ctx context.Context, config *dcl.Config, u *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func GetPolicyMemberTagValue added in v1.24.0

func GetPolicyMemberTagValue(ctx context.Context, config *dcl.Config, u *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func GetPolicyProject

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

func GetPolicyTagKey

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

func GetPolicyTagValue added in v1.24.0

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

func GetProject

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

func GetTagKey

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

func GetTagValue added in v1.24.0

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

func ListFolder

func ListFolder(ctx context.Context, config *dcl.Config, parent string) ([]*unstructured.Resource, error)

func ListProject

func ListProject(ctx context.Context, config *dcl.Config, parent string) ([]*unstructured.Resource, error)

func ProjectHasDiff

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

func ProjectID

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

func ProjectToUnstructured

func ProjectToUnstructured(r *dclService.Project) *unstructured.Resource

func SetPolicyMemberTagValue added in v1.24.0

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

func SetPolicyTagValue added in v1.24.0

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

func SetPolicyWithEtagFolder added in v1.1.0

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

func SetPolicyWithEtagProject added in v1.1.0

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

func SetPolicyWithEtagTagKey added in v1.1.0

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

func SetPolicyWithEtagTagValue added in v1.24.0

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

func TagKeyHasDiff

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

func TagKeyID

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

func TagKeyToUnstructured

func TagKeyToUnstructured(r *dclService.TagKey) *unstructured.Resource

func TagValueHasDiff added in v1.24.0

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

func TagValueID added in v1.24.0

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

func TagValueToUnstructured added in v1.24.0

func TagValueToUnstructured(r *dclService.TagValue) *unstructured.Resource

func UnstructuredToFolder

func UnstructuredToFolder(u *unstructured.Resource) (*dclService.Folder, error)

func UnstructuredToProject

func UnstructuredToProject(u *unstructured.Resource) (*dclService.Project, error)

func UnstructuredToTagKey

func UnstructuredToTagKey(u *unstructured.Resource) (*dclService.TagKey, error)

func UnstructuredToTagValue added in v1.24.0

func UnstructuredToTagValue(u *unstructured.Resource) (*dclService.TagValue, error)

Types

type Folder

type Folder struct{}

func (*Folder) Apply

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

func (*Folder) Delete

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

func (*Folder) DeletePolicyMember added in v1.1.0

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

func (*Folder) Get

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

func (*Folder) GetPolicy

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

func (*Folder) GetPolicyMember

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

func (*Folder) HasDiff

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

func (*Folder) ID

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

func (*Folder) STV

func (*Folder) SetPolicy

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

func (*Folder) SetPolicyMember

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

func (*Folder) SetPolicyWithEtag added in v1.1.0

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

type Project

type Project struct{}

func (*Project) Apply

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

func (*Project) Delete

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

func (*Project) DeletePolicyMember added in v1.1.0

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

func (*Project) Get

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

func (*Project) GetPolicy

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

func (*Project) GetPolicyMember

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

func (*Project) HasDiff

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

func (*Project) ID

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

func (*Project) STV

func (*Project) SetPolicy

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

func (*Project) SetPolicyMember

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

func (*Project) SetPolicyWithEtag added in v1.1.0

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

type TagKey

type TagKey struct{}

func (*TagKey) Apply

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

func (*TagKey) Delete

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

func (*TagKey) DeletePolicyMember added in v1.1.0

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

func (*TagKey) Get

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

func (*TagKey) GetPolicy

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

func (*TagKey) GetPolicyMember

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

func (*TagKey) HasDiff

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

func (*TagKey) ID

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

func (*TagKey) STV

func (*TagKey) SetPolicy

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

func (*TagKey) SetPolicyMember

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

func (*TagKey) SetPolicyWithEtag added in v1.1.0

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

type TagValue added in v1.24.0

type TagValue struct{}

func (*TagValue) Apply added in v1.24.0

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

func (*TagValue) Delete added in v1.24.0

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

func (*TagValue) DeletePolicyMember added in v1.24.0

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

func (*TagValue) Get added in v1.24.0

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

func (*TagValue) GetPolicy added in v1.24.0

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

func (*TagValue) GetPolicyMember added in v1.24.0

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

func (*TagValue) HasDiff added in v1.24.0

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

func (*TagValue) ID added in v1.24.0

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

func (*TagValue) STV added in v1.24.0

func (*TagValue) SetPolicy added in v1.24.0

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

func (*TagValue) SetPolicyMember added in v1.24.0

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

func (*TagValue) SetPolicyWithEtag added in v1.24.0

func (r *TagValue) 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