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.
Index ¶
- func ApplyEnvironment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyOrganization(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func DeleteEnvironment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteOrganization(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeletePolicyMemberEnvironment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) error
- func EnvironmentHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func EnvironmentID(u *unstructured.Resource) (string, error)
- func EnvironmentToUnstructured(r *dclService.Environment) *unstructured.Resource
- func GetEnvironment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetOrganization(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetPolicyEnvironment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetPolicyMemberEnvironment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ListEnvironment(ctx context.Context, config *dcl.Config, apigeeOrganization string) ([]*unstructured.Resource, error)
- func ListOrganization(ctx context.Context, config *dcl.Config) ([]*unstructured.Resource, error)
- func OrganizationHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func OrganizationID(u *unstructured.Resource) (string, error)
- func OrganizationToUnstructured(r *dclService.Organization) *unstructured.Resource
- func SetPolicyEnvironment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func SetPolicyMemberEnvironment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func SetPolicyWithEtagEnvironment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func UnstructuredToEnvironment(u *unstructured.Resource) (*dclService.Environment, error)
- func UnstructuredToOrganization(u *unstructured.Resource) (*dclService.Organization, error)
- type Environment
- func (r *Environment) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Environment) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Environment) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Environment) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Environment) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Environment) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Environment) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Environment) ID(resource *unstructured.Resource) (string, error)
- func (r *Environment) STV() unstructured.ServiceTypeVersion
- func (r *Environment) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Environment) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Environment) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type Organization
- func (r *Organization) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Organization) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Organization) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Organization) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Organization) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Organization) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Organization) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Organization) ID(resource *unstructured.Resource) (string, error)
- func (r *Organization) STV() unstructured.ServiceTypeVersion
- func (r *Organization) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Organization) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Organization) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyEnvironment ¶
func ApplyEnvironment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func ApplyOrganization ¶
func ApplyOrganization(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func DeleteEnvironment ¶
func DeleteOrganization ¶
func DeletePolicyMemberEnvironment ¶ added in v1.1.0
func DeletePolicyMemberEnvironment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, m *unstructured.Resource) error
func EnvironmentHasDiff ¶
func EnvironmentHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func EnvironmentID ¶
func EnvironmentID(u *unstructured.Resource) (string, error)
func EnvironmentToUnstructured ¶
func EnvironmentToUnstructured(r *dclService.Environment) *unstructured.Resource
func GetEnvironment ¶
func GetEnvironment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetOrganization ¶
func GetOrganization(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetPolicyEnvironment ¶
func GetPolicyEnvironment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetPolicyMemberEnvironment ¶
func GetPolicyMemberEnvironment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func ListEnvironment ¶
func ListOrganization ¶
func OrganizationHasDiff ¶
func OrganizationHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func OrganizationID ¶
func OrganizationID(u *unstructured.Resource) (string, error)
func OrganizationToUnstructured ¶
func OrganizationToUnstructured(r *dclService.Organization) *unstructured.Resource
func SetPolicyEnvironment ¶
func SetPolicyEnvironment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, p *unstructured.Resource) (*unstructured.Resource, error)
func SetPolicyMemberEnvironment ¶
func SetPolicyMemberEnvironment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, m *unstructured.Resource) (*unstructured.Resource, error)
func SetPolicyWithEtagEnvironment ¶ added in v1.1.0
func SetPolicyWithEtagEnvironment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, p *unstructured.Resource) (*unstructured.Resource, error)
func UnstructuredToEnvironment ¶
func UnstructuredToEnvironment(u *unstructured.Resource) (*dclService.Environment, error)
func UnstructuredToOrganization ¶
func UnstructuredToOrganization(u *unstructured.Resource) (*dclService.Organization, error)
Types ¶
type Environment ¶
type Environment struct{}
func (*Environment) Apply ¶
func (r *Environment) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Environment) Delete ¶
func (r *Environment) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
func (*Environment) DeletePolicyMember ¶ added in v1.1.0
func (r *Environment) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*Environment) Get ¶
func (r *Environment) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Environment) GetPolicy ¶
func (r *Environment) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Environment) GetPolicyMember ¶
func (r *Environment) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func (*Environment) HasDiff ¶
func (r *Environment) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func (*Environment) ID ¶
func (r *Environment) ID(resource *unstructured.Resource) (string, error)
func (*Environment) STV ¶
func (r *Environment) STV() unstructured.ServiceTypeVersion
func (*Environment) SetPolicy ¶
func (r *Environment) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Environment) SetPolicyMember ¶
func (r *Environment) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*Environment) SetPolicyWithEtag ¶ added in v1.1.0
func (r *Environment) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
type Organization ¶
type Organization struct{}
func (*Organization) Apply ¶
func (r *Organization) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Organization) Delete ¶
func (r *Organization) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
func (*Organization) DeletePolicyMember ¶ added in v1.1.0
func (r *Organization) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*Organization) Get ¶
func (r *Organization) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Organization) GetPolicy ¶
func (r *Organization) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Organization) GetPolicyMember ¶
func (r *Organization) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func (*Organization) HasDiff ¶
func (r *Organization) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func (*Organization) ID ¶
func (r *Organization) ID(resource *unstructured.Resource) (string, error)
func (*Organization) STV ¶
func (r *Organization) STV() unstructured.ServiceTypeVersion
func (*Organization) SetPolicy ¶
func (r *Organization) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Organization) SetPolicyMember ¶
func (r *Organization) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*Organization) SetPolicyWithEtag ¶ added in v1.1.0
func (r *Organization) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)