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.
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 ¶
- func ApplyAssignment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyCapacityCommitment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyReservation(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func AssignmentHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func AssignmentID(u *unstructured.Resource) (string, error)
- func AssignmentToUnstructured(r *dclService.Assignment) *unstructured.Resource
- func CapacityCommitmentHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func CapacityCommitmentID(u *unstructured.Resource) (string, error)
- func CapacityCommitmentToUnstructured(r *dclService.CapacityCommitment) *unstructured.Resource
- func DeleteAssignment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteCapacityCommitment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteReservation(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func GetAssignment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetCapacityCommitment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetReservation(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func ListAssignment(ctx context.Context, config *dcl.Config, project string, location string, ...) ([]*unstructured.Resource, error)
- func ListCapacityCommitment(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)
- func ListReservation(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)
- func ReservationHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func ReservationID(u *unstructured.Resource) (string, error)
- func ReservationToUnstructured(r *dclService.Reservation) *unstructured.Resource
- func UnstructuredToAssignment(u *unstructured.Resource) (*dclService.Assignment, error)
- func UnstructuredToCapacityCommitment(u *unstructured.Resource) (*dclService.CapacityCommitment, error)
- func UnstructuredToReservation(u *unstructured.Resource) (*dclService.Reservation, error)
- type Assignment
- func (r *Assignment) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Assignment) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Assignment) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Assignment) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Assignment) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Assignment) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Assignment) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Assignment) ID(resource *unstructured.Resource) (string, error)
- func (r *Assignment) STV() unstructured.ServiceTypeVersion
- func (r *Assignment) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Assignment) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Assignment) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type CapacityCommitment
- func (r *CapacityCommitment) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *CapacityCommitment) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *CapacityCommitment) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *CapacityCommitment) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *CapacityCommitment) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *CapacityCommitment) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *CapacityCommitment) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *CapacityCommitment) ID(resource *unstructured.Resource) (string, error)
- func (r *CapacityCommitment) STV() unstructured.ServiceTypeVersion
- func (r *CapacityCommitment) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *CapacityCommitment) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *CapacityCommitment) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type Reservation
- func (r *Reservation) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Reservation) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Reservation) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Reservation) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Reservation) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Reservation) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Reservation) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Reservation) ID(resource *unstructured.Resource) (string, error)
- func (r *Reservation) STV() unstructured.ServiceTypeVersion
- func (r *Reservation) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Reservation) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Reservation) 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 ApplyAssignment ¶
func ApplyAssignment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func ApplyCapacityCommitment ¶
func ApplyCapacityCommitment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func ApplyReservation ¶
func ApplyReservation(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func AssignmentHasDiff ¶
func AssignmentHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func AssignmentID ¶
func AssignmentID(u *unstructured.Resource) (string, error)
func AssignmentToUnstructured ¶
func AssignmentToUnstructured(r *dclService.Assignment) *unstructured.Resource
func CapacityCommitmentHasDiff ¶
func CapacityCommitmentHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func CapacityCommitmentID ¶
func CapacityCommitmentID(u *unstructured.Resource) (string, error)
func CapacityCommitmentToUnstructured ¶
func CapacityCommitmentToUnstructured(r *dclService.CapacityCommitment) *unstructured.Resource
func DeleteAssignment ¶
func DeleteReservation ¶
func GetAssignment ¶
func GetAssignment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetCapacityCommitment ¶
func GetCapacityCommitment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetReservation ¶
func GetReservation(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func ListAssignment ¶
func ListCapacityCommitment ¶
func ListReservation ¶
func ReservationHasDiff ¶
func ReservationHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func ReservationID ¶
func ReservationID(u *unstructured.Resource) (string, error)
func ReservationToUnstructured ¶
func ReservationToUnstructured(r *dclService.Reservation) *unstructured.Resource
func UnstructuredToAssignment ¶
func UnstructuredToAssignment(u *unstructured.Resource) (*dclService.Assignment, error)
func UnstructuredToCapacityCommitment ¶
func UnstructuredToCapacityCommitment(u *unstructured.Resource) (*dclService.CapacityCommitment, error)
func UnstructuredToReservation ¶
func UnstructuredToReservation(u *unstructured.Resource) (*dclService.Reservation, error)
Types ¶
type Assignment ¶
type Assignment struct{}
func (*Assignment) Apply ¶
func (r *Assignment) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Assignment) Delete ¶
func (r *Assignment) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
func (*Assignment) DeletePolicyMember ¶ added in v1.1.0
func (r *Assignment) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*Assignment) Get ¶
func (r *Assignment) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Assignment) GetPolicy ¶
func (r *Assignment) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Assignment) GetPolicyMember ¶
func (r *Assignment) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func (*Assignment) HasDiff ¶
func (r *Assignment) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func (*Assignment) ID ¶
func (r *Assignment) ID(resource *unstructured.Resource) (string, error)
func (*Assignment) STV ¶
func (r *Assignment) STV() unstructured.ServiceTypeVersion
func (*Assignment) SetPolicy ¶
func (r *Assignment) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Assignment) SetPolicyMember ¶
func (r *Assignment) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*Assignment) SetPolicyWithEtag ¶ added in v1.1.0
func (r *Assignment) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
type CapacityCommitment ¶
type CapacityCommitment struct{}
func (*CapacityCommitment) Apply ¶
func (r *CapacityCommitment) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*CapacityCommitment) Delete ¶
func (r *CapacityCommitment) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
func (*CapacityCommitment) DeletePolicyMember ¶ added in v1.1.0
func (r *CapacityCommitment) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*CapacityCommitment) Get ¶
func (r *CapacityCommitment) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*CapacityCommitment) GetPolicy ¶
func (r *CapacityCommitment) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*CapacityCommitment) GetPolicyMember ¶
func (r *CapacityCommitment) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func (*CapacityCommitment) HasDiff ¶
func (r *CapacityCommitment) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func (*CapacityCommitment) ID ¶
func (r *CapacityCommitment) ID(resource *unstructured.Resource) (string, error)
func (*CapacityCommitment) STV ¶
func (r *CapacityCommitment) STV() unstructured.ServiceTypeVersion
func (*CapacityCommitment) SetPolicy ¶
func (r *CapacityCommitment) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*CapacityCommitment) SetPolicyMember ¶
func (r *CapacityCommitment) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*CapacityCommitment) SetPolicyWithEtag ¶ added in v1.1.0
func (r *CapacityCommitment) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
type Reservation ¶
type Reservation struct{}
func (*Reservation) Apply ¶
func (r *Reservation) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Reservation) Delete ¶
func (r *Reservation) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
func (*Reservation) DeletePolicyMember ¶ added in v1.1.0
func (r *Reservation) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*Reservation) Get ¶
func (r *Reservation) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Reservation) GetPolicy ¶
func (r *Reservation) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Reservation) GetPolicyMember ¶
func (r *Reservation) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func (*Reservation) HasDiff ¶
func (r *Reservation) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func (*Reservation) ID ¶
func (r *Reservation) ID(resource *unstructured.Resource) (string, error)
func (*Reservation) STV ¶
func (r *Reservation) STV() unstructured.ServiceTypeVersion
func (*Reservation) SetPolicy ¶
func (r *Reservation) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Reservation) SetPolicyMember ¶
func (r *Reservation) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*Reservation) SetPolicyWithEtag ¶ added in v1.1.0
func (r *Reservation) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)