bigqueryreservation

package
v1.69.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Copyright 2024 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 2024 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 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 DeleteAssignment

func DeleteAssignment(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 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 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 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 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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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