bigqueryreservation

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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

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 DeleteAssignment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteCapacityCommitment

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

func DeleteReservation

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

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 ListAssignment(ctx context.Context, config *dcl.Config, project string, location string, reservation string) ([]*unstructured.Resource, error)

func ListCapacityCommitment

func ListCapacityCommitment(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)

func ListReservation

func ListReservation(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)

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 (*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 (*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 (*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 (*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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL