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.
Index ¶
- func ApplyBudget(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func BudgetHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func BudgetID(u *unstructured.Resource) (string, error)
- func BudgetToUnstructured(r *dclService.Budget) *unstructured.Resource
- func DeleteBudget(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func GetBudget(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func ListBudget(ctx context.Context, config *dcl.Config, billingaccount string) ([]*unstructured.Resource, error)
- func UnstructuredToBudget(u *unstructured.Resource) (*dclService.Budget, error)
- type Budget
- func (r *Budget) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Budget) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Budget) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Budget) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Budget) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Budget) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Budget) ID(resource *unstructured.Resource) (string, error)
- func (r *Budget) STV() unstructured.ServiceTypeVersion
- func (r *Budget) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Budget) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyBudget ¶
func ApplyBudget(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func BudgetHasDiff ¶
func BudgetHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func BudgetToUnstructured ¶
func BudgetToUnstructured(r *dclService.Budget) *unstructured.Resource
func DeleteBudget ¶
func GetBudget ¶
func GetBudget(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func ListBudget ¶
func UnstructuredToBudget ¶
func UnstructuredToBudget(u *unstructured.Resource) (*dclService.Budget, error)
Types ¶
type Budget ¶
type Budget struct{}
func (*Budget) Apply ¶
func (r *Budget) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Budget) Get ¶
func (r *Budget) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Budget) GetPolicy ¶
func (r *Budget) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Budget) GetPolicyMember ¶
func (*Budget) STV ¶
func (r *Budget) STV() unstructured.ServiceTypeVersion
func (*Budget) SetPolicy ¶
func (r *Budget) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Budget) SetPolicyMember ¶
func (r *Budget) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
Click to show internal directories.
Click to hide internal directories.